/*
 * Portada pública (templates/pages/landing.html, layout landing). Solo la carga
 * esa página: todo va con prefijo .lp- para no chocar con Tabler ni main.css.
 * Colores y tipos, los del folleto impreso: Caprasimo en títulos, Scoutie Sans
 * en el resto. Lo que lleva data-ui es un trozo de la aplicación y conserva
 * sus bordes de interfaz.
 */

.lp {
    --lp-amber: #f59f00;
    --lp-amber-deep: #b37400;
    --lp-ink: #1d273b;
    --lp-ink-deep: #121a2b;
    --lp-soft: #4a5568;
    --lp-paper: #ffffff;
    --lp-stone: #eef1f6;
    --lp-stone-2: #dfe4ec;

    --lp-gutter: clamp(16px, 3vw, 48px);
    --lp-space: clamp(88px, 11vw, 176px);
    --lp-radius: 20px;

    --lp-fs-display: clamp(40px, 6.6vw, 124px);
    --lp-fs-poster: clamp(40px, 8vw, 144px);
    --lp-fs-h2: clamp(34px, 5vw, 84px);
    --lp-fs-say: clamp(20px, 2.8vw, 44px);
    --lp-fs-lead: clamp(18px, 1.45vw, 21px);

    --lp-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --lp-ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

    background: var(--lp-paper);
    color: var(--lp-ink);
    font-size: 17px;
    line-height: 1.55;
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
}

.lp section[id] {
    scroll-margin-top: 24px;
}

:where(.lp) p,
:where(.lp) a {
    color: inherit;
}

.lp .icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

.lp-wrap {
    display: block;
    width: 100%;
    max-width: 1680px;
    margin-inline: auto;
    padding-inline: var(--lp-gutter);
}

.lp-display,
.lp-h2,
.lp-price,
.lp-setup-price,
.lp-phone,
.lp-brand {
    font-family: "Caprasimo", Georgia, serif;
    font-weight: 400;
}

.lp-h2 {
    margin: 0 0 clamp(24px, 3vw, 48px);
    font-size: var(--lp-fs-h2);
    line-height: 1;
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: inherit;
}

.lp-lead {
    font-size: var(--lp-fs-lead);
    line-height: 1.5;
    max-width: 44ch;
}

.lp-link {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.22em;
    text-decoration-color: transparent;
    transition: text-decoration-color 180ms ease, color 180ms ease;
}

.lp-link:focus-visible,
.lp-link:hover {
    text-decoration-color: currentColor;
}

.lp :focus-visible {
    outline: 3px solid var(--lp-amber);
    outline-offset: 3px;
}

/* Botones */

.lp-btn {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.6rem 1.3rem;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 140ms var(--lp-ease-out), background-color 180ms ease, color 180ms ease;
}

.lp-btn:active {
    transform: scale(0.97);
}

.lp-btn-lg {
    min-height: 56px;
    padding: 0.85rem 1.8rem;
    font-size: 1.1rem;
}

.lp-btn-amber {
    background: var(--lp-amber);
    color: var(--lp-ink);
}

.lp-btn-amber:hover,
.lp-btn-amber:focus-visible {
    background: var(--lp-paper);
    color: var(--lp-ink);
}

.lp-btn-ink {
    background: var(--lp-ink);
    color: var(--lp-paper);
}

.lp-btn-ink:hover,
.lp-btn-ink:focus-visible {
    background: var(--lp-ink-deep);
    color: var(--lp-amber);
}

/* Cabecera, sobre el azul del hero */

.lp-nav {
    background: var(--lp-ink);
    color: var(--lp-paper);
}

.lp-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 76px;
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.6rem;
    line-height: 1;
    text-decoration: none;
}

.lp-brand:hover {
    text-decoration: none;
}

.lp-dot {
    width: 1.1em;
    height: 1.1em;
    border-radius: 50%;
    background: var(--lp-amber);
}

.lp-nav-links {
    display: none;
    gap: 2rem;
}

.lp-nav-links a,
.lp-nav-login {
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease;
}

.lp-nav-links a:hover,
.lp-nav-login:hover {
    color: var(--lp-amber);
}

.lp-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 420px) {
    .lp-brand {
        font-size: 1.35rem;
    }

    .lp-nav-actions .lp-btn {
        display: none;
    }
}

@media (min-width: 992px) {
    .lp-nav-links {
        display: flex;
    }
}

/* Hero: el titular de cartel y la etiqueta pegada encima del borde */

.lp-hero {
    position: relative;
    z-index: 2;
    padding: clamp(40px, 7vh, 96px) 0 clamp(48px, 6vw, 72px);
    background: var(--lp-ink);
    color: var(--lp-paper);
}

.lp-display {
    margin: 0;
    font-size: var(--lp-fs-display);
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: inherit;
}

.lp-line {
    display: block;
    overflow: clip;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.lp-line > span {
    display: block;
}

/* La clase la elige LandingHero.Size en Go según la línea más larga. */
.lp-display-s {
    font-size: clamp(36px, 5.1vw, 96px);
}

.lp-display-xs {
    font-size: clamp(32px, 4.6vw, 86px);
}

/* En el móvil el corte de escritorio no sirve: el titular fluye como un párrafo. */
@media (max-width: 767.98px) {
    .lp-display {
        line-height: 0.98;
    }

    .lp-line,
    .lp-line > span {
        display: inline;
    }
}

.lp-hero {
    display: flex;
    min-height: calc(100svh - 76px);
}

.lp-hero > .lp-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lp-hero-foot {
    margin-top: clamp(24px, 3vw, 48px);
}

/* Los titulares rotan: alturas fijas para que la página no salte al cambiar. */
.lp-hero .lp-lead {
    min-height: 6em;
}

.lp-hero h1,
[data-hero-lead] {
    transition: opacity 400ms ease;
}

.lp-hero.is-swapping h1,
.lp-hero.is-swapping [data-hero-lead] {
    opacity: 0;
}

@media (max-width: 767.98px) {
    .lp-hero h1 {
        min-height: 168px;
    }
}

@media (min-width: 768px) {
    .lp-hero h1 {
        min-height: 12vw;
    }
}

.lp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .lp-line-end {
        text-align: right;
    }
}

/* Turno: la pantalla de hoy y, debajo, los diez minutos de Lucía en una
   barra con el ancho de cada tarea */

.lp-turno {
    padding: var(--lp-space) 0;
    background: var(--lp-ink);
    color: var(--lp-paper);
    overflow: clip;
}

.lp-turno-grid {
    display: grid;
    gap: 40px;
    margin-bottom: clamp(48px, 6vw, 88px);
}

/* Sin min-width: 0 la fila de pestañas ensancharía la columna en vez de hacer scroll. */
.lp-turno-grid > * {
    min-width: 0;
}

.lp-turno .lp-ui {
    padding: clamp(16px, 2.5vw, 32px);
    border-radius: var(--lp-radius);
    background: var(--lp-stone);
    color: var(--lp-ink);
}

/* «Visto desde…»: las pestañas de puesto, sobre el fondo oscuro. */
.lp-roles-label {
    margin: 0 0 0.75rem;
    font-weight: 700;
    text-align: center;
}

.js .lp-turno .lp-tabs {
    margin-bottom: 20px;
    background: var(--lp-ink-deep);
}

.lp-turno .lp-tab {
    background: transparent;
    color: var(--lp-paper);
}

.lp-turno .lp-tab:hover,
.lp-turno .lp-tab[aria-selected="true"] {
    background: var(--lp-amber);
    color: var(--lp-ink);
}

/* En escritorio, tres arriba y dos abajo: el ::after es un salto de línea a
   todo lo ancho que se coloca, por order, entre la tercera y la cuarta. */
@media (min-width: 992px) {
    .js .lp-turno .lp-tabs {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 28px;
    }

    .lp-tabs-roles::after {
        content: "";
        flex-basis: 100%;
        order: 1;
    }

    .lp-tabs-roles .lp-tab:nth-child(n + 4) {
        order: 2;
    }
}

.lp-role-panel + .lp-role-panel {
    margin-top: 40px;
}

/* Con pestañas, los paneles comparten celda: miden lo que el más alto y
   cambiar de puesto no mueve la página. */
.js .lp-role-panels {
    display: grid;
}

.js .lp-role-panels > .lp-role-panel {
    grid-area: 1 / 1;
    margin: 0;
}

.lp-role-panel.is-off {
    visibility: hidden;
}

.lp-role-scope {
    max-width: 52ch;
    margin: 1rem 0 0;
    font-size: 15px;
}

@media (prefers-reduced-motion: no-preference) {
    .js .lp-role-panel:not(.is-off) {
        animation: lp-rise 420ms var(--lp-ease-out);
    }
}

/* El texto acompaña a la pantalla al bajar, como el título de las preguntas,
   y se suelta al acabar la rejilla, antes de los minutos. */
@media (min-width: 992px) {
    .lp-turno-grid {
        grid-template-columns: 5fr 7fr;
        align-items: start;
    }

    .lp-turno-copy {
        position: sticky;
        top: 32px;
    }
}

.lp-ui {
    font-size: 15px;
}

.lp-ui-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    padding: 0 8px 16px;
}

.lp-ui-head strong {
    font-size: 17px;
}

.lp-ui-head span {
    color: var(--lp-soft);
}

.lp-ui-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-ui-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 4px 14px;
    padding: 14px 16px;
    border: 1px solid var(--lp-stone-2);
    border-radius: 12px;
    background: var(--lp-paper);
}

.lp-ui-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--lp-stone);
    color: var(--lp-soft);
}

.is-done .lp-ui-icon {
    background: #e3f4e6;
    color: #1e7a32;
}

.is-alert .lp-ui-icon {
    background: #fdecc8;
    color: var(--lp-amber-deep);
}

.lp-ui-what b,
.lp-ui-what small {
    display: block;
}

.lp-ui-what small {
    color: var(--lp-soft);
    font-size: 14px;
}

.lp-ui-val {
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lp-ui-pending {
    padding: 2px 10px;
    border-radius: 999px;
    background: #fdecc8;
    font-size: 15px;
}

.lp-ui-who {
    grid-column: 2 / -1;
    color: var(--lp-soft);
    font-size: 14px;
}

@media (min-width: 768px) {
    .lp-ui {
        padding: 32px;
        border: 1px solid var(--lp-stone-2);
        border-radius: var(--lp-radius);
        background: var(--lp-stone);
    }

    .lp-ui-list li {
        grid-template-columns: auto 1fr auto 9rem;
    }

    .lp-ui-who {
        grid-column: auto;
        text-align: right;
    }
}

/* Del albarán al plato: la foto, las pestañas y cada demostración */

.lp-app {
    padding: var(--lp-space) 0;
    background: var(--lp-stone);
}

.lp-rules {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.lp-rules div {
    display: grid;
    gap: 0.15rem;
}

.lp-rules dt {
    font-size: var(--lp-fs-lead);
    font-weight: 700;
}

.lp-rules dd {
    margin: 0;
}

/* Sin script no hay pestañas: los paneles se ven uno debajo de otro. Con
   script, una píldora como el selector de precios: sticky mientras duran sus
   paneles, centrada si cabe y, si no, en una fila con scroll horizontal. */
.lp-tabs {
    display: none;
    margin-bottom: clamp(32px, 4vw, 56px);
}

.js .lp-tabs {
    position: sticky;
    top: 16px;
    z-index: 10;
    display: flex;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    padding: 4px;
    border-radius: 999px;
    background: var(--lp-paper);
    box-shadow: 0 8px 24px -12px rgba(29, 39, 59, 0.45); /* taste-skill-ignore: flota sobre los paneles al hacer scroll */
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.lp-tabs::-webkit-scrollbar {
    display: none;
}

/* En escritorio caben enteras y se quedan en su sitio, sin sticky. */
@media (min-width: 992px) {
    .js .lp-tabs {
        position: static;
        box-shadow: none;
    }
}

.lp-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 48px;
    padding: 0.6rem 1.3rem;
    border: 0;
    border-radius: 999px;
    background: var(--lp-paper);
    color: var(--lp-ink);
    font-size: 17px;
    font-weight: 700;
    transition: transform 140ms var(--lp-ease-out), background-color 180ms ease, color 180ms ease;
}

.lp-tab:hover {
    background: var(--lp-amber);
}

.lp-tab:active {
    transform: scale(0.97);
}

.lp-tab[aria-selected="true"] {
    background: var(--lp-ink);
    color: var(--lp-paper);
}

.lp-panel + .lp-panel {
    margin-top: 72px;
}

/* Con pestañas, los paneles comparten celda: miden lo que el más alto, así
   que cambiar de pestaña no cambia el alto de la página ni mueve el scroll. */
.js .lp-panels {
    display: grid;
}

.js .lp-panels > .lp-panel {
    grid-area: 1 / 1;
    min-width: 0;
    margin: 0;
}

.lp-panel.is-off {
    visibility: hidden;
}

.lp-panel-title {
    margin: 0 0 1.25rem;
    font-family: "Caprasimo", Georgia, serif;
    font-weight: 400;
    font-size: clamp(34px, 4vw, 64px);
    line-height: 1;
    color: inherit;
}

.lp-panel-grid {
    display: grid;
    gap: 40px;
}

.lp-panel-copy p {
    max-width: 46ch;
    font-size: var(--lp-fs-lead);
}

@media (min-width: 992px) {
    .lp-panel-grid.lp-panel-grid-even {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }

    .lp-panel-grid {
        grid-template-columns: 5fr 7fr;
        gap: clamp(40px, 5vw, 96px);
        align-items: start;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .js .lp-panel:not(.is-off) {
        animation: lp-rise 420ms var(--lp-ease-out);
    }
}

/* Los fragmentos de la aplicación, sobre el gris de la sección */
.lp-app .lp-ui {
    padding: 16px;
    border: 1px solid var(--lp-stone-2);
    border-radius: var(--lp-radius);
    background: var(--lp-paper);
}

@media (min-width: 768px) {
    .lp-app .lp-ui {
        padding: 28px;
    }
}

.lp-ui-scroll {
    overflow-x: auto;
}

.lp-ui-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.lp-ui-table th {
    padding: 8px 10px;
    color: var(--lp-soft);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.lp-ui-table td {
    padding: 12px 10px;
    border-top: 1px solid var(--lp-stone-2);
}

.lp-ui-table td:not(:first-child) {
    white-space: nowrap;
}

.lp-ui-table tfoot td {
    font-weight: 700;
    border-top-width: 2px;
}

.lp-ui-table .is-alert,
.lp-ui-note {
    background: #fdecc8;
}

.lp-ui-table .is-alert td {
    font-weight: 700;
}

.lp-ui-note td {
    border-top: 0;
    color: var(--lp-ink);
    font-size: 14px;
    white-space: normal;
}

/* En el móvil cada fila es un bloque: el primer dato en negrita y los demás
   debajo, con el nombre de su columna (data-label). */
@media (max-width: 575.98px) {
    .lp-ui-table thead {
        display: none;
    }

    .lp-ui-table,
    .lp-ui-table tbody,
    .lp-ui-table tfoot {
        display: block;
    }

    .lp-ui-table tr {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 16px;
        padding: 12px 10px;
        border-top: 1px solid var(--lp-stone-2); /* taste-skill-ignore: fila de tabla dentro de data-ui */
    }

    .lp-ui-table tfoot tr {
        border-top-width: 2px;
    }

    .lp-ui-table .lp-ui-note {
        border-top: 0;
        padding-top: 0;
    }

    .lp-ui-table td {
        padding: 0;
        border: 0;
    }

    .lp-ui-table td:first-child {
        flex-basis: 100%;
        font-weight: 700;
    }

    .lp-ui-table td:empty {
        display: none;
    }

    .lp-ui-table td[data-label]::before {
        content: attr(data-label) " ";
        color: var(--lp-soft);
        font-size: 13px;
        font-weight: 400;
    }

    .lp-ui-note td:first-child {
        font-weight: 400;
    }

    .lp-ui-scroll {
        overflow-x: visible;
    }

    .lp-ui-head {
        padding-inline: 10px;
    }

    .lp-ui-foot {
        margin-inline: 10px;
    }
}

.lp-ui-up {
    margin-left: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #fdecc8;
    font-size: 13px;
    font-weight: 700;
}

.lp-ui-foot {
    margin: 16px 10px 0;
    font-size: 15px;
}

.lp-ui-menu {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-ui-menu li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 10px;
    border-top: 1px solid var(--lp-stone-2); /* taste-skill-ignore: fila de la carta, dentro de data-ui */
}

.lp-ui-menu b,
.lp-ui-menu small {
    display: block;
}

.lp-ui-menu small {
    color: var(--lp-soft);
    font-size: 14px;
}

.lp-ui-menu li > span:last-child {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Tira de fotos de «Del albarán al plato»: fotos torcidas y montadas unas
   sobre otras, con desplazamiento nativo (se arrastra con el dedo). landing.js
   la hace avanzar sola y, con dos copias seguidas de la tira (la segunda,
   aria-hidden), la recoloca al acabar una para que no tenga fin. */

.lp-strip {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    margin-bottom: clamp(40px, 5vw, 72px);
    padding-block: 40px 48px;
    scrollbar-width: none;
    cursor: grab;
}

.lp-strip::-webkit-scrollbar {
    display: none;
}

.lp-strip.is-dragging {
    cursor: grabbing;
}

.lp-strip-track {
    display: flex;
    flex-shrink: 0;
    padding-left: 56px;
}

/* Etiquetas de la pestaña: tamaño real, montadas unas sobre otras. La tira
   sale del margen de la pestaña hasta los bordes de la pantalla. */
.lp-panel .lp-strip {
    margin-inline: calc(50% - 50vw);
    margin-top: 24px;
    margin-bottom: 0;
}

.lp-strip-label {
    position: relative;
    flex: 0 0 auto;
    margin: 0 0 0 -64px;
    box-shadow: 0 14px 28px -14px rgba(29, 39, 59, 0.55); /* taste-skill-ignore: etiquetas sueltas, unas encima de otras */
    transition: transform 300ms var(--lp-ease-out);
}

.lp-strip-labels .lp-strip-track {
    padding-left: 64px;
}

/* Pantallas de las demás pestañas: más anchas, así que se tuercen menos. */
.lp-strip-screens {
    --lp-tilt: 0.4;
}

/* Cada pantalla con su alto: sin esto el flex las estira a la más alta y
   la sombra marca el hueco vacío por debajo. */
.lp-strip-screens .lp-strip-track {
    align-items: center;
    padding-left: 40px;
}

.lp-strip-screen {
    position: relative;
    flex: 0 0 auto;
    width: min(84vw, 540px);
    margin: 0 0 0 -40px;
    border-radius: var(--lp-radius);
    box-shadow: 0 14px 28px -14px rgba(29, 39, 59, 0.55); /* taste-skill-ignore: pantallas sueltas, unas encima de otras */
    transition: transform 300ms var(--lp-ease-out);
}

.lp-strip-card {
    position: relative;
    flex: 0 0 auto;
    width: clamp(200px, 24vw, 340px);
    margin: 0 0 0 -56px;
    padding: 8px 8px 0;
    border-radius: 4px;
    background: var(--lp-paper);
    box-shadow: 0 14px 28px -14px rgba(29, 39, 59, 0.55); /* taste-skill-ignore: fotos sueltas, unas encima de otras */
    transition: transform 300ms var(--lp-ease-out);
}

.lp-strip-track > :nth-child(4n + 1) {
    transform: rotate(calc(-6deg * var(--lp-tilt, 1)));
}

.lp-strip-track > :nth-child(4n + 2) {
    z-index: 2;
    transform: translateY(14px) rotate(calc(4deg * var(--lp-tilt, 1)));
}

.lp-strip-track > :nth-child(4n + 3) {
    transform: translateY(-10px) rotate(calc(-3deg * var(--lp-tilt, 1)));
}

.lp-strip-track > :nth-child(4n + 4) {
    z-index: 2;
    transform: translateY(8px) rotate(calc(7deg * var(--lp-tilt, 1)));
}

.lp-strip-track > :hover {
    z-index: 5;
    transform: rotate(0deg) scale(1.06);
}

.lp-strip-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 2px;
}

.lp-strip-card figcaption {
    overflow: hidden;
    padding: 6px 2px 8px;
    color: var(--lp-ink);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lp-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-seg {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 14px;
    color: var(--lp-ink);
}

.lp-seg strong,
.lp-turno-total strong {
    font-family: "Caprasimo", Georgia, serif;
    font-weight: 400;
    font-size: clamp(34px, 4vw, 64px);
    line-height: 1;
}

.lp-seg b {
    margin-top: auto;
    padding-top: 12px;
}

.lp-seg span {
    max-width: 34ch;
}

.lp-seg-2 {
    background: var(--lp-amber);
}

.lp-seg-3 {
    background: var(--lp-paper);
}

.lp-seg-5 {
    grid-column: 1 / -1;
    background: var(--lp-stone-2);
}

.lp-turno-total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1.25rem;
    margin: 1.75rem 0 0;
    font-size: var(--lp-fs-lead);
    font-weight: 600;
}

.lp-turno-total strong {
    color: var(--lp-amber);
    font-size: var(--lp-fs-h2);
}

.lp-note {
    margin: 1.25rem 0 0;
    font-size: 15px;
}

@media (min-width: 992px) {
    .lp-bar {
        display: flex;
        min-height: clamp(240px, 28vh, 300px);
    }

    .lp-seg-2 {
        flex: 2 1 0;
        min-width: max(20%, 232px);
    }

    .lp-seg-3 {
        flex: 3 1 0;
    }

    .lp-seg-5 {
        flex: 5 1 0;
    }
}

/* Qué queda bajo control: las dos estrellas y la lista completa */

.lp-control {
    padding: var(--lp-space) 0;
}

/* Sin script no hay selector: se ven todas las tarjetas con su marca de plan. */
.lp-plan-pick {
    margin-bottom: clamp(40px, 5vw, 64px);
}

.lp-plan-switch {
    display: none;
    padding: 4px;
    border-radius: 999px;
    background: var(--lp-stone);
}

.js .lp-plan-switch {
    display: inline-flex;
}

.lp-plan-opt {
    min-height: 44px;
    padding: 0.5rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--lp-ink);
    font-size: 17px;
    font-weight: 700;
    transition: background-color 180ms ease, color 180ms ease;
}

.lp-plan-opt:hover {
    background: var(--lp-stone-2);
}

.lp-plan-opt[aria-pressed="true"] {
    background: var(--lp-ink);
    color: var(--lp-paper);
}

.lp-cards-group + .lp-cards-group {
    margin-top: clamp(40px, 5vw, 64px);
}

.lp-cards-group h3 {
    margin: 0 0 1.25rem;
    font-size: var(--lp-fs-say);
    font-weight: 700;
    line-height: 1.15;
    color: inherit;
}

.lp-cards {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    border-radius: var(--lp-radius);
    background: var(--lp-stone);
    transition: opacity 240ms ease, transform 140ms var(--lp-ease-out);
}

.lp-card h4 {
    margin: 10px 0 0;
    font-size: var(--lp-fs-lead);
    font-weight: 700;
    color: inherit;
}

.lp-card p {
    margin: 0;
}

.lp-card-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--lp-amber);
    color: var(--lp-ink);
}

.lp-card-icon .icon {
    width: 26px;
    height: 26px;
}

.lp-card-tag {
    align-self: flex-start;
    justify-self: start;
    margin-top: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--lp-ink);
    color: var(--lp-paper);
    font-size: 13px;
    font-weight: 700;
}

.lp-control.is-home .lp-setup,
.lp-card.is-excluded {
    opacity: 0.4;
}

@media (max-width: 575.98px) {
    .lp-card {
        display: grid;
        grid-template-columns: 48px 1fr;
        column-gap: 16px;
        row-gap: 2px;
        padding: 16px;
    }

    .lp-card-icon {
        grid-row: span 3;
    }

    .lp-card h4 {
        margin: 0;
    }
}

@media (min-width: 576px) {
    .lp-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .lp-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.lp-feat-plan {
    font-weight: 700;
}

span.lp-feat-plan {
    white-space: nowrap;
}

.lp-feat-plan::before {
    content: "";
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    margin-right: 0.4em;
    border-radius: 50%;
    background: var(--lp-amber);
}

/* Ficha de cada plan, dentro de «Qué queda bajo control» */

.lp-plan-card {
    display: grid;
    gap: 32px;
    margin-top: 20px;
    padding: clamp(24px, 3.5vw, 48px);
    border-radius: var(--lp-radius);
}

.lp-plan-card + .lp-plan-card {
    margin-top: 12px;
}

/* Con selector, las dos fichas ocupan la misma celda: miden lo que la más alta
   y cambiar de plan no mueve la página. */
.js .lp-plan-stack {
    display: grid;
    margin-top: 20px;
}

.js .lp-plan-stack > .lp-plan-card {
    grid-area: 1 / 1;
    margin: 0;
}

.lp-plan-card.is-off {
    visibility: hidden;
}

/* Puesta en marcha: opcional y la misma para los dos planes, en grande para
   que no se confunda con la cuota. */
.lp-setup {
    margin-top: clamp(32px, 4vw, 56px);
}

.lp-setup-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin: 0 0 1.25rem;
    font-size: var(--lp-fs-say);
    font-weight: 700;
    line-height: 1.15;
    color: inherit;
}

.lp-setup-title span {
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--lp-amber);
    font-size: 17px;
}

.lp-setup-opts {
    display: grid;
    gap: 12px;
}

.lp-setup-opt {
    padding: clamp(24px, 3.5vw, 48px);
    border-radius: var(--lp-radius);
    background: var(--lp-stone);
}

.lp-setup-opt-guided {
    background: var(--lp-ink);
    color: var(--lp-paper);
}

.lp-setup-price {
    margin: 0;
    font-size: var(--lp-fs-h2);
    line-height: 0.9;
}

.lp-setup-opt-guided .lp-setup-price {
    color: var(--lp-amber);
}

.lp-setup-price span {
    font-size: 17px;
    font-weight: 600;
}

.lp-setup-opt h4 {
    margin: 1rem 0 0.5rem;
    font-size: var(--lp-fs-lead);
    font-weight: 700;
    color: inherit;
}

.lp-setup-opt p:last-child {
    max-width: 46ch;
    margin: 0;
}

@media (min-width: 768px) {
    .lp-setup-opts {
        grid-template-columns: 1fr 1fr;
    }
}

.lp-plan-card-base {
    background: var(--lp-stone);
}

.lp-plan-card-full {
    background: var(--lp-amber);
}

.lp-plan-card-home {
    background: var(--lp-ink);
    color: var(--lp-paper);
}

.lp-plan-name {
    margin: 0 0 0.75rem;
    font-size: var(--lp-fs-lead);
    font-weight: 700;
    color: inherit;
}

/* Con selector, el nombre ya está en el botón: se queda solo para lectores de pantalla. */
.js .lp-plan-name {
    position: absolute;
    width: 1px;
    height: 1px; /* taste-skill-ignore: texto solo para lectores de pantalla */
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.lp-plan-who {
    max-width: 30ch;
    margin: 1rem 0 0.5rem;
    font-size: var(--lp-fs-lead);
    font-weight: 700;
    line-height: 1.3;
}

.lp-plan-main p:last-child {
    max-width: 46ch;
    margin: 0;
}

.lp-plan-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.lp-plan-facts {
    display: grid;
    gap: 10px;
    width: 100%;
    margin: 0;
}

.lp-plan-facts div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.lp-plan-facts dt {
    font-weight: 400;
}

.lp-plan-facts dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.lp-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.lp-price {
    margin: 0;
    font-size: var(--lp-fs-poster);
    line-height: 0.9;
}

.lp-price-unit {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.lp-price-year {
    margin: 0.75rem 0 0;
    font-weight: 700;
}

.lp-plans-note {
    max-width: 68ch;
    margin: clamp(32px, 4vw, 48px) 0 0;
    font-size: 15px;
}

@media (min-width: 768px) {
    .lp-plan-card {
        grid-template-columns: 7fr 5fr;
        align-items: end;
        gap: clamp(32px, 5vw, 96px);
    }
}

/* El selector va centrado y se queda pegado arriba mientras dura la sección:
   es hijo directo de su .lp-wrap, que es lo que limita el sticky. */
.js .lp-plan-switch {
    position: sticky;
    top: 16px;
    z-index: 10;
    display: flex;
    width: fit-content;
    margin-inline: auto;
    box-shadow: 0 8px 24px -12px rgba(29, 39, 59, 0.45); /* taste-skill-ignore: flota sobre las tarjetas al hacer scroll */
}

/* Portada de prospección (landing-prospect.html): lo que aún no se puede contratar solo */

.lp-btn.lp-soon {
    cursor: default;
    opacity: 0.6;
}

.lp-soon-tag {
    margin-left: 0.4rem;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--lp-ink);
    color: var(--lp-paper);
    font-size: 13px;
    vertical-align: middle;
}

.lp-start-self-soon,
.lp-start-self-soon:hover {
    background: var(--lp-stone);
    color: var(--lp-ink);
}

.lp-start-self-soon .lp-start-self-word {
    font-size: clamp(36px, 4vw, 72px);
}

/* Textos legales (/privacidad, /terminos, /cookies): prosa a lo ancho de lectura */

.lp-legal {
    padding: clamp(48px, 7vw, 96px) 0 var(--lp-space);
}

.lp-legal .lp-wrap > * {
    max-width: 72ch;
}

.lp-legal .lp-legal-table {
    max-width: none;
    overflow-x: auto;
}

.lp-legal h2 {
    margin: 2.5rem 0 0.75rem;
    font-size: var(--lp-fs-lead);
    font-weight: 700;
}

.lp-legal a {
    text-decoration: underline;
}

.lp-legal-date {
    color: var(--lp-soft);
}

.lp-legal table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 15px;
}

.lp-legal th,
.lp-legal td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--lp-stone-2);
    text-align: left;
    vertical-align: top;
}

.lp-legal th {
    background: var(--lp-stone);
}

/* Testimonios: tres locales, su logo y lo que cuentan */

.lp-voices {
    padding: var(--lp-space) 0;
    background: var(--lp-stone);
}

.lp-voices-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-voice {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: clamp(24px, 3vw, 40px);
    border-radius: var(--lp-radius);
    background: var(--lp-paper);
}

.lp-voice img {
    width: 160px;
    height: auto;
    border-radius: 8px;
}

.lp-voice blockquote {
    margin: 0;
    font-size: var(--lp-fs-lead);
    font-weight: 600;
    line-height: 1.4;
}

.lp-voice blockquote p {
    margin: 0;
}

.lp-voice-who {
    margin: auto 0 0;
    color: var(--lp-soft);
    font-size: 15px;
}

.lp-voice-who b {
    display: block;
    color: var(--lp-ink);
}

@media (min-width: 992px) {
    .lp-voices-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Preguntas: losetas que se abren de una en una */

.lp-faq {
    padding: var(--lp-space) 0;
}

.lp-faq-grid {
    display: grid;
    gap: 32px;
}

.lp-faq-title {
    font-size: clamp(34px, 4vw, 64px);
}

.lp-faq-list {
    display: grid;
    gap: 8px;
}

.lp-faq-group {
    margin: 24px 0 4px;
    color: var(--lp-soft);
    font-size: 15px;
    font-weight: 700;
}

.lp-faq-group:first-child {
    margin-top: 0;
}

.lp-faq-list details {
    border-radius: var(--lp-radius);
    background: var(--lp-stone);
    transition: background-color 180ms ease;
}

.lp-faq-list details[open] {
    background: var(--lp-amber);
}

.lp-faq-list summary {
    position: relative;
    min-height: 64px;
    padding: 20px 64px 20px 24px;
    font-size: var(--lp-fs-lead);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.lp-faq-list summary::-webkit-details-marker {
    display: none;
}

.lp-faq-list summary::before,
.lp-faq-list summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 16px;
    height: 3px;
    margin-top: -1.5px;
    background: currentColor;
    transition: transform 240ms var(--lp-ease-out);
}

.lp-faq-list summary::after {
    transform: rotate(90deg);
}

.lp-faq-list details[open] summary::after {
    transform: rotate(0deg);
}

.lp-faq-list details:not([open]) summary:hover {
    color: var(--lp-amber-deep);
}

.lp-faq-list details p {
    max-width: 58ch;
    margin: 0;
    padding: 0 24px 24px;
}

@media (min-width: 992px) {
    .lp-faq-grid {
        grid-template-columns: 4fr 8fr;
        align-items: start;
        gap: 48px;
    }

    .lp-faq-title {
        position: sticky;
        top: 32px;
    }
}

/* Empieza hoy: las dos puertas del folleto. A la izquierda, «Te lo montamos»,
   con la puesta en marcha impresa como un albarán; a la derecha, «Hazlo tú»,
   un bloque que entero es el enlace al alta. */

.lp-start {
    padding: var(--lp-space) 0;
    background: var(--lp-stone);
}

.lp-start-grid {
    display: grid;
    gap: 12px;
}

.lp-start-help,
.lp-start-self {
    border-radius: var(--lp-radius);
    padding: clamp(28px, 3.5vw, 56px);
}

.lp-start-help {
    background: var(--lp-ink);
    color: var(--lp-paper);
}

.lp-start-help h3 {
    margin: 0 0 0.75rem;
    font-family: "Caprasimo", Georgia, serif;
    font-weight: 400;
    font-size: clamp(32px, 3.6vw, 56px);
    line-height: 1;
    color: inherit;
}

.lp-start-help > p {
    max-width: 44ch;
    font-size: var(--lp-fs-lead);
}

.lp-start-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 32px;
}

.lp-ticket {
    max-width: 520px;
    margin-top: 28px;
    padding: 20px 20px 28px;
    background: var(--lp-paper);
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.35;
    transform: rotate(-1.5deg);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 95% 100%, 90% calc(100% - 10px), 85% 100%, 80% calc(100% - 10px), 75% 100%, 70% calc(100% - 10px), 65% 100%, 60% calc(100% - 10px), 55% 100%, 50% calc(100% - 10px), 45% 100%, 40% calc(100% - 10px), 35% 100%, 30% calc(100% - 10px), 25% 100%, 20% calc(100% - 10px), 15% 100%, 10% calc(100% - 10px), 5% 100%, 0 calc(100% - 10px));
}

.lp-ticket-head {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lp-ticket table {
    width: 100%;
    border-collapse: collapse;
}

.lp-ticket td {
    padding: 8px 0;
    border-bottom: 1px dashed #000;
    vertical-align: top;
}

.lp-ticket td:last-child {
    padding-left: 12px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.lp-ticket td b,
.lp-ticket td small {
    display: block;
}

.lp-ticket td small {
    font-size: 13px;
}

.lp-ticket tfoot td {
    padding-top: 12px;
    border-bottom: 0;
    font-size: 16px;
    font-weight: 700;
}

.lp-ticket-foot {
    margin: 12px 0 0;
    font-size: 13px;
}

.lp-start-self {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    background: var(--lp-amber);
    color: var(--lp-ink);
    text-decoration: none;
    transition: background-color 450ms ease, color 450ms ease;
}

.lp-start-self:hover,
.lp-start-self:focus-visible {
    background: var(--lp-ink);
    color: var(--lp-amber);
    text-decoration: none;
}

.lp-start-self:focus-visible {
    outline-offset: -6px;
}

.lp-start-self-top {
    display: grid;
    gap: 0.75rem;
}

.lp-start-self-title {
    font-family: "Caprasimo", Georgia, serif;
    font-size: clamp(32px, 3.6vw, 56px);
    line-height: 1;
}

.lp-start-self-say {
    max-width: 30ch;
    font-size: var(--lp-fs-lead);
    font-weight: 600;
}

.lp-start-self-points {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--lp-fs-lead);
}

.lp-start-self-points li {
    display: flex;
    gap: 0.6rem;
}

.lp-start-self-points .icon {
    margin-top: 0.15em;
}

.lp-start-self-foot {
    display: grid;
    gap: 0.75rem;
}

.lp-start-self-note {
    font-size: 15px;
    font-weight: 600;
}

.lp-start-self-word {
    display: flex;
    align-items: flex-start;
    gap: 0.15em;
    font-family: "Caprasimo", Georgia, serif;
    font-size: clamp(56px, 6.4vw, 116px);
    line-height: 1;
    letter-spacing: -0.03em;
}

.lp-start-self-word .icon {
    width: clamp(28px, 4vw, 72px);
    height: clamp(28px, 4vw, 72px);
    margin-top: 0.15em;
    stroke-width: 2.5;
    transition: transform 240ms var(--lp-ease-out);
}

.lp-start-self:hover .lp-start-self-word .icon {
    transform: translate(4px, -4px);
}

@media (min-width: 992px) {
    .lp-start-grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }
}

/* Pie */

.lp-footer {
    padding: clamp(32px, 4vw, 56px) 0 28px;
    background: var(--lp-ink);
    color: var(--lp-paper);
}

.lp-footer-top {
    display: grid;
    gap: 40px;
}

.lp-footer-notes p {
    margin: 0.5rem 0 0;
    font-size: 15px;
}

.lp-footer-notes .lp-brand {
    margin-bottom: 0.75rem;
}

.lp-footer-contact {
    padding-block: clamp(32px, 4vw, 56px);
}

.lp-footer-label {
    margin: 0 0 0.5rem;
    font-size: var(--lp-fs-lead);
    font-weight: 600;
    color: inherit;
}

.lp-phone {
    display: block;
    margin-bottom: 1rem;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 180ms ease;
}

.lp-phone:hover,
.lp-phone:focus-visible {
    color: var(--lp-amber);
    text-decoration: none;
}

.lp-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin: 0;
}

.lp-footer-meta {
    display: grid;
    gap: 12px;
    font-size: 14px;
}

.lp-footer-meta p {
    margin: 0;
}

.lp-footer-meta summary {
    cursor: pointer;
}

.lp-footer-meta details p {
    margin-top: 0.5rem;
}

.lp-footer-meta nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.lp-footer-meta a {
    text-underline-offset: 0.2em;
}

.lp-footer-meta nav a {
    text-decoration: none;
}

.lp-footer-meta nav a:hover {
    color: var(--lp-amber);
}

@media (min-width: 768px) {
    .lp-footer-meta {
        grid-template-columns: auto 1fr auto;
        align-items: start;
        gap: 32px;
    }

    .lp-footer-meta > :nth-child(2) {
        text-align: center;
    }
}

/* Depuración: el nombre de cada bloque, solo fuera de producción (layout landing). */

/* Especificidad cero: nunca le gana a la posición propia de un bloque (los sticky). */
:where(.lp-debug [data-debug]) {
    position: relative;
    outline: 2px dashed #e0007a;
    outline-offset: -2px;
}

.lp-debug [data-debug]::before {
    content: attr(data-debug);
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 50;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e0007a;
    color: #fff;
    font: 600 12px/1.4 ui-monospace, monospace; /* taste-skill-ignore: rótulo de depuración, no sale en producción */
    pointer-events: none;
}

/* Movimiento: solo con script y sin preferencia de movimiento reducido */

@media (prefers-reduced-motion: no-preference) {
    .js .lp-line > span {
        transform: translateY(105%);
        animation: lp-up 900ms var(--lp-ease-expo) 150ms forwards;
    }

    .js .lp-line-end > span {
        animation-delay: 260ms;
    }

    .js .lp-load {
        opacity: 0;
        transform: translateY(14px);
        animation: lp-rise 600ms var(--lp-ease-out) 480ms forwards;
    }

    .js .lp-load + .lp-load {
        animation-delay: 560ms;
    }

    .js [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 700ms var(--lp-ease-out), transform 900ms var(--lp-ease-expo);
    }

    .js [data-reveal]:nth-child(2) {
        transition-delay: 80ms;
    }

    .js [data-reveal]:nth-child(3) {
        transition-delay: 160ms;
    }

    .js [data-reveal]:nth-child(4) {
        transition-delay: 240ms;
    }

    .js [data-reveal].is-in {
        opacity: 1;
        transform: none;
    }

}

@keyframes lp-up {
    to {
        transform: none;
    }
}

@keyframes lp-rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .lp *,
    .lp *::before,
    .lp *::after {
        transition: none !important;
    }
}

/* Barra fija del móvil: «Empezar gratis» y WhatsApp siempre a mano. landing.js
   la saca fuera del hero, de «Empieza hoy» y del pie. Sin script no aparece. */
.lp-dock {
    display: none;
}

@media (max-width: 767.98px) {
    .js .lp-dock {
        position: fixed;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 12px;
        z-index: 30;
        display: flex;
        gap: 8px;
        padding: 6px;
        border-radius: 999px;
        background: var(--lp-ink);
        box-shadow: 0 12px 32px -12px rgba(18, 26, 43, 0.6); /* taste-skill-ignore: flota sobre la página */
        transform: translateY(calc(100% + 24px));
        transition: transform 320ms var(--lp-ease-out);
    }

    .js .lp-dock.is-on {
        transform: none;
    }

    .lp-dock .lp-btn {
        flex: 1;
    }

    .lp-dock-wa {
        display: inline-flex;
        align-items: center;
        padding: 0 1.2rem;
        border-radius: 999px;
        color: var(--lp-paper);
        font-weight: 700;
        text-decoration: none;
    }
}
