/* ══════════════════════════════════════════════════════════════════
   style.css — Auriculoterapia (MODO CLARO MINIMALISTA)
   Filosofía de diseño limpia, moderna y de alto contraste.
   Identidad de marca CONSERVADA: Verde #3ECBA0 / Azul Marino.
   Fuentes de marca: Poppins (títulos) / Lato (texto).
   Ubicación: /css/style.css
   ══════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════
   VARIABLES Y RESET
════════════════════════════════════════ */
:root {
    /* PALETA DE ACENTOS */
    --av-verde:        #3ECBA0;
    --av-verde-osc:    #2da885;
    --av-verde-claro:  #e6f9f3;
    --av-azul:         #0B2046; /* Azul marino para contraste corporativo */
    --av-azul-osc:     #06132b;
    --av-acento:       #FFD700;

    /* TEMA CLARO (Reemplaza el modo oscuro) */
    --av-dark:         #FFFFFF;   /* Fondo principal blanco */
    --av-darker:       #F8FAFC;   /* Fondo secundario tenue */
    --av-panel:        #F1F5F9;   /* Panel gris azulado muy claro */
    --av-panel-2:      #E2E8F0;   /* Panel alternativo */
    --av-card:         #FFFFFF;
    --av-card-hover:   #F8FAFC;

    /* TEXTO Y BORDES */
    --av-white:        #0B2046;   /* Reasignado a Azul Marino para los encabezados */
    --av-text:         #475569;   /* Texto de párrafo principal */
    --av-text-dim:     #64748B;   /* Texto secundario */
    --av-text-faint:   #94A3B8;   /* Texto tenue */
    --av-border:       rgba(0,0,0,0.08);
    --av-border-soft:  rgba(0,0,0,0.04);

    /* SOMBRAS (Sustituyen los bordes duros del modo oscuro) */
    --av-shadow:       0 10px 30px rgba(0,0,0,0.03);
    --av-shadow-hover: 0 15px 35px rgba(0,0,0,0.06);

    /* GRADIENTE DE MARCA */
    --av-grad:         linear-gradient(135deg, var(--av-verde) 0%, var(--av-azul) 100%);

    --nav-h:           86px;

    --font-titulos:    'Poppins', sans-serif;
    --font-texto:      'Lato', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    overflow-x: hidden;
}

body {
    font-family: var(--font-texto);
    color: var(--av-text);
    background-color: var(--av-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titulos);
    font-weight: 700;
    line-height: 1.15;
    color: var(--av-white);
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.container-av {
    width: 100%;
    max-width: 1640px;
    margin: 0 auto;
    padding-left: clamp(1.4rem, 4vw, 4rem);
    padding-right: clamp(1.4rem, 4vw, 4rem);
}

/* ════════════════════════════════════════
   ANIMACIÓN DE SCROLL
════════════════════════════════════════ */
.reveal { opacity: 1; }
html.js .reveal {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }
.reveal-d4 { transition-delay: 0.40s; }
.reveal-d5 { transition-delay: 0.50s; }

@media (prefers-reduced-motion: reduce) {
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ════════════════════════════════════════
   LOADER
════════════════════════════════════════ */
#av-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--av-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loaderOut 0.6s ease 1.5s forwards;
}
#av-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
    opacity: 0;
    transform: translateY(12px);
    animation: loaderFadeUp 0.8s 0.2s ease forwards;
}
.loader-logo img { 
    height: 260px; /* Altura incrementada */
    max-width: 90vw; /* Evita que se corte en pantallas pequeñas */
    filter: none; 
    opacity: 1; 
}
.loader-bar {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px; width: 0%;
    background: var(--av-verde);
    animation: loaderBar 1.4s 0.2s ease forwards;
}
@keyframes loaderFadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes loaderBar { 0%{width:0%} 60%{width:75%} 100%{width:100%} }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ════════════════════════════════════════
   NAVBAR FIJA
════════════════════════════════════════ */
.navbar-av {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
}
.navbar-av.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--av-border);
    box-shadow: var(--av-shadow);
}
.navbar-inner {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative; /* <-- AGREGADO: Sirve como referencia para centrar el menú */
}
.navbar-brand-av { display: flex; align-items: center; flex-shrink: 0; }
.navbar-brand-av .logo-img {
    height: clamp(48px, 5vw, 64px);
    width: auto;
    transition: transform 0.3s ease;
    filter: none; 
    opacity: 1;
}
.navbar-brand-av:hover .logo-img { transform: scale(1.04); }
.navbar-label {
    position: absolute;          /* <-- AGREGADO: Lo saca del flujo de los lados */
    left: 50%;                   /* <-- AGREGADO: Lo mueve a la mitad de la pantalla */
    transform: translateX(-50%); /* <-- AGREGADO: Lo centra perfectamente */
    font-family: var(--font-titulos);
    font-size: 0.6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--av-text-dim);
}
.navbar-actions { display: flex; align-items: center; gap: 1rem; }

.nav-cta-pill, .nav-wa-pill {
    align-items: center;
    gap: 7px;
    font-family: var(--font-titulos);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--av-white);
    text-decoration: none;
    padding: 9px 18px;
    transition: all 0.25s ease;
}
.nav-cta-pill { border: 1px solid var(--av-border); }
.nav-cta-pill i { color: var(--av-verde); transition: color 0.25s; }
.nav-cta-pill:hover { background: var(--av-verde); border-color: transparent; color: #ffffff; }
.nav-cta-pill:hover i { color: #ffffff; }
.nav-wa-pill { border: 1px solid var(--av-border); }
.nav-wa-pill:hover { background: #25D366; border-color: #25D366; color: #ffffff; }
.nav-cta-pill i, .nav-wa-pill i { font-size: 0.95rem; }

/* Botón hamburguesa */
.nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 4px;
    background: none; border: none; cursor: pointer;
    z-index: 1100; flex-shrink: 0;
}
.nav-burger span {
    display: block; height: 2px; border-radius: 2px;
    background: var(--av-white);
    transition: transform 0.4s ease, opacity 0.3s ease, width 0.3s ease, background 0.3s;
}
.nav-burger span:nth-child(1) { width: 28px; }
.nav-burger span:nth-child(2) { width: 20px; }
.nav-burger span:nth-child(3) { width: 24px; }
.nav-burger:hover span { background: var(--av-verde); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 26px; }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 26px; }

/* ════════════════════════════════════════
   OVERLAY MENÚ SÁNDWICH
════════════════════════════════════════ */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.65s cubic-bezier(0.76,0,0.24,1), visibility 0s linear 0.65s;
    overflow-y: auto;
    overflow-x: hidden;
}
.nav-overlay.open {
    pointer-events: auto;
    visibility: visible;
    clip-path: inset(0 0 0% 0);
    transition: clip-path 0.65s cubic-bezier(0.76,0,0.24,1), visibility 0s linear 0s;
}
.nav-overlay-body {
    position: relative; z-index: 1;
    flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--nav-h) + 2rem) clamp(1.5rem, 5vw, 7rem) 1rem;
}
.nav-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem clamp(1.5rem, 3vw, 4rem);
    align-items: start;
}
.nav-col-heading {
    font-family: var(--font-titulos);
    font-size: 0.58rem; letter-spacing: 4px; text-transform: uppercase;
    color: var(--av-verde);
    margin-bottom: 1.6rem;
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.nav-overlay.open .nav-col-heading { opacity: 1; transform: translateY(0); }
.nav-col-list { list-style: none; }
.nav-col-list li {
    margin-bottom: 0.8rem;
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.nav-overlay.open .nav-col-list li { opacity: 1; transform: translateY(0); }
.nav-menu-link {
    font-family: var(--font-texto);
    font-size: clamp(1.15rem, 1.4vw, 1.3rem); /* Letra visiblemente más grande */
    font-weight: 500;
    color: var(--av-text);
    text-decoration: none;
    letter-spacing: 0.3px;
    display: inline-flex; align-items: center; gap: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.nav-menu-link:hover { color: var(--av-verde); transform: translateX(4px); }
.nav-col-note { font-size: 0.8rem; color: var(--av-text-dim); }
.nav-col-sep { border-left: 1px solid var(--av-border-soft); padding-left: clamp(1.2rem, 3vw, 3rem); }

.nav-bigtype-wrap {
    position: relative; z-index: 1;
    padding: 0 clamp(1rem, 3vw, 4rem);
    overflow: hidden; line-height: 1;
}
.nav-bigtype {
    font-family: var(--font-titulos);
    font-weight: 800;
    font-size: clamp(6rem, 22vw, 25rem); /* Letra más grande para compensar que "W.M" es más corto */
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: rgba(11, 32, 70, 0.02); /* Relleno ultra sutil */
    -webkit-text-stroke: 2px rgba(11, 32, 70, 0.12); /* Trazo más grueso y oscuro (azul marino) */
    white-space: nowrap; user-select: none; pointer-events: none;
    line-height: 0.85;
}
.nav-overlay-footer {
    position: relative; z-index: 1;
    padding: 1.5rem clamp(1.5rem, 5vw, 7rem) clamp(1.5rem, 3vw, 3rem);
    display: flex; align-items: flex-end; justify-content: space-between;
    border-top: 1px solid var(--av-border-soft);
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.5s 0.45s ease, transform 0.5s 0.45s ease;
}
.nav-overlay.open .nav-overlay-footer { opacity: 1; transform: translateY(0); }
.nav-footer-brand img { height: clamp(34px, 3vw, 46px); filter: none; opacity: 0.8; }
.nav-footer-info { font-size: 0.75rem; color: var(--av-text-dim); text-align: right; line-height: 1.7; }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding-top: var(--nav-h);
    background-color: var(--av-dark);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: url('../img/fondo.png') center/cover no-repeat;
    filter: grayscale(100%) opacity(0.45); 
    transform: scale(1.05);
    animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1.0); } }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(circle at 20% 30%, rgba(62,203,160,0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(11,32,70,0.10) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.85) 75%, rgba(255,255,255,1) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.hero-eyebrow {
    display: block;
    font-family: var(--font-titulos);
    font-size: 0.66rem; font-weight: 600;
    letter-spacing: 5px; text-transform: uppercase;
    color: var(--av-verde-osc);
    margin-bottom: 1.4rem;
}
.hero-title {
    font-family: var(--font-titulos);
    font-size: clamp(3rem, 6.5vw, 7rem);
    font-weight: 800;
    letter-spacing: -2px;
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: clamp(1.5rem, 2.5vw, 2.4rem);
    display: flex; flex-direction: column;
    color: var(--av-white);
}
.hero-title-accent {
    font-weight: 300;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--av-white);
}
.hero-sub {
    max-width: 520px;
    font-size: clamp(0.95rem, 1.1vw, 1.12rem);
    color: var(--av-text);
    line-height: 1.8; font-weight: 400;
    margin-bottom: 2rem;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; }
.stat-num {
    font-family: var(--font-titulos);
    font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800;
    line-height: 1;
    color: var(--av-white);
}
.stat-label { font-size: 0.78rem; color: var(--av-text-dim); margin-top: 6px; font-weight: 500; }
.stat-divider { width: 1px; height: 42px; background: var(--av-border); }

.hero-media { position: relative; }
.hero-img-frame {
    position: relative;
    border: 1px solid var(--av-verde);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: transparent;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
/* NUEVO: Lógica del slideshow automático */
.hero-slideshow {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}
.hero-slideshow img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    opacity: 0;
    /* 15 segundos en total para el ciclo (5 seg por imagen) */
    animation: crossfade 15s infinite; 
}
/* Retrasos escalonados para cada imagen */
.hero-slideshow img:nth-child(1) { animation-delay: 0s; }
.hero-slideshow img:nth-child(2) { animation-delay: 5s; }
.hero-slideshow img:nth-child(3) { animation-delay: 10s; }

/* Efecto suave de difuminado + un pequeñísimo zoom dinámico */
@keyframes crossfade {
    0%   { opacity: 0; transform: scale(1.05); }
    10%  { opacity: 1; transform: scale(1); }    /* Aparece */
    33%  { opacity: 1; transform: scale(1); }    /* Se mantiene */
    43%  { opacity: 0; transform: scale(1.05); } /* Se oculta */
    100% { opacity: 0; transform: scale(1.05); }
}

.hero-img-frame::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.05) 40%, transparent 100%);
}
.hero-img-accent {
    position: absolute; top: 0; left: 0; width: 4px; height: 0;
    background: var(--av-verde); z-index: 2;
    animation: accentGrow 1.2s 0.8s ease forwards;
}
@keyframes accentGrow { to { height: 100%; } }
/* Se eliminó la clase .hero-img-num */
.hero-img-badge {
    position: absolute; bottom: 1.2rem; left: 1.2rem; z-index: 2;
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-titulos); font-size: 0.66rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase; color: #ffffff;
    padding: 8px 16px; background: rgba(11,32,70,0.85);
    border: none; backdrop-filter: blur(6px);
}
.hero-img-badge i { color: var(--av-verde); font-size: 0.95rem; }

.hero-scroll {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--av-border); border-radius: 50%;
    color: var(--av-text); text-decoration: none;
    animation: heroBounce 2s infinite; transition: all 0.3s;
}
.hero-scroll:hover { background: var(--av-card); border-color: var(--av-verde); color: var(--av-verde); box-shadow: var(--av-shadow); }
@keyframes heroBounce { 0%,20%,50%,80%,100%{transform:translate(-50%,0)} 40%{transform:translate(-50%,-8px)} 60%{transform:translate(-50%,-4px)} }

/* ════════════════════════════════════════
   PATRÓN DE SECCIÓN
════════════════════════════════════════ */
.av-section { padding: clamp(4.5rem, 9vw, 9rem) 0; position: relative; }
.av-section.panel   { background: var(--av-panel); }
.av-section.panel-2 { background: var(--av-panel-2); }

.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-titulos);
    font-size: 0.62rem; font-weight: 600;
    letter-spacing: 4px; text-transform: uppercase;
    color: var(--av-verde-osc);
    margin-bottom: 1rem;
}
.section-eyebrow i { font-size: 0.85rem; }
.section-title {
    font-family: var(--font-titulos);
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    font-weight: 800; letter-spacing: -1.5px; line-height: 1.05;
    color: var(--av-white);
}
.section-title .grad {
    color: var(--av-verde);
}
.section-lead { margin-top: 1.1rem; font-size: clamp(0.95rem, 1.1vw, 1.1rem); color: var(--av-text); font-weight: 400; line-height: 1.8; }

/* ════════════════════════════════════════
   BOTONES
════════════════════════════════════════ */
.btn-av-primary, .btn-av-ghost, .btn-av-light, .btn-av-wa {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-titulos);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 1rem 2.2rem;
    text-decoration: none; cursor: pointer; border: none;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.btn-av-primary { background: var(--av-verde); color: #ffffff; }
.btn-av-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(62,203,160,0.25); color: #ffffff; background: var(--av-verde-osc); }
.btn-av-ghost { background: transparent; color: var(--av-white); border: 1px solid var(--av-white); }
.btn-av-ghost:hover { border-color: var(--av-verde); color: var(--av-verde); background: rgba(62,203,160,0.05); }
.btn-av-light { background: #ffffff; color: var(--av-white); box-shadow: var(--av-shadow); }
.btn-av-light:hover { background: var(--av-darker); color: var(--av-verde-osc); transform: translateY(-3px); }
.btn-av-wa { background: transparent; color: var(--av-white); border: 1px solid var(--av-border); }
.btn-av-wa:hover { background: #25D366; border-color: #25D366; color: #ffffff; }
.btn-av-sm { padding: 0.72rem 1.4rem; font-size: 0.62rem; }

/* ════════════════════════════════════════
   ¿QUÉ ES?
════════════════════════════════════════ */
.quees-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.quees-media { position: relative; }
.quees-img-frame {
    position: relative; overflow: hidden; aspect-ratio: 3 / 2;
    border: none; background: var(--av-card); box-shadow: var(--av-shadow);
}
.quees-img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.quees-media:hover .quees-img-frame img { transform: scale(1.05); }
.quees-img-frame::before { content:''; position:absolute; top:0; left:0; width:4px; height:100%; background: var(--av-verde); z-index:2; }
.quees-badge {
    position: absolute; bottom: -22px; left: -22px; z-index: 3;
    display: flex; align-items: center; gap: 14px;
    background: var(--av-card); box-shadow: var(--av-shadow);
    padding: 1.2rem 1.5rem; border: 1px solid var(--av-border-soft);
}
.quees-badge i { font-size: 2rem; color: var(--av-verde); }
.quees-badge strong { display: block; color: var(--av-white); font-family: var(--font-titulos); font-size: 1.05rem; }
.quees-badge p { font-size: 0.78rem; color: var(--av-text-dim); margin: 0; }

.feature-list { display: flex; flex-direction: column; gap: 1.6rem; margin: 2rem 0; }
.feature-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature-icon {
    flex-shrink: 0; width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(62,203,160,0.3); color: var(--av-verde);
    font-size: 1.3rem; background: rgba(62,203,160,0.06); border-radius: 8px;
}
.feature-item h5 { font-family: var(--font-titulos); font-size: 1.05rem; color: var(--av-white); margin-bottom: 4px; }
.feature-item p { font-size: 0.9rem; color: var(--av-text); margin: 0; }

/* ════════════════════════════════════════
   NOSOTROS (ACTUALIZADO A 4 COLUMNAS)
════════════════════════════════════════ */

/* Nueva grilla de 4 columnas en lugar de 2 */
.mv-grid-4 { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    --gap: clamp(1rem, 1.5vw, 1.5rem);   /* El gap como VARIABLE: los conectores de energía lo reutilizan */
    gap: var(--gap); 
    align-items: stretch;
}

.mv-card {
    position: relative; overflow: hidden;
    background: var(--av-card); border: 1px solid var(--av-border-soft);
    box-shadow: var(--av-shadow);
    padding: clamp(2rem, 3.5vw, 3rem);
    /* Transición de hover suavizada con efecto rebote */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.mv-card::before { content:''; position:absolute; top:0; left:0; width:100%; height:4px; background: var(--av-verde); }

/* Nuevo efecto al pasar el cursor sobre la tarjeta */
.mv-card:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 22px 45px rgba(0,0,0,0.09); 
    border-color: rgba(62,203,160,0.4); 
}

.mv-icon {
    width: 72px; height: 72px; margin-bottom: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(62,203,160,0.1); color: var(--av-verde); font-size: 2rem; border-radius: 12px;
    /* Transición agregada para el ícono */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 1. Dejamos el contenedor quieto (transform: none) para que la línea no se tuerza */
.mv-card:hover .mv-icon {
    background: var(--av-verde);
    color: #ffffff;
    transform: none !important; /* Mantiene la línea recta */
}

.mv-card h3 { font-family: var(--font-titulos); font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--av-white); margin-bottom: 1.2rem; }
.mv-card .mv-lead { font-size: 1rem; color: var(--av-text); font-weight: 400; line-height: 1.8; margin-bottom: 1.6rem; }

.mv-list { list-style: none; }
.mv-list li { padding: 0.55rem 0; display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--av-text); }
.mv-list li i { color: var(--av-verde); margin-top: 3px; flex-shrink: 0; }
.mv-card.vision .mv-list li i { color: var(--av-azul); }

/* Estilos para el nuevo botón grande de esta sección */
.btn-av-lg {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    font-family: var(--font-titulos);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border-radius: 6px;
    background-color: var(--av-azul); /* Azul corporativo */
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-av-lg:hover {
    background-color: var(--av-verde);
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(62,203,160,0.3);
    color: #ffffff;
}

/* Nota: El bloque antiguo de .values-grid y .value-card fue eliminado 
   porque los valores ahora están integrados dentro de las 4 tarjetas principales */

/* ════════════════════════════════════════
   BENEFICIOS (DISEÑO CLICKABLE MODERNO)
════════════════════════════════════════ */
.benefit-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    --gap: clamp(1.5rem, 3vw, 2.5rem);   /* El gap como VARIABLE: los conectores de energía lo reutilizan */
    gap: var(--gap);
    background: transparent; 
    border: none;
}

.benefit-item {
    position: relative; 
    overflow: hidden;
    padding: clamp(2.5rem, 4vw, 3rem);
    background: var(--av-card);
    border: 1px solid var(--av-border-soft);
    border-radius: 16px; /* Bordes redondeados más amigables */
    box-shadow: var(--av-shadow);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Nota: el ::before del .benefit-item se REUTILIZA ahora como CONECTOR
   VERTICAL de energía (ver sección "LÍNEAS DE ENERGÍA Y CONEXIÓN").
   Por eso el antiguo brillo radial del hover se movió aquí, al fondo: */

.benefit-item:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    border-color: rgba(62,203,160,0.3);
    background:
        radial-gradient(circle at top right, rgba(62,203,160,0.06), transparent 60%),
        var(--av-card);
}

.benefit-icon {
    width: 64px; height: 64px; margin-bottom: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(62,203,160,0.08); color: var(--av-verde-osc); font-size: 1.8rem;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.benefit-item:hover .benefit-icon { 
    background: var(--av-verde); 
    color: #ffffff; 
    transform: none !important; /* Mantiene la línea recta */
    box-shadow: 0 10px 20px rgba(62,203,160,0.3);
}

/* 2. Preparamos el emoji (la etiqueta <i>) para que se anime suavemente */
.mv-icon i, .benefit-icon i {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3. ¡Rotamos y agrandamos SOLO el emoji interno al hacer hover! */
.mv-card:hover .mv-icon i {
    transform: scale(1.3) rotate(12deg);
}

.benefit-item:hover .benefit-icon i {
    transform: scale(1.3) rotate(-12deg);
}

.benefit-item h4 { 
    font-family: var(--font-titulos); font-size: 1.25rem; 
    color: var(--av-white); margin-bottom: 0.8rem; position: relative; z-index: 1;
}
.benefit-item p { 
    font-size: 0.95rem; color: var(--av-text); margin-bottom: 1.5rem; line-height: 1.7; 
    position: relative; z-index: 1;
}

.benefit-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-titulos); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--av-verde-osc);
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative; z-index: 1;
}
.benefit-item:hover .benefit-link {
    color: var(--av-verde);
    transform: translateX(5px);
}

/* ════════════════════════════════════════
   MODALES MODERNOS (GLASSMORPHISM)
════════════════════════════════════════ */
/* Efecto de fondo desenfocado (Blur) para todos los modales de Bootstrap */
.modal-backdrop.show {
    opacity: 1 !important; /* Forzamos opacidad para manejar el color en el background */
    background-color: rgba(6, 19, 43, 0.65); /* Azul corporativo semitransparente */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-av-modern .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    background: var(--av-card);
    overflow: hidden;
}

.modal-av-modern .modal-icon {
    width: 80px; height: 80px; margin: 0 auto 1.5rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--av-verde); color: #ffffff; font-size: 2.2rem;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(62,203,160,0.3);
}

.modal-av-modern .modal-title {
    color: var(--av-azul);
    font-family: var(--font-titulos);
    font-weight: 800;
    font-size: 1.6rem;
}

.modal-av-modern .modal-text {
    color: var(--av-text);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* =========================================================
   ANIMACIONES DE ENTRADA PARA LOS MODALES
========================================================= */

/* Efecto Pop-Up elástico al abrir el modal completo */
.modal-av-modern.show .modal-dialog {
    animation: modalPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    0% { transform: scale(0.85) translateY(30px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Animación secuencial (rebote) para el ícono interior */
.modal-av-modern.show .modal-icon {
    animation: iconModalPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.15s both;
}

@keyframes iconModalPop {
    0% { transform: scale(0) rotate(-20deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Mejora visual al botón de cerrar (la "X") */
.modal-av-modern .btn-close {
    opacity: 0.5;
    transition: all 0.3s ease;
}
.modal-av-modern .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* PROCESO */
.proceso-wrap { margin-top: clamp(3rem, 6vw, 5rem); }
/* --gap como VARIABLE: los conectores de energía reutilizan exactamente este valor */
.proceso-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    --gap: clamp(1rem, 2vw, 1.5rem); gap: var(--gap);
    align-items: stretch;
}
.process-card {
    position: relative; overflow: visible; cursor: pointer;   /* visible = deja salir el conector al gap */
    background: var(--av-card); border: 1px solid var(--av-border-soft); box-shadow: var(--av-shadow);
    padding: 2.2rem 1.6rem;
    border-radius: 16px;
    transition: all 0.35s ease;
    display: flex; flex-direction: column;                    /* permite anclar la etiqueta al fondo */
}
.process-card::before { content:''; position:absolute; inset:0; border-radius:16px; background: linear-gradient(135deg, rgba(62,203,160,0.05), rgba(11,32,70,0.02)); opacity:0; transition: opacity 0.35s; }
.process-card:hover { transform: translateY(-10px); box-shadow: var(--av-shadow-hover); border-color: rgba(62,203,160,0.25); }
.process-card:hover::before { opacity: 1; }
.process-card:active { transform: translateY(-5px) scale(0.99); }
/* Número como NODO con gradiente de marca: refuerza visualmente la secuencia (el orden importa) */
.process-number {
    position: relative; z-index: 2;
    width: 58px; height: 58px; margin-bottom: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--av-grad); color: #ffffff; border: none;
    font-family: var(--font-titulos); font-size: 1.5rem; font-weight: 800; border-radius: 50%;
    box-shadow: 0 8px 20px rgba(62,203,160,0.25);
    transition: transform 0.35s cubic-bezier(0.175,0.885,0.32,1.275);
}
.process-card:hover .process-number { transform: scale(1.1) rotate(-6deg); }
.process-card h5 { position: relative; z-index: 2; font-family: var(--font-titulos); color: var(--av-white); font-size: 1.1rem; margin-bottom: 0.6rem; }
.process-card p { position: relative; z-index: 2; font-size: 0.85rem; color: var(--av-text); margin-bottom: 1rem; line-height: 1.6; }
.process-tag {
    position: relative; z-index: 2; margin-top: auto;          /* etiqueta siempre al fondo de la tarjeta */
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-titulos); font-size: 0.6rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--av-verde-osc); transition: color 0.3s;
}
.process-card:hover .process-tag { color: var(--av-verde); }

/* ════════════════════════════════════════
   CTA
════════════════════════════════════════ */
.cta-band {
    position: relative; overflow: hidden;
    background: var(--av-verde);
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.cta-band::before { content:''; position:absolute; top:-50%; right:-8%; width:480px; height:480px; background: rgba(255,255,255,0.08); border-radius:50%; }
.cta-band::after  { content:''; position:absolute; bottom:-55%; left:-8%; width:560px; height:560px; background: rgba(255,255,255,0.07); border-radius:50%; }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { font-family: var(--font-titulos); font-size: clamp(1.6rem, 3.2vw, 2.8rem); color: #ffffff; letter-spacing: -1px; margin-bottom: 0.6rem; }
.cta-inner p { color: rgba(255,255,255,0.9); font-weight: 400; font-size: 1.05rem; margin: 0; }

/* ════════════════════════════════════════
   SEDES
════════════════════════════════════════ */
.sedes-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    --gap: clamp(1rem, 2vw, 1.5rem); gap: var(--gap);   /* --gap = ancho del conector de energía */
    align-items: stretch;
}
.sede-card {
    position: relative; overflow: visible;              /* deja salir el conector al gap */
    background: var(--av-card); border: 1px solid var(--av-border-soft); box-shadow: var(--av-shadow);
    padding: 2.4rem 1.8rem; transition: all 0.4s ease;
    border-radius: 16px;
    text-align: center;                                 /* CONTENIDO CENTRADO (look más profesional) */
    display: flex; flex-direction: column;              /* botones anclados al fondo (alturas iguales) */
}
/* Barra de acento superior */
.sede-card::before {
    content:''; position:absolute; top:0; left:0; width:100%; height:4px;
    background: var(--av-verde); border-radius: 16px 16px 0 0;
}
.sede-card:hover { transform: translateY(-8px); box-shadow: var(--av-shadow-hover); border-color: rgba(62,203,160,0.3); }
/* ÍCONO CENTRADO en la tarjeta + forma circular */
.sede-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1.3rem;                              /* <- centra el ícono horizontalmente */
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(62,203,160,0.3); background: rgba(62,203,160,0.08);
    color: var(--av-verde-osc); font-size: 1.7rem; transition: all 0.4s; border-radius: 50%;
}
.sede-card:hover .sede-icon { background: var(--av-verde); border-color: transparent; color: #ffffff; transform: scale(1.06); box-shadow: 0 10px 20px rgba(62,203,160,0.3); }
.sede-card h5 { font-family: var(--font-titulos); color: var(--av-white); font-size: 1.2rem; margin-bottom: 0.6rem; }
.sede-addr { font-size: 0.88rem; color: var(--av-text); display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin-bottom: 1.4rem; text-align: left; }
.sede-addr i { color: var(--av-verde); margin-top: 3px; flex-shrink: 0; }
.sede-btns { display: flex; gap: 0.6rem; margin-top: auto; }   /* botones al fondo de la tarjeta */
.sede-btns a { flex: 1; justify-content: center; }

/* ════════════════════════════════════════
   TESTIMONIOS
════════════════════════════════════════ */
/* SLIDER DE TESTIMONIOS (multi-tarjeta · autoplay · flechas si hay más que las visibles)
   --testi-visible y --testi-gap los fija el JS de forma responsive; aquí van valores por defecto. */
.testi-slider { position: relative; --testi-visible: 4; --testi-gap: 1.5rem; }
.testi-viewport { overflow: hidden; }
.testi-track {
    display: flex;
    gap: var(--testi-gap);
    transition: transform 0.6s cubic-bezier(0.65,0,0.35,1);
    will-change: transform;
}
/* Cada tarjeta ocupa 1/visibles del ancho (descontando los gaps) */
.testi-card {
    flex: 0 0 calc((100% - (var(--testi-visible) - 1) * var(--testi-gap)) / var(--testi-visible));
    box-sizing: border-box;
    background: var(--av-card); border: 1px solid var(--av-border-soft);
    box-shadow: var(--av-shadow); border-radius: 16px;
    padding: 2rem 1.6rem 1.8rem;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--av-shadow-hover); border-color: rgba(62,203,160,0.3); }
.testi-card .testi-quote { font-size: 1.7rem; color: var(--av-verde); line-height: 1; margin-bottom: 0.6rem; }
.testi-card .testi-img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 3px solid rgba(62,203,160,0.2); }
.testi-card .testi-stars { color: var(--av-acento); font-size: 0.9rem; margin-bottom: 0.9rem; letter-spacing: 1px; }
.testi-card .testi-text {
    font-size: 0.92rem; color: var(--av-text); font-style: italic; line-height: 1.7; margin-bottom: 1.2rem;
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.testi-card .testi-name { font-family: var(--font-titulos); color: var(--av-white); font-size: 1rem; margin: auto 0 2px; }
.testi-card .testi-role { font-size: 0.74rem; color: var(--av-verde-osc); letter-spacing: 0.5px; }

/* Flechas laterales (el JS les pone .is-hidden cuando NO hay más tarjetas que las visibles) */
.testi-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #ffffff; color: var(--av-azul); border: 1px solid var(--av-border);
    font-size: 1.2rem; cursor: pointer; box-shadow: var(--av-shadow);
    transition: all 0.25s ease;
}
.testi-arrow:hover { background: var(--av-verde); color: #ffffff; border-color: transparent; box-shadow: var(--av-shadow-hover); }
.testi-prev { left: -22px; }
.testi-next { right: -22px; }
.testi-arrow.is-hidden { display: none; }

/* Puntos de paginación */
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2rem; }
.testi-dots button {
    width: 10px; height: 10px; padding: 0; border-radius: 50%;
    background: var(--av-verde); border: none; opacity: 0.3; cursor: pointer;
    transition: opacity 0.25s, transform 0.25s;
}
.testi-dots button.active { opacity: 1; transform: scale(1.25); }
.testi-dots.is-hidden { display: none; }

/* Tarjetas visibles por defecto (respaldo si el JS no corre; el JS lo sobreescribe en línea) */
@media (max-width: 1199.98px) { .testi-slider { --testi-visible: 3; } }
@media (max-width: 991.98px)  { .testi-slider { --testi-visible: 2; } }
@media (max-width: 575.98px)  {
    .testi-slider { --testi-visible: 1; --testi-gap: 1rem; }
    .testi-prev { left: 2px; } .testi-next { right: 2px; }
    .testi-arrow { width: 40px; height: 40px; font-size: 1rem; background: rgba(255,255,255,0.9); }
}

/* ════════════════════════════════════════
   FAQ
════════════════════════════════════════ */
.faq-wrap { max-width: 920px; margin: 0 auto; }
.accordion-av .accordion-item {
    background: var(--av-card); border: 1px solid var(--av-border);
    margin-bottom: 1rem; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: border-color 0.3s;
}
.accordion-av .accordion-item:hover { border-color: rgba(62,203,160,0.4); }
.accordion-av .accordion-button {
    background: transparent; color: var(--av-white);
    font-family: var(--font-titulos); font-weight: 600; font-size: 1.02rem;
    padding: 1.4rem 1.6rem; box-shadow: none;
    display: flex; align-items: center; gap: 10px;
}
.accordion-av .accordion-button i { color: var(--av-verde-osc); }
.accordion-av .accordion-button:not(.collapsed) { background: rgba(62,203,160,0.05); color: var(--av-verde-osc); box-shadow: none; }
.accordion-av .accordion-button:focus { box-shadow: none; border: none; }
.accordion-av .accordion-body { padding: 0 1.6rem 1.5rem; color: var(--av-text); font-size: 0.95rem; line-height: 1.85; }

.faq-cta {
    margin-top: clamp(2.5rem, 4vw, 3.5rem); text-align: center;
    background: var(--av-darker);
    border: 1px solid var(--av-border); padding: clamp(2rem, 4vw, 3rem); border-radius: 12px;
}
.faq-cta h4 { font-family: var(--font-titulos); color: var(--av-white); font-size: 1.4rem; margin-bottom: 0.6rem; }
.faq-cta p { color: var(--av-text); margin-bottom: 1.6rem; }
.faq-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════
   CONTACTO
════════════════════════════════════════ */
.contact-card {
    background: var(--av-card); border: 1px solid var(--av-border-soft); box-shadow: var(--av-shadow);
    padding: clamp(2rem, 4vw, 3rem); border-radius: 12px;
}
.contact-card .form-floating > .form-control,
.contact-card .form-floating > .form-select {
    background: #ffffff;
    border: 1px solid var(--av-border);
    color: var(--av-text); border-radius: 6px;
}
.contact-card .form-floating > .form-control:focus,
.contact-card .form-floating > .form-select:focus {
    background: #ffffff;
    border-color: var(--av-verde);
    box-shadow: 0 0 0 0.2rem rgba(62,203,160,0.15);
    color: var(--av-text);
}
.contact-card .form-floating > label { color: var(--av-text-dim); }
.contact-card .form-floating > .form-control:focus ~ label,
.contact-card .form-floating > .form-control:not(:placeholder-shown) ~ label,
.contact-card .form-floating > .form-select ~ label { color: var(--av-verde-osc); opacity: 1; }
.contact-card .form-select option { background: var(--av-card); color: var(--av-text); }
.contact-card .form-check-input { border-color: var(--av-border); }
.contact-card .form-check-input:checked { background: var(--av-verde); border-color: var(--av-verde); }
.contact-card .form-check-label { color: var(--av-text-dim); }
.contact-card .btn-av-primary { width: 100%; justify-content: center; padding: 1.1rem; }

.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-top: 1.6rem; }
.contact-info-box {
    background: var(--av-card); border: 1px solid var(--av-border-soft); box-shadow: var(--av-shadow);
    padding: 1.8rem; text-align: center; transition: all 0.3s; border-radius: 12px;
}
.contact-info-box:hover { transform: translateY(-5px); box-shadow: var(--av-shadow-hover); }
.contact-info-box i { font-size: 2rem; color: var(--av-verde-osc); }
.contact-info-box h6 { font-family: var(--font-titulos); color: var(--av-white); margin: 0.8rem 0 4px; font-size: 0.95rem; }
.contact-info-box a { color: var(--av-text); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.contact-info-box a:hover { color: var(--av-verde); }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer-av {
    background: var(--av-darker);
    border-top: 1px solid var(--av-border);
    padding: clamp(4rem, 7vw, 6rem) 0 clamp(2rem, 3vw, 3rem);
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3rem); margin-bottom: 3rem; }
.footer-logo { height: 58px; width: auto; filter: none; opacity: 0.9; margin-bottom: 1.4rem; }
.footer-about { font-size: 0.88rem; color: var(--av-text-dim); line-height: 1.8; max-width: 320px; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.footer-social a {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--av-border); color: var(--av-text-dim);
    text-decoration: none; font-size: 1.1rem; transition: all 0.3s; border-radius: 8px;
}
.footer-social a:hover { background: var(--av-verde); border-color: transparent; color: #ffffff; transform: translateY(-3px); }
.footer-col h6 {
    font-family: var(--font-titulos); font-size: 0.62rem;
    letter-spacing: 3px; text-transform: uppercase; color: var(--av-verde-osc);
    margin-bottom: 1.4rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
    font-size: 0.88rem; color: var(--av-text); text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px; transition: all 0.25s;
}
.footer-col a:hover { color: var(--av-verde); transform: translateX(4px); }
.footer-col a i { font-size: 0.85rem; color: var(--av-text-faint); }
.footer-hours { font-size: 0.85rem; color: var(--av-text-dim); }
.footer-hours li { display: flex; align-items: center; gap: 8px; margin-bottom: 0.6rem; }
.footer-hours i { color: var(--av-verde); }

.footer-bottom {
    border-top: 1px solid var(--av-border); padding-top: 2rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--av-text-dim); margin: 0; }
.footer-bottom .footer-legal a { color: var(--av-text); text-decoration: none; margin-left: 1.2rem; transition: color 0.25s; }
.footer-bottom .footer-legal a:hover { color: var(--av-verde); }
.footer-dev a { color: var(--av-white); font-weight: 700; text-decoration: none; transition: color 0.3s; }
.footer-dev a:hover { color: var(--av-verde); }

/* ════════════════════════════════════════
   WHATSAPP FLOTANTE + SCROLL TO TOP
════════════════════════════════════════ */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 980;
    width: 62px; height: 62px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff; font-size: 30px; text-decoration: none;
    box-shadow: 0 8px 30px rgba(37,211,102,0.4);
    animation: pulseWa 2.4s infinite; transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); color: #ffffff; }
@keyframes pulseWa {
    0%   { box-shadow: 0 8px 30px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.6); }
    70%  { box-shadow: 0 8px 30px rgba(37,211,102,0.4), 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 8px 30px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0); }
}
.scroll-to-top {
    position: fixed; bottom: 100px; right: 28px; z-index: 979;
    width: 48px; height: 48px;
    display: none; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.9); border: 1px solid var(--av-border);
    color: var(--av-white); font-size: 1.2rem; cursor: pointer;
    backdrop-filter: blur(6px); transition: all 0.3s; box-shadow: var(--av-shadow); border-radius: 50%;
}
.scroll-to-top.show { display: flex; }
.scroll-to-top:hover { background: var(--av-verde); border-color: transparent; color: #ffffff; }

/* ════════════════════════════════════════
   MODALES DEL PROCESO
════════════════════════════════════════ */
.modal-content {
    background: var(--av-card); border: none; color: var(--av-text); box-shadow: var(--av-shadow-hover);
}
.modal-header, .modal-footer { border-color: var(--av-border); }
.modal-title { color: var(--av-white); font-family: var(--font-titulos); }
.modal .btn-close { filter: none; opacity: 0.7; }
.modal.fade .modal-dialog { transition: transform 0.2s ease-out; }

/* ════════════════════════════════════════
   ACCESIBILIDAD
════════════════════════════════════════ */
.btn-av-primary:focus-visible, .btn-av-ghost:focus-visible,
.form-control:focus-visible, .form-select:focus-visible,
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--av-verde); outline-offset: 3px;
}

/* ════════════════════════════════════════
   AJUSTES PARA PANTALLAS GRANDES (1920x1080)
   Centrado vertical absoluto sin necesidad de scroll
════════════════════════════════════════ */
@media (min-width: 1400px) and (min-height: 800px) {
    
    /* 1. Forzamos a que las secciones ocupen exactamente 1 pantalla completa */
    #nosotros,
    #beneficios {
        min-height: 100vh;
        display: flex;
        align-items: center; /* Centra todo el bloque verticalmente */
        padding-top: calc(var(--nav-h) + 1rem); /* Compensa el menú superior fijo */
        padding-bottom: 2rem;
    }

    #nosotros .container-av,
    #beneficios .container-av {
        width: 100%; /* Evita que el contenedor se encoja por el flexbox */
    }

    /* 2. Reducimos el margen excesivo de los títulos */
    #nosotros .section-head,
    #beneficios .section-head {
        margin-bottom: 2rem !important; 
    }

    /* 3. Compactamos las tarjetas de NOSOTROS */
    .mv-card {
        padding: 1.6rem 1.5rem;
    }
    .mv-icon {
        width: 54px; height: 54px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .mv-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.6rem;
    }
    .mv-card .mv-lead {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        line-height: 1.5;
    }
    .mv-list li {
        padding: 0.35rem 0;
        font-size: 0.85rem;
    }
    /* Acercamos el botón de Agendar hacia arriba */
    #nosotros .text-center {
        margin-top: 1.5rem !important;
    }

    /* 4. Compactamos las tarjetas de BENEFICIOS */
    .benefit-grid {
        --gap: 1.5rem;     /* Mantiene el conector sincronizado con el gap en pantallas grandes */
        gap: var(--gap);
    }
    .benefit-item {
        padding: 1.8rem 2rem;
    }
    .benefit-icon {
        width: 54px; height: 54px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .benefit-item h4 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }
    .benefit-item p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
}

/* ══════════════════════════════════════════════════════════════════
   LÍNEAS DE ENERGÍA Y CONEXIÓN  (REESCRITO)
   ------------------------------------------------------------------
   PROBLEMA ANTERIOR: la línea estaba anclada al ÍCONO con width:100vw,
   por eso "atravesaba" todas las tarjetas y quedaba a la altura del ícono.

   SOLUCIÓN: el conector se ancla a la TARJETA y vive SOLO dentro del
   gap (el espacio entre tarjetas). Su tamaño es exactamente var(--gap),
   así nunca invade las tarjetas vecinas.
     • Conector HORIZONTAL -> ::after  (gap derecho · CENTRADO en altura)
     • Conector VERTICAL   -> ::before (gap inferior · solo BENEFICIOS,
                                        para "unir la cuadrícula" 2x2)
   ══════════════════════════════════════════════════════════════════ */

/* Las tarjetas deben dejar salir el conector hacia el gap (sin recorte) */
.mv-card, .benefit-item { overflow: visible !important; z-index: 1; }

/* El contenido (íconos, títulos, listas) siempre por encima del conector */
.mv-card > *, .benefit-item > * { position: relative; z-index: 2; }

/* ---------- CONECTOR HORIZONTAL (::after) ---------- */
.mv-card::after,
.benefit-item::after {
    content: '';
    position: absolute;
    top: 50%;                          /* CENTRADO EN ALTURA */
    left: 100%;                        /* nace en el borde derecho de la tarjeta */
    transform: translateY(-50%);
    width: var(--gap, 1.5rem);         /* = ancho EXACTO del gap (no invade vecinas) */
    height: 4px;
    border-radius: 4px;
    z-index: 1;
    pointer-events: none;
    /* Dos capas: 1) pulso brillante en movimiento  2) "cable" verde tenue de base */
    background:
        linear-gradient(90deg, transparent 0%, var(--av-verde) 35%, #ffffff 50%, var(--av-verde) 65%, transparent 100%),
        rgba(62,203,160,0.22);
    background-size: 55% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-position: -60% 0, 0 0;
    animation: energiaH 2.6s linear infinite;
}
@keyframes energiaH {
    from { background-position: -60% 0, 0 0; }
    to   { background-position: 160% 0, 0 0; }
}

/* ---------- CONECTOR VERTICAL (::before) — SOLO BENEFICIOS ---------- */
.benefit-item::before {
    content: '';
    position: absolute;
    left: 50%;                         /* CENTRADO en el ancho de la tarjeta */
    top: 100%;                         /* nace en el borde inferior */
    transform: translateX(-50%);
    width: 4px;
    height: var(--gap, 2.5rem);        /* = alto EXACTO del gap entre filas */
    border-radius: 4px;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 0%, var(--av-verde) 35%, #ffffff 50%, var(--av-verde) 65%, transparent 100%),
        rgba(62,203,160,0.22);
    background-size: 100% 55%, 100% 100%;
    background-repeat: no-repeat;
    background-position: 0 -60%, 0 0;
    animation: energiaV 2.6s linear infinite;
}
@keyframes energiaV {
    from { background-position: 0 -60%, 0 0; }
    to   { background-position: 0 160%, 0 0; }
}

/* ══════ ESCRITORIO GRANDE (≥1200px) ══════ */
@media (min-width: 1200px) {
    /* NOSOTROS = 1 fila de 4 -> ocultar la línea después de la última tarjeta */
    .mv-card:nth-child(4n)::after { display: none; }

    /* BENEFICIOS = cuadrícula 2x2 */
    .benefit-item:nth-child(2n)::after   { display: none; } /* columna derecha: nada a su derecha */
    .benefit-item:nth-child(n+3)::before { display: none; } /* fila inferior: nada hacia abajo  */
}

/* ══════ TABLET (992px – 1199.98px) ══════ */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* NOSOTROS pasa a 2 columnas: línea horizontal solo entre columnas */
    .mv-card:nth-child(2n)::after { display: none; }

    /* BENEFICIOS sigue siendo 2x2 */
    .benefit-item:nth-child(2n)::after   { display: none; }
    .benefit-item:nth-child(n+3)::before { display: none; }
}

/* ══════ MÓVIL (≤991.98px): todo en 1 columna -> conectores VERTICALES ══════ */
@media (max-width: 991.98px) {
    /* NOSOTROS: reutilizamos ::after como conector VERTICAL (cae a la tarjeta siguiente) */
    .mv-card::after {
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: var(--gap, 2rem);
        background:
            linear-gradient(180deg, transparent 0%, var(--av-verde) 35%, #ffffff 50%, var(--av-verde) 65%, transparent 100%),
            rgba(62,203,160,0.22);
        background-size: 100% 55%, 100% 100%;
        background-position: 0 -60%, 0 0;
        animation: energiaV 2.6s linear infinite;
    }
    .mv-card:last-child::after { display: none; }

    /* BENEFICIOS: basta el conector vertical ::before; ocultamos el horizontal */
    .benefit-item::after { display: none; }
    .benefit-item:last-child::before { display: none; }
}

/* Respeto a usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .mv-card::after, .benefit-item::after, .benefit-item::before { animation: none; }
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1199.98px) {
    .nav-columns { grid-template-columns: repeat(3, 1fr); }
    .nav-col:nth-child(n+4) { border-left: none; padding-left: 0; }
    /* NUEVO: Las 4 columnas de Nosotros pasan a ser 2 en pantallas medianas */
    .mv-grid-4 { grid-template-columns: repeat(2, 1fr); --gap: 2rem; gap: var(--gap); }
}

@media (max-width: 991.98px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { display: none; }
    .quees-grid { grid-template-columns: 1fr; }
    
    /* NUEVO: En tablets/móviles, la grilla de Nosotros pasa a ser 1 sola columna vertical */
    .mv-grid-4 { grid-template-columns: 1fr; }
    
    .benefit-grid { grid-template-columns: 1fr; }
    .benefit-item { border-right: none; }
    .benefit-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--av-border); }
    .benefit-item:last-child { border-bottom: none; }
    .proceso-grid { grid-template-columns: repeat(2, 1fr); }
    .sedes-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .nav-columns { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .nav-col-sep { border-left: none; padding-left: 0; }
    .nav-overlay-body { flex: none; padding-top: calc(var(--nav-h) + 1.5rem); }
    .nav-bigtype { font-size: clamp(3rem, 16vw, 7rem); }
}

@media (max-width: 575.98px) {
    :root { --nav-h: 72px; }
    .nav-cta-pill, .nav-wa-pill { display: none !important; }
    .hero-title { font-size: clamp(2.4rem, 12vw, 3.6rem); letter-spacing: -1px; }
    .hero-stats { gap: 1.2rem; }
    .stat-divider { display: none; }
    .proceso-grid { grid-template-columns: 1fr; }
    .sedes-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom .footer-legal a { margin: 0 0.6rem; }
    .cta-inner { flex-direction: column; text-align: center; }
    .nav-columns { grid-template-columns: 1fr; }
    .nav-bigtype-wrap { display: none; }
    .nav-overlay-footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .nav-footer-info { text-align: left; }
    .whatsapp-float { width: 56px; height: 56px; font-size: 27px; bottom: 22px; right: 22px; }
    .scroll-to-top { bottom: 90px; right: 22px; }
    .btn-av-primary, .btn-av-ghost { padding: 0.9rem 1.6rem; font-size: 0.64rem; }
}

@media (min-width: 1920px) {
    .container-av { max-width: 1820px; }
    .hero-title { font-size: 7.5rem; }
}

@media print {
    .navbar-av, .nav-overlay, .whatsapp-float, .scroll-to-top, .hero-scroll, #av-loader { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ════════════════════════════════════════
   COMPLEMENTO: PANTALLAS GRANDES (100vh)
════════════════════════════════════════ */
@media (min-width: 1400px) and (min-height: 800px) {
    #proceso,
    #sedes,
    #testimonios,
    #faq,
    #contacto {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding-top: calc(var(--nav-h) + 1rem);
        padding-bottom: 2rem;
    }
    
    #proceso .container-av, 
    #sedes .container-av, 
    #testimonios .container-av, 
    #faq .container-av, 
    #contacto .container-av {
        width: 100%; 
    }
}