/*
Theme Name: Senda
Theme URI: https://sendasailing.com
Author: Quantum Agent
Author URI: https://sendasailing.com
Description: Theme personalizado para Senda Sailing - Sin dependencias de plugins externos
Version: 2.0.0
License: GPL v2 or later
Text Domain: senda
*/

/* ==========================================================================
   TABLA DE CONTENIDOS
   ==========================================================================
   1. Variables y Reset
   2. Tipografía Base
   3. Layout Global
   4. Header y Navegación
   5. Hero Sections
   6. Componentes de Contenido
   7. Secciones Específicas
   8. Footer
   9. Utilidades
   10. Media Queries
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES Y RESET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Livvic:wght@400;500;600;700&display=swap');

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

:root {
    /* Colores principales */
    --primary-color: #004D66;
    --secondary-color: #00202A;
    --accent-color: #7AD6D2;
    --text-color: #1B1A1A;
    --white: #FFFFFF;
    
    /* Colores de fondo */
    --background-color: #FFFFFF;
    --background-accent: #F0FCFF;
    
    /* Colores adicionales */
    --hover-color: #003A50;
    --light-border: rgba(0, 77, 102, 0.1);
    
    /* Fuentes */
    --font-family: 'Livvic', sans-serif;
    
    /* Tamaños de fuente - Sistema 8pt */
    --font-size-heading-xl: 56px;
    --font-size-heading-l: 48px;
    --font-size-heading-m: 40px;
    --font-size-heading-s: 24px;
    --font-size-primary: 24px;
    --font-size-secondary: 20px;
    --font-size-text: 16px;
    --font-size-accent: 16px;
    
    /* Pesos de fuente */
    --font-weight-heading-xl: 600;
    --font-weight-heading-l: 600;
    --font-weight-heading-m: 600;
    --font-weight-heading-s: 500;
    --font-weight-primary: 600;
    --font-weight-secondary: 600;
    --font-weight-text: 400;
    --font-weight-accent: 500;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transiciones */
    --transition: all 0.3s ease;
}

/* ==========================================================================
   2. TIPOGRAFÍA BASE
   ========================================================================== */

body {
    font-family: var(--font-family);
    font-size: var(--font-size-text);
    font-weight: var(--font-weight-text);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 { font-size: var(--font-size-heading-xl); }
h2 { font-size: var(--font-size-heading-l); }
h3 { font-size: var(--font-size-heading-m); }
h4 { font-size: var(--font-size-heading-s); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--hover-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   3. LAYOUT GLOBAL
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Fondo degradado para páginas principales */
.site-main.home-main {
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #f0fcff 15%,
        #e0f7ff 35%,
        #b8dde8 55%,
        #7cc5d4 75%,
        #004d66 90%,
        #00202a 100%
    );
}

/* ==========================================================================
   4. HEADER Y NAVEGACIÓN
   ========================================================================== */

.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.site-logo img {
    height: 60px;
    width: auto;
}

/* Navegación Principal */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-size: var(--font-size-text);
    font-weight: var(--font-weight-accent);
    color: var(--text-color);
    padding: 0.5rem 0.5rem;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after,
.main-navigation .current-page::after {
    width: 80%;
}

/* Estilos para página actual */
.main-navigation .current-page {
    font-size: var(--font-size-text);
    font-weight: var(--font-weight-accent);
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    cursor: default;
}

.main-navigation .current-page::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

/* Language Selector */
.header-language {
    flex-shrink: 0;
    margin: 0 1rem;
}

/* Ocultar CTA del menú en desktop */
.menu-cta-item {
    display: none;
}

/* Fix para visibilidad del menú en desktop */
.site-header .main-navigation a,
.site-header .main-navigation .current-page {
    color: #1B1A1A !important;
}

/* Asegurar que el menú se muestra correctamente en desktop */
@media (min-width: 769px) {
    .main-navigation {
        position: static !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        flex-direction: row !important;
        flex: 1;
        justify-content: center;
        right: auto !important;
        top: auto !important;
    }
    
    .main-navigation ul {
        display: flex !important;
        flex-direction: row !important;
        gap: 1.2rem;
        padding: 0;
        margin: 0;
        align-items: center;
        height: auto !important;
        justify-content: center !important;
    }
    
    .main-navigation .menu-item {
        border-bottom: none !important;
    }
    
    .main-navigation a,
    .main-navigation .current-page {
        display: inline-block !important;
        padding: 0.5rem 0.5rem !important;
        font-size: var(--font-size-text) !important;
        text-align: left !important;
        color: var(--text-color) !important;
        font-weight: var(--font-weight-accent) !important;
        text-decoration: none !important;
    }
    
    .main-navigation a:hover {
        background: transparent !important;
        padding-left: 0.5rem !important;
    }
    
    .main-navigation .current-page::before {
        display: none !important;
    }
}

/* Mobile language dropdown styles */
.language-dropdown {
    position: relative;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.lang-toggle svg {
    transition: transform 0.3s ease;
}

.lang-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    min-width: 100px;
}

.language-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 8px 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.lang-option:hover {
    background: var(--primary-color);
    color: white;
}

.lang-option.active {
    background: var(--primary-color);
    color: white;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.language-item {
    color: var(--senda-secondary);
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.language-item:hover {
    color: var(--senda-accent);
    background: rgba(108, 215, 232, 0.1);
}

.language-item.active {
    color: var(--senda-primary);
    background: linear-gradient(135deg, #6cd7e8 0%, #a7f3d0 100%);
    color: var(--senda-primary);
    font-weight: 700;
}

.language-separator {
    color: var(--senda-secondary);
    opacity: 0.5;
}

/* Header CTA Button */
.header-cta {
    flex-shrink: 0;
}

.btn-form-style {
    background: linear-gradient(135deg, #6cd7e8 0%, #a7f3d0 100%);
    color: var(--senda-primary);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(108, 215, 232, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-form-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 215, 232, 0.4);
    background: linear-gradient(135deg, #5cc3d4 0%, #92f5c0 100%);
    color: var(--senda-primary);
}

.btn-form-style:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(108, 215, 232, 0.3);
}



/* ==========================================================================
   5. HERO SECTIONS
   ========================================================================== */

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    max-width: 800px;
    width: 90%;
    padding: 3rem;
    background: rgba(0, 32, 42, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.slide-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--white);
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-hero {
    background: var(--accent-color);
    color: var(--secondary-color);
    font-size: 1.125rem;
}

.btn-hero:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 2s infinite;
}

.mouse-icon {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 25px;
    position: relative;
    margin: 0 auto 10px;
}

.mouse-wheel {
    width: 4px;
    height: 10px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

.scroll-arrow {
    color: var(--white);
    animation: scroll-arrow 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

@keyframes scroll-arrow {
    0% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(5px); }
    100% { opacity: 0.5; transform: translateY(0); }
}


/* ==========================================================================
   6. COMPONENTES DE CONTENIDO
   ========================================================================== */

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--accent-color) 10%,
        var(--accent-color) 90%,
        transparent 100%
    );
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.timeline-item.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 3rem;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 8px rgba(122, 214, 210, 0.2);
}

.timeline-marker svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-color);
    line-height: 1.8;
}

/* Feature Cards */
.feature-item {
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

/* About section specific features */
.about-features .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
    padding: 0;
    margin-bottom: 0;
}

.feature-item.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.about-features .feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-features .feature-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    color: var(--secondary-color);
}

.feature-item:hover .feature-icon {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(122, 214, 210, 0.3);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Specific override for About section feature titles */
.about-features .feature-content h3 {
    font-size: 1.625rem; /* 26px */
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-color);
    line-height: 1.8;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.service-card.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 35px;
    height: 35px;
    color: var(--white);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
}

/* ==========================================================================
   7. SECCIONES ESPECÍFICAS
   ========================================================================== */

/* Bitácora Section */
.bitacora-section {
    padding: 6rem 0;
    background: transparent;
}

.bitacora-header {
    text-align: center;
    margin-bottom: 4rem;
}

.bitacora-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.bitacora-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
    margin-bottom: 4rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.about-text h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: transparent;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.services-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.services-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Testimonials Section - ÚNICA VERSIÓN */
.testimonials-section {
    padding: 6rem 0;
    background: transparent;
    overflow: visible;
    position: relative;
}

.testimonials-content {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 4rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonials-text {
    width: 100%;
}

.testimonials-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.testimonials-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.testimonials-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.testimonials-gallery {
    width: 500px;
    height: 600px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.testimonials-gallery img,
.testimonials-single-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.3s ease;
}

.testimonials-gallery:hover .testimonials-single-image {
    transform: scale(1.05);
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    margin-top: 4rem;
    min-height: 280px;
    padding-bottom: 3rem;
    width: 100%;
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    max-width: 1050px;
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.stars {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #FFD700;
}

.rating {
    font-weight: 600;
    color: var(--text-color);
    margin-left: 0.5rem;
}

.testimonial-text {
    font-size: 1.1875rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 1rem;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 77, 102, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Contact Section - ÚNICA VERSIÓN */
.contact-section {
    padding: 2rem 0 4rem;
    background: transparent;
    position: relative;
    z-index: 8;
    clear: both;
    margin-bottom: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 600px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-map {
    height: 100%;
    position: relative;
}

.contact-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.contact-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--secondary-color);
}

.contact-link {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
}

.contact-address {
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.4;
    font-size: 0.95rem;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: transparent;
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 2;
    clear: both;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cta-description {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.btn-cta {
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Instagram Section */
.instagram-section {
    padding: 6rem 0;
    background: transparent;
}


/* ==========================================================================
   7. PÁGINA DE GALERÍA
   ========================================================================== */

/* Gallery Hero Banner */
.gallery-hero {
    position: relative;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.gallery-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gallery-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.gallery-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 77, 102, 0.7) 0%, rgba(0, 32, 42, 0.5) 100%);
    z-index: 2;
}

.gallery-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-hero-title {
    font-size: var(--font-size-heading-l);
    font-weight: var(--font-weight-heading-l);
    color: var(--white);
    margin: 0;
    flex: 1;
    max-width: 500px;
}

.gallery-hero-text {
    font-size: var(--font-size-text);
    font-weight: var(--font-weight-text);
    color: var(--white);
    margin: 0;
    line-height: 1.6;
    flex: 1;
    max-width: 500px;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-hero {
        height: auto;
        min-height: 400px;
        padding: 3rem 0;
    }
    
    .gallery-hero-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .gallery-hero-title {
        font-size: var(--font-size-heading-m);
        max-width: 100%;
    }
    
    .gallery-hero-text {
        max-width: 100%;
        font-size: 0.9rem;
    }
}

/* Media query adicional para móviles pequeños */
@media (max-width: 480px) {
    .gallery-hero {
        min-height: 450px;
    }
    
    .gallery-hero-title {
        font-size: 1.5rem;
    }
    
    .gallery-hero-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Gallery Images Section */
.gallery-images-section {
    padding: 6rem 0;
    background: var(--background-color);
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-title {
    font-size: var(--font-size-heading-l);
    font-weight: var(--font-weight-heading-l);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.gallery-subtitle {
    font-size: var(--font-size-secondary);
    color: var(--text-color);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.masonry-gallery {
    columns: 3;
    column-gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
}

/* Alturas dinámicas para masonry (controlado por JavaScript) */
.masonry-item {
    height: 350px; /* altura por defecto si JS falla */
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.masonry-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.3s ease;
}

.masonry-item:hover .masonry-image {
    transform: scale(1.05);
}

.masonry-item {
    cursor: pointer;
}

/* Responsive masonry */
@media (max-width: 768px) {
    .masonry-gallery {
        columns: 2;
        column-gap: 15px;
    }
    
    .masonry-item {
        margin-bottom: 15px;
    }
}
    
    .gallery-images-section {
        padding: 4rem 0;
    }
    
    .moments-gallery-section {
        padding: 4rem 0;
    }
}

/* Moments Gallery Section */
.moments-gallery-section {
    padding: 6rem 0;
    background: var(--background-accent);
}

/* ==========================================================================
   TESTIMONIOS DE NAVEGANTES
   ========================================================================== */

.testimonios-section {
    padding: 6rem 0;
    padding-top: 40px; /* 40px de separación con la sección anterior */
    background: var(--background-color);
}

.testimonios-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonios-title {
    font-size: var(--font-size-heading-m);
    font-weight: var(--font-weight-heading-m);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonios-subtitle {
    font-size: var(--font-size-secondary);
    font-weight: var(--font-weight-text);
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonio-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.testimonio-quote {
    margin-bottom: 1.5rem;
}

.quote-icon {
    color: var(--accent-color);
    opacity: 0.3;
}

.testimonio-text {
    font-size: var(--font-size-text);
    font-weight: var(--font-weight-text);
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonio-author {
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-border);
}

.author-name {
    font-size: var(--font-size-text);
    font-weight: var(--font-weight-primary);
    color: var(--primary-color);
    margin: 0;
}

/* Responsive testimonios */
@media (max-width: 768px) {
    .testimonios-section {
        padding: 4rem 0;
        padding-top: 40px;
    }
    
    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonio-card {
        padding: 2rem;
    }
    
    .testimonios-title {
        font-size: var(--font-size-heading-s);
    }
}

/* ==========================================================================
   DIARIO DE A BORDO
   ========================================================================== */

/* Hero Section */
.diario-hero {
    position: relative;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diario-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.diario-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.diario-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.diario-hero-content .hero-text-box {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px 50px;
    border-radius: 15px;
    border: 1px solid rgba(108, 215, 232, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

.diario-hero-title {
    font-size: var(--font-size-heading-l);
    font-weight: var(--font-weight-heading-l);
    margin-bottom: 1rem;
    color: white;
}

.diario-hero-text {
    font-size: var(--font-size-secondary);
    font-weight: var(--font-weight-text);
    line-height: 1.6;
    color: white;
    margin: 0;
}

/* Posts Grid */
.diario-posts-section {
    padding: 6rem 0;
    background: var(--background-accent);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.post-card.placeholder {
    opacity: 0.7;
}

.post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumb {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 14px;
    font-weight: var(--font-weight-secondary);
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 14px;
    color: #666;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta svg {
    opacity: 0.6;
}

.post-title {
    font-size: var(--font-size-heading-s);
    font-weight: var(--font-weight-heading-s);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-link:hover {
    color: var(--hover-color);
}

.post-excerpt {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-border);
}

.post-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: #666;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-secondary);
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 1rem;
}

/* Post Modal */
.post-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
}

.post-modal.active {
    display: block;
}

.modal-content {
    position: relative;
    background: var(--white);
    max-width: 900px;
    margin: 3rem auto;
    border-radius: 16px;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.full-post {
    padding: 3rem;
}

.post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.post-full-title {
    font-size: var(--font-size-heading-m);
    font-weight: var(--font-weight-heading-m);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-body {
    font-size: var(--font-size-text);
    line-height: 1.8;
    color: var(--text-color);
}

.post-body h3 {
    font-size: var(--font-size-heading-s);
    font-weight: var(--font-weight-heading-s);
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.post-body .lead {
    font-size: var(--font-size-secondary);
    font-weight: var(--font-weight-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.post-featured-image {
    width: 100%;
    height: 400px;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-inline-image {
    margin: 2.5rem auto;
    text-align: center;
    position: relative;
    max-width: 100%;
    display: block;
}

.post-inline-image img,
.inline-img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 auto;
}

.post-inline-image .image-caption,
.image-caption {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
    display: block;
    text-align: center;
}

.post-note {
    background: var(--background-accent);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.cta-text {
    font-weight: var(--font-weight-secondary);
    margin-top: 2rem;
}

.post-actions {
    text-align: center;
    margin-top: 3rem;
}

/* Responsive Diario */
@media (max-width: 768px) {
    .diario-hero {
        height: auto;
        min-height: 400px;
        padding: 3rem 0;
    }
    
    .diario-hero-content .hero-text-box {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .diario-hero-title {
        font-size: var(--font-size-heading-m);
        margin-bottom: 0.75rem;
    }
    
    .diario-hero-text {
        font-size: 0.9rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modal-content {
        margin: 0;
    }
}

/* Media query adicional para móviles pequeños */
@media (max-width: 480px) {
    .diario-hero {
        min-height: 450px;
    }
    
    .diario-hero-title {
        font-size: 1.5rem;
    }
    
    .diario-hero-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
        border-radius: 0;
        min-height: 100vh;
    }
    
    .full-post {
        padding: 2rem;
    }
    
    .post-full-title {
        font-size: var(--font-size-heading-s);
    }
    
    .post-featured-image {
        height: 250px;
    }
}

/* ==========================================================================
   SINGLE VIAJE
   ========================================================================== */

.viaje-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.viaje-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.viaje-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.viaje-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.viaje-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 2rem;
}

.viaje-categoria {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 14px;
    font-weight: var(--font-weight-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.viaje-hero-title {
    font-size: var(--font-size-heading-l);
    font-weight: var(--font-weight-heading-l);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.viaje-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: var(--font-size-text);
}

.viaje-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.viaje-content-section {
    padding: 5rem 0;
    background: var(--white);
}

.viaje-article {
    max-width: 800px;
    margin: 0 auto;
}

.viaje-excerpt {
    font-size: var(--font-size-secondary);
    font-weight: var(--font-weight-secondary);
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-border);
}

.viaje-body {
    font-size: var(--font-size-text);
    line-height: 1.8;
    color: var(--text-color);
}

.viaje-body h3 {
    font-size: var(--font-size-heading-s);
    font-weight: var(--font-weight-heading-s);
    color: var(--primary-color);
    margin: 2.5rem 0 1rem;
}

.viaje-body p {
    margin-bottom: 1.5rem;
}

.viaje-precio-box {
    background: var(--background-accent);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
}

.precio-label {
    font-size: var(--font-size-text);
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.precio-value {
    font-size: var(--font-size-heading-s);
    font-weight: var(--font-weight-heading-s);
    color: var(--primary-color);
    margin: 0;
}

.viaje-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Responsive Single Viaje */
@media (max-width: 768px) {
    .viaje-hero {
        height: 350px;
    }
    
    .viaje-hero-title {
        font-size: var(--font-size-heading-m);
    }
    
    .viaje-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .viaje-actions {
        flex-direction: column;
    }
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-info {
    text-align: center;
    margin-top: 20px;
    color: white;
}

.lightbox-info h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.lightbox-info p {
    margin: 0;
    opacity: 0.8;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/* ==========================================================================
   8. FOOTER - ÚNICA VERSIÓN
   ========================================================================== */

.site-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 3;
    clear: both;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-left {
    display: flex;
    align-items: center;
}

.logo-footer {
    height: 80px;
    width: auto;
    display: block;
}

.footer-nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
    opacity: 0.9;
}

.footer-menu a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.copyright {
    margin: 0;
    color: var(--white);
    opacity: 0.8;
    order: 2;
}
.copyright a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.copyright a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    order: 1;
    gap: 2rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* ==========================================================================
   9. UTILIDADES
   ========================================================================== */

/* Animaciones */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   10. MEDIA QUERIES - CONSOLIDADAS
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    /* Navigation */
    .main-navigation ul {
        gap: 1rem;
    }
    
    /* Hero */
    .slide-content {
        padding: 2rem;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Testimonials */
    .testimonials-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 1000px;
    }
    
    .testimonials-gallery {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        height: 400px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    .header-inner {
        padding: 0.75rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 1rem;
    }
    
    .site-logo img {
        height: 50px;
    }
    
    
    
    /* Ocultar elementos innecesarios en móvil */
    .header-language,
    .header-cta {
        display: none !important;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .main-navigation.is-active {
        right: 0;
    }
    
    
    
    .main-navigation ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
        height: auto;
        gap: 0;
        justify-content: flex-start;
        align-items: stretch;
        flex: 1;
    }
    
    /* Items del menú móvil */
    .main-navigation .menu-item {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .main-navigation a,
    .main-navigation .current-page {
        display: block;
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
        text-align: left;
        color: var(--text-color);
        transition: all 0.2s ease;
        position: relative;
        text-decoration: none;
    }
    
    .main-navigation a:hover {
        background: rgba(92, 195, 212, 0.08);
        color: var(--primary-color);
        padding-left: 2rem;
    }
    
    .main-navigation .current-page {
        background: rgba(92, 195, 212, 0.1);
        color: var(--primary-color);
        font-weight: 600;
        cursor: default;
    }
    
    .main-navigation .current-page::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--primary-color);
    }
    
    /* CTA especial en el menú móvil */
    .menu-cta-item {
        display: block !important;
        margin: 0;
        padding: 0 1.5rem 1.5rem;
        border-bottom: none !important;
    }
    
    .menu-cta-link {
        background: var(--accent-color) !important;
        color: var(--primary-color) !important;
        border-radius: 50px;
        text-align: center;
        border: none !important;
        font-weight: 600;
        padding: 1rem 2rem !important;
        display: block;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(92, 195, 212, 0.2);
    }
    
    .menu-cta-link:hover {
        background: var(--hover-color) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(92, 195, 212, 0.3);
        padding-left: 2rem !important;
    }
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    /* Timeline */
    .timeline-line {
        left: 20px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
    }
    
    /* Features */
    .about-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .contact-map {
        height: 400px;
        order: 2;
    }
    
    .contact-info {
        padding: 3rem 2rem;
        order: 1;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-left,
    .footer-right {
        justify-content: center;
    }
    
}

/* Small Mobile */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    /* Hero */
    .slide-content {
        padding: 1.5rem;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1.125rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .menu-toggle,
    .carousel-controls,
    .scroll-indicator {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner-text a {
    color: var(--senda-accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
    color: #FFD700;
}

.cookie-banner-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-banner button {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--senda-font-body);
}

.cookie-banner-accept {
    background-color: var(--senda-accent);
    color: var(--senda-primary);
}

.cookie-banner-accept:hover {
    background-color: #FFD700;
    transform: translateY(-2px);
}

.cookie-banner-settings {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-banner-settings:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cookie-banner-text {
        min-width: 100%;
    }
    
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-banner button {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Legal Modals
   ========================================================================== */

.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.legal-modal.active {
    opacity: 1;
    visibility: visible;
}

.legal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.legal-modal-content {
    position: relative;
    background-color: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.legal-modal.active .legal-modal-content {
    transform: translateY(0);
}

.legal-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.legal-modal-close:hover {
    background: white;
    transform: rotate(90deg);
}

.legal-modal-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.legal-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--senda-primary);
    margin: 0 0 10px 0;
}

.legal-modal-date {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.legal-modal-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.legal-modal-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--senda-primary);
    margin: 30px 0 15px;
}

.legal-modal-body h3:first-child {
    margin-top: 0;
}

.legal-modal-body p {
    margin: 0 0 20px;
    line-height: 1.7;
    color: #374151;
}

.legal-modal-body p.lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--senda-secondary);
}

.legal-modal-body ul {
    margin: 0 0 20px;
    padding-left: 30px;
}

.legal-modal-body li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #374151;
}

.legal-modal-body a {
    color: var(--senda-accent);
    text-decoration: underline;
}

.legal-modal-body a:hover {
    color: #FFD700;
}

/* TOC en modales */
.legal-modal-body .toc {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.legal-modal-body .toc h3 {
    margin: 0 0 15px;
    font-size: 1.1rem;
}

.legal-modal-body .toc ul {
    margin: 0;
    padding-left: 20px;
}

/* Cookie actions en modal */
.legal-modal-body .cookie-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.legal-modal-body .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.legal-modal-body .btn-secondary {
    background-color: var(--senda-secondary);
    color: white;
}

.legal-modal-body .btn-secondary:hover {
    background-color: var(--senda-primary);
    transform: translateY(-2px);
}

/* Tabla de cookies */
.legal-modal-body .table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.legal-modal-body .cookies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.legal-modal-body .cookies-table th,
.legal-modal-body .cookies-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.legal-modal-body .cookies-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: var(--senda-primary);
}

.legal-modal-body .cookies-table tr:hover {
    background-color: #f9fafb;
}

/* Firma en términos */
.legal-modal-body .signature {
    text-align: center;
    margin: 40px 0 20px;
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 8px;
}

.legal-modal-body .signature p {
    margin: 10px 0;
}

/* Lista de filosofía */
.legal-modal-body .philosophy-list {
    list-style: none;
    padding: 0;
}

.legal-modal-body .philosophy-list li {
    padding-left: 0;
    margin-bottom: 10px;
}

/* Responsive Legal Modals */
@media (max-width: 768px) {
    .legal-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .legal-modal-header {
        padding: 30px 20px 15px;
    }
    
    .legal-modal-title {
        font-size: 1.5rem;
    }
    
    .legal-modal-body {
        padding: 20px;
    }
    
    .legal-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    
    .legal-modal-body .cookies-table {
        font-size: 0.75rem;
    }
    
    .legal-modal-body .cookies-table th,
    .legal-modal-body .cookies-table td {
        padding: 8px;
    }
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

/* Contact Hero */
.contact-hero {
    position: relative;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 2;
}

.contact-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
}

.contact-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-hero-text {
    font-size: 1.25rem;
    color: white;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Contact Content */
.contact-content-section {
    padding: 60px 0;
    background-color: #f9fafb;
}

.contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.contact-intro .lead {
    font-size: 1.25rem;
    color: var(--senda-secondary);
    line-height: 1.8;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-info h2 {
    font-size: 1.5rem;
    color: var(--senda-primary);
    margin: 30px 0 15px;
}

.contact-info h2:first-child {
    margin-top: 0;
}

.contact-info p {
    margin: 0 0 20px;
    line-height: 1.7;
    color: #374151;
}

.contact-info ul {
    margin: 0 0 20px;
    padding-left: 25px;
}

.contact-info li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #374151;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--senda-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--senda-font-body);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--senda-accent);
    box-shadow: 0 0 0 3px rgba(108, 215, 232, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-submit {
    margin-top: 30px;
}

.form-submit .btn {
    width: 100%;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #6cd7e8 0%, #a7f3d0 100%);
    color: var(--senda-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 215, 232, 0.3);
    position: relative;
    overflow: hidden;
}

.form-submit .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 215, 232, 0.4);
    background: linear-gradient(135deg, #5cc3d4 0%, #92f5c0 100%);
}

.form-submit .btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(108, 215, 232, 0.3);
}

.form-submit .btn:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

.form-submit .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.form-submit .btn:hover::before {
    left: 100%;
}

.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Contact Tips */
.contact-tips {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-tips h2 {
    font-size: 1.75rem;
    color: var(--senda-primary);
    margin: 0 0 20px;
}

.contact-tips h3 {
    font-size: 1.25rem;
    color: var(--senda-secondary);
    margin: 30px 0 15px;
}

.contact-tips ul {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.contact-tips li {
    margin-bottom: 10px;
    color: #374151;
}

.contact-quote {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--senda-accent);
}

.contact-quote p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--senda-secondary);
    margin: 0 0 10px;
}

.contact-quote cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--senda-primary);
}

/* Responsive Contact */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-hero-title {
        font-size: 1.75rem;
    }
    
    .contact-hero-text {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .contact-content-section {
        padding: 40px 0;
    }
}

/* ==========================================================================
   Weather Widget
   ========================================================================== */

.weather-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.weather-toggle {
    background: linear-gradient(135deg, #6cd7e8 0%, #a7f3d0 100%);
    color: var(--senda-primary);
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(108, 215, 232, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.weather-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(108, 215, 232, 0.5);
    background: linear-gradient(135deg, #5cc3d4 0%, #92f5c0 100%);
}

.weather-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.weather-overlay.active {
    opacity: 1;
    visibility: visible;
}

.weather-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    background: white;
    border-radius: 15px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.weather-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.weather-popup-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weather-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.weather-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.weather-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.weather-popup-content {
    padding: 0;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.weather-info {
    padding: 20px 25px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.weather-info p {
    margin: 5px 0;
    color: #374151;
    font-size: 0.9rem;
}

.windy-iframe-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f3f4f6;
}

.windy-iframe-container iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.weather-footer {
    padding: 20px 25px;
    background: #f1f5f9;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.weather-footer p {
    margin: 5px 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.windy-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--senda-accent);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

.windy-link:hover {
    text-decoration: underline;
}

/* Responsive Weather Widget */
@media (max-width: 768px) {
    .weather-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .weather-toggle {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .weather-toggle .weather-text {
        display: none;
    }
    
    .weather-popup {
        width: 95%;
        max-height: 85vh;
    }
    
    .weather-popup-header {
        padding: 15px 20px;
    }
    
    .weather-popup-header h3 {
        font-size: 1.1rem;
    }
    
    .weather-info,
    .weather-footer {
        padding: 15px 20px;
    }
    
    .windy-iframe-container {
        height: 300px;
    }
}

/* ==========================================================================
   Header Responsive
   ========================================================================== */

@media (max-width: 968px) {
    .header-inner {
        gap: 1rem;
    }
    
    .main-navigation ul {
        gap: 1rem;
    }
    
    .main-navigation a {
        font-size: 0.9rem;
        padding: 0.5rem 0.5rem;
    }
    
    .header-language {
        margin: 0 0.5rem;
    }
    
    .btn-form-style {
        padding: 7px 14px;
        font-size: 0.75rem;
    }
}

/* Media query adicional para elementos del header en móvil */
@media (max-width: 768px) {
    .header-language {
        order: 2;
        margin: 0;
        position: relative;
    }
    
    .language-item {
        padding: 2px 4px;
        font-size: 0.7rem;
    }
    
    .header-cta {
        display: none; /* Oculto en móvil para ganar espacio */
    }
    
    .btn-form-style {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .main-navigation a {
        display: block;
        padding: 0.5rem;
    }
}