﻿/* Mission Tours Peru - Custom Styles */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}
/* ================================
   HEADER LOGO STYLES
   ================================ */
.logo-link {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.3s ease;
}

    .logo-link:hover {
        opacity: 0.85;
    }

.logo-header {
    height: 70px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

/* Responsive logo */
@media (max-width: 768px) {
    .logo-header {
        height: 38px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .logo-header {
        height: 32px;
        max-width: 150px;
    }
}

/* ================================
   MENU NAVIGATION LINKS
   ================================ */
.nav-link-institutional {
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

    .nav-link-institutional:hover {
        color: #e20e23;
    }

    .nav-link-institutional::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -4px;
        left: 50%;
        background-color: #e20e23;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link-institutional:hover::after {
        width: 100%;
    }

/* ================================
   LANGUAGE SWITCHER
   ================================ */
.lang-switch {
    position: fixed;
    top: 15px;
    right: 15px;
    background: #fff;
    padding: 10px 16px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .lang-btn:hover {
        color: #e20e23;
        background: #fff5f7;
    }

    .lang-btn.active {
        color: #e20e23;
        font-weight: 900;
        background: #fff5f7;
    }

.lang-switch .separator {
    color: #ddd;
    font-weight: normal;
}

/* Responsive Language Switcher */
@media (max-width: 768px) {
    .lang-switch {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }

    .lang-btn {
        font-size: 13px;
    }
}

/* ================================
   WHATSAPP FLOATING BUTTON
   ================================ */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-whatsapp 2s infinite;
}

    .whatsapp-float:hover {
        background: #20BA5A;
        transform: scale(1.1) translateY(-3px);
        box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5), 0 12px 32px rgba(0, 0, 0, 0.3);
    }

    .whatsapp-float:active {
        transform: scale(0.95);
    }

    .whatsapp-float svg {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

/* WhatsApp pulse animation */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

        .whatsapp-float svg {
            width: 26px;
            height: 26px;
        }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

        .whatsapp-float svg {
            width: 24px;
            height: 24px;
        }
}

/* ================================
   HERO BANNER SECTION
   ================================ */
.hero-banner {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('/Content/images/mission-tours/Plaza_de_Armas.jpg') center center;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 180px 20px 120px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-title-main {
    display: block;
}

.hero-title-sub {
    display: block;
    color: #fbbf24;
    margin-top: 10px;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 32px;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: #cc0033;
    color: white;
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(204, 0, 51, 0.4);
}

    .btn-hero-primary:hover {
        background: #a3002a;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(204, 0, 51, 0.6);
    }

.btn-hero-secondary {
    background: transparent;
    color: white;
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid white;
    transition: all 0.3s ease;
}

    .btn-hero-secondary:hover {
        background: white;
        color: #cc0033;
        transform: translateY(-2px);
    }

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .hero-banner {
        padding: 140px 20px 100px;
        min-height: 500px;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
    }

    .lang-switch {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }

    .lang-btn {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* Hover Effects */
.service-card {
    transition: all 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

/* Button Animations */
.btn-primary {
    position: relative;
    overflow: hidden;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-primary:hover::before {
        width: 300px;
        height: 300px;
    }

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

    .mobile-menu.active {
        max-height: 500px;
    }

/* Image Loading */
img {
    transition: opacity 0.3s ease;
}

    img[loading="lazy"] {
        opacity: 0;
    }

        img[loading="lazy"].loaded {
            opacity: 1;
        }

/* Gradient Overlays */
.gradient-overlay {
    background: linear-gradient(135deg, rgba(204, 0, 51, 0.1) 0%, rgba(255, 51, 102, 0.1) 100%);
}

/* Card Shadows */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Accessibility */
.focus-visible:focus {
    outline: 2px solid #cc0033;
    outline-offset: 2px;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/*///NUEVOS CAMBIOS //// */
/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* Efectos hover para tarjetas */
.hover\:shadow-xl {
    transition: box-shadow 0.3s ease;
}

/* Transiciones suaves */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilos para el navbar */
nav {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem;
    }

    .text-6xl {
        font-size: 3rem;
    }
}

/* Gallery Section - Centrado y con estilos del proyecto */
.gallery-section {
    background: linear-gradient(135deg, #fff5f7 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

    .gallery-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 300px;
        background: linear-gradient(180deg, rgba(204, 0, 51, 0.03) 0%, transparent 100%);
        pointer-events: none;
    }

    /* Título con estilos del proyecto */
    .gallery-section h2.display-5 {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        letter-spacing: -0.5px;
        text-shadow: 2px 2px 4px rgba(204, 0, 51, 0.1);
    }

/* Filtros mejorados y centrados */
.gallery-filters {
    background: white;
    border-radius: 50px;
    padding: 8px;
    display: inline-flex;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

    .gallery-filters .btn {
        border-radius: 25px;
        margin: 0 4px;
        padding: 10px 24px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 2px solid transparent;
        background: white;
        color: #6c757d;
        font-weight: 600;
        white-space: nowrap;
    }

        .gallery-filters .btn:hover {
            background: #fff5f7;
            border-color: #cc0033;
            color: #cc0033;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(204, 0, 51, 0.2);
        }

        .gallery-filters .btn.active {
            background: linear-gradient(135deg, #cc0033 0%, #ff3366 100%);
            color: white;
            border-color: transparent;
            box-shadow: 0 6px 16px rgba(204, 0, 51, 0.4);
        }

/* Gallery Grid - Centrado */
.gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Gallery Cards - Estilos del proyecto */
.gallery-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(204, 0, 51, 0.1);
}

    .gallery-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 20px 40px rgba(204, 0, 51, 0.2);
        border-color: rgba(204, 0, 51, 0.3);
    }

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.15) rotate(1deg);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(204, 0, 51, 0.9) 0%, rgba(255, 51, 102, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    color: white;
    text-align: center;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-card-body {
    padding: 24px;
    background: white;
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2d3748;
    line-height: 1.4;
}

.gallery-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #6c757d;
}

.gallery-location {
    font-size: 0.875rem;
    color: #cc0033;
    font-weight: 600;
}

/* Animaciones para filtrado */
.gallery-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
}

    .gallery-item.hidden {
        opacity: 0;
        transform: scale(0.8);
        position: absolute;
        pointer-events: none;
    }

/* Modal mejorado */
#modalImage {
    background: repeating-conic-gradient(#f8f9fa 0% 25%, #e9ecef 0% 50%) 50% / 20px 20px;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-section h2.display-5 {
        font-size: 2.5rem;
    }

    .gallery-image-wrapper {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0 !important;
    }

        .gallery-section h2.display-5 {
            font-size: 2rem;
        }

    .title-divider {
        width: 60px !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    .gallery-filters {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }

        .gallery-filters .btn {
            padding: 8px 16px;
            font-size: 0.875rem;
            margin: 4px;
        }

    .gallery-image-wrapper {
        height: 220px;
    }

    .gallery-card-body {
        padding: 16px;
    }

    .gallery-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .gallery-section h2.display-5 {
        font-size: 1.75rem;
    }

    .gallery-grid {
        padding: 0 10px;
    }

    .gallery-filters .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
/* Asegurar que el modal funcione correctamente */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

/* Cursor pointer en imágenes */
.gallery-image {
    cursor: pointer !important;
}

/* Asegurar que las imágenes del modal se vean bien */
#modalImage {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Animación del modal */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}


.btn-institutional {
    background-color: #e20e23 !important;
    transition: all 0.3s ease;
}

    .btn-institutional:hover {
        background-color: #a3002a !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(226, 14, 35, 0.4);
    }

.text-institutional {
    color: #e20e23 !important;
}

.icon-institutional {
    color: #e20e23 !important;
}