/* ==========================================================================
   ServerAulix · Presentación (apertura + landing)
   Modelo: hero con título grande, botón principal único, enlace secundario,
   imagen a la derecha y cifras clave, adaptado a la paleta ServerAulix.
   ========================================================================== */

@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

:root {
    --navy: #0b1f3a;
    --navy-2: #0b2540;
    --verde: #0b5e73;
    --esmeralda: #0e7490;
    --esmeralda-2: #12806f;
    --oro: #f5a524;
    --oro-2: #e3c27f;
    --crema: #f3f7fa;
    --crema-2: #f1ead8;
    --menta: #e3f3f8;
    --tinta: #0b2540;
    --gris: #56657a;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body.landing {
    margin: 0;
    color: var(--tinta);
    background: var(--crema);
    font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.landing--apertura { overflow: hidden; }

a { color: inherit; }

code {
    padding: 1px 6px;
    border-radius: 5px;
    color: var(--verde);
    background: var(--menta);
    font-size: 0.86em;
}

.l-contenedor { width: min(1180px, 90%); margin: 0 auto; }

/* ------------------------------------------------------------------ */
/* Apertura                                                            */
/* ------------------------------------------------------------------ */

.apertura {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.apertura-cortina {
    position: absolute;
    left: 0;
    right: 0;
    height: 50.5%;
    background: var(--navy);
    transition: transform 0.85s var(--ease);
}

.apertura-cortina--arriba { top: 0; }
.apertura-cortina--abajo { bottom: 0; }

.apertura-cortina--abajo::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -40%;
    width: 120vmax;
    height: 120vmax;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 116, 144, 0.35), transparent 60%);
}

.apertura-escena {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.35s ease, transform 0.6s var(--ease);
}

.apertura-isotipo {
    position: relative;
    width: 128px;
    opacity: 0;
    transform: translateY(26px) scale(0.86);
    clip-path: inset(100% 0 0 0);
}

.apertura-isotipo img { display: block; width: 100%; height: auto; }

.apertura-destello {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%);
    mix-blend-mode: overlay;
    transform: translateX(-120%);
}

.apertura-marca {
    display: flex;
    margin: 22px 0 0;
    color: #ffffff;
    font-size: clamp(34px, 6vw, 52px);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
}

.ap-l {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.6em);
}

.ap-b { font-weight: 800; }
.ap-a { color: var(--esmeralda-2); }

.apertura-linea {
    display: block;
    width: 0;
    height: 3px;
    margin-top: 18px;
    border-radius: 3px;
    background: var(--oro);
}

.apertura-lema {
    margin: 14px 0 0;
    color: #c9d4e6;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    opacity: 0;
}

.apertura-saltar {
    position: absolute;
    right: 26px;
    bottom: 24px;
    z-index: 3;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #dbe3f0;
    background: transparent;
    font: 600 12px "Montserrat", sans-serif;
    cursor: pointer;
}

.apertura-saltar:hover { color: #ffffff; border-color: var(--oro); }

/* secuencia */
.apertura--activa .apertura-isotipo { animation: isotipoEntra 0.9s var(--ease) 0.15s forwards; }
.apertura--activa .apertura-destello { animation: destello 0.9s ease 0.95s forwards; }
.apertura--activa .ap-l { animation: letraEntra 0.6s var(--ease) forwards; }
.apertura--activa .ap-l:nth-child(1) { animation-delay: 0.75s; }
.apertura--activa .ap-l:nth-child(2) { animation-delay: 0.79s; }
.apertura--activa .ap-l:nth-child(3) { animation-delay: 0.83s; }
.apertura--activa .ap-l:nth-child(4) { animation-delay: 0.87s; }
.apertura--activa .ap-l:nth-child(5) { animation-delay: 0.91s; }
.apertura--activa .ap-l:nth-child(6) { animation-delay: 0.95s; }
.apertura--activa .ap-l:nth-child(7) { animation-delay: 1.05s; }
.apertura--activa .ap-l:nth-child(8) { animation-delay: 1.09s; }
.apertura--activa .ap-l:nth-child(9) { animation-delay: 1.13s; }
.apertura--activa .ap-l:nth-child(10) { animation-delay: 1.17s; }
.apertura--activa .ap-l:nth-child(11) { animation-delay: 1.21s; }
.apertura--activa .apertura-linea { animation: lineaCrece 0.7s var(--ease) 1.4s forwards; }
.apertura--activa .apertura-lema { animation: aparece 0.6s ease 1.65s forwards; }

.apertura--sale { pointer-events: none; }
.apertura--sale .apertura-escena { opacity: 0; transform: scale(0.96); }
.apertura--sale .apertura-cortina--arriba { transform: translateY(-101%); transition-delay: 0.12s; }
.apertura--sale .apertura-cortina--abajo { transform: translateY(101%); transition-delay: 0.12s; }
.apertura--sale .apertura-saltar { opacity: 0; }

@keyframes isotipoEntra {
    to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
@keyframes destello { to { transform: translateX(120%); } }
@keyframes letraEntra { to { opacity: 1; transform: none; } }
@keyframes lineaCrece { to { width: 180px; } }
@keyframes aparece { to { opacity: 1; } }

/* entrada del contenido tras la apertura */
.landing .l-nav,
.landing .hero-texto > *,
.landing .hero-visual {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.8s var(--ease);
}

.landing--lista .l-nav,
.landing--lista .hero-texto > *,
.landing--lista .hero-visual { opacity: 1; transform: none; }

.landing--lista .l-nav { transition-delay: 0.25s; }
.landing--lista .hero-texto > :nth-child(2) { transition-delay: 0.35s; }
.landing--lista .hero-texto > :nth-child(3) { transition-delay: 0.42s; }
.landing--lista .hero-texto > :nth-child(4) { transition-delay: 0.5s; }
.landing--lista .hero-texto > :nth-child(5) { transition-delay: 0.58s; }
.landing--lista .hero-texto > :nth-child(6) { transition-delay: 0.66s; }
.landing--lista .hero-visual { transition-delay: 0.45s; transition-duration: 0.9s, 1.1s; }

/* ------------------------------------------------------------------ */
/* Navegación                                                          */
/* ------------------------------------------------------------------ */

.l-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(243, 247, 250, 0.86);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.25s ease;
}

.nav-sombra .l-nav { box-shadow: 0 6px 24px rgba(11, 31, 58, 0.08); }

.l-nav-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.l-marca {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-size: 21px;
    font-weight: 500;
    text-decoration: none;
}

.l-marca img { width: 40px; height: auto; }
.l-marca b { font-weight: 800; }

.l-enlaces { display: flex; gap: 34px; }

.l-enlaces a {
    position: relative;
    padding: 6px 0;
    color: #34445c;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.l-enlaces a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    border-radius: 3px;
    background: var(--esmeralda);
    transform: scaleX(0);
    transition: transform 0.25s var(--ease);
}

.l-enlaces a:hover { color: var(--navy); }
.l-enlaces a.activo { color: var(--navy); font-weight: 600; }

.l-enlaces a.activo::after { transform: scaleX(1); }

.l-acciones { display: flex; align-items: center; gap: 22px; }

.l-texto {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.l-texto:hover { color: var(--esmeralda); }

.l-btn {
    display: inline-flex;
    min-height: 48px;
    padding: 0 28px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease;
}

.l-btn:hover { transform: translateY(-2px); }

.l-btn--pill {
    min-height: 46px;
    color: #ffffff;
    background: var(--esmeralda);
    box-shadow: 0 10px 22px rgba(14, 116, 144, 0.25);
}

.l-btn--pill:hover { background: var(--verde); }

.l-btn--oro {
    min-height: 54px;
    padding: 0 34px;
    color: var(--navy);
    background: var(--oro);
    box-shadow: 0 12px 26px rgba(217, 138, 11, 0.32);
}

.l-btn--oro:hover { background: var(--oro-2); }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero { position: relative; padding: 34px 0 70px; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
}

.hero-texto { position: relative; }

.doodle { fill: none; stroke-linecap: round; stroke-linejoin: round; }

.doodle-rayos {
    position: absolute;
    top: -26px;
    left: -36px;
    width: 46px;
    stroke: var(--oro);
    stroke-width: 4;
}

.hero-chip {
    display: inline-flex;
    padding: 8px 14px;
    align-items: center;
    gap: 9px;
    border: 1px solid #e3dcc7;
    border-radius: 999px;
    color: var(--verde);
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.punto-vivo {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22b07d;
}

.punto-vivo::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(34, 176, 125, 0.45);
    animation: pulso 1.8s ease-out infinite;
}

@keyframes pulso { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.hero h1 {
    margin: 22px 0 0;
    color: var(--navy);
    font-size: clamp(32px, 3.9vw, 52px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.16;
}

.hero h1 b {
    color: var(--esmeralda);
    font-weight: 800;
}

.subrayado {
    position: relative;
    display: inline-block;
    font-weight: 800;
}

.subrayado svg {
    position: absolute;
    left: -2%;
    bottom: -10px;
    width: 104%;
    height: 16px;
    overflow: visible;
}

.subrayado path {
    fill: none;
    stroke: var(--oro);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
}

.landing--lista .subrayado path { animation: trazo 1s var(--ease) 0.9s forwards; }

@keyframes trazo { to { stroke-dashoffset: 0; } }

.hero-bajada {
    max-width: 520px;
    margin: 26px 0 0;
    color: var(--gris);
    font-size: 16px;
    line-height: 1.7;
}

.hero-botones {
    position: relative;
    display: flex;
    margin-top: 34px;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.l-play {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.l-play-icono {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 2px solid var(--esmeralda);
    border-radius: 50%;
    transition: background 0.2s ease;
}

.l-play-icono svg { width: 18px; fill: var(--esmeralda); }
.l-play:hover .l-play-icono { background: var(--esmeralda); }
.l-play:hover .l-play-icono svg { fill: #ffffff; }

.doodle-garabato {
    width: 120px;
    stroke: var(--oro);
    stroke-width: 3.5;
    opacity: 0.9;
}

.hero-cifras {
    display: flex;
    margin: 46px 0 0;
    gap: 58px;
}

.hero-cifras div { margin: 0; }

.hero-cifras dt {
    color: var(--navy);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-cifras dt.cifra::after { content: " +"; font-weight: 600; }

.hero-cifras dd {
    margin: 6px 0 0;
    color: var(--gris);
    font-size: 14px;
    font-weight: 500;
}

/* visual de la derecha */

.hero-visual {
    position: relative;
    min-height: 480px;
}

.hero-fondo {
    position: absolute;
    inset: 40px 0 30px 28px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.55), transparent 42%),
        linear-gradient(135deg, #cfe7df 0%, #e9f3ee 38%, #f6e7c4 72%, #ecc982 100%);
    transform: perspective(1200px) rotateY(-10deg) rotateZ(-4deg) skewX(-4deg);
    box-shadow: 0 30px 60px rgba(11, 31, 58, 0.12);
}

.hero-fondo::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 2px dashed rgba(14, 116, 144, 0.22);
    border-radius: 24px;
}

.ventana {
    position: absolute;
    top: 86px;
    left: 70px;
    right: 44px;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(11, 31, 58, 0.2);
    animation: flotar 6s ease-in-out infinite;
}

.ventana-barra {
    display: flex;
    padding: 13px 16px;
    align-items: center;
    gap: 6px;
    background: var(--navy);
}

.ventana-barra span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.ventana-barra span:first-child { background: var(--oro); }

.ventana-barra em {
    margin-left: 10px;
    color: #c9d4e6;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.ventana-lista { margin: 0; padding: 10px 14px; list-style: none; }

.ventana-lista li {
    display: flex;
    padding: 12px 6px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0ece2;
}

.ventana-lista li:last-child { border-bottom: 0; }

.ventana-lista li > div { flex: 1; min-width: 0; }

.ventana-lista strong {
    display: block;
    color: var(--navy);
    font-size: 13.5px;
    font-weight: 700;
}

.ventana-lista small { color: var(--gris); font-size: 11.5px; }

.ext {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.ext-pdf { color: #a3261d; background: #fdecea; }
.ext-doc { color: var(--navy-2); background: #e6ecf6; }
.ext-zip { color: #7a5512; background: #f7ecd4; }

.estrella { color: var(--oro); font-size: 18px; }

.barra {
    display: block;
    height: 6px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 6px;
    background: #ebe7dc;
}

.barra span {
    display: block;
    width: 64%;
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--esmeralda), var(--esmeralda-2));
    animation: subir 3.4s ease-in-out infinite;
}

@keyframes subir { 0% { width: 12%; } 70% { width: 92%; } 100% { width: 92%; } }

.ventana-pie {
    display: flex;
    padding: 12px 18px 16px;
    gap: 8px;
    background: #fbf9f3;
}

.permiso {
    padding: 5px 10px;
    border-radius: 6px;
    color: var(--esmeralda);
    background: var(--menta);
    font-size: 11px;
    font-weight: 700;
}

.tarjeta-cuota,
.tarjeta-sha {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(11, 31, 58, 0.16);
}

.tarjeta-cuota {
    left: 0;
    bottom: 36px;
    padding: 12px 18px 12px 12px;
    animation: flotar 6s ease-in-out -2s infinite;
}

.tarjeta-cuota svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.tarjeta-cuota circle { fill: none; stroke-width: 5; }
.tarjeta-cuota .pista { stroke: #ebe7dc; }

.tarjeta-cuota .valor {
    stroke: var(--esmeralda);
    stroke-linecap: round;
    stroke-dasharray: 113;
    stroke-dashoffset: 77;
}

.tarjeta-cuota strong { display: block; color: var(--navy); font-size: 13px; }
.tarjeta-cuota small { color: var(--gris); font-size: 11.5px; }

.tarjeta-sha {
    top: 30px;
    right: 6px;
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    animation: flotar 7s ease-in-out -4s infinite;
}

.tarjeta-sha span {
    color: var(--gris);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.tarjeta-sha code { font-size: 12px; }

.flotante {
    position: absolute;
    width: 34px;
    stroke: var(--esmeralda);
    stroke-width: 2.6;
    animation: flotar 5s ease-in-out infinite;
}

.f1 { top: 8px; left: 46%; stroke: var(--oro); }
.f2 { top: 46%; right: -14px; animation-delay: -1.5s; }
.f3 { bottom: -4px; left: 46%; stroke: var(--oro); animation-delay: -3s; }
.f4 { top: 40%; left: 6px; width: 30px; animation-delay: -2.2s; }

@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ------------------------------------------------------------------ */
/* Secciones                                                           */
/* ------------------------------------------------------------------ */

.seccion { padding: 86px 0; background: #ffffff; }
.seccion--clara { background: var(--crema); }

.seccion-cabeza { max-width: 640px; margin-bottom: 44px; }

.ceja {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--esmeralda);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ceja--clara { color: var(--oro); }

.seccion h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.seccion-cabeza p {
    margin: 14px 0 0;
    color: var(--gris);
    font-size: 15.5px;
    line-height: 1.65;
}

.funciones {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.funcion {
    padding: 26px 24px 28px;
    border: 1px solid #efe9da;
    border-radius: 18px;
    background: var(--crema);
    transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease;
}

.funcion:hover {
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(11, 31, 58, 0.1);
    transform: translateY(-4px);
}

.funcion-icono {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 14px;
    background: var(--esmeralda);
}

.funcion:nth-child(2) .funcion-icono { background: var(--oro); }
.funcion:nth-child(3) .funcion-icono { background: var(--navy); }
.funcion:nth-child(4) .funcion-icono { background: var(--verde); }

.funcion-icono svg {
    width: 24px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.funcion:nth-child(2) .funcion-icono svg { stroke: var(--navy); }

.funcion h3 {
    margin: 20px 0 8px;
    color: var(--navy);
    font-size: 17px;
    font-weight: 700;
}

.funcion p { margin: 0; color: var(--gris); font-size: 14px; line-height: 1.6; }

.como-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 60px;
}

.pasos { display: grid; margin: 0; padding: 0; gap: 16px; list-style: none; }

.pasos li {
    display: flex;
    padding: 22px 24px;
    align-items: flex-start;
    gap: 18px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(11, 31, 58, 0.04), 0 10px 26px rgba(11, 31, 58, 0.06);
}

.paso-num {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 50%;
    color: var(--navy);
    background: var(--oro);
    font-size: 16px;
    font-weight: 800;
}

.pasos h3 { margin: 2px 0 6px; color: var(--navy); font-size: 16px; font-weight: 700; }
.pasos p { margin: 0; color: var(--gris); font-size: 14px; line-height: 1.6; }

.cta { padding: 0 0 86px; background: var(--crema); }

.cta-inner {
    display: flex;
    padding: 42px 48px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 0%, rgba(245, 165, 36, 0.28), transparent 40%),
        linear-gradient(118deg, var(--verde), var(--esmeralda));
    box-shadow: 0 24px 50px rgba(14, 116, 144, 0.22);
}

.cta h2 { margin: 0; color: #ffffff; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
.cta p { margin: 8px 0 0; color: #d9ece6; font-size: 15px; }

/* revelado al hacer scroll */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.8s var(--ease); }
.revelar.visible { opacity: 1; transform: none; }
.funciones .revelar:nth-child(2), .pasos .revelar:nth-child(2) { transition-delay: 0.08s; }
.funciones .revelar:nth-child(3), .pasos .revelar:nth-child(3) { transition-delay: 0.16s; }
.funciones .revelar:nth-child(4) { transition-delay: 0.24s; }

/* ------------------------------------------------------------------ */
/* Pie                                                                 */
/* ------------------------------------------------------------------ */

.l-pie { padding: 46px 0 40px; color: #d7deea; background: var(--navy); }

.l-pie-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    align-items: start;
    gap: 40px;
}

.l-pie-marca { display: flex; align-items: center; gap: 14px; }
.l-pie-marca img { width: 44px; height: auto; }
.l-pie-marca strong { display: block; color: #ffffff; font-size: 20px; font-weight: 500; }
.l-pie-marca strong b { font-weight: 800; }
.l-pie-marca small { display: block; margin-top: 4px; color: #9fb0c9; font-size: 12px; }

.l-pie ul { margin: 0; padding: 0; list-style: none; }
.l-pie li, .l-pie p { margin: 0 0 6px; color: #d7deea; font-size: 13.5px; line-height: 1.6; }

/* ------------------------------------------------------------------ */
/* Responsivo                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1020px) {
    .hero-grid, .como-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 440px; max-width: 560px; }
    .funciones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .l-enlaces { display: none; }
}

@media (max-width: 640px) {
    .l-acciones .l-texto { display: none; }
    .hero-cifras { gap: 28px; }
    .hero-cifras dt { font-size: 26px; }
    .funciones { grid-template-columns: 1fr; }
    .ventana { left: 30px; right: 10px; }
    .cta-inner { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
    .l-pie-grid { grid-template-columns: 1fr; }
    .doodle-garabato { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .revelar, .landing .l-nav, .landing .hero-texto > *, .landing .hero-visual { opacity: 1; transform: none; }
    .subrayado path { stroke-dashoffset: 0; }
}

/* ---- Contáctanos ---- */
.contacto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contacto-item { padding: 24px; background: var(--crema); border-radius: 16px; }
.contacto-item h3 { margin: 0 0 8px; color: var(--navy); font-size: 16px; font-weight: 700; }
.contacto-item p, .contacto-item a { margin: 0; color: var(--tinta); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.contacto-item a { color: var(--esmeralda); font-weight: 600; text-decoration: none; }
.contacto-item a:hover { text-decoration: underline; }
.contacto-vacio { margin: 0; color: var(--tinta); font-size: 15px; }
.contacto-grid .revelar:nth-child(2) { transition-delay: 0.08s; }
.contacto-grid .revelar:nth-child(3) { transition-delay: 0.16s; }
@media (max-width: 860px) { .contacto-grid { grid-template-columns: 1fr; } }

/* Avisos de la portada */
.l-avisos { padding: 12px 0 0; }
.l-aviso { margin: 0 0 8px; padding: 10px 14px; border-radius: 8px; background: #e8f0fe; color: #0b2a5b; border: 1px solid #b9cdf5; }
.l-aviso--warning { background: #fff4d6; color: #5c4200; border-color: #f0d48a; }
.l-aviso--danger { background: #fde8e8; color: #7a1414; border-color: #f2b5b5; }
.l-aviso--success { background: #e4f6ea; color: #14532d; border-color: #a8dbb8; }
