/* ======================================================
   KORA · Landing pages de campaña (Meta Ads)
   /restaurantes y /gimnasios

   Sistema compartido: tokens, tipografía, botones, cabecera,
   secciones, precio, FAQ, formulario, CTA fija en móvil y footer.
   Cada landing añade su propia hoja (landing-restaurantes.css,
   landing-gimnasios.css) con los mockups y la personalidad visual.

   Autocontenido a propósito: no carga base/components/index.css
   (≈8.000 líneas, partículas, Lenis, Font Awesome) para que la
   primera pintura en móvil desde Instagram/Facebook sea inmediata.
   ====================================================== */

/* ---------- Fuente (misma Inter autoalojada que el resto de la web) ---------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
    --ink: #0b0b0b;
    --ink-raised: #111111;
    --surface: #161616;
    --surface-hi: #1d1d1d;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.15);

    --paper: #f5f5f3;
    --paper-soft: #d6d6d3;
    --muted: #a3a3a0;

    --coral: #ff8383;
    --coral-hover: #ff9b9b;
    --coral-wash: rgba(255, 131, 131, 0.1);
    --coral-line: rgba(255, 131, 131, 0.34);
    --on-coral: #0b0b0b;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --r-xl: 32px;
    --r-lg: 24px;
    --r-md: 16px;
    --r-sm: 12px;

    --wrap: 1180px;
    --gutter: 20px;
    --section-y: clamp(76px, 11vw, 140px);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 640px) {
    :root { --gutter: 32px; }
}

@media (min-width: 1024px) {
    :root { --gutter: 48px; }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: var(--ink);
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
}

body {
    min-height: 100vh;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--paper);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    body { overflow-x: clip; }
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

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

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

::selection {
    background: var(--coral);
    color: var(--on-coral);
}

[hidden] {
    display: none !important;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---------- Accesibilidad ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: none;
}

:where(a, button, summary, input, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 3px;
}

/* ---------- Tipografía ---------- */
.lp-h1 {
    font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 640;
}

.lp-h2 {
    font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 620;
}

.lp-h3 {
    font-size: 1.125rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
    font-weight: 600;
}

.lp-lead {
    font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
    line-height: 1.55;
    color: var(--paper-soft);
}

.lp-muted {
    color: var(--muted);
}

/* El punto final en coral es el mismo gesto que el punto del logotipo de KORA */
.lp-stop {
    color: var(--coral);
}

/* ---------- Botones ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-align: center;
    white-space: normal;
    transition: transform 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: var(--coral);
    color: var(--on-coral);
    box-shadow: 0 14px 34px -16px rgba(255, 131, 131, 0.7);
}

.btn--primary:hover {
    background: var(--coral-hover);
    box-shadow: 0 18px 40px -16px rgba(255, 131, 131, 0.85);
}

.btn--ghost {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--paper);
}

.btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.05);
}

.btn--sm {
    min-height: 42px;
    padding: 9px 18px;
    font-size: 0.9375rem;
}

.btn--lg {
    min-height: 60px;
    padding: 16px 32px;
    font-size: 1.0625rem;
}

.btn .icon {
    width: 1.1em;
    height: 1.1em;
    stroke-width: 2;
    transition: transform 0.25s var(--ease);
}

.btn--ghost:hover .icon-down {
    transform: translateY(2px);
}

.btn.is-loading {
    color: transparent !important;
    pointer-events: none;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 22px;
    height: 22px;
    margin: auto;
    border: 2px solid rgba(11, 11, 11, 0.25);
    border-top-color: var(--on-coral);
    border-radius: 50%;
    animation: lp-spin 0.7s linear infinite;
}

@keyframes lp-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Cabecera mínima (sin menú: una sola oferta, una sola acción) ---------- */
.lp-header {
    position: relative;
    z-index: 60;
}

.lp-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lp-brand img {
    width: auto;
    height: 19px;
}

.lp-brand__product {
    padding-left: 12px;
    border-left: 1px solid var(--line-strong);
    font-size: 0.875rem;
    line-height: 1.1;
    color: var(--muted);
    white-space: nowrap;
}

.lp-header__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 550;
    color: var(--paper-soft);
    white-space: nowrap;
    transition: border-color 0.2s ease;
}

.lp-header__meta:hover {
    border-color: rgba(255, 255, 255, 0.34);
}

.lp-header__meta strong {
    color: var(--paper);
    font-weight: 650;
}

.lp-header__cta {
    display: none;
}

@media (max-width: 359px) {
    .lp-brand__product { display: none; }
}

@media (min-width: 960px) {
    .lp-header {
        position: sticky;
        top: 0;
        background: rgba(11, 11, 11, 0.8);
        -webkit-backdrop-filter: saturate(140%) blur(14px);
        backdrop-filter: saturate(140%) blur(14px);
        border-bottom: 1px solid transparent;
        transition: border-color 0.3s ease;
    }

    .lp-header.is-stuck {
        border-bottom-color: var(--line);
    }

    .lp-header__bar {
        min-height: 76px;
    }

    .lp-brand img {
        height: 21px;
    }

    .lp-header__meta {
        display: none;
    }

    .lp-header__cta {
        display: inline-flex;
    }

    html {
        scroll-padding-top: 92px;
    }
}

/* ---------- Hero (estructura común) ---------- */
.lp-hero {
    position: relative;
    padding-top: clamp(20px, 5vw, 64px);
    padding-bottom: clamp(64px, 9vw, 120px);
}

.lp-hero__grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

.lp-hero__copy {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.lp-hero__copy .lp-lead {
    margin-top: 22px;
    max-width: 36em;
}

.lp-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.lp-hero__actions .btn {
    width: 100%;
}

@media (min-width: 560px) {
    .lp-hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .lp-hero__actions .btn {
        width: auto;
    }
}

@media (min-width: 960px) {
    .lp-hero__grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: 40px;
    }
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 13px 6px 9px;
    border: 1px solid var(--coral-line);
    border-radius: 999px;
    background: var(--coral-wash);
    color: #ffd3d3;
    font-size: 0.8125rem;
    font-weight: 560;
    line-height: 1.2;
}

.lp-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 4px rgba(255, 131, 131, 0.18);
}

.lp-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 28px;
    font-size: 0.9375rem;
    color: var(--paper-soft);
}

.lp-proof li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lp-proof .icon {
    width: 1.05em;
    height: 1.05em;
    color: var(--coral);
    stroke-width: 2.25;
}

/* ---------- Secciones ---------- */
.lp-section {
    position: relative;
    padding-block: var(--section-y);
}

.lp-section--line {
    border-top: 1px solid var(--line);
}

.lp-head {
    max-width: 760px;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.lp-head .lp-lead {
    margin-top: 18px;
    max-width: 38em;
}

.lp-head--center {
    margin-inline: auto;
    text-align: center;
}

.lp-head--center .lp-lead {
    margin-inline: auto;
}

/* ---------- Banda de CTA intermedia ---------- */
.lp-band {
    display: grid;
    gap: 24px;
    align-items: center;
    padding: clamp(22px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--ink-raised);
}

.lp-band__title {
    max-width: 30ch;
    font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.lp-band__text {
    margin-top: 10px;
    color: var(--muted);
}

.lp-band .btn {
    width: 100%;
    padding-inline: 18px;
}

@media (min-width: 860px) {
    .lp-band {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 40px;
    }

    .lp-band .btn {
        width: auto;
        padding-inline: 32px;
    }
}

/* ---------- Cifras de precio ---------- */
.lp-amount {
    display: inline-flex;
    align-items: baseline;
    font-weight: 650;
    line-height: 0.9;
    letter-spacing: -0.055em;
    font-variant-numeric: lining-nums tabular-nums;
    white-space: nowrap;
}

.lp-amount__unit {
    margin-left: 0.1em;
    font-size: 0.36em;
    font-weight: 550;
    letter-spacing: -0.02em;
    color: var(--paper-soft);
}

.lp-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-block: 13px;
    border-top: 1px solid var(--line);
    color: var(--paper-soft);
}

.lp-checklist li:first-child {
    border-top: 0;
}

.lp-checklist .icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--coral);
    stroke-width: 2.25;
}

/* ---------- FAQ (details/summary nativo: accesible y sin JS) ---------- */
.lp-faq {
    display: grid;
    gap: 36px;
}

@media (min-width: 960px) {
    .lp-faq {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 64px;
        align-items: start;
    }

    .lp-faq .lp-head {
        position: sticky;
        top: 120px;
        margin-bottom: 0;
    }
}

.lp-faq__list {
    border-bottom: 1px solid var(--line);
}

.lp-faq__item {
    border-top: 1px solid var(--line);
}

.lp-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 22px;
    font-size: 1.0625rem;
    font-weight: 560;
    line-height: 1.4;
    letter-spacing: -0.01em;
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.lp-faq__q::-webkit-details-marker {
    display: none;
}

.lp-faq__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transition: transform 0.35s var(--ease), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lp-faq__icon .icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.25;
}

.lp-faq__q:hover .lp-faq__icon {
    border-color: rgba(255, 255, 255, 0.36);
}

.lp-faq__item[open] .lp-faq__icon {
    transform: rotate(45deg);
    border-color: var(--coral);
    background: var(--coral);
    color: var(--on-coral);
}

.lp-faq__a {
    max-width: 62ch;
    padding: 0 56px 24px 0;
    color: var(--muted);
}

@supports selector(::details-content) {
    :root { interpolate-size: allow-keywords; }

    .lp-faq__item::details-content {
        block-size: 0;
        overflow: hidden;
        transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
    }

    .lp-faq__item[open]::details-content {
        block-size: auto;
    }
}

/* ---------- CTA final ---------- */
.lp-final {
    position: relative;
    padding-block: var(--section-y);
    border-top: 1px solid var(--line);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.lp-final__title {
    max-width: 15ch;
    margin-inline: auto;
    font-size: clamp(2.35rem, 1.3rem + 4.4vw, 5rem);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 640;
}

.lp-final__text {
    max-width: 50ch;
    margin: 24px auto 0;
    color: var(--paper-soft);
    font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
}

.lp-final .btn {
    margin-top: 36px;
}

@media (max-width: 559px) {
    .lp-final .btn {
        width: 100%;
    }
}

/* ---------- Formulario de lead ---------- */
.lp-contact {
    padding-block: var(--section-y);
    border-top: 1px solid var(--line);
}

.lp-contact__grid {
    display: grid;
    gap: 44px;
}

@media (min-width: 960px) {
    .lp-contact__grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 80px;
        align-items: start;
    }

    .lp-contact__aside {
        position: sticky;
        top: 120px;
    }
}

.lp-contact__aside .lp-lead {
    margin-top: 18px;
}

.lp-next {
    margin-top: 36px;
    counter-reset: next;
}

.lp-next li {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 20px;
    counter-increment: next;
    color: var(--paper-soft);
}

.lp-next li::before {
    content: counter(next);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--paper);
    font-variant-numeric: tabular-nums;
}

.lp-next li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 36px;
    bottom: 4px;
    left: 15.5px;
    width: 1px;
    background: var(--line-strong);
}

.lp-next li span {
    padding-top: 5px;
}

.lp-about {
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 0.9375rem;
    color: var(--muted);
}

.lp-about strong {
    color: var(--paper-soft);
    font-weight: 600;
}

.lp-form-card {
    position: relative;
    padding: clamp(22px, 4.5vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--ink-raised);
}

.lp-form {
    display: grid;
    gap: 18px;
}

.lp-form__row {
    display: grid;
    gap: 18px;
}

@media (min-width: 640px) {
    .lp-form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.lp-field {
    display: grid;
    gap: 8px;
    align-content: start;
}

.lp-field label {
    font-size: 0.875rem;
    font-weight: 550;
    color: var(--paper-soft);
}

.lp-field__opt {
    font-weight: 450;
    color: var(--muted);
}

.lp-input {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #0d0d0d;
    font-size: 16px; /* 16px evita el zoom automático de iOS al enfocar */
    line-height: 1.4;
    color: var(--paper);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.lp-input::placeholder {
    color: #7d7d7a;
}

.lp-input:hover {
    border-color: rgba(255, 255, 255, 0.26);
}

.lp-input:focus {
    outline: none;
    border-color: var(--coral);
    background: #101010;
    box-shadow: 0 0 0 4px rgba(255, 131, 131, 0.16);
}

.lp-input[aria-invalid='true'] {
    border-color: #ff6b6b;
}

.lp-input:-webkit-autofill,
.lp-input:-webkit-autofill:hover,
.lp-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--paper);
    caret-color: var(--paper);
    box-shadow: 0 0 0 1000px #161616 inset;
}

textarea.lp-input {
    min-height: 112px;
    resize: vertical;
}

.lp-field__error {
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #ffa3a3;
}

.lp-field__error:empty {
    display: none;
}

.lp-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--muted);
}

.lp-consent input {
    width: 22px;
    height: 22px;
    margin: -1px 0 0;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 7px;
    background: #0d0d0d;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lp-consent input:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.lp-consent input:checked {
    border-color: var(--coral);
    background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.lp-consent input[aria-invalid='true'] {
    border-color: #ff6b6b;
}

.lp-consent a {
    color: var(--paper-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lp-consent a:hover {
    color: var(--paper);
}

.lp-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lp-form__legal {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--muted);
}

.lp-form__legal strong {
    font-weight: 600;
    color: var(--paper-soft);
}

.lp-form__legal a {
    color: var(--paper-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lp-turnstile:empty {
    display: none;
}

.lp-form button[type='submit'] {
    width: 100%;
    min-height: 58px;
    font-size: 1.0625rem;
}

.lp-form__status {
    padding: 14px 16px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 14px;
    background: rgba(255, 107, 107, 0.08);
    font-size: 0.9375rem;
    color: #ffc9c9;
}

.lp-form__status:empty {
    display: none;
}

.lp-form__status a {
    color: var(--paper);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lp-success {
    padding: 28px 4px 12px;
    text-align: center;
}

.lp-success:focus {
    outline: none;
}

.lp-success__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--coral);
    color: var(--on-coral);
    animation: lp-pop 0.5s var(--ease) both;
}

.lp-success__icon .icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.lp-success h3 {
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.lp-success p {
    max-width: 36ch;
    margin: 12px auto 0;
    color: var(--muted);
}

@keyframes lp-pop {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ---------- CTA fija en móvil ---------- */
.lp-sticky {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: rgba(22, 22, 22, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.8);
    transform: translateY(calc(100% + 32px));
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}

.lp-sticky.is-visible {
    transform: none;
    visibility: visible;
    transition: transform 0.45s var(--ease), visibility 0s;
}

.lp-sticky__price {
    display: grid;
    min-width: 0;
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--muted);
    white-space: nowrap;
}

.lp-sticky__price strong {
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--paper);
    font-variant-numeric: tabular-nums;
}

.lp-sticky .btn {
    flex: 1;
    min-height: 50px;
    padding-inline: 16px;
    font-size: 0.9375rem;
}

.lp-sticky--solo {
    padding-left: 8px;
}

@media (max-width: 439px) {
    .lp-sticky__price--optional {
        display: none;
    }

    .lp-sticky:has(.lp-sticky__price--optional) {
        padding-left: 8px;
    }
}

@media (min-width: 960px) {
    .lp-sticky {
        display: none;
    }
}

/* ---------- Footer ---------- */
.lp-footer {
    padding-block: 40px calc(112px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    font-size: 0.875rem;
    color: var(--muted);
}

@media (min-width: 960px) {
    .lp-footer {
        padding-bottom: 48px;
    }
}

.lp-footer__grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.lp-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.lp-footer__brand img {
    width: auto;
    height: 18px;
}

.lp-footer__brand p {
    max-width: 46ch;
}

.lp-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.lp-footer__links a {
    padding-block: 4px;
    transition: color 0.2s ease;
}

.lp-footer__links a:hover {
    color: var(--paper);
}

@media (min-width: 860px) {
    .lp-footer__grid {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

/* ---------- Mockup de smartphone (base común) ----------
   Todo se mide en em: cambiando el font-size del .device se escala
   el teléfono completo sin tocar ninguna otra medida. */
.device {
    position: relative;
    width: 27em;
    height: 56.5em;
    padding: 0.75em;
    border-radius: 4.6em;
    background: #161616;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 0.35em #0a0a0a,
        0 60px 120px -40px rgba(0, 0, 0, 0.95),
        0 40px 80px -50px rgba(255, 131, 131, 0.3);
}

.device__screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 3.85em;
    background: #0c0c0c;
    isolation: isolate;
}

.device__island {
    position: absolute;
    top: 1.05em;
    left: 50%;
    z-index: 10;
    width: 8.6em;
    height: 2.5em;
    border-radius: 2em;
    background: #000;
    transform: translateX(-50%);
}

.device__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.6em;
    padding: 0.4em 2.6em 0 3em;
    font-size: 1em;
}

.device__time {
    font-size: 1.3em;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.device__sys {
    display: flex;
    align-items: center;
    gap: 0.55em;
}

.device__signal {
    display: flex;
    align-items: flex-end;
    gap: 0.18em;
    height: 1.05em;
}

.device__signal b {
    width: 0.3em;
    border-radius: 0.1em;
    background: var(--paper);
}

.device__signal b:nth-child(1) { height: 35%; }
.device__signal b:nth-child(2) { height: 55%; }
.device__signal b:nth-child(3) { height: 78%; }
.device__signal b:nth-child(4) { height: 100%; }

.device__battery {
    width: 2.4em;
    height: 1.15em;
    padding: 0.14em;
    border: 0.1em solid rgba(245, 245, 243, 0.5);
    border-radius: 0.38em;
}

.device__battery::before {
    content: '';
    display: block;
    width: 72%;
    height: 100%;
    border-radius: 0.18em;
    background: var(--paper);
}

/* ---------- Animaciones de entrada ----------
   Solo se ocultan si hay JS (clase .js en <html>), así el contenido
   nunca queda invisible si el script no carga. */
.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}

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

/* Los mockups animados se pausan cuando salen de pantalla (batería/CPU en móvil) */
.is-paused,
.is-paused * {
    animation-play-state: paused !important;
}

.lp-band--spaced {
    margin-top: clamp(56px, 8vw, 96px);
}

/* ---------- Banner de cookies ----------
   Mismo marcado (/tpl/cookies.html) y misma lógica (/js/cookie-consent.js)
   que el resto de la web; aquí solo se replican sus estilos de
   components.css para no cargar esa hoja completa. */
.cookie-consent {
    position: fixed;
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    width: min(380px, calc(100vw - 24px));
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-consent.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

@media (min-width: 640px) {
    .cookie-consent {
        left: 18px;
        bottom: 18px;
    }
}

.cookie-consent__content {
    max-height: min(80vh, 560px);
    padding: 16px 16px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cookie-consent__title {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--paper);
}

.cookie-consent__text {
    margin: 0 0 12px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--muted);
}

.cookie-consent__link {
    color: var(--paper);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-btn {
    flex: 1 1 130px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    font-weight: 650; /* rechazar pesa lo mismo que aceptar (guía de cookies AEPD) */
    color: var(--paper);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cookie-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.16);
}

.cookie-btn--primary {
    border-color: transparent;
    background: var(--coral);
    color: var(--on-coral);
    font-weight: 650;
}

.cookie-btn--primary:hover {
    border-color: transparent;
    background: var(--coral-hover);
}

/* "Configurar" y panel de preferencias por categoría */
.cookie-consent__settings {
    display: block;
    margin: 10px auto 0;
    padding: 6px 8px;
    border: 0;
    background: none;
    font-size: 0.8125rem;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.cookie-consent__settings:hover {
    color: var(--paper);
}

.cookie-prefs {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.cookie-prefs__title {
    margin: 0 0 10px;
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--paper);
}

.cookie-pref {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.cookie-pref input[type='checkbox'] {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    flex-shrink: 0;
    accent-color: var(--coral);
    cursor: pointer;
}

.cookie-pref input[type='checkbox']:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cookie-pref__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cookie-pref__body strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--paper);
}

.cookie-pref__body em {
    font-size: 0.8125rem;
    font-style: normal;
    line-height: 1.4;
    color: var(--muted);
}

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

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
