/* ==========================================================================
   ÍNDICE DE ESTILOS - ARIGATOURS
   1. Variables y Reset
   2. Barra de Navegación (Header)
   3. Mega Menús Desplegables
   4. Sección Hero (Carrusel)
   5. GRILLA DE TOURS EN INICIO (Reemplaza al viejo Scroller)
   6. Calendario
   7. Página de Tours y Detalles
   8. Página de Contacto
   9. Footer
   10. Animaciones (Lluvia) y Trucos (Google)
   11. Diseño Responsive (Celulares y Tablets)
   ========================================================================== */

/* =========================================
   1. VARIABLES Y RESET
   ========================================= */
:root {
    --rojo-ariga: #DE1B22;
    --rojo-texto: #B22B38;
    --rosa-sakura: #F690AB;
    --rosa-fondo: #FAD3DC;
    --texto-oscuro: #333333;
    --texto-claro: #FFFFFF;
    --fuente-principal: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--fuente-principal);
    background-color: #f9f9f9;
    overflow-x: hidden; 
    padding-top: 85px; 
}

/* =========================================
   2. BARRA DE NAVEGACIÓN (HEADER)
   ========================================= */
.navbar {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1rem 5%;
    background-color: #000000; position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.navbar > a.logo { justify-self: start; }
.logo img { height: 60px; width: auto; border-radius: 8px; }
.nav-links { list-style: none; display: flex; gap: 2.5rem; }
.nav-links a { text-decoration: none; color: var(--texto-claro); font-weight: 500; font-size: 1.1rem; transition: color 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--rojo-ariga); }
.header-actions { display: flex; align-items: center; gap: 1.5rem; justify-self: end; }
.social-icons { display: flex; align-items: center; gap: 1.5rem; }
.social-icons a { color: #ffffff; font-size: 1.2rem; transition: color 0.3s ease, transform 0.2s ease; }
.social-icons a:hover { color: var(--rojo-ariga); transform: scale(1.1); }
.language-selector select { background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid white; padding: 0.5rem; border-radius: 4px; cursor: pointer; font-weight: bold; }
.language-selector select option { color: black; }
.hamburger { display: none; color: white; font-size: 1.8rem; cursor: pointer; z-index: 10001; }

/* =========================================
   3. MEGA MENÚS DESPLEGABLES
   ========================================= */
.nav-item-dropdown { position: static; }
.mega-menu { position: absolute; top: 100%; left: 0; width: 100%; background-color: #ffffff; padding: 3rem 5%; box-shadow: 0 10px 20px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s ease; z-index: 999; }
.nav-item-dropdown:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu-small { width: auto; min-width: 250px; left: auto; padding: 1.5rem; border-radius: 0 0 8px 8px; }
.dynamic-destinations .dropdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; padding: 20px; max-width: 1200px; margin: 0 auto; }
.destination-menu-card { position: relative; height: 160px; border-radius: 10px; overflow: hidden; cursor: pointer; text-decoration: none; display: block; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.destination-menu-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.destination-menu-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 70%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); display: flex; align-items: flex-end; padding: 15px; z-index: 2; }
.destination-menu-overlay h3 { color: #fff; font-size: 1.2rem; font-weight: bold; margin: 0; text-transform: capitalize; }
.destination-menu-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.destination-menu-card:hover img { transform: scale(1.1); }

/* =========================================
   4. SECCIÓN HERO (CARRUSEL E INICIO)
   ========================================= */
.hero { height: calc(100vh - 85px); display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-content h1 { font-size: 4.5rem; color: var(--texto-claro); margin-bottom: 1rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.6); }
.hero-content p { font-size: 1.5rem; color: var(--texto-claro); margin-bottom: 2.5rem; text-shadow: 1px 1px 5px rgba(0,0,0,0.6); }
.btn-primary { display: inline-block; padding: 1rem 2.5rem; background-color: var(--rojo-ariga); color: var(--texto-claro); text-decoration: none; border-radius: 30px; font-size: 1.2rem; font-weight: bold; transition: background-color 0.3s ease, transform 0.2s ease; border: none; cursor: pointer; }
.btn-primary:hover { background-color: #b2151b; transform: translateY(-3px); }
.carousel-container { position: relative; height: calc(100vh - 85px); overflow: hidden; background-color: #000; }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center; justify-content: center; text-align: center; z-index: 1; }
.carousel-slide.active { opacity: 1; z-index: 2; }
.hero-content h2 { font-size: 3.5rem; color: var(--texto-claro); margin-bottom: 1rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.6); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.4); color: white; border: none; font-size: 2rem; cursor: pointer; z-index: 10; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s; }
.carousel-btn:hover { background-color: var(--rojo-ariga); }
.prev-btn { left: 30px; } .next-btn { right: 30px; }
.carousel-dots { position: absolute; bottom: 40px; width: 100%; display: flex; justify-content: center; gap: 15px; z-index: 10; }
.dot { width: 12px; height: 12px; background-color: rgba(255, 255, 255, 0.4); border-radius: 50%; cursor: pointer; transition: background-color 0.3s; }
.dot.active, .dot:hover { background-color: var(--texto-claro); }

/* =========================================
   5. GRILLA DE TOURS EN INICIO 
   (Reemplaza al viejo Scroller Gigante)
   ========================================= */
.tours-vertical-scroller {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    height: auto;
    overflow-y: visible;
    background: transparent;
    box-shadow: none;
}

.tour-scroll-slide {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.tour-scroll-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tour-scroll-img-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.tour-scroll-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.tour-scroll-slide:hover .tour-scroll-img-box img {
    transform: scale(1.05);
}

.tour-scroll-content {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Forzamos que Título y Precio estén SIEMPRE apilados (Nunca chocan) */
.tour-scroll-encabezado {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 15px !important;
}

.tour-scroll-encabezado h3 {
    margin: 0 !important;
    font-size: 1.6rem !important;
    color: #333 !important;
    line-height: 1.2 !important;
}

.tour-scroll-encabezado span {
    font-weight: bold !important;
    color: var(--rojo-ariga) !important;
    font-size: 1.3rem !important;
}

/* =========================================
   6. CALENDARIO Y DISPONIBILIDAD
   ========================================= */
.calendario-carousel { display: flex; gap: 15px; overflow-x: auto; padding: 10px 0; scrollbar-width: thin; }
.calendario-carousel::-webkit-scrollbar { height: 8px; }
.calendario-carousel::-webkit-scrollbar-thumb { background: #e60000; border-radius: 10px; }
.dia-caja { min-width: 80px; height: 100px; border: 3px solid #000; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; transition: transform 0.2s; background-color: #fff; color: #000; font-weight: bold; }
.dia-caja:hover { transform: translateY(-5px); }
.dia-rojo { background-color: #e60000; color: white; border-color: #a30000; }
.dia-verde { background-color: #28a745; color: white; border-color: #1e7e34; }
.dia-gris { background-color: #e0e0e0; color: #666; border-color: #ccc; }

/* =========================================
   7. PÁGINA DE TOURS Y DETALLES
   ========================================= */
.page-header { height: 40vh; background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--texto-claro); margin-bottom: 3rem; transition: background-image 1s ease-in-out; }
.page-header h1 { font-size: 3rem; margin-bottom: 0.5rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.6); }
.page-header p { font-size: 1.2rem; text-shadow: 1px 1px 5px rgba(0,0,0,0.6); }
.tours-page { max-width: 1200px; margin: 0 auto; padding: 0 5% 5rem; }
.filtros-container { display: flex; justify-content: center; gap: 2rem; margin-bottom: 3rem; }
.filtros-container select { padding: 0.8rem 1.5rem; border-radius: 8px; border: 1px solid #ccc; font-size: 1rem; font-family: var(--fuente-principal); cursor: pointer; background-color: #fff; outline: none; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.filtros-container select:focus { border-color: var(--rojo-ariga); }
.tours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.tour-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 3px solid transparent; }
.tour-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.tour-card.active-card { border-color: var(--rojo-ariga); transform: translateY(-8px); }
.tour-card img { width: 100%; height: 200px; object-fit: cover; }
.tour-card-info { padding: 1.5rem; text-align: center; }
.tour-card-info h3 { color: var(--texto-oscuro); margin-bottom: 0.5rem; }
.tour-card-info p { color: var(--rojo-texto); font-weight: bold; }
.tour-details-container { background: #f9f9f9; border-radius: 15px; padding: 3rem; min-height: 400px; box-shadow: inset 0 0 20px rgba(0,0,0,0.05); }
.modern-tour-detail { background: #fff; padding: 2rem; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); margin-top: 1rem; }
.modern-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eaeaea; padding-bottom: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.modern-header h2 { font-size: 2.2rem; color: #222; margin: 0; }
.modern-header-actions { display: flex; align-items: center; gap: 15px; }
.modern-price { font-size: 1.6rem; font-weight: bold; color: var(--rojo-ariga); }
.tabs-nav { display: flex; list-style: none; gap: 2rem; border-bottom: 2px solid #eaeaea; margin-bottom: 2rem; padding: 0; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.tabs-nav::-webkit-scrollbar { display: none; }
.tour-tab-link { font-size: 1.1rem; font-weight: 600; color: #666; cursor: pointer; padding-bottom: 12px; position: relative; white-space: nowrap; min-width: max-content; transition: color 0.3s; }
.tour-tab-link:hover { color: #333; }
.tour-tab-link.active-tour-tab { color: var(--rojo-ariga); }
.tour-tab-link.active-tour-tab::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background-color: var(--rojo-ariga); border-radius: 3px 3px 0 0; }
.tour-tab-pane { display: none; animation: fadeIn 0.4s ease; }
.tour-tab-pane.active-tour-tab { display: block; }
.details-list { list-style: none; padding: 0; margin: 0; }
.details-list > li { display: flex; gap: 20px; border-bottom: 1px solid #f0f0f0; padding: 20px 0; align-items: flex-start; }
.details-list > li:last-child { border-bottom: none; }
.details-list > li > i { font-size: 1.4rem; color: #555; margin-top: 2px; min-width: 30px; text-align: center; }
.details-list .details-content strong { display: block; margin-bottom: 8px; font-size: 1.1rem; color: #222; }
.details-list ul { margin: 0; padding-left: 20px; list-style: disc; color: #444; line-height: 1.6; }

/* Galería Lightbox */
.tour-carousel-container { position: relative; width: 100%; height: 450px; border-radius: 12px; overflow: hidden; margin-bottom: 2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.tour-carousel-slides { display: flex; width: 100%; height: 100%; transition: transform 0.4s ease-in-out; }
.tour-carousel-slides img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; cursor: zoom-in; }
.tour-car-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.7); color: #333; border: none; font-size: 1.5rem; padding: 10px 15px; border-radius: 50%; cursor: pointer; transition: background 0.3s; z-index: 10; display: flex; align-items: center; justify-content: center; }
.tour-car-btn:hover { background: rgba(255, 255, 255, 0.9); }
.tour-car-prev { left: 20px; } .tour-car-next { right: 20px; }
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); display: none; justify-content: center; align-items: center; z-index: 99999; opacity: 0; transition: opacity 0.3s ease; }
.lightbox-overlay.active { display: flex; opacity: 1; }
.lightbox-img { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: 4px; box-shadow: 0 0 30px rgba(0,0,0,0.5); animation: zoomIn 0.3s ease; }
.lightbox-btn { position: absolute; background: none; border: none; color: white; font-size: 3rem; cursor: pointer; opacity: 0.7; transition: opacity 0.3s, transform 0.2s; z-index: 10; }
.lightbox-btn:hover { opacity: 1; transform: scale(1.1); }
.lightbox-close { top: 20px; right: 30px; font-size: 2.5rem; } 
.lightbox-prev { left: 30px; } .lightbox-next { right: 30px; }

/* =========================================
   8. PÁGINA DE CONTACTO
   ========================================= */
.contacto-split { min-height: 100vh; background-size: cover; background-position: center; background-attachment: fixed; display: flex; align-items: center; padding: 8rem 5% 5rem; }
.contacto-container { display: flex; max-width: 1200px; margin: 0 auto; gap: 4rem; color: var(--texto-claro); }
.contacto-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.contacto-info h2 { font-size: 3rem; line-height: 1.1; margin-bottom: 2rem; }
.contacto-info p { font-size: 1rem; line-height: 1.6; color: #cccccc; margin-bottom: 1.5rem; }
.contacto-social { display: flex; gap: 1.5rem; margin-top: 1rem; }
.contacto-social a { color: var(--texto-claro); font-size: 1.8rem; transition: color 0.3s; }
.contacto-social a:hover { color: var(--rojo-ariga); }
.contacto-formulario { flex: 1; background: transparent; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 500; }
.form-group .required { color: var(--rojo-ariga); }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; border: none; border-radius: 4px; font-family: var(--fuente-principal); font-size: 1rem; background-color: rgba(255, 255, 255, 0.95); }
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--rojo-ariga); }
.form-checkbox { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; font-size: 0.85rem; }
.form-checkbox a { color: var(--rosa-sakura); text-decoration: underline; }
.btn-enviar { background-color: var(--rojo-ariga); color: white; border: none; padding: 1rem 3rem; font-size: 1.1rem; font-weight: bold; border-radius: 4px; cursor: pointer; transition: background-color 0.3s, transform 0.2s; }
.btn-enviar:hover { background-color: #b2151b; transform: translateY(-2px); }

/* =========================================
   9. FOOTER
   ========================================= */
.site-footer { background-color: var(--texto-oscuro); color: var(--texto-claro); padding: 4rem 5% 1.5rem; font-family: var(--fuente-principal); }
.footer-content { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; margin-bottom: 3rem; }
.footer-section { flex: 1; min-width: 250px; }
.footer-section h4 { color: var(--rojo-ariga); margin-bottom: 1.5rem; font-size: 1.3rem; }
.footer-section p { color: #ccc; line-height: 1.6; margin-bottom: 0.5rem; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 0.8rem; }
.footer-section ul li a { color: #ccc; text-decoration: none; transition: color 0.3s; }
.footer-section ul li a:hover { color: var(--rosa-sakura); }
.footer-bottom { text-align: center; border-top: 1px solid #444; padding-top: 1.5rem; color: #888; font-size: 0.9rem; }

/* =========================================
   10. ANIMACIONES Y TRUCOS (GOOGLE/EMOJIS)
   ========================================= */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
.goog-tooltip { display: none !important; }
.goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; border: none !important; box-shadow: none !important; }

.emoji-cayendo { position: fixed; top: -50px; font-size: 1.5rem; z-index: 9999; pointer-events: none; opacity: 0.6; animation: caer linear forwards; }
@keyframes caer { to { transform: translateY(110vh) rotate(360deg); } }

/* ==========================================================================
   11. DISEÑO RESPONSIVE (CELULARES Y TABLETS)
   ========================================================================== */

/* TABLETS Y MENÚ HAMBURGUESA */
@media (max-width: 992px) {
    .hamburger { display: block; margin-left: auto; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 75%; height: 100vh; background-color: #111111; flex-direction: column; align-items: flex-start; padding: 100px 5% 20px; transition: right 0.4s ease; overflow-y: auto; z-index: 10000; }
    .nav-links.nav-active { right: 0; }
    .nav-links li { width: 100%; border-bottom: 1px solid #333; padding: 1rem 0; }
    
    .header-actions { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); gap: 1.5rem; position: fixed; bottom: 50px; right: -100%; width: 75%; padding-left: 5%; transition: right 0.4s ease; z-index: 10000; }
    .header-actions.nav-active { right: 0; }
    .social-icons { gap: 2rem; }
    .social-icons a i { font-size: 1.5rem; }
    .language-selector { width: 80%; }
    .language-selector select { width: 100%; padding: 12px; font-size: 1.1rem; border-color: var(--rojo-ariga); }

    .mega-menu { position: static; opacity: 1; visibility: visible; display: none; transform: none; box-shadow: none; padding: 1rem 0 0 1rem; background-color: transparent; }
    .nav-item-dropdown:hover .mega-menu, .nav-item-dropdown:focus-within .mega-menu { display: block; }
    
    .dynamic-destinations .dropdown-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px 0; }
    .destination-menu-card { height: 100px; }
    .destination-menu-overlay h3 { font-size: 0.9rem; }

    /* Ajustes Página de Detalles Tour */
    .modern-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .modern-header h2 { font-size: 1.8rem; line-height: 1.2; }
    .modern-header-actions { width: 100%; justify-content: space-between; margin-top: 10px; }
    .modern-price { font-size: 1.4rem; }
}

/* CELULARES (Tarjetas Apiladas) */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content h2 { font-size: 2.2rem; }
    .section-header h2 { font-size: 2rem; }
    .detail-body { flex-direction: column; }
    .detail-header { flex-direction: column; text-align: center; gap: 1rem; }
    .tour-details-container { padding: 1.5rem; }
    .filtros-container { flex-direction: column; gap: 1rem; }
    .tour-carousel-container { height: 300px; }
    .lightbox-btn { font-size: 2rem; }
    .lightbox-close { top: 15px; right: 20px; }
    .lightbox-prev { left: 15px; } .lightbox-next { right: 15px; }
    .contacto-container { flex-direction: column; gap: 2rem; }
    .contacto-info h2 { font-size: 2.2rem; }

    /* Forzamos que la grilla del inicio sea de a 1 en el celular */
    .tours-vertical-scroller { 
        grid-template-columns: 1fr; 
        padding: 0 5%;
    }
    
    .tour-scroll-encabezado h3 {
        font-size: 1.4rem !important;
    }
}