/* ================================================================
   IST SIGMA · CSS propio (sin framework)
   Bootstrap Icons solo para iconos.
   GSAP + ScrollTrigger gestionan los reveals (.rv).
   El scroll suave usa comportamiento nativo del navegador.
   ================================================================ */

/* ─── Variables ───────────────────────────────────────────────── */
:root {
    --navy: #0F0E1E;
    --teal: #009B8B;
    --teal-dark: #087A70;
    --gray-100: #F3F4F6;
    --gray-600: #4B5563;
    --teal-50: #DDF4F1;
    --white: #fff;
    --teal-light: #2DD4BF;
    --font-title: 'Sora', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --radius: 1.5rem;
    --shadow: 0 14px 36px rgba(15, 14, 30, .10);
    --ease: cubic-bezier(.2, .8, .2, 1)
}

/* ─── Reset mínimo ────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem
}

body {
    margin: 0;
    font: 400 1rem/1.65 var(--font-body);
    color: var(--navy);
    background: #fff;
    -webkit-font-smoothing: antialiased
}

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

h1,
h2,
h3,
p,
ul,
figure {
    margin: 0
}

ul {
    padding: 0;
    list-style: none
}

h1,
h2,
h3 {
    font-family: var(--font-title);
    line-height: 1.12;
    letter-spacing: -.02em
}

h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    font-weight: 400;
    margin-bottom: 1rem
}

.accent {
    color: var(--teal);
    font-weight: 700
}

.mission-section .accent,
.why .accent { color: var(--teal-light) }

h3 {
    font-size: 1.15rem
}

p {
    color: var(--gray-600)
}

a {
    color: inherit
}

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px
}

/* ─── Layout base ─────────────────────────────────────────────── */
.container {
    width: min(1180px, 100% - 2.5rem);
    margin-inline: auto
}

.skip-link {
    position: fixed;
    left: .75rem;
    top: -4rem;
    z-index: 3100;
    background: var(--navy);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: .5rem
}

.skip-link:focus {
    top: .75rem
}

.scroll-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 1200;
    width: 100%;
    height: 3px;
    background: var(--teal-light);
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none
}

section {
    padding: clamp(3.5rem, 8vw, 6.5rem) 0
}

/* ─── Etiqueta eyebrow ────────────────────────────────────────── */
.eyebrow {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 1rem
}

.eyebrow--dark { color: var(--teal-light) }

.eyebrow--dark {
    background: rgba(255, 255, 255, .1);
    color: var(--teal-50)
}

/* ─── Botones: efecto "puertas de ascensor" al hover/focus ──────
   Dos mitades (::before y ::after) se cierran desde los lados
   con el color --door; el texto cambia a --fg-hover.
   ─────────────────────────────────────────────────────────────── */
.btn {
    --door: var(--navy);
    --fg-hover: #fff;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font: 600 1rem var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: color .3s .1s, transform .25s var(--ease), box-shadow .25s
}

.btn::before,
.btn::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50.5%;
    background: var(--door);
    z-index: -1;
    transition: transform .45s var(--ease)
}

.btn::before {
    left: 0;
    transform: translateX(-101%)
}

.btn::after {
    right: 0;
    transform: translateX(101%)
}

.btn:hover::before,
.btn:hover::after,
.btn:focus-visible::before,
.btn:focus-visible::after {
    transform: none
}

.btn:hover,
.btn:focus-visible {
    color: var(--fg-hover)
}

.btn i {
    transition: transform .25s var(--ease)
}

.btn:hover i.bi-arrow-right {
    transform: translateX(5px)
}

/* Variantes de botón */
.btn--cta {
    background: var(--teal);
    color: var(--navy);
    box-shadow: 0 8px 20px rgba(0, 155, 139, .3)
}

.btn--white {
    background: #fff;
    color: var(--navy)
}

.btn--ghost {
    border-color: var(--navy);
    color: var(--navy);
    background: transparent
}

.btn--ghost-light {
    border-color: #fff;
    color: #fff;
    --door: #fff;
    --fg-hover: var(--navy)
}

.btn--dark {
    background: var(--navy);
    color: #fff;
    --door: var(--teal-dark)
}

.btn--sm {
    padding: .55rem 1.1rem;
    font-size: .95rem
}

.btn--lg {
    padding: 1rem 1.8rem;
    font-size: 1.05rem
}

.btn--soft {
    background: var(--teal-50);
    color: var(--navy);
    --door: var(--teal);
    --fg-hover: var(--navy)
}

/* ─── Enlace "más" con flecha ─────────────────────────────────── */
.more {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    font-weight: 600;
    color: var(--teal-dark);
    text-decoration: none
}

.more i {
    transition: transform .25s var(--ease)
}

.more:hover {
    color: var(--navy)
}

.more:hover i {
    transform: translateX(4px)
}

/* ─── PRELOADER ───────────────────────────────────────────────── */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 60%, rgba(0,155,139,.08) 0%, transparent 65%), var(--navy);
    overflow: hidden
}

body.preloading {
    overflow: hidden
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    z-index: 2
}

.preloader-icon {
    width: 110px;
    border-radius: 12%;
    height: auto;
    opacity: 0
}

.preloader-text {
    display: flex;
    font: 700 clamp(1.6rem,6vw,3rem)/1 'Unbounded', var(--font-title), sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase
}

.pl-letter {
    display: inline-block;
    opacity: 0;
    color: #fff
}

.pl-letter[data-teal] {
    color: var(--teal)
}

.preloader-bar-wrap {
    width: min(16rem, 60vw);
    height: 3px;
    border-radius: 3px;
    background: rgba(255,255,255,.12);
    overflow: hidden;
    margin-top: .5rem
}

.preloader-bar {
    height: 100%;
    width: 0%;
    background: var(--teal);
    border-radius: 3px
}

.preloader-pct {
    font: 700 clamp(.85rem,2vw,1rem)/1 'Unbounded', var(--font-title), sans-serif;
    color: rgba(255,255,255,.5);
    letter-spacing: .05em;
    margin-top: .15rem
}

/* Curtain panels for exit reveal */
.preloader-curtain {
    position: absolute;
    left: 0;
    right: 0;
    height: 50%;
    background: var(--navy);
    z-index: 1
}

.preloader-curtain--top { top: 0 }
.preloader-curtain--bot { bottom: 0 }

/* ─── ENCABEZADO FIJO ─────────────────────────────────────────── */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    transition: box-shadow .3s
    transform .35s var(--ease)
}

.site-header.is-hidden { transform: translateY(-100%) }

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(15, 14, 30, .1)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem
}

.brand img {
    height: 42px;
    width: auto
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 1.75rem
}

.nav-panel ul {
    display: flex;
    gap: 1.5rem
}

.nav-panel li a {
    text-decoration: none;
    font-weight: 500;
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s
}

.nav-panel li a:hover,
.nav-panel li a.active {
    color: var(--teal-dark);
    border-color: var(--teal)
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 2rem;
    color: var(--navy);
    cursor: pointer;
    line-height: 1
}

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
    padding: 0;
    background: var(--navy)
}

.slides {
    display: grid
}

.slide {
    grid-area: 1/1;
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(600px, 92svh, 820px);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    z-index: 0
}

/* Saliente: se mantiene opaca debajo mientras la entrante aparece */
.slide.is-leaving {
    opacity: 1;
    visibility: visible;
    z-index: 1
}

/* Entrante: fundido de 1.2 s por encima */
.slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition: opacity 1.2s ease-in-out
}

/* Foto de fondo a pantalla completa */
.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% center
}

/* Ken Burns: zoom lento solo en diapositivas con foto (no en la de recorte) */
@keyframes kenBurns {
    from {
        transform: scale(1)
    }

    to {
        transform: scale(1.07)
    }
}

.slide.is-active:not(.slide--cut) .slide-bg,
.slide.is-leaving:not(.slide--cut) .slide-bg {
    animation: kenBurns 8s ease-out forwards
}

/* Diapositiva 3: recorte de chica sobre degradado gris */
.slide--cut {
    background: linear-gradient(135deg, #e9ecf1, #c9ced7)
}

.slide--cut .slide-bg {
    object-fit: contain;
    object-position: 80% bottom
}

/* Curva turquesa oscura a la izquierda (el bloque con el texto) */
.slide::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 68%;
    background: rgba(8, 122, 112, .94);
    border-radius: 0 999px 999px 0;
    z-index: 1
}

.slide-inner {
    position: relative;
    z-index: 2;
    padding-block: 6.5rem 3rem
}

.slide-text {
    max-width: 35rem;
    color: #fff
}

.slide-text p {
    color: rgba(255, 255, 255, .93)
}

.slide-text .eyebrow {
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .85rem;
    letter-spacing: 0;
    text-transform: none;
}

.hero-title {
    font-size: clamp(2.1rem, 4.8vw, 3.7rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #fff
}

.hero-title em {
    font-style: normal;
    color: var(--teal-50)
}

.lead {
    font-size: 1.15rem;
    max-width: 32rem;
    margin-bottom: 2rem
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem
}

/* Texto del hero: entra con opacidad + desplazamiento DESPUÉS del fundido.
   La clase body.preloading mantiene el texto oculto durante el preloader. */
.rt {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease) var(--d, 0s), transform .5s var(--ease) var(--d, 0s)
}

.slide.is-active .rt {
    opacity: 1;
    transform: none
}

body.preloading .slide.is-active .rt {
    opacity: 0;
    transform: translateY(16px)
}

/* Texto saliente: se va rápido y sin delays */
.slide.is-leaving .rt {
    opacity: 0;
    transform: none;
    transition: opacity .3s ease, transform .3s ease
}

/* Texto entrante en los cambios: espera a que la imagen ya esté al ~60 % del fundido */
.hero.is-cycling .slide.is-active .rt {
    transition-delay: calc(var(--d, 0s) + .6s), calc(var(--d, 0s) + .6s)
}

/* ─── NOSOTROS ────────────────────────────────────────────────── */
.about {
    background: var(--gray-100)
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center
}

.split--top {
    align-items: start
}

.about p+p {
    margin-top: 1rem
}

.about .more {
    margin-top: 1.5rem
}

.about-img img {
    border-radius: var(--radius) var(--radius) var(--radius) 4rem;
    box-shadow: var(--shadow)
}

.about-img {
    position: relative
}

.about-img img { will-change: transform }

.stats { background: var(--teal-50) }

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

.stat {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .5rem;
    color: var(--navy);
    text-align: center
}

.stat strong {
    color: var(--teal-dark);
    font: 700 clamp(1.7rem, 3.5vw, 2.6rem)/1 var(--font-title);
    white-space: nowrap
}

.marquee {
    overflow: hidden;
    padding: 1rem 0;
    background: var(--teal);
    color: var(--navy)
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite
}

.marquee-track span {
    flex: none;
    padding-right: 1rem;
    font: 700 1.15rem/1.5 var(--font-title);
    white-space: nowrap
}

.marquee:hover .marquee-track { animation-play-state: paused }

@keyframes marquee-scroll { to { transform: translateX(-50%) } }

/* Filete decorativo turquesa detrás de la foto */
.about-img::after {
    content: "";
    position: absolute;
    left: -1rem;
    bottom: -1rem;
    width: 55%;
    height: 55%;
    border-radius: var(--radius);
    background: var(--teal-50);
    z-index: -1
}

/* ─── MISIÓN Y VISIÓN ─────────────────────────────────────────── */
.mission-section {
    background: var(--navy);
    color: #fff
}

.mission-section .head h2 {
    color: #fff
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem
}

.mission-card {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .05)
}

.mission-icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--teal);
    color: var(--navy);
    font-size: 1.6rem;
    margin-bottom: 1.25rem
}

.mission-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: .75rem
}

.mission-card p {
    color: #cbd5e1;
    line-height: 1.75;
    font-size: .97rem
}

/* ─── ÁREAS ───────────────────────────────────────────────────── */
.head {
    max-width: 42rem;
    margin-bottom: 2.5rem
}

.head--row {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap
}

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

/* Tarjeta de área: imagen de fondo, icono, hover amplía */
.area {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    border-radius: 1rem;
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow);
    transition: transform .35s var(--ease), box-shadow .35s
}

.area:hover {
    transform: scale(1.035);
    box-shadow: 0 22px 46px rgba(15, 14, 30, .28)
}

.area-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .6s var(--ease)
}

.area:hover .area-bg {
    transform: scale(1.08)
}

/* Gradiente oscuro sobre la imagen */
.area::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(15, 14, 30, .35) 0, rgba(15, 14, 30, .9) 100%)
}

.area-icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin: 1.5rem 0 0 1.5rem;
    border-radius: 1rem;
    background: rgba(15, 14, 30, .6);
    backdrop-filter: blur(4px);
    color: var(--teal);
    font-size: 1.8rem
}

.area-body {
    margin-top: auto;
    padding: 1.5rem
}

.area-label {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--teal-50);
    margin-bottom: .4rem
}

.area h3 {
    font-size: 1.4rem;
    margin-bottom: .5rem;
    color: #fff
}

.area-body p:not(.area-label) {
    color: rgba(255, 255, 255, .9);
    font-size: .95rem
}

.area .more {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .25);
    background: rgba(15, 14, 30, .4);
    color: #fff
}

.area .more i {
    color: var(--teal)
}

.area .more:hover {
    color: var(--teal-50)
}

/* ─── CURSOS DESTACADOS ───────────────────────────────────────── */
.courses-section {
    background: var(--teal-50)
}

.courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1.25rem
}

.course-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: -1rem 0 1.5rem
}

.chip {
    padding: .55rem 1rem;
    border: 1px solid rgba(15, 14, 30, .2);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font: 600 .9rem var(--font-body);
    cursor: pointer
}

.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy) }
.course[hidden] { display: none }

.signup-section { background: #fff }

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0;
    list-style: none
}

.step {
    min-height: 10rem;
    padding: 1.4rem;
    border-radius: var(--radius);
    background: var(--teal-50)
}

.step-number { display: block; margin-bottom: 1.2rem; color: var(--teal-dark); font: 700 1.5rem var(--font-title) }

.faq-section { background: var(--gray-100) }
.faq-list { display: grid; gap: .75rem; max-width: 850px }
.faq-item { padding: 1.1rem 1.3rem; border-radius: .8rem; background: #fff }
.faq-item summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-weight: 700; cursor: pointer; list-style: none }
.faq-item summary::-webkit-details-marker { display: none }
.faq-item summary::after { content: "+"; color: var(--teal-dark); font-size: 1.5rem; transition: transform .2s ease }
.faq-item[open] summary::after { content: "×"; transform: rotate(90deg) }
.faq-item p { margin-top: .75rem }

.course {
    display: flex;
    gap: 1.1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(15, 14, 30, .06);
    transition: transform .25s var(--ease), box-shadow .25s
}

.course:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow)
}

.thumb {
    flex: none;
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 1.1rem;
    background: var(--navy);
    color: var(--teal);
    font-size: 1.6rem
}

.tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--teal-dark);
    background: var(--teal-50);
    padding: .15rem .7rem;
    border-radius: 999px;
    margin-bottom: .5rem
}

.course h3 {
    margin-bottom: .4rem
}

.meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    color: var(--navy);
    margin-bottom: .6rem
}

.meta i {
    color: var(--teal-dark)
}

.meta i+* {
    margin-right: .6rem
}

.course p:not(.meta) {
    font-size: .95rem;
    margin-bottom: .9rem
}

/* ─── VENTAJAS ────────────────────────────────────────────────── */
.why {
    background: var(--navy);
    color: #fff
}

.why h2 {
    color: #fff
}

.why header {
    position: sticky;
    top: 6rem
}

.advs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.adv {
    padding: 1.6rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04)
}

/* Desplazamiento escalonado visual de las tarjetas impares */
.adv:nth-child(even) {
    transform: translateY(1.5rem)
}

.adv i {
    font-size: 1.8rem;
    color: var(--teal)
}

.adv h3 {
    color: #fff;
    margin: .7rem 0 .4rem
}

.adv p {
    color: #cbd5e1;
    font-size: .95rem
}

/* ─── CONTACTO / FORMULARIO ───────────────────────────────────── */
.contact {
    padding-top: clamp(5rem, 10vw, 8rem)
}

.panel {
    display: grid;
    grid-template-columns: .8fr 1.4fr;
    gap: 2.5rem;
    align-items: end;
    background: var(--teal-50);
    border-radius: 2.5rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    position: relative
}

.panel-img {
    margin-top: -7rem;
    max-height: 520px;
    width: auto;
    margin-inline: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.panel-body p {
    margin-bottom: 1.5rem
}

/* Formulario en grid de 2 columnas */
.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.form label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-weight: 600;
    font-size: .9rem
}

.form .full {
    grid-column: 1/-1
}

.form input,
.form select,
.form textarea {
    font: 400 1rem var(--font-body);
    padding: .85rem 1rem;
    border: 2px solid transparent;
    border-radius: .9rem;
    background: #fff;
    color: var(--navy)
}

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

.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: var(--teal);
    outline: none
}

/* Mensaje de error de validación */
.err {
    display: none;
    font-weight: 500;
    font-size: .85rem;
    color: #b42318
}

.was-validated :invalid {
    border-color: #b42318
}

.was-validated :invalid~.err {
    display: block
}

/* Checkbox de privacidad */
.privacy-wrap {
    display: flex;
    flex-direction: column;
    gap: .35rem
}

.privacy-label {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: .65rem;
    font-weight: 400 !important;
    font-size: .9rem;
    line-height: 1.5;
    cursor: pointer
}

.privacy-label input[type="checkbox"] {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: .18rem;
    accent-color: var(--teal);
    cursor: pointer
}

.login-link {
    text-align: center;
    color: var(--teal-dark);
    font-weight: 600;
    text-decoration: none
}

.login-link:hover {
    text-decoration: underline
}

/* ─── PIE DE PÁGINA ───────────────────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: #cbd5e1;
    padding: 3.5rem 0 1.5rem
}

/* Grid: logo+redes / navegación / contacto */
.foot {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1.1fr;
    gap: 2rem;
    align-items: start
}

.site-footer h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem
}

.foot-brand p {
    color: #cbd5e1;
    margin-top: 1rem;
    font-size: .95rem
}

.site-footer li {
    margin-bottom: .5rem
}

.site-footer a {
    text-decoration: none
}

.site-footer a:hover {
    color: var(--teal);
    text-decoration: underline
}

/* Iconos de redes sociales */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.25rem
}

.social-links a {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .6rem;
    background: rgba(255, 255, 255, .08);
    color: #cbd5e1;
    font-size: 1.1rem;
    text-decoration: none !important;
    transition: background .25s, color .25s
}

.social-links a:hover {
    background: var(--teal);
    color: var(--navy);
    text-decoration: none !important
}

/* Lista de contacto en el footer (dos números WA) */
.contact-list li {
    margin-bottom: 1.1rem
}

.contact-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .45);
    margin-bottom: .25rem
}

.contact-list a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 500
}

.contact-list a i {
    color: #25D366
}

.copy {
    grid-column: 1/-1;
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: .9rem
}

/* ─── BOTÓN FLOTANTE WHATSAPP ──────────────────────────────────── */
.wa-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1100;
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background: #25D366;
    color: var(--navy);
    font-size: 1.9rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
    transition: transform .25s var(--ease)
}

.wa-float:hover {
    transform: scale(1.1)
}

/* ─── REVEALS AL SCROLL (.rv) ────────────────────────────────────
   GSAP se encarga de la animación (opacity + translateY).
   Aquí solo establecemos el estado inicial invisible.
   El transform: translateY(20px) coincide con el estado inicial
   que GSAP aplica al arrancar, evitando el salto visual.
   ─────────────────────────────────────────────────────────────── */
.rv { opacity: 0 }
/* Mientras GSAP anima, sin transiciones CSS (si no, se siente lento) */
.rv:not(.is-in) { transition: none !important }

/* ─── RESPONSIVE: tabletas ────────────────────────────────────── */
@media (max-width: 991.98px) {
    .nav-toggle {
        display: block
    }

    .nav-panel {
        position: absolute;
        inset: 4.5rem 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem;
        background: #fff;
        box-shadow: 0 14px 24px rgba(15, 14, 30, .12);
        display: none
    }

    .nav-panel.is-open {
        display: flex
    }

    .nav-panel ul {
        flex-direction: column;
        gap: .5rem
    }

    .nav-panel li a {
        display: block;
        padding: .6rem 0
    }

    /* Hero en móvil: la curva turquesa cubre todo el ancho */
    .slide::before {
        width: 100%;
        border-radius: 0;
        background: rgba(8, 122, 112, .88)
    }

    .slide--cut .slide-bg {
        object-position: right bottom
    }

    .split,
    .panel,
    .foot {
        grid-template-columns: 1fr
    }

    .why header {
        position: static
    }

    .adv:nth-child(even) { 
        top: 0 
    }

    .areas {
        grid-template-columns: 1fr 1fr
    }

    .mission-grid {
        grid-template-columns: 1fr
    }

    .steps { grid-template-columns: repeat(2, 1fr) }

    .panel-img {
        margin-top: -5rem;
        max-height: 340px
    }
}

/* ─── RESPONSIVE: móviles ─────────────────────────────────────── */
@media (max-width: 575.98px) {

    .areas,
    .advs,
    .form,
    .steps,
    .stats-grid {
        grid-template-columns: 1fr
    }

    .stat { justify-content: flex-start; text-align: left }

    .area {
        min-height: 360px
    }

    .actions .btn,
    .head--row .btn {
        width: 100%
    }
}

/* ─── PREFERENCIA DE MOVIMIENTO REDUCIDO ─────────────────────────
   Desactiva todas las animaciones y transiciones.
   Los elementos .rv y .rt se muestran directamente visibles.
   ─────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important
    }

    .preloader-icon,
    .pl-letter {
        opacity: 1;
        transform: none
    }

    .rv,
    .rt {
        opacity: 1 !important;
        transform: none !important;
        translate: none !important
    }

    .marquee-track { animation: none !important }
}
