/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    --primary: #0088cc;
    --primary-dark: #007bb8;
    --secondary: #f7a072;
    --dark: #333;
    --light: #fff;
    --bg-gray: #f8fbfe;
    --accent-pink: #d14d8a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* AJUSTE DE DESPLAZAMIENTO PARA ANCLAS */
[id] { scroll-margin-top: 85px; /* Un poco más alto por el logo */ }

body { font-family: 'Poppins', sans-serif; color: var(--dark); line-height: 1.6; overflow-x: hidden; }

/* =========================================
   2. HEADER & LOGO (Actualizado)
   ========================================= */
.header { 
    background: var(--primary); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0.7rem 5%; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

/* Contenedor del enlace (Logo + Texto) */
.logo a { 
    color: var(--light); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 1.3rem; 
    
    /* ALINEACIÓN PERFECTA IMAGEN-TEXTO */
    display: flex;
    align-items: center;
    gap: 12px; 
}

/* Estilos de la imagen del logo */
.header-logo-img {
    height: 45px; 
    width: 45px;  
    object-fit: cover; 
    border-radius: 50%; 
    border: 2px solid #fff; 
    background-color: #fff; 
}

.nav-menu ul { list-style: none; display: flex; gap: 20px; align-items: center; }
.nav-menu a { color: var(--light); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.nav-menu a:hover { color: var(--secondary); }
.btn-cta { background: var(--secondary); padding: 0.5rem 1rem; border-radius: 4px; font-weight: 600; color: white !important; transition: 0.3s; }
.btn-cta:hover { background: #e89160; transform: translateY(-2px); }

/* =========================================
   3. SECCIONES GENERALES
   ========================================= */

/* HERO GENERAL */
.hero-section { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: url('img/observacion-de-ballenas.webp') no-repeat center/cover fixed; color: var(--light); }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); }
.hero-content { position: relative; z-index: 2; max-width: 850px; padding: 0 20px; }
.hero-content h1 { font-family: 'Playfair Display', serif; font-size: 3.2rem; line-height: 1.2; margin-bottom: 1.5rem; }
.btn-primary { background: var(--secondary); color: var(--light); padding: 1.1rem 2.8rem; border-radius: 50px; text-decoration: none; font-weight: 600; display: inline-block; }

/* NOSOTROS */
.about-highlight { background: var(--bg-gray); padding-bottom: 4rem; position: relative; z-index: 5; }
.container-narrow { max-width: 950px; margin: 0 auto; padding: 0 20px; }
.about-card { background: #fff; padding: 3.5rem 2.5rem; border-radius: 25px; box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1); margin: -100px auto 0; position: relative; z-index: 20; text-align: center; width: 100%; }
.expert-badge-item { margin-top: 2rem; padding: 1.5rem; background: #f0f7fa; border-left: 5px solid var(--primary); border-radius: 0 15px 15px 0; text-align: left; }

/* TOURS GRID */
.tours-section { padding: 6rem 5%; background: #fff; }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.tours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; justify-items: center; align-items: stretch; }
.tour-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); width: 100%; max-width: 360px; display: flex; flex-direction: column; position: relative; border: 1px solid #eee; transition: 0.3s; }
.tour-card.featured { border: 3px solid var(--primary); background: #f0faff; transform: scale(1.05); z-index: 10; }
.tour-tag { position: absolute; top: 15px; right: 15px; background: var(--secondary); color: #fff; padding: 6px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; z-index: 11; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.tour-image { height: 220px; position: relative; }
.tour-image img { width: 100%; height: 100%; object-fit: cover; }
.tour-price { position: absolute; bottom: 15px; left: 15px; background: var(--primary); color: #fff; padding: 6px 12px; border-radius: 5px; font-weight: 700; }
.tour-price.blue-bg { background: #0056b3; } /* Color especial para tour privado */
.tour-info { padding: 2rem; flex-grow: 1; text-align: left; }
.tour-duration { display: block; font-size: 0.95rem; font-weight: 600; color: var(--primary); margin-bottom: 1rem; background: #f0f7fa; padding: 5px 10px; border-radius: 5px; width: fit-content; }
.btn-tour { display: block; text-align: center; background: var(--primary); color: #fff; text-decoration: none; padding: 1rem; border-radius: 8px; font-weight: 600; margin-top: auto; }
.btn-tour.secondary { background: #0056b3; }

/* EXPERTOS */
.team-parallax { position: relative; background: url('img/ballenajorobada.webp') no-repeat center/cover fixed; padding: 80px 5%; text-align: center; }
.hero-overlay-expert { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.title-expert { color: #fff !important; font-size: 2.8rem; position: relative; z-index: 3; margin-bottom: 4rem; font-family: 'Playfair Display', serif; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; position: relative; z-index: 3; justify-items: center; }
.team-member { background: rgba(255, 255, 255, 0.96); padding: 2.5rem; border-radius: 20px; max-width: 340px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); text-align: center; }
.member-img-container { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 1.5rem; border: 4px solid var(--primary); }
.member-img-container img { width: 100%; height: 100%; object-fit: cover; }
.reviewer-name { font-weight: 600; color: var(--primary) !important; display: block; margin-top: 1rem; font-size: 0.95rem; }

/* RESEÑAS */
.reviews-section { padding: 6rem 5%; background: var(--bg-gray); text-align: center; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 3rem; justify-items: center; }
.review-card { background: #fff; padding: 2.5rem; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: left; max-width: 380px; }
.review-stars { color: #f1c40f; margin-bottom: 1rem; font-size: 1.2rem; }

/* CONTACTO */
.contact-section { padding: 80px 20px; background-color: #fff; text-align: center; }
.contact-header h2 { color: var(--primary); font-size: 2.5rem; margin-bottom: 10px; letter-spacing: 2px; font-family: 'Playfair Display', serif; }
.divider { width: 50px; height: 4px; background-color: var(--primary); margin: 0 auto 20px auto; }
.contact-form { max-width: 800px; margin: 0 auto 4rem auto; display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-form input, .contact-form textarea { padding: 1.2rem; border-radius: 8px; border: 1px solid #ddd; font-size: 1rem; width: 100%; font-family: inherit; }
.btn-send { background: var(--secondary); color: #fff; padding: 1rem; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1000px; margin: 0 auto; }
.info-item { display: flex; flex-direction: column; align-items: center; }
.info-icon { font-size: 2.5rem; color: var(--accent-pink); margin-bottom: 15px; }

/* =========================================
   4. PÁGINAS DE TOUR (SLIDER & DETALLES)
   ========================================= */
.page-header { padding-top: 140px; padding-bottom: 60px; background: linear-gradient(to bottom, #f0f4f8, #ffffff); }
.tour-hero-container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }

/* SLIDER */
.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}
.dot.active { background: var(--secondary); transform: scale(1.2); }

.mini-badge { display: inline-block; background: var(--secondary); color: white; padding: 5px 15px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; margin-bottom: 15px; }
.hero-text h1 { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--primary); line-height: 1.1; margin-bottom: 20px; }

/* Precios y Estadísticas */
.tour-stats { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
    justify-content: center; 
    margin: 25px 0; 
    padding: 20px 0; 
    border-top: 1px solid #eee; 
    border-bottom: 1px solid #eee; 
}
.stat-box strong { display: block; color: var(--primary); font-size: 1.2rem; }
.season-info-box { background: #f0f7fa; padding: 20px; border-radius: 15px; font-size: 0.9rem; color: #444; border-left: 4px solid var(--primary); }

/* Acordeones */
.whale-info-content { margin-bottom: 40px; text-align: left; }
.faq-main-title { color: var(--primary); font-family: 'Playfair Display', serif; font-size: 2rem; letter-spacing: 2px; margin: 40px 0 20px 0; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.faq-container { margin-top: 20px; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question { width: 100%; background: none; border: none; padding: 20px 0; text-align: left; font-size: 1.1rem; font-weight: 600; color: var(--primary); display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: inherit; }
.faq-question span { font-size: 1.5rem; color: var(--secondary); transition: 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background-color: #f9f9f9; border-radius: 8px; }
.faq-answer p { padding: 20px; margin: 0; font-size: 0.95rem; color: #555; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-item.active .faq-question span { transform: rotate(45deg); }

/* Inclusiones Card */
.details-section { padding: 40px 0 80px 0; }
.info-card { background: #fff; padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid #f0f0f0; }
.inclusion-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; list-style: none; margin: 25px 0; padding: 0; }
.inclusion-list li { padding-left: 25px; position: relative; font-size: 0.9rem; text-align: left; }
.inclusion-list li::before { content: '✓'; position: absolute; left: 0; color: var(--secondary); font-weight: bold; }
.btn-cta-large { display: block; background: var(--primary); color: white; text-align: center; padding: 20px; border-radius: 15px; text-decoration: none; font-weight: 600; transition: 0.3s; }

/* FOOTER */
.footer-site { padding: 3rem 5%; background: #f1f4f8; text-align: center; border-top: 1px solid #ddd; font-size: 0.85rem; color: #888; }
.whatsapp-float { position: fixed; bottom: 25px; right: 25px; background: #25d366; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2000; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.whatsapp-float img { width: 35px; height: 35px; }

/* RESPONSIVO */
@media (max-width: 900px) {
    .tour-hero-container, .form-row, .inclusion-list { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 2.2rem; }
    .about-card { margin-top: -50px; padding: 2rem 1.5rem; }
    .slider-container { height: 300px; }
}
@media (max-width: 768px) {
    .header { flex-direction: column; padding: 1rem; gap: 10px; }
    .nav-menu { display: none; }
}

/* =========================================
   ESTILOS MENU DESPLEGABLE (DROPDOWN)
   ========================================= */

/* Posicionamiento relativo para que el submenú se ancle aquí */
.nav-menu ul li {
    position: relative;
}

/* El cuadro del submenú (oculto por defecto) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 220px; /* Ancho cómodo para leer los nombres de tours */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15); /* Sombra suave */
    z-index: 1000; /* Asegura que flote sobre el banner/hero */
    border-radius: 5px;
    top: 100%; /* Aparece justo debajo del enlace padre */
    left: 0;
    padding: 0;
}

/* Estilo de los enlaces dentro del desplegable */
.dropdown-content a {
    color: #333 !important; /* Texto gris oscuro para contraste */
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem; /* Un poco más pequeño que el menú principal */
    text-align: left;
    white-space: nowrap; /* Evita que el texto se parta en dos líneas */
}

/* Efecto Hover (al pasar el mouse sobre una opción) */
.dropdown-content a:hover {
    background-color: #f1f7fa; /* Fondo azul muy claro */
    color: #0088cc !important; /* Texto azul corporativo */
}

/* Acción: Muestra el menú cuando el usuario pasa el mouse sobre "Nuestros Tours" */
.nav-menu ul li:hover .dropdown-content {
    display: block;
}

/* Flechita decorativa */
.arrow-down {
    font-size: 0.8em;
    margin-left: 5px;
    opacity: 0.7;
}