/* ============================================================
   DEL VALLE QUALITY — Estilos Principales v3.1 (Rediseño Pro)
   ============================================================
   ÍNDICE:
   1.  Reset & Base
   2.  Header & Navegación
   3.  Hero
   4.  Sección Nosotros
   5.  Sección Servicios
   6.  Sección Contador
   7.  Sección Visitas
   8.  Sección Zonas & Alianzas
   9.  Sección Galería
   10. Sección Videos (Acordeón hover)
   11. Sección Contacto
   12. Footer
   13. WhatsApp Flotante
   14. Galería Modal
   15. Responsive (Media Queries)
   16. Animaciones & Utilidades
   ============================================================ */


/* ============================================================
   1. RESET & BASE
   ============================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--gris-oscuro);
    background-color: var(--blanco);
    padding-top: 76px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transicion);
}

.contenedor {
    max-width: 122rem;
    margin: 0 auto;
    padding: 0 2.4rem;
}

/* Divisor dorado decorativo */
.separador-dorado {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--dorado), var(--dorado-claro));
    border-radius: 2px;
    margin: 1.2rem auto 0;
}


/* ============================================================
   2. HEADER & NAVEGACIÓN
   ============================================================ */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(10, 79, 46, 0.97) 0%, rgba(8, 60, 34, 0.97) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    height: 76px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2.4rem;
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo-header .logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid rgba(201, 168, 76, 0.5);
    object-fit: contain;
    background: rgba(255,255,255,0.05);
}

.logo-header-texto {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-header-nombre {
    font-family: 'Playfair Display', 'Lora', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.logo-header-sub {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dorado-claro);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle .bar {
    display: block;
    width: 26px;
    height: 2.5px;
    background-color: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transicion);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.navegacion-principal {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    list-style: none;
    gap: 0.4rem;
    align-items: center;
}

.menu a {
    color: rgba(255,255,255,0.88);
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--dorado);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.menu a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}

.menu a:hover::after {
    width: 60%;
}


/* ============================================================
   3. HERO
   ============================================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../imagenes/Valle-del-Elqui-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(8, 50, 28, 0.75) 0%,
        rgba(10, 79, 46, 0.60) 40%,
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(255,255,255,0.08), transparent);
    z-index: 1;
}

.contenido-hero {
    position: relative;
    z-index: 2;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem;
}

.logo-inicio {
    margin-bottom: 2.4rem;
}

.logo-inicio .logo {
    width: 130px;
    height: 130px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(201, 168, 76, 0.6);
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.25), 0 8px 32px rgba(0,0,0,0.4);
    object-fit: contain;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    padding: 8px;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.2);
    border: 1px solid rgba(201, 168, 76, 0.5);
    color: var(--dorado-claro);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0.6rem 2rem;
    border-radius: 30px;
    margin-bottom: 1.8rem;
    backdrop-filter: blur(8px);
}

.titulo-principal {
    font-family: 'Playfair Display', 'Lora', serif;
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.2rem;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

.titulo-principal .quality {
    color: var(--dorado-claro);
    font-style: italic;
}

.hero-linea {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--dorado), transparent);
    margin: 1.6rem auto;
}

.slogan {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.5px;
    line-height: 1.6;
    max-width: 60rem;
    margin: 0 auto 2.8rem;
}

.hero-cta {
    display: inline-flex;
    gap: 1.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primario {
    display: inline-block;
    background: linear-gradient(135deg, var(--dorado) 0%, var(--dorado-oscuro) 100%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 1.4rem 3.2rem;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(201, 168, 76, 0.4);
    transition: all 0.35s ease;
    border: none;
    cursor: pointer;
}

.btn-primario:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(201, 168, 76, 0.55);
}

.btn-secundario {
    display: inline-block;
    background: transparent;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 1.4rem 3.2rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.35s ease;
    cursor: pointer;
}

.btn-secundario:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.85);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.65);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: scrollBounce 2.5s infinite;
}

.hero-scroll-arrow {
    width: 28px;
    height: 28px;
    border-right: 2px solid rgba(255,255,255,0.55);
    border-bottom: 2px solid rgba(255,255,255,0.55);
    transform: rotate(45deg);
    margin-top: -4px;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.65; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}


/* ============================================================
   4. SECCIONES GENERALES
   ============================================================ */

.section {
    padding: 6rem 0;
    scroll-margin-top: 76px;
}

.seccion-titulo {
    text-align: center;
    margin-bottom: 3rem;
}

.seccion-titulo h2 {
    font-family: 'Playfair Display', 'Lora', serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--verde-oscuro);
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.seccion-titulo h2.blanco {
    color: #ffffff;
}

.seccion-titulo p {
    font-family: 'Inter', sans-serif;
    font-size: 1.7rem;
    color: var(--gris-medio);
    max-width: 60rem;
    margin: 1.2rem auto 0;
    line-height: 1.7;
}

.seccion-titulo p.blanco {
    color: rgba(255,255,255,0.8);
}

/* Compatibilidad con h2 directo en sección */
.section > .contenedor > h2,
.section h2 {
    font-family: 'Playfair Display', 'Lora', serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--verde-oscuro);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.2;
}


/* ============================================================
   4. SECCIÓN NOSOTROS (Historia)
   ============================================================ */

.section-nosotros {
    background: url('../imagenes/Cerezamata.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    padding: 9rem 0;
}

.section-nosotros::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(8, 50, 28, 0.88) 0%,
        rgba(10, 79, 46, 0.82) 100%
    );
}

.section-nosotros .contenedor {
    position: relative;
    z-index: 1;
}

.grid-nosotros {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 6rem;
    align-items: center;
}

.nosotros-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--dorado-claro);
    margin-bottom: 1.4rem;
}

.texto-nosotros h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2.4rem;
    line-height: 1.2;
    text-align: left;
}

.texto-nosotros h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--dorado), var(--dorado-claro));
    border-radius: 2px;
    margin-top: 1rem;
}

.texto-nosotros p {
    font-family: 'Inter', sans-serif;
    font-size: 1.65rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.6rem;
}

.nosotros-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(201, 168, 76, 0.25);
}

.stat-item {
    text-align: center;
}

.stat-numero {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dorado-claro);
    line-height: 1;
}

.stat-texto {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.4rem;
}

.imagen-nosotros {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.imagen-nosotros::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 2px solid rgba(201, 168, 76, 0.2);
    border-radius: 20px;
    z-index: 0;
}

.imagen-nosotros img {
    width: 380px;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    position: relative;
    z-index: 1;
    object-fit: contain;
    background: rgba(255,255,255,0.06);
    padding: 16px;
}


/* ============================================================
   5. SECCIÓN SERVICIOS
   ============================================================ */

.section-servicios {
    background: url('../imagenes/arandanos.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    isolation: isolate;
    padding: 9rem 0;
}

.section-servicios::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        160deg,
        rgba(5, 40, 20, 0.66) 0%,
        rgba(10, 79, 46, 0.56) 50%,
        rgba(5, 40, 20, 0.66) 100%
    );
}

.section-servicios .contenedor {
    position: relative;
    z-index: 2;
}

.section-servicios .contenedor > h2,
.section-servicios h2 {
    color: #ffffff !important;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.section-servicios .servicios-subtitulo {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.7rem;
    color: rgba(255, 255, 255, 0.96) !important;
    max-width: 56rem;
    margin: -2rem auto 4rem;
    line-height: 1.7;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.4rem;
}

.servicio-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-top: 3px solid var(--dorado);
    padding: 3.2rem 2.4rem;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.servicio-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 40px rgba(201, 168, 76, 0.1);
}

.servicio-icono-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(201, 168, 76, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    overflow: hidden;
}

.servicio-icono-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.servicio-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.servicio-card p {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    line-height: 1.7;
    color: rgba(240, 255, 240, 0.85);
}

/* Compatibilidad con img-circle antiguo */
.img-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(201, 168, 76, 0.4);
    margin: 0 auto 2rem;
    display: block;
}


/* ============================================================
   6. SECCIÓN CONTADOR
   ============================================================ */

.section-contador {
    background: linear-gradient(135deg, #083c22 0%, var(--verde-oscuro) 50%, #083c22 100%);
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.section-contador::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(168, 213, 162, 0.07) 0%, transparent 50%);
    pointer-events: none;
}

.section-contador .seccion-titulo h2,
.section-contador h2 {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.contador-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.8rem;
    position: relative;
    z-index: 1;
}

.contador-card {
    text-align: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201, 168, 76, 0.15);
    padding: 3.2rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.contador-card:hover {
    transform: translateY(-14px);
    background: rgba(255,255,255,0.10);
    border-color: rgba(201, 168, 76, 0.35);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 40px rgba(201,168,76,0.12);
}

.contador-circulo {
    position: relative;
    width: 148px;
    height: 148px;
    margin: 0 auto 2.4rem;
    background: linear-gradient(135deg, var(--verde-claro) 0%, var(--verde-medio) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(168, 213, 162, 0.35), inset 0 2px 8px rgba(255,255,255,0.15);
    animation: pulseContador 2.5s ease-in-out infinite;
}

.contador-circulo.secundario {
    background: linear-gradient(135deg, #c9a84c 0%, #a07830 100%);
    box-shadow: 0 12px 40px rgba(201, 168, 76, 0.35), inset 0 2px 8px rgba(255,255,255,0.15);
}

.contador-circulo.terciario {
    background: linear-gradient(135deg, #4db87e 0%, #2d9e68 100%);
    box-shadow: 0 12px 40px rgba(77, 184, 126, 0.35), inset 0 2px 8px rgba(255,255,255,0.15);
}

@keyframes pulseContador {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.contador-numero {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.contador-simbolo {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.9);
}

.contador-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.contador-card p {
    font-family: 'Inter', sans-serif;
    font-size: 1.45rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
}


/* ============================================================
   7. SECCIÓN VISITAS
   ============================================================ */

.section-visitas {
    background:
        radial-gradient(circle at 12% 18%, rgba(201, 168, 76, 0.16) 0%, transparent 34%),
        radial-gradient(circle at 88% 78%, rgba(18, 112, 67, 0.18) 0%, transparent 40%),
        linear-gradient(140deg, #eef6f0 0%, #deefe4 55%, #d4e8dc 100%);
    padding: 7rem 2rem;
    position: relative;
    overflow: hidden;
}

.section-visitas::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(transparent 0 84%, rgba(8, 67, 39, 0.06) 84% 100%),
        radial-gradient(ellipse at 15% 50%, rgba(10, 79, 46, 0.06) 0%, transparent 52%),
        radial-gradient(ellipse at 85% 30%, rgba(201, 168, 76, 0.11) 0%, transparent 52%);
    pointer-events: none;
}

.section-visitas h2 {
    color: var(--verde-oscuro);
    position: relative;
    z-index: 1;
    margin-bottom: 2.4rem;
}

.visitas-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2.4rem;
    position: relative;
    z-index: 1;
}

.visitas-card {
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.93), rgba(246, 252, 248, 0.97)),
        linear-gradient(120deg, rgba(201, 168, 76, 0.05), rgba(18, 112, 67, 0.08));
    backdrop-filter: blur(2px);
    padding: 3.4rem 3.8rem;
    border-radius: 30px;
    border: 1px solid rgba(11, 89, 52, 0.18);
    box-shadow:
        0 26px 80px rgba(10, 79, 46, 0.18),
        0 0 0 1px rgba(255,255,255,0.68) inset;
    text-align: center;
    max-width: 620px;
    width: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.visitas-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--verde-oscuro), var(--dorado), var(--verde-claro));
    border-radius: 28px 28px 0 0;
}

.visitas-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 34px 94px rgba(10, 79, 46, 0.23);
}

.visitas-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.4rem;
}

.visitas-badge {
    font-family: 'Inter', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #0f6840;
    background: rgba(37, 211, 102, 0.14);
    border: 1px solid rgba(15, 104, 64, 0.2);
    border-radius: 999px;
    padding: 0.58rem 1rem;
}

.visitas-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #0e5f3a;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(233, 246, 238, 0.9));
    border: 1px solid rgba(14, 95, 58, 0.22);
    box-shadow: 0 8px 20px rgba(14, 95, 58, 0.16);
    animation: floatIcon 4s ease-in-out infinite;
}

.visitas-icon svg {
    width: 30px;
    height: 30px;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.visitas-text {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--verde-oscuro);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.visitas-numero-wrap {
    background: linear-gradient(160deg, rgba(13, 90, 55, 0.06), rgba(201, 168, 76, 0.1));
    border: 1px solid rgba(13, 90, 55, 0.16);
    border-radius: 22px;
    padding: 1.6rem 1.6rem 1.8rem;
}

.visitas-numero-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(10, 79, 46, 0.75);
    margin-bottom: 0.8rem;
}

.visitas-numero-grande {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4.4rem, 8vw, 6.4rem);
    font-weight: 700;
    color: var(--verde-oscuro);
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--dorado) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    display: inline-block;
}

.visitas-meta {
    margin-top: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    color: rgba(10, 79, 46, 0.7);
    letter-spacing: 0.01em;
}

@keyframes shimmerVisitas {
    0% { transform: translateX(-200%) rotate(45deg); }
    100% { transform: translateX(200%) rotate(45deg); }
}

.visitas-message {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.55rem;
    color: rgba(22, 69, 46, 0.88);
    max-width: 65rem;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Animación de entrada escalonada para la sección de visitas */
.section-visitas .fade-in-up {
    opacity: 0;
    transform: translateY(34px) scale(0.985);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-visitas .fade-in-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.section-visitas .visitas-reveal-title {
    transition-delay: 0.05s;
}

.section-visitas .visitas-reveal-card {
    transition-delay: 0.16s;
}

.section-visitas .visitas-reveal-message {
    transition-delay: 0.3s;
}

.section-visitas .visitas-reveal-card.visible .visitas-numero-wrap {
    animation: visitasMetricGlow 0.95s ease-out 0.22s both;
}

@keyframes visitasMetricGlow {
    from {
        transform: translateY(8px) scale(0.985);
        box-shadow: 0 0 0 rgba(13, 90, 55, 0);
    }
    to {
        transform: translateY(0) scale(1);
        box-shadow: 0 14px 28px rgba(13, 90, 55, 0.15);
    }
}


/* ============================================================
   8. SECCIÓN ZONAS & ALIANZAS
   ============================================================ */

.section-zonas {
    background: linear-gradient(180deg, #f4f9f4 0%, #ffffff 100%);
    padding: 8rem 0;
}

.imagenes-contenedor {
    background: linear-gradient(180deg, #f4f9f4 0%, #ffffff 100%);
    padding: 8rem 0;
}

.zona-h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--verde-oscuro);
    text-align: center;
    margin-bottom: 0.8rem;
}

.zona-subtitulo {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.65rem;
    color: var(--gris-medio);
    margin-bottom: 3.2rem;
    max-width: 55rem;
    margin-left: auto;
    margin-right: auto;
}

.mapa-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0 5rem;
}

.mapa-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(760px, 92vw);
    min-height: 220px;
    padding: 2.2rem 2.6rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 38%),
        radial-gradient(circle at 86% 80%, rgba(14, 95, 58, 0.07) 0%, transparent 38%),
        linear-gradient(145deg, rgba(255,255,255,0.9), rgba(245, 250, 247, 0.92));
    border: 1px solid rgba(10, 79, 46, 0.1);
    box-shadow:
        0 12px 34px rgba(10, 79, 46, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.65);
    overflow: hidden;
    isolation: isolate;
}

.mapa-wrapper::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(10, 79, 46, 0.06);
    border-radius: 18px;
    pointer-events: none;
}


.mapa {
    max-width: 640px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    filter:
        contrast(1.06)
        saturate(1.02)
        drop-shadow(0 10px 24px rgba(10, 79, 46, 0.16));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.mapa:hover {
    transform: scale(1.01);
    filter:
        contrast(1.08)
        saturate(1.04)
        drop-shadow(0 14px 30px rgba(10, 79, 46, 0.2));
}

/* Alianzas */
.alianzas-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 700;
    color: var(--verde-oscuro);
    text-align: center;
    margin-bottom: 0.6rem;
}

.alianzas-subtitulo {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.55rem;
    color: var(--gris-medio);
    margin-bottom: 3rem;
}

.alianzas-wrapper {
    background: linear-gradient(135deg, #f8fdf8 0%, #ffffff 100%);
    border: 1px solid rgba(10, 79, 46, 0.1);
    border-radius: 16px;
    padding: 4.2rem 0;
    min-height: 220px;
    box-shadow: 0 4px 24px rgba(10, 79, 46, 0.08);
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
}

.alianzas-wrapper::before,
.alianzas-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.alianzas-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8fdf8, transparent);
}

.alianzas-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.alianzas-logos-container {
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    padding: 1rem 0;
}

.alianzas-logos {
    display: flex;
    gap: 44px;
    animation: scrollLogos var(--duration, 32s) linear infinite;
    align-items: center;
    white-space: nowrap;
    min-width: fit-content;
    padding: 1.45rem 0;
}

.alianzas-logos a {
    width: 190px;
    height: 114px;
}

.alianzas-logos img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.18);
    transform-origin: center center;
    filter: grayscale(100%) opacity(0.82);
    transition: transform 0.42s ease, filter 0.4s ease;
    margin: 0;
    border-radius: 8px;
}

.alianzas-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.4s ease;
}

.alianzas-logos a:hover img {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-4px) scale(1.28);
}

.alianzas-logos:hover {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * var(--scroll-width, 0px))); }
}

@media (max-width: 768px) {
    .alianzas-wrapper {
        padding: 2.9rem 0;
        min-height: 185px;
    }

    .alianzas-logos a {
        width: 150px;
        height: 90px;
    }

    .alianzas-logos img {
        transform: scale(1.12);
    }

    .alianzas-logos a:hover img {
        transform: translateY(-4px) scale(1.24);
    }

    .alianzas-logos { gap: 34px; }
}


/* ============================================================
   9. SECCIÓN GALERÍA
   ============================================================ */

.section-galeria {
    background: linear-gradient(180deg, #ffffff 0%, #f4f9f4 100%);
    padding: 8rem 0;
}

.section-galeria h2 {
    color: var(--verde-oscuro);
}

.galeria-subtitulo {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.65rem;
    color: var(--gris-medio);
    margin: -2rem auto 4rem;
    max-width: 55rem;
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 16px rgba(10, 79, 46, 0.1);
    transition: all 0.4s ease;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 0;
}

.galeria-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 50, 28, 0.75) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.galeria-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(10, 79, 46, 0.2);
}

.galeria-item:hover img {
    transform: scale(1.08);
}

.galeria-item:hover::after {
    opacity: 1;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.6rem 1.6rem 1.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.galeria-item:hover .caption {
    transform: translateY(0);
    opacity: 1;
}

/* Icono de lupa */
.galeria-item::before {
    content: '⊕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 3.5rem;
    color: rgba(255,255,255,0.9);
    z-index: 3;
    opacity: 0;
    transition: all 0.4s ease;
}

.galeria-item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}


/* ============================================================
   10. SECCIÓN VIDEOS — Acordeón Hover
   ============================================================ */

.section-videos {
    background:
        linear-gradient(180deg, rgba(10, 79, 46, 0.72) 0%, rgba(8, 60, 34, 0.72) 100%),
        url('../imagenes/Valle-del-Elqui-1.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.section-videos::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse at 90% 50%, rgba(168, 213, 162, 0.05) 0%, transparent 45%),
        linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    z-index: 0;
}

.section-videos .contenedor {
    position: relative;
    z-index: 1;
    text-align: center;
}

.section-videos .contenedor > h2 {
    color: #ffffff !important;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.65);
    display: inline-block;
    width: fit-content;
    margin: 0 auto 1rem;
    padding: 0.45rem 1.8rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(4px);
}

.videos-subtitulo {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.65rem;
    color: rgba(255, 255, 255, 0.98) !important;
    margin: 0 auto 3rem;
    line-height: 1.7;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* Acordeón de vídeos — 4 columnas */
.video-acordeon {
    display: flex;
    gap: 10px;
    height: 460px;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.video-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    transition: flex 0.72s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s ease;
    min-width: 60px;
    background: rgba(0, 0, 0, 0.18);
}

/* Al hacer hover en el contenedor, achica los que no tienen hover */
.video-acordeon:has(.video-item:hover) .video-item,
.video-acordeon.has-hover .video-item {
    flex: 0.78;
}

/* El ítem con hover se expande a cerca del 50% del acordeón */
.video-acordeon .video-item:hover,
.video-acordeon.has-hover .video-item.is-hovered {
    flex: 3.7;
    transform: translateZ(0);
}

.video-item video,
.video-item iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-item video,
.video-item iframe {
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    border: none;
    transform: scale(1);
    filter: brightness(0.48) saturate(0.82);
    transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.video-item:hover video,
.video-item:hover iframe,
.video-acordeon.has-hover .video-item.is-hovered video,
.video-acordeon.has-hover .video-item.is-hovered iframe {
    transform: scale(1.08);
    filter: brightness(0.86) saturate(1);
}

/* Overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 50, 28, 0.74) 0%,
        rgba(8, 50, 28, 0.2) 52%,
        rgba(0, 0, 0, 0.08) 100%
    );
    transition: background 0.4s ease;
    z-index: 2;
}

.video-item:hover .video-overlay,
.video-acordeon.has-hover .video-item.is-hovered .video-overlay {
    background: linear-gradient(
        to top,
        rgba(8, 50, 28, 0.58) 0%,
        rgba(8, 50, 28, 0.08) 64%,
        rgba(0, 0, 0, 0.02) 100%
    );
}

/* Botón play */
.video-play-btn {
    display: none;
}

.video-play-btn svg {
    display: none;
}

/* Etiqueta vertical (texto rotado) — visible en estado cerrado */
.video-etiqueta-vertical {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    z-index: 4;
    transition: opacity 0.35s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.video-item:hover .video-etiqueta-vertical,
.video-acordeon.has-hover .video-item.is-hovered .video-etiqueta-vertical {
    opacity: 0;
}

/* Info del video — visible al hacer hover */
.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.4rem;
    z-index: 5;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.video-item:hover .video-info,
.video-acordeon.has-hover .video-item.is-hovered .video-info {
    transform: translateY(0);
    opacity: 1;
}

.video-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1.3;
}

.video-info p {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.video-info .video-tag {
    display: inline-block;
    background: rgba(201, 168, 76, 0.85);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}

/* Número de video (decorativo) */
.video-numero {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    z-index: 5;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.1);
    line-height: 1;
    transition: all 0.4s ease;
}

.video-item:hover .video-numero,
.video-acordeon.has-hover .video-item.is-hovered .video-numero {
    color: rgba(201, 168, 76, 0.25);
    font-size: 5rem;
}

/* Nota de videos */
.video-nota {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2rem;
    font-style: italic;
}

/* Responsive videos */
@media (max-width: 900px) {
    .video-acordeon {
        flex-direction: column;
        height: auto;
    }
    .video-item {
        flex: none;
        height: 220px;
        min-width: unset;
    }
    .video-acordeon:has(.video-item:hover) .video-item {
        flex: none;
        height: 180px;
    }
    .video-acordeon.has-hover .video-item {
        flex: none;
        height: 180px;
    }
    .video-acordeon .video-item:hover,
    .video-acordeon.has-hover .video-item.is-hovered {
        flex: none;
        height: 360px;
    }
    .video-etiqueta-vertical {
        transform: translate(-50%, -50%) rotate(0deg);
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .video-item { height: 180px; }
    .video-acordeon .video-item:hover,
    .video-acordeon.has-hover .video-item.is-hovered { height: 300px; }
}


/* ============================================================
   11. SECCIÓN CONTACTO
   ============================================================ */

.section-contacto {
    background: linear-gradient(180deg, #f4f9f4 0%, #ffffff 100%);
    padding: 8rem 0;
}

.contenedor-contacto {
    max-width: 100rem;
    margin: 0 auto;
    padding: 0 2.4rem;
}

.titulo-contac {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--verde-oscuro);
    text-align: center;
    margin-bottom: 0.8rem;
}

.contacto-subtitulo {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.65rem;
    color: var(--gris-medio);
    margin-bottom: 4.8rem;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: start;
}

.contacto-info {
    background: linear-gradient(145deg, var(--verde-oscuro), var(--verde-medio));
    border-radius: 20px;
    padding: 4rem 3.2rem;
    color: #ffffff;
    box-shadow: 0 16px 48px rgba(10, 79, 46, 0.25);
    position: relative;
    overflow: hidden;
}

.contacto-info::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.logo-info {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid rgba(201, 168, 76, 0.4);
    object-fit: contain;
    background: rgba(255,255,255,0.08);
    padding: 8px;
    margin: 0 auto 2rem;
    display: block;
}

.contacto-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1rem;
}

.contacto-info > p {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.85);
    text-align: center;
    line-height: 1.7;
    margin-bottom: 2.4rem;
}

.contacto-datos {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contacto-datos li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.45rem;
    color: rgba(255,255,255,0.9);
}

.contacto-datos .dato-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.contacto-datos a {
    color: rgba(255,255,255,0.9);
    transition: color 0.3s ease;
}

.contacto-datos a:hover {
    color: var(--dorado-claro);
}

/* Formulario */
.contacto-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 8px 40px rgba(10, 79, 46, 0.1);
    border: 1px solid rgba(10, 79, 46, 0.08);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--verde-oscuro);
    margin-bottom: 0.7rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.3rem 1.6rem;
    border: 1.5px solid rgba(10, 79, 46, 0.18);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: var(--gris-oscuro);
    background: #fafdf9;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--verde-claro);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(45, 158, 104, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(74, 85, 104, 0.5);
    font-size: 1.45rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group label[for="acepto"] {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    color: var(--gris-oscuro);
    font-weight: 500;
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--verde-oscuro);
    flex-shrink: 0;
}

.btn-enviar {
    width: 100%;
    padding: 1.6rem;
    background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde-medio) 100%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 6px 24px rgba(10, 79, 46, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-enviar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.5s ease;
}

.btn-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(10, 79, 46, 0.4);
}

.btn-enviar:hover::before {
    left: 100%;
}

.btn-enviar:active {
    transform: translateY(0);
}


/* ============================================================
   12. FOOTER
   ============================================================ */

.footer {
    background: linear-gradient(180deg, #083c22 0%, #051f12 100%);
    color: #e8f5ee;
    padding: 5rem 0 0;
    position: relative;
    z-index: 100;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(201, 168, 76, 0.3);
    letter-spacing: 0.3px;
}

.footer-logo {
    width: 80px;
    border-radius: 12px;
    border: 2px solid rgba(201, 168, 76, 0.25);
    background: rgba(255,255,255,0.06);
    padding: 8px;
    margin-bottom: 1.6rem;
}

.footer-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.45rem;
    color: rgba(232, 245, 238, 0.82);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 30rem;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    color: rgba(232, 245, 238, 0.85);
}

.footer-contact .icon {
    font-size: 1.4rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(232, 245, 238, 0.85);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--dorado-claro);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-family: 'Inter', sans-serif;
    font-size: 1.45rem;
    color: rgba(232, 245, 238, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.footer-links a::before {
    content: '›';
    color: var(--dorado);
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-social-note {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    color: rgba(232, 245, 238, 0.65);
    margin-bottom: 1.6rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(232, 245, 238, 0.85);
    transition: all 0.35s ease;
}

.social:hover {
    background: var(--dorado);
    border-color: var(--dorado);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.35);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: 0;
    padding: 1.8rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    color: rgba(232, 245, 238, 0.5);
    text-align: center;
    margin: 0;
}

.footer-bottom a {
    color: rgba(201, 168, 76, 0.8);
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--dorado-claro);
}


/* ============================================================
   13. WHATSAPP FLOTANTE
   ============================================================ */

.whatsapp-float {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    z-index: 9000;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.32),
        0 0 0 8px rgba(37, 211, 102, 0.18);
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
    background: linear-gradient(135deg, #1fa856 0%, #25D366 55%, #68e89a 100%);
    animation: waPulse 3.2s ease-in-out infinite;
}

@keyframes waPulse {
    0%, 86%, 100% { transform: translateY(0) scale(1); }
    90% { transform: translateY(-1px) scale(1.05); }
    94% { transform: translateY(0) scale(1.02); }
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        0 0 0 10px rgba(37, 211, 102, 0.24);
    filter: saturate(1.08);
    animation: none;
}

.whatsapp-float:focus-visible {
    outline: none;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        0 0 0 10px rgba(37, 211, 102, 0.24),
        0 0 0 14px rgba(201, 168, 76, 0.36);
}

.whatsapp-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    color: #ffffff;
}

.whatsapp-icon svg {
    width: 100%;
    height: 100%;
}

.whatsapp-chat-popup {
    position: fixed;
    bottom: 8rem;
    right: 3rem;
    z-index: 9001;
    width: 320px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
    border-radius: 18px;
    box-shadow:
        0 18px 52px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.2);
    font-family: 'Inter', sans-serif;
}

.whatsapp-chat-popup.activo {
    display: flex;
}

.chat-header {
    background: linear-gradient(130deg, #0d5a37 0%, #147346 55%, #1c8a54 100%);
    color: white;
    padding: 1.4rem 1.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.chat-header .close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.95;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.chat-header .close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

.chat-body {
    padding: 1.7rem;
    background:
        radial-gradient(circle at 12% 14%, rgba(37, 211, 102, 0.09), transparent 45%),
        radial-gradient(circle at 88% 84%, rgba(201, 168, 76, 0.14), transparent 55%),
        #f3f8f5;
}

.message.received {
    background: #ffffff;
    border-radius: 6px 14px 14px 14px;
    padding: 1.25rem 1.45rem;
    font-size: 1.38rem;
    color: #1f2b25;
    box-shadow: 0 8px 20px rgba(20, 49, 32, 0.1);
    line-height: 1.6;
    border: 1px solid rgba(20, 115, 70, 0.12);
}

.chat-footer {
    padding: 1.35rem 1.6rem 1.5rem;
    background: #ffffff;
    border-top: 1px solid rgba(20, 115, 70, 0.12);
}

.open-whatsapp-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #1da754 0%, #25D366 62%, #64e796 100%);
    color: white;
    padding: 1.05rem 2rem;
    border-radius: 10px;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.26);
}

.open-whatsapp-btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.07);
    box-shadow: 0 14px 24px rgba(37, 211, 102, 0.33);
}


/* ============================================================
   14. GALERÍA MODAL
   ============================================================ */

.galeria-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.galeria-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeria-modal-close {
    position: fixed;
    top: 2rem;
    right: 2.5rem;
    font-size: 4rem;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10001;
}

.galeria-modal-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-img-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img {
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}

.galeria-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 3.5rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    padding: 0;
    line-height: 1;
}

.galeria-nav-btn.prev { left: 2rem; }
.galeria-nav-btn.next { right: 2rem; }

.galeria-nav-btn:hover {
    background: rgba(201, 168, 76, 0.7);
    border-color: var(--dorado);
}

.modal-caption {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 1.45rem;
    color: rgba(255,255,255,0.85);
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 0.8rem 2rem;
    border-radius: 24px;
    max-width: 80vw;
}


/* ============================================================
   15. RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .grid-nosotros {
        grid-template-columns: 1fr;
        gap: 3.2rem;
        text-align: center;
    }
    .texto-nosotros h2 {
        text-align: center;
    }
    .texto-nosotros h2::after {
        margin: 1rem auto 0;
    }
    .nosotros-stats {
        justify-content: center;
    }
    .imagen-nosotros { display: none; }
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 3.2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body { padding-top: 68px; }

    .header { height: 68px; }

    .logo-header-texto { display: none; }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        z-index: 1100;
    }

    .navegacion-principal {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(8, 60, 34, 0.98);
        backdrop-filter: blur(16px);
        padding: 2.4rem;
        transform: translateY(-110%);
        opacity: 0;
        transition: all 0.4s ease;
        z-index: 1000;
        border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    }

    .navegacion-principal.active {
        transform: translateY(0);
        opacity: 1;
    }

    .menu {
        flex-direction: column;
        gap: 0.4rem;
    }

    .menu a {
        font-size: 1.5rem;
        display: block;
        text-align: center;
        padding: 1rem 2rem;
    }

    .hero {
        background-attachment: scroll;
    }

    .section-nosotros,
    .section-servicios {
        background-attachment: scroll;
    }

    .grid-galeria {
        grid-template-columns: repeat(2, 1fr);
    }

    .mapa-wrapper {
        width: min(680px, 94vw);
        min-height: 190px;
        padding: 1.8rem 2rem;
        border-radius: 22px;
    }

    .mapa {
        max-width: 560px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-logo {
        margin: 0 auto 1.6rem;
    }

    .footer-desc { max-width: 100%; }

    .footer-col h4 { font-size: 1.7rem; }

    .seccion-titulo h2 { font-size: clamp(2.4rem, 6vw, 3.2rem); }
}

@media (max-width: 600px) {
    .grid-galeria { grid-template-columns: 1fr; }

    .nosotros-stats {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .contacto-form { padding: 2.4rem; }

    .contacto-info { padding: 2.8rem 2rem; }

    .mapa-container {
        margin: 2.2rem 0 4rem;
    }

    .mapa-wrapper {
        width: min(100%, 96vw);
        min-height: 168px;
        padding: 1.35rem 1.25rem;
        border-radius: 18px;
    }

    .mapa-wrapper::before {
        inset: 7px;
        border-radius: 14px;
    }

    .mapa {
        max-width: 100%;
        filter:
            contrast(1.05)
            saturate(1.02)
            drop-shadow(0 8px 20px rgba(10, 79, 46, 0.2));
    }

    .visitas-card {
        max-width: 100%;
        padding: 2.6rem 2rem;
        border-radius: 22px;
    }

    .visitas-head {
        margin-bottom: 1.8rem;
    }

    .visitas-badge {
        font-size: 1.05rem;
        padding: 0.5rem 0.9rem;
    }

    .visitas-icon {
        width: 46px;
        height: 46px;
    }

    .visitas-icon svg {
        width: 25px;
        height: 25px;
    }

    .visitas-text {
        font-size: 1.75rem;
    }

    .visitas-numero-wrap {
        border-radius: 18px;
        padding: 1.3rem 1.2rem 1.5rem;
    }

    .visitas-numero-label {
        font-size: 1.1rem;
    }

    .visitas-numero-grande {
        font-size: clamp(3.6rem, 13vw, 5.1rem);
        letter-spacing: 1px;
    }

    .visitas-meta {
        font-size: 1.2rem;
    }

    .visitas-message {
        font-size: 1.42rem;
    }

    .whatsapp-float {
        width: 58px;
        height: 58px;
        bottom: 1.8rem;
        right: 1.8rem;
    }

    .whatsapp-icon {
        width: 31px;
        height: 31px;
    }

    .whatsapp-chat-popup {
        width: min(320px, calc(100vw - 2.4rem));
        right: 1.2rem;
        bottom: 7rem;
    }

    .hero-cta { flex-direction: column; align-items: center; }
    .btn-primario,
    .btn-secundario { width: 100%; max-width: 28rem; text-align: center; }
}


/* ============================================================
   16. ANIMACIONES & UTILIDADES
   ============================================================ */

/* Fade-in al hacer scroll */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Shimmer */
@keyframes shimmer {
    0% { transform: translateX(-200%) rotate(45deg); }
    100% { transform: translateX(200%) rotate(45deg); }
}

/* Scroll (alias para compatibilidad) */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * var(--scroll-width, 0px))); }
}
