/* Landing de la suscripción de marketing: /suscripcion
   Diseño "Desktop - final" y "Mobile-final" en Figma (UI-RailLabs).
   Usa las variables de layout.css. */

/* Se carga después de layout.css: quita el padding y flex del body para las bandas a todo lo ancho */
body {
    display: block;
    padding: 0;
    overflow-x: hidden;
}

.su-main p { margin-bottom: 0; line-height: 1.5; }
.su-main h2, .su-main h3 { line-height: 1.2; }

.su-wrap {
    max-width: 1158px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.su-sr {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ===== Botones ===== */
.su-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 32px;
    border-radius: 999px;
    border: 2px solid var(--marine);
    background: var(--marine);
    color: white;
    font-weight: 600;
    font-size: 23px;
    line-height: 30px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .25s ease, color .25s ease;
}
.su-btn:hover { background: transparent; color: var(--marine); }
.su-btn--contorno { background: transparent; color: var(--marine); }
.su-btn--contorno:hover { background: var(--marine); color: white; }

/* ===== Hero ===== */
.su-hero {
    position: relative;
    /* El mapa sale por la derecha: se recorta aquí para que la página no se pueda arrastrar de lado en móvil */
    overflow-x: clip;
    padding-top: 292px;
    padding-bottom: 336px;
}
.su-hero-metro {
    position: absolute;
    height: auto;
    pointer-events: none;
    /* Sombra del Figma: ajustada pixel a pixel contra la captura (no viene en el SVG) */
    filter: drop-shadow(0 13px 13px rgba(0, 0, 0, .13));
    /* Se columpia colgado de su esquina inferior derecha.
       Hacia la izquierda (ángulo negativo) solo 1°: las líneas salen por el borde derecho
       y un giro mayor dejaría ver su corte dentro de la pantalla. */
    transform-origin: 100% 100%;
    animation: su-columpio 6s ease-in-out infinite;
    will-change: transform;
}
/* Arranca en el extremo derecho (1.5°), baja hasta −1° y regresa */
@keyframes su-columpio {
    0%, 100% { transform: rotate(1.5deg); }
    50%      { transform: rotate(-1deg); }
}
@media (prefers-reduced-motion: reduce) {
    .su-hero-metro { animation: none; }
}
/* Mismo encuadre que el frame de 1440: x 1017, y 36, 439 de ancho (sale 16px por la derecha) */
.su-hero-metro--desk { top: 36px; right: -16px; width: 439px; }
.su-hero-metro--movil { display: none; }
.su-hero .su-wrap { position: relative; padding-left: 32px; }
.su-hero h1 {
    font-size: clamp(40px, 5.3vw, 76px);
    line-height: 1.16;
    font-style: italic;
    font-weight: 500;
    max-width: 980px;
    margin-bottom: 36px;
}
.su-hero h1 strong { font-weight: 800; display: block; }
.su-hero-ctas { display: flex; flex-wrap: wrap; gap: 27px; }
.su-solo-movil { display: none; }
/* Enlace de texto del hero móvil (reemplaza al botón "Ver modelo") */
.su-link-modelo {
    font-size: 18px;
    font-weight: 600;
    color: var(--marine);
    text-decoration: none;
    width: 200px;           /* centrado bajo el botón de 200px */
    text-align: center;
}
.su-link-modelo span { display: inline-block; transition: transform .2s ease; }
.su-link-modelo:hover span { transform: translateY(3px); }

/* "Ver modelo" lleva a "Todo el tiempo disponible para pedir": que el título no quede bajo la barra fija */
html { scroll-behavior: smooth; }
#servicios { scroll-margin-top: 130px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== Problema y solución ===== */
.su-historia {
    position: relative;
    padding-bottom: 212px;
}
.su-bloque { max-width: 846px; }
.su-bloque + .su-bloque { margin-top: 250px; }
.su-historia h2 {
    font-size: clamp(28px, 3.1vw, 44px);
    font-weight: 600;
    color: black;
    margin-bottom: 16px;
}
.su-historia h2 em { font-weight: 800; }
.su-historia p {
    font-size: clamp(18px, 1.8vw, 26px);
    line-height: 1.2;
    color: black;
    max-width: 840px;
}
.su-bloque + .su-bloque p { max-width: 650px; }

.su-vias { position: absolute; pointer-events: none; }
/* Riel y relleno de la vía. Sin animación el relleno está completo, como en el Figma. */
.su-vias-riel { fill: #e8e8f1; }
.su-vias-relleno {
    fill: #FFEC06;
    transform-box: fill-box;
    transform-origin: top;
    transform: scaleY(var(--avance, 1));
}
.su-anim .su-vias-relleno { transform: scaleY(var(--avance, 0)); }
/* La estación de llegada da un pequeño salto cuando la vía la alcanza */
.su-vias circle { transform-box: fill-box; transform-origin: center; }
.su-anim .su-vias--llego circle:nth-last-child(-n+3) { animation: su-estacion .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes su-estacion { 50% { transform: scale(1.12); } }
.su-vias--desk { width: 214px; height: 646px; right: -26px; top: -20px; }
.su-vias--movil { display: none; }

/* ===== Servicios ===== */
.su-titulo {
    font-size: clamp(28px, 3.1vw, 44px);
    font-weight: 600;
    color: black;
    text-align: center;
    margin-bottom: 45px;
}
.su-tarjetas { display: flex; flex-direction: column; gap: 29px; }
.su-tarjeta {
    background: white;
    border: 2px solid var(--marine);
    border-radius: 24px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
    padding: 26px 32px 32px;
}
.su-tarjeta h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 14px;
}
.su-anillo {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 6px solid currentColor;
    flex: none;
}
/* Cada anillo va de su color original al tono "encendido" y de regreso, como si resplandeciera.
   Los tres prenden al mismo tiempo. */
.su-anillo--red, .su-anillo--green, .su-anillo--blue {
    color: var(--c);
    animation: su-resplandor 2.4s ease-in-out infinite;
}
.su-anillo--red   { --c: var(--red);   --c-luz: #ff398a; }
.su-anillo--green { --c: var(--green); --c-luz: #66ff95; }
.su-anillo--blue  { --c: var(--blue);  --c-luz: #30fcfc; }
@keyframes su-resplandor {
    0%, 100% { color: var(--c);     box-shadow: 0 0 0 0 transparent; }
    50%      { color: var(--c-luz); box-shadow: 0 0 10px 1px var(--c-luz), inset 0 0 6px var(--c-luz); }
}
@media (prefers-reduced-motion: reduce) {
    .su-anillo--red, .su-anillo--green, .su-anillo--blue { animation: none; }
}
.su-tarjeta ul { list-style: none; }
.su-tarjeta li { font-size: 20px; line-height: 28px; }

/* ===== FAQs ===== */
.su-faqs { padding-top: 96px; padding-bottom: 57px; }
.su-faq {
    border-top: 2px solid #dedfe8;
    padding: 25px 150px 50px 157px;
}
.su-faq h3 {
    font-size: clamp(20px, 2.3vw, 32px);
    font-weight: 600;
    color: black;
    margin-bottom: 20px;
}
.su-faq p { font-size: 20px; line-height: 28px; color: black; max-width: 800px; }

/* ===== Precio ===== */
.su-precio {
    background: var(--blue);
    color: white;
    text-align: center;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 16px 24px rgba(11, 27, 50, .1);
    padding: 84px 0 100px;
}
.su-precio-kicker { font-size: 32px; font-weight: 600; }
.su-precio-monto {
    font-size: clamp(42px, 6.1vw, 88px);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.1 !important;
    color: var(--marine);
    margin: 13px 0 35px !important;
}
.su-precio-sub {
    font-size: 26px;
    font-weight: 600;
    line-height: 32px !important;
    color: black;
    margin-bottom: 53px !important;
}
.su-precio-sub span { display: block; }
.su-precio-sub .su-blanco { color: white; }
/* Botón del precio: mismo estilo que los del hero. El margen conserva el alto que tenía el bloque. */
.su-btn-precio {
    position: relative;
    overflow: hidden;
    margin: 7px 0;
}
/* Destello diagonal que cruza el botón cada 4.5s */
.su-btn-precio::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    animation: su-destello 4.5s ease-in-out infinite;
}
/* Hover del botón del precio: relleno blanco (sobre la banda azul el transparente se perdía) */
.su-btn-precio:hover { background: #ffffff; color: var(--marine); }
.su-btn-precio:hover::after { animation: none; opacity: 0; }
@keyframes su-destello {
    0%, 62% { left: -60%; }
    85%, 100% { left: 125%; }
}
/* La flechita de "Prefieres Correo?" se asoma justo después del destello */
.su-correo svg { animation: su-asomo 4.5s ease-in-out infinite; }
.su-correo:hover svg { animation: none; }
@keyframes su-asomo {
    0%, 84%, 100% { transform: translateX(0); }
    89% { transform: translateX(5px); }
    93% { transform: translateX(0); }
    96% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
    .su-btn-precio::after, .su-correo svg { animation: none; }
}
.su-correo {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    margin: 24px auto 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}
.su-correo svg { width: 12px; height: 19px; fill: none; stroke: white; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.su-correo:hover svg { transform: translateX(4px); }
.su-prueba { font-size: 20px; font-weight: 600; color: var(--marine); margin-top: 40px !important; }

/* ===== Testimonio ===== */
.su-testimonio-sec { padding-top: 76px; padding-bottom: 83px; }
.su-testimonio {
    max-width: 793px;
    margin: 0 auto;
    border: 2px solid var(--marine);
    border-radius: 24px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
    padding: 30px 40px 58px;
    color: black;
}
.su-testimonio figcaption {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 26px;
}
.su-testimonio strong { font-weight: 600; font-size: 28px; }
/* Avatar como estación del metro: aro azul marino, aire blanco y la foto al centro.
   Proporciones del diseño: aro 5% del diámetro, aire 6%. Mide 85px en total, como en el Figma. */
.su-avatar {
    box-sizing: border-box;
    width: 85px; height: 85px;
    flex: none;
    display: block;
    border-radius: 50%;
    border: 4.5px solid var(--marine);
    padding: 5px;
    background: #fff;
}
.su-avatar img {
    display: block;
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--blue);
}
.su-testimonio blockquote { font-size: 20px; line-height: 28px; }

/* ===== Comparativa ===== */
.su-compara { padding-bottom: 96px; }
.su-compara-head { text-align: center; margin-bottom: 50px; }
.su-compara-head h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; margin-bottom: 12px; }
.su-compara-head p { font-size: clamp(16px, 1.8vw, 26px); color: #34465e; }

.su-tabla {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(11, 27, 50, .12);
    overflow: hidden;
}
.su-fila {
    display: grid;
    grid-template-columns: 250fr 270fr 270fr 320fr;
}
.su-celda {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    min-height: 96px;
    font-size: 16px;
    line-height: 1.2;
    color: #35475e;
    border-top: 1px solid #e6e8ef;
}
.su-fila--head .su-celda {
    min-height: 112px;
    border-top: 0;
    font-size: 20px;
    font-weight: 600;
    color: #687586;
}
.su-criterio { font-size: 18px; font-weight: 600; color: var(--marine); }
.su-celda--rl { background: #031830; color: white; border-top-color: rgba(255, 255, 255, .08); }
.su-rl-nombre { font-size: 28px; font-weight: 700; font-style: italic; color: white; }

.su-ico {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: inline-flex;
    flex: none;
    background: #eef0f4;
}
.su-ico svg { width: 100%; height: 100%; fill: none; stroke: #6b7385; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.su-ico--no { background: #ffe3ec; }
.su-ico--no svg { stroke: var(--red); }
.su-ico--rl { background: var(--yellow); }
.su-ico--rl svg { stroke: var(--marine); stroke-width: 2.4; }

/* Palomitas de RailLabs: el círculo amarillo aparece con rebote y luego se dibuja la palomita,
   una fila tras otra (--i es el número de fila). */
.su-anim .su-ico--rl { transform: scale(0); opacity: 0; }
.su-anim .su-ico--rl path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.su-anim .su-encendido .su-ico--rl {
    animation: su-pop .5s cubic-bezier(.34, 1.56, .64, 1) forwards;
    animation-delay: calc(var(--i) * 140ms);
}
.su-anim .su-encendido .su-ico--rl path {
    animation: su-trazo .35s ease-out forwards;
    animation-delay: calc(var(--i) * 140ms + 260ms);
}
@keyframes su-pop { to { transform: scale(1); opacity: 1; } }
@keyframes su-trazo { to { stroke-dashoffset: 0; } }

.su-cards-movil { display: none; }

/* ===== Trabajo reciente ===== */
.su-trabajo {
    background: var(--yellow);
    text-align: center;
    color: black;
    padding: 105px 0 120px;
}
.su-trabajo h2 { font-size: clamp(28px, 3.1vw, 44px); font-weight: 600; line-height: 1 !important; }
.su-trabajo p { font-size: clamp(18px, 1.8vw, 26px); margin-bottom: 27px !important; }

/* =========================================================== Tablet ===== */
@media (max-width: 1100px) {
    .su-hero-metro--desk { width: 30.5vw; right: -1.1vw; }
    .su-vias--desk { width: 150px; height: 453px; right: 0; }
    .su-bloque { max-width: calc(100% - 180px); }
    .su-faq { padding-left: 0; padding-right: 0; }
}

/* =========================================================== Móvil ===== */
@media (max-width: 768px) {
    .su-wrap { padding-left: 44px; padding-right: 36px; }

    /* Un solo tamaño de botón en móvil: 52px de alto y texto de 20px (igual que "Prefieres Correo?") */
    .su-btn { font-size: 20px; line-height: 24px; height: 52px; min-width: 200px; padding: 0 32px; }

    /* Móvil (Figma): el mapa completo va debajo del título y el botón, pegado a la derecha.
       Se sale 9px por la derecha para que al columpiarse no se vea el corte de las líneas. */
    .su-hero { padding-top: 116px; padding-bottom: 28px; display: flex; flex-direction: column; }
    .su-hero .su-wrap { padding-left: 46px; width: 100%; }
    .su-hero-metro--desk {
        position: relative;
        order: 2;
        top: auto; right: auto;
        align-self: flex-end;
        width: 226px;
        margin: 20px -9px 0 0;
    }
    .su-hero-metro--movil { display: none; }
    /* Proporcional a la pantalla (12.3% del ancho): 48px en iPhone normal (393), 54px en Pro Max (440) */
    .su-hero h1 { font-size: clamp(40px, 12.3vw, 54px); line-height: 1.04; max-width: 320px; margin-bottom: 23px; }
    .su-hero-ctas { flex-direction: column; gap: 14px; align-items: flex-start; }
    .su-solo-desk { display: none; }
    .su-solo-movil { display: block; }
    #servicios { scroll-margin-top: 112px; }

    .su-historia { padding-bottom: 71px; }
    .su-bloque { max-width: 270px; }
    .su-bloque + .su-bloque { margin-top: 66px; }
    .su-historia h2 { font-size: 28px; line-height: 32px; margin-bottom: 9px; }
    .su-historia p { font-size: 18px; line-height: 27px; }
    .su-bloque p { max-width: 230px; }
    .su-bloque + .su-bloque p { max-width: 256px; }
    .su-vias--desk { display: none; }
    .su-vias--movil { display: block; width: 37px; height: 357px; right: 22px; top: 64px; }

    .su-servicios.su-wrap { padding-left: 43px; padding-right: 39px; }
    .su-titulo { font-size: 28px; line-height: 32px; text-align: left; margin-bottom: 31px; }
    .su-tarjetas { gap: 18px; }
    .su-tarjeta { padding: 22px 24px 34px; }
    .su-tarjeta h3 { font-size: 20px; gap: 8px; margin-bottom: 12px; }
    .su-anillo { width: 22px; height: 22px; border-width: 5px; }
    .su-tarjeta li { font-size: 16px; line-height: 24px; }

    .su-faqs.su-wrap { padding: 40px 36px 38px 46px; }
    .su-faq { padding: 27px 0 44px; }
    .su-faq h3 { font-size: 20px; line-height: 30px; margin-bottom: 20px; }
    .su-faq p { font-size: 16px; line-height: 24px; }

    .su-precio { border-radius: 0; padding: 74px 0 97px; }
    .su-precio .su-wrap { padding-left: 30px; padding-right: 30px; }
    .su-precio-kicker { font-size: 20px; }
    .su-precio-monto { font-size: 40px; font-style: italic; font-weight: 700; letter-spacing: -0.02em; margin: 23px 0 22px !important; }
    .su-precio-sub { font-size: 18px; line-height: 30px !important; margin-bottom: 35px !important; }
    .su-btn-precio { margin: 5px 0; }
    .su-correo { font-size: 20px; margin-top: 30px; }
    .su-prueba { font-size: 16px; font-weight: 400; margin-top: 28px !important; }

    .su-testimonio-sec.su-wrap { padding: 70px 36px 35px; }
    .su-testimonio { padding: 32px 40px 53px; text-align: center; }
    .su-testimonio figcaption { flex-direction: column; gap: 22px; font-size: 18px; line-height: 28px; margin-bottom: 18px; }
    .su-testimonio strong { font-size: 20px; }
    .su-testimonio blockquote { font-size: 16px; line-height: 24px; text-align: left; }

    .su-compara.su-wrap { padding-left: 20px; padding-right: 20px; padding-bottom: 40px; }
    .su-compara-head { text-align: left; margin-bottom: 32px; }
    .su-compara-head h2 { font-size: 28px; }
    .su-compara-head p { font-size: 18px; line-height: 27px; }

    .su-tabla { display: none; }
    .su-cards-movil { display: block; }

    .su-card {
        background: white;
        border: 1px solid #e3e6ee;
        border-radius: 20px;
        padding: 24px 20px 8px;
        margin-bottom: 32px;
    }
    .su-card h3 { font-size: 18px; font-weight: 600; color: #6b7891; padding-bottom: 12px; }
    .su-card ul { list-style: none; }
    .su-card li {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        border-top: 1px solid #e6e8ef;
        padding: 15px 0 14px;
        font-size: 16px;
        line-height: 24px;
        color: #45556c;
    }
    .su-card li small {
        display: block;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
        line-height: 17px;
        color: #6b7891;
        margin-bottom: 2px;
    }
    .su-card--rl {
        background: #031830;
        border: 0;
        box-shadow: 0 10px 24px rgba(11, 27, 50, .25);
        margin-bottom: 62px;
    }
    .su-card--rl h3 { font-size: 24px; font-weight: 700; color: white; }
    .su-card--rl li { color: white; border-top-color: rgba(255, 255, 255, .12); }
    .su-card--rl li small { color: var(--yellow); }

    .su-btn-comparar {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        height: 52px;
        border: 2px solid var(--marine);
        border-radius: 999px;
        background: transparent;
        color: var(--marine);
        font-size: 18px;   /* a 20px el texto largo queda pegado al borde */
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 32px;
    }
    .su-btn-comparar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
    .su-btn-comparar[aria-expanded="true"] svg { transform: rotate(180deg); }

    .su-trabajo { padding: 100px 0 100px; }
    .su-trabajo .su-wrap { padding-left: 11px; padding-right: 11px; }
    .su-trabajo h2 { font-size: 28px; }
    .su-trabajo p { font-size: 18px; margin-bottom: 12px !important; }
}

/* Salto de línea del título solo en móvil ("Hecho a / la Medida.") */
.su-br-movil { display: none; }
@media (max-width: 768px) { .su-br-movil { display: inline; } }

/* Footer de layout.html: estas dos reglas viven en styles.css, que esta página no carga */
.desktop-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.container-limit { max-width: 800px; }

/* Aparición al hacer scroll, igual que designjoy.co ("slideInBottom" de Webflow):
   sube 100px y aparece en 1s con curva outQuart (arranca rápido y se asienta suave).
   La activa el script solo si se permite el movimiento. */
.su-revela {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s cubic-bezier(.25, 1, .5, 1), transform 1s cubic-bezier(.25, 1, .5, 1);
    transition-delay: var(--d, 0ms);
}
.su-revela.su-visible { opacity: 1; transform: none; }

/* ===== Confianza: Trust Index de ejemplo + línea de metro =====
   Maqueta "Trust Index — sección" (nov-2026): tarjeta azul marino con el score de una marca
   de ejemplo y abajo los 5 pasos como estaciones de una línea de metro.
   En móvil los pasos se deslizan de lado (scroll-snap) con puntitos y flechas. */
.su-confianza { text-align: center; }
.su-confianza .su-compara-head { max-width: 900px; margin-left: auto; margin-right: auto; }
.su-confianza .su-compara-head h2 { color: var(--marine); }
.su-confianza .su-compara-head p { line-height: 1.4; text-wrap: balance; }
.su-main .su-confianza .su-confianza-nota {
    max-width: 780px;
    margin: var(--esp-tarjetas) auto 0;
    font-size: 20px;
    line-height: 1.5 !important;
    color: #34465e;
    text-wrap: pretty;
}
.su-confianza .su-compara-head a { white-space: nowrap; color: var(--marine); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .2s; }
.su-confianza .su-compara-head a:hover { color: var(--blue); }

/* Tarjeta del score */
.su-ti-card {
    max-width: 916px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 24px;
    background: var(--marine);
    color: white;
    text-align: left;
    box-shadow: 0 16px 40px rgba(11, 27, 50, .18);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.su-ti-top { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.su-ti-lbl { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .6); }
.su-ti-badge { background: var(--yellow); color: var(--marine); font-weight: 600; font-size: 12px; border-radius: 999px; padding: 2px 10px; }
.su-ti-num { display: flex; align-items: baseline; gap: 8px; }
.su-ti-num b { font-size: 80px; line-height: 1.05; font-weight: 700; font-variant-numeric: tabular-nums; }
.su-ti-num span { font-size: 26px; color: rgba(255, 255, 255, .5); }
.su-ti-prog { flex: 1 1 220px; display: flex; flex-direction: column; gap: 12px; }
.su-ti-fila { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.su-ti-fila span { color: rgba(255, 255, 255, .7); }
.su-ti-fila strong { font-weight: 600; white-space: nowrap; }
.su-ti-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.su-ti-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--yellow); transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.su-ti-div { height: 1px; background: rgba(255, 255, 255, .12); }
.su-ti-pilares { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.su-ti-pil { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 16px 14px 14px; border-top: 3px solid var(--c); display: flex; flex-direction: column; gap: 8px; }
.su-ti-pil small { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .68); }
.su-ti-sc { display: flex; align-items: baseline; gap: 6px; }
.su-ti-sc b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.su-ti-sc span { font-size: 13px; color: rgba(255, 255, 255, .5); white-space: nowrap; }
.su-ti-pil .su-ti-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.su-ti-pil .su-ti-bar i { background: var(--c); }
.su-main .su-ti-card-nota { font-size: 13px; color: rgba(255, 255, 255, .5); margin-top: -8px; }

/* Línea de metro: cada tramo sale de su estación hacia la siguiente */
.su-ti-pasos { max-width: 1110px; margin: 64px auto 0; }
.su-ti-pasos h3 { font-size: 32px; font-weight: 600; color: var(--marine); margin-bottom: var(--esp-encabezado-contenido); }
.su-ti-riel {
    --gap: 20px; --ring: 60px; --line: 32px;
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap);
}
.su-ti-riel:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 12px; }
.su-ti-est { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.su-ti-est::before {
    content: ""; position: absolute; left: 50%;
    width: calc(100% + var(--gap));
    top: calc((var(--ring) - var(--line)) / 2); height: var(--line);
    background: var(--c);
}
.su-ti-est:last-child::before { display: none; }
.su-ti-mk {
    position: relative; z-index: 1; flex: none;
    width: var(--ring); height: var(--ring); border-radius: 50%;
    background: white; border: 12px solid var(--marine);
    box-shadow: 0 0 0 4px var(--snow);
    transition: transform .3s;
}
.su-ti-est:hover .su-ti-mk { transform: scale(1.08); }
.su-ti-n { font-weight: 600; color: var(--blue); font-size: 16px; }
.su-main .su-ti-est h4 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--marine); text-wrap: balance; }
.su-main .su-ti-est p { font-size: 16px; color: #34465e; text-wrap: pretty; }
.su-ti-nav { display: none; }

.su-confianza > .su-btn { margin-top: var(--esp-encabezado-contenido); }

@media (max-width: 860px) {
    .su-ti-pilares { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .su-confianza { text-align: left; }
    .su-main .su-confianza .su-confianza-nota { font-size: 16px; line-height: 24px !important; margin: var(--esp-tarjetas) 0 0; }

    /* La tarjeta se sale a 20px de cada orilla para tener más ancho */
    .su-ti-card { margin-left: calc(20px - var(--margen-texto-movil)); margin-right: -16px; padding: 22px; border-radius: 22px; gap: 20px; }
    .su-ti-top { gap: 20px; }
    .su-ti-num b { font-size: 56px; }
    .su-ti-num span { font-size: 20px; }
    .su-ti-pilares { gap: 8px; }
    .su-ti-pil { padding: 14px 12px 12px; }
    .su-ti-sc b { font-size: 21px; }

    /* Los pasos van de orilla a orilla y se deslizan; el primero arranca en el margen del texto */
    .su-ti-pasos { margin: 48px -36px 0 calc(-1 * var(--margen-texto-movil)); }
    .su-ti-pasos h3 { font-size: 24px; padding: 0 36px 0 var(--margen-texto-movil); margin-bottom: 28px; }
    .su-ti-riel {
        --gap: 0px;
        display: flex; overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: var(--margen-texto-movil);
        padding: 4px 36px 8px var(--margen-texto-movil);
        scrollbar-width: none; overscroll-behavior-x: contain;
    }
    .su-ti-riel::-webkit-scrollbar { display: none; }
    .su-ti-est { flex: 0 0 74%; scroll-snap-align: start; align-items: flex-start; text-align: left; padding-right: 20px; }
    .su-ti-est::before { left: calc(var(--ring) / 2); width: 100%; }
    /* La última estación sigue con un tramo morado (El Andén) hasta la orilla de la pantalla */
    .su-ti-est:last-child::before { display: block; width: calc(100% + 36px); }
    .su-main .su-ti-est h4 { font-size: 21px; }
    .su-ti-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 0 36px 0 var(--margen-texto-movil); }
    .su-ti-dots { display: flex; gap: 8px; }
    .su-ti-dots i { width: 10px; height: 10px; border-radius: 999px; background: rgba(11, 27, 50, .2); transition: width .25s, background .25s; }
    .su-ti-dots i.su-on { width: 26px; background: var(--c); }
    .su-ti-flechas { display: flex; gap: 8px; }
    .su-ti-flechas button {
        width: 44px; height: 44px; border-radius: 50%;
        border: 3px solid var(--marine); background: white; color: var(--marine);
        display: grid; place-items: center; cursor: pointer; padding: 0;
    }
    .su-ti-flechas button:disabled { opacity: .3; cursor: default; }
    .su-ti-flechas button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

    /* El botón es más ancho que la columna de texto: se centra en la pantalla */
    .su-confianza > .su-btn { position: relative; left: calc(50% - 4px); transform: translateX(-50%); margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .su-ti-bar i, .su-ti-mk, .su-ti-dots i { transition: none; }
}

/* =====================================================================
   ESCALA DE ESPACIADO (propuesta, nov-2026)
   Todo el aire vertical de la página sale de estas 6 variables.
   Para volver a los espacios anteriores basta con borrar este bloque completo
   (respaldo del archivo previo: .claude/respaldos/suscripcion-antes-escala.css).
   Escala base de 8: 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96
   ===================================================================== */
:root {
    --esp-titulo-texto: 12px;        /* título → su párrafo */
    --esp-encabezado-contenido: 40px;/* encabezado de sección → tarjetas, tabla, demo */
    --esp-tarjetas: 24px;            /* entre tarjetas */
    --esp-texto-boton: 32px;         /* texto → botón */
    --esp-boton-enlace: 24px;        /* botón → enlace secundario */
    --esp-seccion: 80px;             /* entre secciones y dentro de las bandas de color (antes 96) */
    --margen-texto-movil: 44px;      /* margen izquierdo del texto en móvil */
}
@media (max-width: 768px) {
    :root {
        --esp-encabezado-contenido: 32px;
        --esp-tarjetas: 16px;
        --esp-texto-boton: 24px;
        --esp-seccion: 48px;        /* antes 64 */
    }
}

/* Hero */
.su-hero h1 { margin-bottom: var(--esp-texto-boton); }
.su-hero-ctas { gap: var(--esp-tarjetas); }

/* Problema y solución (los 250px entre bloques en desktop se quedan: ahí corre la vía amarilla) */
.su-historia h2 { margin-bottom: var(--esp-titulo-texto); }

/* Servicios */
.su-titulo { margin-bottom: var(--esp-encabezado-contenido); }
.su-tarjetas { gap: var(--esp-tarjetas); }

/* Confianza */
.su-confianza { padding-top: var(--esp-seccion); }
.su-confianza .su-compara-head { margin-bottom: var(--esp-encabezado-contenido); }

/* FAQs: la última pregunta no suma aire extra antes de la banda azul */
.su-faqs { padding-top: var(--esp-seccion); padding-bottom: var(--esp-seccion); }
/* Abajo lleva 8px más que arriba: el párrafo se ve más ligero que el título y con el mismo número parece que le falta aire */
.su-faq { padding-top: 32px; padding-bottom: 40px; }
.su-faq:last-child { padding-bottom: 0; }
.su-faq h3 { margin-bottom: var(--esp-titulo-texto); }

/* Precio */
.su-precio { padding-top: var(--esp-seccion); padding-bottom: var(--esp-seccion); }
.su-precio-monto { margin: var(--esp-titulo-texto) 0 24px !important; }
.su-precio-sub { margin-bottom: var(--esp-texto-boton) !important; }
.su-btn-precio { margin: 0; }
.su-correo { margin-top: var(--esp-boton-enlace); }

/* Testimonio: mismo aire arriba y abajo, ya no queda pegado a "¿Por qué RailLabs?" */
.su-testimonio-sec { padding-top: var(--esp-seccion); padding-bottom: var(--esp-seccion); }

/* Comparativa */
.su-compara { padding-bottom: var(--esp-seccion); }
.su-compara-head { margin-bottom: var(--esp-encabezado-contenido); }
.su-compara-head h2 { margin-bottom: var(--esp-titulo-texto); }

/* Trabajo reciente */
.su-trabajo { padding-top: var(--esp-seccion); padding-bottom: var(--esp-seccion); }
.su-trabajo h2 { margin-bottom: var(--esp-titulo-texto); }
.su-trabajo p { margin-bottom: var(--esp-texto-boton) !important; }

@media (max-width: 768px) {
    /* Un solo margen de texto en móvil */
    .su-wrap,
    .su-hero .su-wrap,
    .su-servicios.su-wrap { padding-left: var(--margen-texto-movil); padding-right: 36px; }
    .su-faqs.su-wrap { padding: var(--esp-seccion) 36px var(--esp-seccion) var(--margen-texto-movil); }
    .su-confianza.su-wrap { padding: var(--esp-seccion) 36px 0 var(--margen-texto-movil); }

    .su-historia { padding-bottom: var(--esp-seccion); }
    .su-bloque + .su-bloque { margin-top: var(--esp-seccion); }
    .su-historia h2 { margin-bottom: var(--esp-titulo-texto); }

    .su-faq { padding-top: 24px; padding-bottom: 32px; }
    .su-faq:last-child { padding-bottom: 0; }
    .su-faq h3 { margin-bottom: var(--esp-titulo-texto); }

    .su-precio-monto { margin: var(--esp-titulo-texto) 0 16px !important; }
    .su-precio-sub { margin-bottom: var(--esp-texto-boton) !important; }
    .su-btn-precio { margin: 0; }
    .su-correo { margin-top: var(--esp-boton-enlace); }

    .su-testimonio-sec.su-wrap { padding-top: var(--esp-seccion); padding-bottom: var(--esp-seccion); }

    /* Comparativa: el texto va al margen de siempre; las tarjetas siguen a 20px */
    .su-compara .su-compara-head { padding-left: calc(var(--margen-texto-movil) - 20px); padding-right: 16px; margin-bottom: var(--esp-encabezado-contenido); }
    .su-card { margin-bottom: var(--esp-tarjetas); }
    .su-card--rl { margin-bottom: var(--esp-texto-boton); }
    .su-btn-comparar { margin-bottom: 0; }
    .su-otras { margin-top: var(--esp-tarjetas); }
    .su-compara.su-wrap { padding-bottom: var(--esp-seccion); }

    .su-trabajo h2 { margin-bottom: var(--esp-titulo-texto); }
    .su-trabajo p { margin-bottom: var(--esp-texto-boton) !important; }
}

/* Subtítulo de confianza sin salto forzado: el navegador reparte las líneas parejas */
.su-confianza .su-compara-head p { max-width: 900px; margin: 0 auto; text-wrap: balance; }

/* =====================================================================
   VÍA AMARILLA A LA IZQUIERDA (nov-2026, Figma "Desktop - actualizaciones")
   En móvil queda del lado contrario al pulgar para que no la tape el dedo al hacer scroll.
   Desktop: vía de 106×508 a 54px del margen y el texto empieza 211px adentro.
   ===================================================================== */
.su-vias--desk { width: 106px; height: 508px; left: 78px; right: auto; top: 38px; }
.su-bloque { margin-left: 211px; max-width: 850px; }
.su-bloque + .su-bloque { margin-top: 225px; }
.su-bloque + .su-bloque p { max-width: 662px; }

@media (max-width: 1100px) {
    .su-vias--desk { width: 80px; height: 383px; left: 24px; right: auto; top: 30px; }
    .su-bloque { margin-left: 136px; max-width: calc(100% - 136px); }
}

@media (max-width: 768px) {
    /* Vía a 20px del borde (mismo margen que las tarjetas) y el texto a 20px de la vía */
    .su-vias--movil { left: 20px; right: auto; }
    .su-historia.su-wrap { padding-left: 77px; }
    .su-bloque { margin-left: 0; max-width: 270px; }
    .su-bloque + .su-bloque { margin-top: var(--esp-seccion); }
}

/* =====================================================================
   BOTONES (nov-2026)
   - Contorno de 3px como en el Figma (antes 2px). Todos los botones llevan el mismo
     grosor para que midan igual; el relleno baja 1px para conservar los 48px de alto.
   - Hover de los botones sólidos: amarillo con texto marino.
     Los de contorno siguen llenándose de marino.
   ===================================================================== */
.su-btn { border-width: 3px; padding: 6px 31px; }
.su-btn:hover,
.su-btn-precio:hover { background: var(--yellow); border-color: var(--yellow); color: var(--marine); }
.su-btn--contorno:hover { background: var(--marine); border-color: var(--marine); color: white; }

@media (max-width: 768px) {
    .su-btn { padding: 0 31px; }
    .su-btn-comparar { border-width: 3px; }
}

/* Hero: en el Figma los dos botones quedan a 15px (nuevo); se usa 16 de la escala */
.su-hero-ctas { gap: 16px; }
@media (max-width: 768px) { .su-hero-ctas { gap: 14px; } }

/* Hover tipo "dissolve" del Figma: fondo, borde y texto se funden juntos.
   (Antes el borde cambiaba de golpe porque no estaba en la transición.) */
.su-btn { transition: background-color .35s ease-out, border-color .35s ease-out, color .35s ease-out; }

/* "Ver trabajos" vive sobre la banda amarilla: en hover se vacía y queda el contorno marino */
.su-trabajo .su-btn:hover { background: transparent; border-color: var(--marine); color: var(--marine); }

/* "Ver modelo" (contorno) también se llena de amarillo en hover */
.su-btn--contorno:hover { background: var(--yellow); border-color: var(--yellow); color: var(--marine); }

/* =====================================================================
   ORDEN NUEVO (nov-2026): las FAQs van después de la comparativa.
   Confianza ahora llega directo a la banda azul del precio y necesita su propio aire abajo;
   las FAQs ya traen el aire de la comparativa arriba, así que no suman el suyo.
   ===================================================================== */
.su-confianza { padding-bottom: var(--esp-seccion); }
.su-compara + .su-faqs { padding-top: 0; }
@media (max-width: 768px) {
    .su-confianza.su-wrap { padding-bottom: var(--esp-seccion); }
    .su-compara + .su-faqs.su-wrap { padding-top: 0; }
}

/* Título de confianza en una línea en desktop (el párrafo sigue en 900px); si no cabe, líneas parejas */
.su-confianza .su-compara-head { max-width: none; }
.su-confianza .su-compara-head h2 { text-wrap: balance; }

/* La etiqueta amarilla es larga: va en una sola línea y, si no cabe junto al nombre, baja debajo */
.su-ti-lbl { flex-wrap: wrap; row-gap: 6px; }
.su-ti-badge { white-space: nowrap; }

/* "¿Por qué RailLabs?" ya no lleva subtítulo: el título no suma su margen al de la tabla */
.su-compara-head h2:last-child { margin-bottom: 0; }
