/* =============================================================================
 * Landing «¿Vives lejos de Perú?» (/regalos-a-peru) — propuesta D.
 *
 * TODO va dentro de .lpx. La pagina carga index.css, rediseno.css y el resto de
 * hojas del sitio (para el pie y la tarjeta de producto), y esas hojas traen
 * reglas de etiqueta suelta: `* { font-size:16px }`, `label{position:absolute}`
 * de index.css, margenes de Bootstrap en h1-h3 y p. Por eso cada regla de aqui
 * fija sus valores en vez de heredarlos, y `.lpx *` va primero para devolverle
 * la herencia de tamano a los spans, strong y em que no tienen clase.
 *
 * Paleta y tipos del rediseno 2026: tinta #3E2A20, fondo #F3EAE1, tarjeta
 * #FBF6F1, calido #F7E9E2, filete #EFE3D9, acento #B4462F, oro #E9A93A.
 * ========================================================================== */

/*
 * Newsreader CON eje optico (opsz 6-72), como la carga el diseno desde Google.
 * La del sitio (fonts/rediseno/newsreader-latin.woff2) solo trae el eje de
 * peso y se queda en el corte de texto: a 54 px sale ancha y floja, y no se
 * parece al titular del diseno. Con el eje, font-optical-sizing:auto elige el
 * corte de titular segun el tamano. Nombre propio para no mezclarse con la
 * 'Newsreader' que declara rediseno.css. Solo la usa esta pagina.
 */
@font-face {
    font-family: 'Newsreader Opsz';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/rediseno/newsreader-opsz-latin.woff2") format("woff2");
}
@font-face {
    font-family: 'Newsreader Opsz';
    font-style: italic;
    font-weight: 400 500;
    font-display: swap;
    src: url("../fonts/rediseno/newsreader-opsz-italic-latin.woff2") format("woff2");
}

.lpx * { box-sizing: border-box; font-size: inherit; }
.lpx .lpx-h1, .lpx .lpx-h2, .lpx .lpx-paises__lista { font-optical-sizing: auto; font-variation-settings: normal; }

.lpx {
    container-type: inline-size;
    font-family: Karla, system-ui, sans-serif;
    font-size: 16px;
    color: #3E2A20;
    background: #F3EAE1;
    -webkit-font-smoothing: antialiased;
}
.lpx a { color: #B4462F; }
.lpx a:hover { color: #8E3522; }
.lpx img { max-width: 100%; }
.lpx p, .lpx h1, .lpx h2, .lpx h3, .lpx ol { margin: 0; padding: 0; }

.lpx-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding-inline: clamp(20px, 4cqi, 56px);
}

.lpx-tinta { background: #3E2A20; color: #FBF6F1; }
.lpx-tinta:first-child { padding-bottom: clamp(48px, 6cqi, 96px); }
.lpx-calido { background: #F7E9E2; }
.lpx-crema { background: #FBF6F1; }
.lpx-roja { background: #B4462F; color: #FBF6F1; }

/* ---- Tipografia ----------------------------------------------------------- */
.lpx-kicker {
    margin-bottom: 20px !important;
    font-size: 15px;
    font-weight: 600;
    color: #E9A93A;
}
.lpx h1.lpx-h1, .lpx h2.lpx-h2 {
    font-family: 'Newsreader Opsz', Newsreader, Georgia, serif !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em;
    text-wrap: balance;
    text-transform: none;
}
.lpx .lpx-h1 {
    font-size: clamp(42px, 5.4cqi, 78px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: #FBF6F1;
}
.lpx .lpx-h2 { font-size: clamp(34px, 3.8cqi, 54px); line-height: 1.06; color: inherit; }
.lpx .lpx-h2--sec { font-size: clamp(32px, 3.4cqi, 48px); line-height: 1.1; }
.lpx .lpx-h2--cierre { max-width: 14em; margin: 0 auto; font-size: clamp(34px, 4cqi, 58px); color: #FBF6F1; }

.lpx-bajada {
    margin-top: 28px !important;
    max-width: 34em;
    font-size: clamp(17px, 1.45cqi, 20px);
    line-height: 1.55;
    color: #E8DCD1;
}
.lpx-bajada--centro { margin: 18px auto 0 !important; max-width: 32em; font-size: 18px; }
.lpx-texto {
    margin-top: 18px !important;
    max-width: 30em;
    font-size: 17px;
    line-height: 1.6;
    color: #6A5446;
}
.lpx-texto--corto { margin-top: 12px !important; font-size: 16px; }

/* ---- Botones -------------------------------------------------------------- */
.lpx-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.lpx-cta--centro { justify-content: center; margin-top: 32px; }
.lpx .lpx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    font-family: Karla, system-ui, sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.lpx .lpx-btn--main { background: #B4462F; color: #fff; }
.lpx .lpx-btn--main:hover, .lpx .lpx-btn--main:focus-visible { background: #8E3522; color: #fff; }
.lpx .lpx-btn--ghost { border: 1.5px solid rgba(251, 246, 241, .55); color: #FBF6F1; }
.lpx .lpx-btn--ghost:hover, .lpx .lpx-btn--ghost:focus-visible { background: rgba(251, 246, 241, .1); color: #fff; }
.lpx .lpx-btn--msg { margin-top: 26px; }
.lpx a:focus-visible, .lpx summary:focus-visible { outline: 3px solid #E9A93A; outline-offset: 3px; }

/* ---- Cabecera propia ------------------------------------------------------ */
.lpx-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: clamp(22px, 2.4cqi, 34px);
}
.lpx-marca { display: flex; text-decoration: none; }
.lpx-marca img { display: block; width: auto; height: clamp(58px, 6cqi, 84px); max-width: none; }
.lpx .lpx-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #FBF6F1;
    color: #3E2A20;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.lpx .lpx-wa:hover, .lpx .lpx-wa:focus-visible { background: #fff; color: #3E2A20; }

/* ---- Portada: texto + relojes --------------------------------------------- */
.lpx-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5cqi, 72px);
    align-items: center;
    padding-top: clamp(40px, 6cqi, 88px);
}
.lpx-relojes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lpx-reloj {
    border-radius: 16px;
    padding: 18px 12px 16px;
    text-align: center;
    background: rgba(251, 246, 241, .07);
    color: #FBF6F1;
}
.lpx-reloj svg { display: block; width: 100%; max-width: 104px; margin: 0 auto; }
.lpx-reloj .lpx-aro { stroke: rgba(251, 246, 241, .35); }
.lpx-reloj .lpx-aguja { stroke: #FBF6F1; transform-origin: 50px 50px; }
.lpx-reloj .lpx-eje { fill: #FBF6F1; }
.lpx-reloj.es-lima { background: #E9A93A; color: #3E2A20; }
.lpx-reloj.es-lima .lpx-aro { stroke: rgba(62, 42, 32, .55); }
.lpx-reloj.es-lima .lpx-aguja { stroke: #3E2A20; }
.lpx-reloj.es-lima .lpx-eje { fill: #3E2A20; }
.lpx-ciudad { margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.lpx-hora { font-size: 14px; font-variant-numeric: tabular-nums; opacity: .85; }

.lpx-foto {
    position: relative;
    margin-top: 14px;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #F7E9E2;
}
.lpx-foto > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lpx-estado {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #FBF6F1;
    color: #3E2A20;
    box-shadow: 0 10px 30px -12px rgba(62, 42, 32, .45);
}
.lpx-estado[hidden] { display: none; }
.lpx-punto { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #B4462F; }
.lpx-estado.es-hoy .lpx-punto { background: #2F7D4F; }
.lpx-estado__txt { font-size: 15px; line-height: 1.35; }

/* ---- Mensaje en la tarjeta ------------------------------------------------ */
.lpx-msg {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5cqi, 72px);
    align-items: start;
    padding-block: clamp(64px, 8cqi, 112px);
}
.lpx .lpx-campo {
    position: static;
    display: block;
    margin: 30px 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #3E2A20;
    background: none;
    padding: 0;
    width: auto;
    height: auto;
    border: 0;
}
.lpx .lpx-textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-family: Karla, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #3E2A20;
    background: #fff;
    border: 1.5px solid #E2D2C4;
    border-radius: 12px;
    resize: vertical;
}
.lpx .lpx-textarea:focus { outline: none; border-color: #B4462F; box-shadow: 0 0 0 3px rgba(180, 70, 47, .18); }
.lpx-contador {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    font-size: 13px;
    color: #6A5446;
    font-variant-numeric: tabular-nums;
}
.lpx-rotulo { margin-bottom: 12px !important; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #8E3522; }
.lpx-tarjeta {
    padding: clamp(26px, 3cqi, 40px);
    border-radius: 14px;
    background: #FFFDF9;
    box-shadow: 0 2px 0 #EFE3D9, 0 28px 48px -28px rgba(62, 42, 32, .5);
}
.lpx-tarjeta__cab { display: flex; justify-content: flex-end; padding-bottom: 18px; border-bottom: 1px solid #EFE3D9; }
.lpx-tarjeta__cab img { display: block; width: auto; height: 46px; max-width: none; opacity: .9; }
.lpx .lpx-tarjeta__msg {
    margin-top: 22px;
    min-height: 5em;
    font-size: clamp(18px, 1.6cqi, 21px);
    line-height: 1.6;
    white-space: pre-line;
    overflow-wrap: anywhere;
    color: #3E2A20;
}
.lpx-junto { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.lpx-junto img { flex: none; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.lpx-junto p { font-size: 15px; line-height: 1.5; color: #6A5446; }

/* ---- Franja de paises ----------------------------------------------------- */
.lpx-paises { padding-block: clamp(44px, 5cqi, 72px); text-align: center; }
.lpx-paises__ante { margin-bottom: 12px !important; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: #F7D9CE; }
.lpx .lpx-paises__lista {
    font-family: 'Newsreader Opsz', Newsreader, Georgia, serif !important;
    font-weight: 500;
    font-size: clamp(28px, 3.8cqi, 54px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: #FBF6F1;
}
.lpx .lpx-paises__lista em { font-family: inherit !important; font-style: italic; font-weight: 400; }
.lpx-paises__pie { margin-top: 16px !important; font-size: 16px; color: #F7D9CE; }

/* ---- Pasos ---------------------------------------------------------------- */
.lpx-seccion { padding-block: clamp(64px, 8cqi, 112px); }
.lpx-ruta {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-top: 56px !important;
    list-style: none;
}
.lpx-ruta::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    border-top: 2px dashed #D9C6B6;
}
.lpx-ruta li { position: relative; }
.lpx-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #B4462F;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.lpx-ruta li.es-ultimo .lpx-num { background: #3E2A20; }
.lpx .lpx-ruta h3 {
    margin: 22px 0 8px;
    font-family: Karla, system-ui, sans-serif !important;
    font-size: 20px;
    font-weight: 700 !important;
    line-height: 1.25;
    color: #3E2A20;
    text-transform: none;
}
.lpx-ruta p { max-width: 22em; font-size: 16px; line-height: 1.55; color: #6A5446; }

/* ---- Regalos -------------------------------------------------------------- */
.lpx-regalos__cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.lpx .lpx-mas { font-weight: 700; font-size: 16px; text-decoration: none; }
.lpx .lpx-mas:hover { text-decoration: underline; }
.lpx-rejilla { margin-top: 40px; }

/* ---- Preguntas ------------------------------------------------------------ */
.lpx-preguntas { border-top: 1px solid #EFE3D9; }
.lpx-faq {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 56px;
    padding-block: clamp(64px, 8cqi, 104px);
}
.lpx-pregunta { border-bottom: 1px solid #E2D2C4; padding-block: 20px; }
.lpx-pregunta summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.lpx-pregunta summary::-webkit-details-marker { display: none; }
.lpx-pregunta summary span { color: #B4462F; transition: transform .2s; }
.lpx-pregunta[open] summary span { transform: rotate(45deg); }
.lpx-pregunta p { margin-top: 12px !important; max-width: 40em; font-size: 16px; line-height: 1.6; color: #6A5446; }

/* ---- Cierre --------------------------------------------------------------- */
.lpx-cierre { padding-block: clamp(64px, 8cqi, 104px); text-align: center; }


/* ---- Movimiento -------------------------------------------------------------
 * Un solo momento protagonista: al cargar, las agujas de cada ciudad giran
 * desde las 12 hasta su hora real, una tras otra, y Lima llega la ultima con un
 * pulso de luz; entonces sube el aviso. Lo demas es discreto: segundero de Lima,
 * la tarjeta que se levanta al escribir y la ruta de pasos que se dibuja.
 *
 * Todo arranca VISIBLE. Los estados iniciales solo se aplican cuando el JS pone
 * .lpx-anima en .lpx (y no lo pone con «reducir movimiento»), asi que si el JS
 * falla la pagina se ve completa y quieta.
 * ------------------------------------------------------------------------- */
:root { --lpx-llega: cubic-bezier(0.16, 1, 0.3, 1); }

/* Agujas: tras la entrada, el cambio de minuto se desliza en vez de saltar. */
.lpx-relojes.is-listo .lpx-aguja { transition: transform .6s var(--lpx-llega); }

/* Segundero de Lima: una vuelta por minuto, sincronizada por JS con un delay
   negativo. Se pausa fuera de pantalla (IntersectionObserver). */
.lpx-aguja--s {
    stroke: #8E3522;
    transform-origin: 50px 50px;
    animation: lpx-segundero 60s linear infinite;
    animation-play-state: paused;
    opacity: 0;
    transition: opacity .4s ease;
}
.lpx-relojes.is-listo .lpx-aguja--s { opacity: 1; }
.lpx-relojes.is-visible .lpx-aguja--s { animation-play-state: running; }
@keyframes lpx-segundero { to { transform: rotate(360deg); } }

/* La hora en texto aparece cuando su aguja ya llego. */
.lpx-anima .lpx-hora { opacity: 0; transition: opacity .4s ease; }
.lpx-anima .lpx-reloj.is-llego .lpx-hora { opacity: .85; }

/* Pulso de luz de Lima, una sola vez. */
.lpx-reloj.es-lima { position: relative; }
.lpx-reloj.es-lima::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(233, 169, 58, .55);
    pointer-events: none;
}
.lpx-reloj.es-lima.is-llego::after { animation: lpx-pulso 1.1s var(--lpx-llega) 1; }
@keyframes lpx-pulso {
    from { box-shadow: 0 0 0 0 rgba(233, 169, 58, .55); }
    to   { box-shadow: 0 0 0 18px rgba(233, 169, 58, 0); }
}

/* El aviso sube cuando Lima ya marco su hora. */
.lpx-anima .lpx-estado {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s var(--lpx-llega), transform .5s var(--lpx-llega);
}
.lpx-anima .lpx-estado.is-entra { opacity: 1; transform: none; }

/* Escribir levanta la tarjeta: el campo y la vista previa son lo mismo. */
.lpx-tarjeta { transition: transform .3s var(--lpx-llega), box-shadow .3s var(--lpx-llega); }
.lpx-msg.is-escribiendo .lpx-tarjeta {
    transform: translateY(-4px);
    box-shadow: 0 2px 0 #EFE3D9, 0 36px 60px -28px rgba(62, 42, 32, .55);
}

/* Ruta de pasos: la linea se dibuja y los numeros entran en orden. */
.lpx-anima .lpx-ruta::before {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1s var(--lpx-llega) .1s;
}
.lpx-anima .lpx-ruta .lpx-num {
    transform: scale(.6);
    opacity: 0;
    transition: transform .5s var(--lpx-llega), opacity .4s ease;
}
.lpx-anima .lpx-ruta li:nth-child(2) .lpx-num { transition-delay: .18s; }
.lpx-anima .lpx-ruta li:nth-child(3) .lpx-num { transition-delay: .36s; }
.lpx-anima .lpx-ruta li:nth-child(n+4) .lpx-num { transition-delay: .54s; }
.lpx-anima .lpx-ruta.is-visible::before { transform: scaleX(1); }
.lpx-anima .lpx-ruta.is-visible .lpx-num { transform: none; opacity: 1; }

/* Preguntas: la respuesta aparece en vez de saltar. */
.lpx-pregunta[open] p { animation: lpx-aparece .35s var(--lpx-llega); }
@keyframes lpx-aparece { from { opacity: 0; transform: translateY(-4px); } }


/* ---- Entradas al hacer scroll -----------------------------------------------
 * Cada pieza marcada con data-rv entra cuando llega a la pantalla, y lo que
 * llega a la vez se escalona en el orden de la pagina (--d lo pone el JS).
 * Cada tipo de pieza entra a su manera:
 *   palabras  titulares: cada palabra sube desde detras de una mascara
 *   sube      textos y botones: suben 28 px mientras aparecen
 *   hijos     listas: sus hijos entran uno tras otro (--j)
 *   cortina   fotos: se descubren de abajo arriba y se asientan
 *   carta     la tarjeta del mensaje: cae girada y se apoya, como en una mesa
 * Sin .lpx-anima (sin JS o con «reducir movimiento») nada de esto aplica.
 * ------------------------------------------------------------------------- */
.lpx-anima [data-rv="sube"],
.lpx-anima [data-rv="hijos"] > * {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .9s var(--lpx-llega) calc(var(--d, 0s) + var(--j, 0) * 90ms),
        transform 1s var(--lpx-llega) calc(var(--d, 0s) + var(--j, 0) * 90ms);
}
.lpx-anima [data-rv="sube"].is-in,
.lpx-anima [data-rv="hijos"].is-in > * { opacity: 1; transform: none; }

/* Las tarjetas de producto ya traen transicion propia: se respeta su hover
   ampliando la lista en vez de pisarla. */
.lpx-anima .lpx-rejilla[data-rv="hijos"] > .rd-regalo {
    transition:
        opacity .9s var(--lpx-llega) calc(var(--d, 0s) + var(--j, 0) * 110ms),
        transform 1s var(--lpx-llega) calc(var(--d, 0s) + var(--j, 0) * 110ms),
        box-shadow .25s ease;
}
.lpx-anima .lpx-rejilla[data-rv="hijos"] .rd-regalo__foto img {
    transform: scale(1.12);
    transition: transform 1.6s var(--lpx-llega) calc(var(--d, 0s) + var(--j, 0) * 110ms);
}
.lpx-anima .lpx-rejilla[data-rv="hijos"].is-in .rd-regalo__foto img { transform: none; }

/* Relojes: las tarjetas suben antes de que giren sus agujas. */
.lpx-anima .lpx-relojes[data-rv="hijos"] > * { transform: translateY(18px) scale(.96); }

/* Paises: cada uno entra de lado, el punto medio con el. */
.lpx-anima .lpx-paises__lista[data-rv="hijos"] > * {
    display: inline-block;
    transform: translateY(.45em);
    filter: blur(6px);
    transition:
        opacity .9s var(--lpx-llega) calc(var(--d, 0s) + var(--j, 0) * 160ms),
        transform 1s var(--lpx-llega) calc(var(--d, 0s) + var(--j, 0) * 160ms),
        filter .9s var(--lpx-llega) calc(var(--d, 0s) + var(--j, 0) * 160ms);
}
.lpx-anima .lpx-paises__lista[data-rv="hijos"].is-in > * { filter: none; }

/* Los dos estados iniciales propios (relojes y paises) pesan lo mismo que la
   regla general de .is-in y van despues, asi que le ganaban: las tarjetas se
   quedaban al 96 % y bajadas. La vuelta a su sitio se repite aqui con un
   selector mas fuerte. */
.lpx-anima .lpx-relojes[data-rv="hijos"].is-in > *,
.lpx-anima .lpx-paises__lista[data-rv="hijos"].is-in > * { transform: none; }
.lpx-paises__lista i { font-style: normal; opacity: .7; }

/* Titulares palabra a palabra. El padding vertical deja ver los rasgos que
   bajan de la linea (p, q, g) y el margen negativo lo compensa. */
.lpx-w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: .12em;
    margin-bottom: -.12em;
}
.lpx-wi { display: inline-block; }
/* rediseno.css barre `body *` con la sans y !important: sin esto, las palabras
   partidas y los paises (spans dentro del titular) salen en Karla. */
.lpx [data-rv="palabras"] *,
.lpx .lpx-paises__lista * { font-family: inherit !important; font-weight: inherit !important; letter-spacing: inherit; }
.lpx .lpx-paises__lista em { font-weight: 400 !important; }
.lpx-anima [data-rv="palabras"] .lpx-wi {
    transform: translateY(108%) rotate(4deg);
    transform-origin: left bottom;
    transition: transform 1.05s var(--lpx-llega) calc(var(--d, 0s) + var(--i, 0) * 55ms);
}
.lpx-anima [data-rv="palabras"].is-in .lpx-wi { transform: none; }

/* Fotos: cortina de abajo arriba y la imagen que se asienta. */
.lpx-anima [data-rv="cortina"] {
    clip-path: inset(100% 0 0 0 round 16px);
    transition: clip-path 1.2s var(--lpx-llega) var(--d, 0s);
}
.lpx-anima [data-rv="cortina"] > img {
    transform: scale(1.14);
    transition: transform 1.8s var(--lpx-llega) var(--d, 0s);
}
.lpx-anima [data-rv="cortina"].is-in { clip-path: inset(0 0 0 0 round 16px); }
.lpx-anima [data-rv="cortina"].is-in > img { transform: none; }

/* La tarjeta del mensaje cae y se apoya. Al terminar, el JS le quita la
   transicion larga para que el «levantarse al escribir» siga siendo rapido. */
.lpx-anima .lpx-tarjeta[data-rv="carta"] {
    opacity: 0;
    transform: translateY(-36px) rotate(-4deg);
    transition:
        opacity .7s ease var(--d, 0s),
        transform 1.2s var(--lpx-llega) var(--d, 0s),
        box-shadow .3s var(--lpx-llega);
}
.lpx-anima .lpx-tarjeta[data-rv="carta"].is-in { opacity: 1; transform: none; }
.lpx-anima .lpx-tarjeta[data-rv="carta"].is-asentada {
    transition: transform .3s var(--lpx-llega), box-shadow .3s var(--lpx-llega);
}
.lpx-anima .lpx-msg.is-escribiendo .lpx-tarjeta.is-in { transform: translateY(-4px); }

/* Pasos: titulo y texto de cada paso siguen a su numero. */
.lpx-anima .lpx-ruta li h3,
.lpx-anima .lpx-ruta li p {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s var(--lpx-llega), transform .8s var(--lpx-llega);
}
.lpx-anima .lpx-ruta.is-visible li h3,
.lpx-anima .lpx-ruta.is-visible li p { opacity: 1; transform: none; }
.lpx-anima .lpx-ruta li:nth-child(1) h3 { transition-delay: .15s; }
.lpx-anima .lpx-ruta li:nth-child(1) p  { transition-delay: .25s; }
.lpx-anima .lpx-ruta li:nth-child(2) h3 { transition-delay: .33s; }
.lpx-anima .lpx-ruta li:nth-child(2) p  { transition-delay: .43s; }
.lpx-anima .lpx-ruta li:nth-child(3) h3 { transition-delay: .51s; }
.lpx-anima .lpx-ruta li:nth-child(3) p  { transition-delay: .61s; }
.lpx-anima .lpx-ruta li:nth-child(n+4) h3 { transition-delay: .69s; }
.lpx-anima .lpx-ruta li:nth-child(n+4) p  { transition-delay: .79s; }

/* ---- Pantallas angostas --------------------------------------------------- */
@container (max-width: 900px) {
    .lpx-hero, .lpx-msg, .lpx-faq { grid-template-columns: 1fr; }
    .lpx-faq { gap: 24px; }
    .lpx-ruta { grid-template-columns: 1fr; gap: 22px; }
    .lpx-ruta::before { display: none; }
}
@container (max-width: 520px) {
    .lpx-relojes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lpx-cta { flex-direction: column; align-items: stretch; }
    .lpx-regalos__cab { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
    .lpx * { transition: none !important; animation: none !important; }
    .lpx-aguja--s { display: none; }
}
