/* Mirari — sitio promocional.
   Paleta Ciruela sobre fondos crema, tipografía Editorial (Spectral /
   Hanken Grotesk / Geist Mono) y el lenguaje visual del CTA "Editorial Pro"
   de la app: degradado de marca con foco de luz, maqueta flotante con halo
   y destellos, botón con brillo. Las maquetas del iPhone usan las paletas
   reales de la app, independientes de la del sitio. */

:root {
    /* Paleta Ciruela: ciruela profunda sobre cremas, con el ámbar de la
       app como acento secundario (sello, precios). */
    --view-background: #F4F1EB;
    --surface: #FBF9F4;
    --menu-background: #EBE6DB;
    --accent: #8A5B74;
    --accent-ink: #6F4560;
    --accent-soft: #F2E3EC;
    --accent-deep: #462F3E;
    --accent-night: #2C1D28;
    --warn: #C28A3E;
    --warn-soft: #F5E8D5;
    --warn-ink: #B47C2E;

    /* Tintes derivados del tema (degradados, brillos, iconos) */
    --shine-a: #A87B95;
    --em-a: #F2DFEA;
    --em-b: #D4A8C4;
    --glow: #EFD9E6;
    --gt-a: #A3849A;
    --icon-a: #F3E7EE;
    --icon-b: #E7D5E1;
    --quote-em-a: #F1D9B8;
    --quote-em-b: #E0A074;

    --text: #33322E;
    --text-secondary: #6E6A60;
    --text-tertiary: #94907F;
    --on-dark: #F4F1EB;
    --on-dark-soft: rgba(244, 241, 235, 0.72);

    --font-title: "Spectral", Georgia, serif;
    --font-body: "Hanken Grotesk", -apple-system, "Helvetica Neue", sans-serif;
    --font-numeric: "Geist Mono", ui-monospace, "SF Mono", monospace;

    --radius-card: 20px;
    --radius-field: 13px;
    --shadow-card: 0 10px 30px rgba(51, 50, 46, 0.06);

    --gradient-brand: linear-gradient(150deg, var(--accent) 0%, var(--accent-ink) 38%, var(--accent-deep) 72%, var(--accent-night) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--view-background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 500;
    line-height: 1.15;
    color: var(--text);
}

a { color: var(--accent-ink); }

.gradient-text {
    background: linear-gradient(110deg, var(--gt-a) 0%, var(--accent-ink) 55%, var(--warn) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---- Cabecera ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(244, 241, 235, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51, 50, 46, 0.06);
    transition: background 0.35s ease, border-color 0.35s ease;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: color 0.35s ease;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--accent);
    color: #FBF9F4;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background 0.35s ease, color 0.35s ease;
}

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-nav a:hover { color: var(--accent-ink); }

.nav-cta {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: #FBF9F4 !important;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover { background: var(--accent-ink); transform: translateY(-1px); }

/* En la portada, la cabecera nace transparente sobre el héroe oscuro
   y gana el fondo crema al hacer scroll (script.js). */
body.home .site-header:not(.scrolled) {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.home .site-header:not(.scrolled) .brand { color: var(--on-dark); }
body.home .site-header:not(.scrolled) .brand-mark { background: rgba(244, 241, 235, 0.16); color: var(--on-dark); }
body.home .site-header:not(.scrolled) .site-nav a:not(.nav-cta) { color: var(--on-dark-soft); }
body.home .site-header:not(.scrolled) .site-nav a:not(.nav-cta):hover { color: var(--on-dark); }
body.home .site-header:not(.scrolled) .nav-cta { background: rgba(244, 241, 235, 0.16); }
body.home .site-header:not(.scrolled) .nav-cta:hover { background: rgba(244, 241, 235, 0.28); }

/* ---- Botón con brillo (SubscriptionSubscribeButton) ---- */

.button-shine {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--shine-a), var(--accent-ink));
    color: #FBF9F4;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(32, 29, 24, 0.42);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button-shine:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(32, 29, 24, 0.5);
}

.button-shine span { position: relative; z-index: 1; }

.button-shine::after {
    content: "";
    position: absolute;
    top: -40%;
    bottom: -40%;
    left: -70%;
    width: 45%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-18deg);
    animation: shine 3.2s ease-in-out infinite;
}

@keyframes shine {
    0%   { left: -70%; }
    45%  { left: 130%; }
    100% { left: 130%; }
}

/* ---- Héroe ---- */

.hero {
    position: relative;
    margin-top: -64px; /* bajo la cabecera transparente */
    padding-top: 64px;
    color: var(--on-dark);
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: var(--gradient-brand);
}

/* Foco de luz arriba y esquina inferior oscurecida, como la cabecera del CTA */
.hero-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 18% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(15, 14, 11, 0.5), transparent 65%);
}

.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    padding-top: 88px;
    padding-bottom: 130px;
}

.hero-copy { animation: rise 0.9s ease both; }

.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(244, 241, 235, 0.3);
    background: rgba(244, 241, 235, 0.1);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: var(--on-dark);
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: italic;
    background: linear-gradient(105deg, var(--em-a), var(--em-b));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-lead {
    font-size: 1.12rem;
    color: var(--on-dark-soft);
    max-width: 32em;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-note { font-size: 0.9rem; color: rgba(244, 241, 235, 0.55); }

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    line-height: 0;
}

.hero-wave svg { width: 100%; height: 90px; display: block; }

@keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Maqueta flotante (InvoiceMockupShowcase) ---- */

.hero-showcase {
    position: relative;
    justify-self: center;
    animation: rise 0.9s 0.15s ease both;
}

.halo {
    position: absolute;
    inset: -70px;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--glow) 35%, transparent), transparent 65%);
    filter: blur(6px);
    animation: halo-breathe 5s ease-in-out infinite;
}

@keyframes halo-breathe {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.06); }
}

.phone {
    position: relative;
    width: 300px;
    border-radius: 44px;
    padding: 12px;
    background: #26251F;
    box-shadow: 0 40px 80px rgba(20, 18, 14, 0.55);
    animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%      { transform: translateY(-14px) rotate(1deg); }
}

/* La pantalla usa variables --m-* con la paleta Salvia (la de la app por
   defecto) para que el selector de personalización pueda recolorearla. */
.phone-screen {
    --m-bg: #F4F1EB;
    --m-surface: #FBF9F4;
    --m-text: #33322E;
    --m-text-secondary: #6E6A60;
    --m-text-tertiary: #94907F;
    --m-accent-ink: #3F7766;
    --m-accent-soft: #E1EEE8;
    --m-warn-ink: #B47C2E;
    --m-warn-soft: #F5E8D5;
    --m-border: rgba(51, 50, 46, 0.08);
    --m-divider: rgba(51, 50, 46, 0.06);
    --m-font-title: var(--font-title);
    --m-font-body: var(--font-body);

    background: var(--m-bg);
    border-radius: 34px;
    padding: 22px 16px 26px;
    overflow: hidden;
    color: var(--m-text); /* no heredar el texto claro del héroe oscuro */
    font-family: var(--m-font-body);
    transition: background 0.4s ease, color 0.4s ease;
}

.phone-screen .screen-title {
    font-family: var(--m-font-title);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.phone-screen .screen-subtitle {
    font-size: 0.78rem;
    color: var(--m-text-tertiary);
    margin-bottom: 14px;
}

.spark {
    position: absolute;
    color: var(--glow);
    text-shadow: 0 0 14px var(--glow);
    animation: twinkle 2.6s ease-in-out infinite;
}

.spark-1 { top: -6px; left: -22px; font-size: 1.3rem; }
.spark-2 { bottom: 60px; left: -38px; font-size: 0.85rem; animation-delay: 0.9s; }
.spark-3 { top: 110px; right: -34px; font-size: 1rem; animation-delay: 1.7s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.7) rotate(0deg); }
    50%      { opacity: 1; transform: scale(1.15) rotate(25deg); }
}

/* ---- Filas de la maqueta ---- */

.mock-card {
    background: var(--m-surface, var(--surface));
    border: 1px solid var(--m-border, rgba(51, 50, 46, 0.08));
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 6px 14px;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.mock-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; }
.mock-row + .mock-row { border-top: 1px solid var(--m-divider, rgba(51, 50, 46, 0.06)); }

.mock-avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    color: #FBF9F4;
}

.mock-avatar.a { background: #5E8B7C; }
.mock-avatar.b { background: #B47C2E; }
.mock-avatar.c { background: #7A7FA8; }

.mock-info { min-width: 0; flex: 1; }
.mock-name { font-size: 0.82rem; font-weight: 600; white-space: nowrap; }

.mock-time {
    font-family: var(--font-numeric); /* cifras siempre monoespaciadas, como la app */
    font-size: 0.7rem;
    color: var(--m-text-tertiary, var(--text-tertiary));
    white-space: nowrap;
}

.pill {
    flex: none;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
}

.pill-paid { background: var(--m-accent-soft); color: var(--m-accent-ink); transition: background 0.4s ease, color 0.4s ease; }
.pill-unpaid { background: var(--m-warn-soft); color: var(--m-warn-ink); transition: background 0.4s ease, color 0.4s ease; }

.mock-summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 12px;
    padding: 14px;
}

.mock-summary .label { font-size: 0.72rem; color: var(--m-text-secondary); }

.mock-summary .amount {
    font-family: var(--font-numeric);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--m-accent-ink);
    transition: color 0.4s ease;
}

/* ---- Marquee ---- */

.marquee {
    padding: 18px 0;
    border-bottom: 1px solid rgba(51, 50, 46, 0.07);
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-track span {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

/* Estrellas separadoras: más pequeñas que el texto y con aire a los lados */
.marquee-track i {
    font-style: normal;
    font-size: 0.6em;
    margin: 0 28px;
    vertical-align: 2px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---- Manifiesto ---- */

.manifesto {
    padding: 96px 0 16px;
    text-align: center;
}

.manifesto-quote {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 4.6vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 auto 28px;
}

.manifesto-quote em {
    font-style: italic;
    background: linear-gradient(110deg, var(--gt-a) 0%, var(--accent-ink) 55%, var(--warn) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.manifesto-text {
    color: var(--text-secondary);
    font-size: 1.08rem;
    max-width: 36em;
    margin: 0 auto 18px;
}

.manifesto-text:last-child {
    color: var(--text);
    font-weight: 600;
}

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

.section {
    position: relative;
    padding: 88px 0;
    overflow: hidden;
}

.section-heading { max-width: 44em; margin-bottom: 48px; }

.section-heading h2 {
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
    margin-bottom: 12px;
}

.section-heading p { color: var(--text-secondary); font-size: 1.05rem; }

/* Manchas de color a la deriva, detrás del contenido */
.blob {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
    animation: drift 18s ease-in-out infinite alternate;
}

.blob-1 { top: -180px; right: -140px; background: radial-gradient(circle, var(--accent-soft), transparent 65%); }
.blob-2 { bottom: -220px; left: -160px; background: radial-gradient(circle, var(--warn-soft), transparent 65%); animation-delay: -9s; }
.blob-3 { top: -160px; left: -180px; background: radial-gradient(circle, var(--accent-soft), transparent 65%); animation-delay: -5s; }

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(60px, 40px) scale(1.15); }
}

/* ---- Aparición al hacer scroll ---- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--delay, 0ms);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Características ---- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    position: relative;
    background: var(--surface);
    border: 1px solid rgba(51, 50, 46, 0.08);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 26px 24px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.7s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(51, 50, 46, 0.12);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-field);
    background: linear-gradient(140deg, var(--icon-a), var(--icon-b));
    color: var(--accent-ink);
    margin-bottom: 16px;
    transition: transform 0.35s ease;
}

.feature-card:hover .feature-icon { transform: scale(1.12) rotate(-4deg); }

.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; color: var(--text-secondary); }

/* ---- Personalización ---- */

.section-tone { background: var(--menu-background); }

.persona-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 64px;
}

.persona-group { margin-bottom: 30px; }

.persona-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 14px;
}

.swatches { display: flex; gap: 16px; flex-wrap: wrap; }

.swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--surface);
    background: var(--dot);
    box-shadow: 0 4px 12px rgba(51, 50, 46, 0.22);
    cursor: pointer;
    transition: transform 0.25s ease, outline-color 0.25s ease;
    outline: 2px solid transparent;
    outline-offset: 3px;
}

.swatch:hover { transform: scale(1.12); }
.swatch.selected { outline-color: var(--dot); transform: scale(1.08); }

.persona-caption {
    margin-top: 12px;
    font-family: var(--font-title);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.chips { display: flex; gap: 10px; flex-wrap: wrap; }

.chip {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(51, 50, 46, 0.14);
    background: var(--surface);
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.chip.selected {
    background: var(--accent-ink);
    border-color: var(--accent-ink);
    color: #FBF9F4;
}

.persona-note {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.persona-showcase .phone {
    width: 300px;
    animation: floaty 7s ease-in-out infinite;
}

/* ---- Banda de privacidad ---- */

.privacy-band {
    position: relative;
    padding: 110px 0;
    background: var(--gradient-brand);
    color: var(--on-dark);
    text-align: center;
    overflow: hidden;
}

.privacy-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 65% at 50% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
        radial-gradient(ellipse 45% 45% at 88% 100%, rgba(15, 14, 11, 0.45), transparent 65%);
    pointer-events: none;
}

.privacy-band .container { position: relative; }

.privacy-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(244, 241, 235, 0.55);
    margin-bottom: 22px;
}

.privacy-quote {
    font-family: var(--font-title);
    font-size: clamp(1.7rem, 4.4vw, 3rem);
    font-weight: 500;
    line-height: 1.25;
    max-width: 24em;
    margin: 0 auto 22px;
}

.privacy-quote em {
    font-style: italic;
    background: linear-gradient(105deg, var(--quote-em-a), var(--quote-em-b));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.privacy-detail {
    color: var(--on-dark-soft);
    max-width: 40em;
    margin: 0 auto 28px;
}

.privacy-link {
    color: var(--glow);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--glow) 40%, transparent);
    padding-bottom: 2px;
    transition: border-color 0.25s ease;
}

.privacy-link:hover { border-color: var(--glow); }

/* ---- Precio ---- */

.pricing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 400px));
    justify-content: center;
    align-items: start;
    gap: 24px;
}

.price-card {
    background: var(--surface);
    border: 1px solid rgba(51, 50, 46, 0.08);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 34px 30px;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.7s ease;
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(51, 50, 46, 0.12);
}

/* Borde degradado + resplandor para el plan destacado */
.price-card.highlight {
    position: relative;
    border: none;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(150deg, var(--gt-a), var(--accent-ink), var(--warn)) border-box;
    border: 2px solid transparent;
    box-shadow: 0 20px 50px rgba(74, 69, 61, 0.22);
}

.price-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--warn-soft);
    color: var(--warn-ink);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.price-card h3 { font-size: 1.3rem; margin-bottom: 6px; }

.price-amount {
    font-family: var(--font-numeric);
    font-size: 2.3rem;
    font-weight: 600;
    color: var(--accent-ink);
    margin: 10px 0 2px;
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 18px;
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin: 0 auto;
    max-width: 24em;
}

.price-card li {
    padding: 7px 0 7px 26px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--warn);
    font-weight: 700;
}

.price-card .button-shine { margin-top: 24px; }

/* ---- Cierre ---- */

.closing {
    position: relative;
    padding: 110px 0;
    background: var(--gradient-brand);
    color: var(--on-dark);
    text-align: center;
    overflow: hidden;
}

.closing-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 65% at 50% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
        radial-gradient(ellipse 45% 45% at 12% 100%, rgba(15, 14, 11, 0.45), transparent 65%);
    pointer-events: none;
}

.closing .container { position: relative; }

.closing-quote {
    font-family: var(--font-title);
    font-size: clamp(1.7rem, 4.4vw, 3rem);
    font-weight: 500;
    line-height: 1.25;
    max-width: 20em;
    margin: 0 auto;
}

.closing-quote em {
    font-style: italic;
    background: linear-gradient(105deg, var(--quote-em-a), var(--quote-em-b));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.closing-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
}

.closing-note { font-size: 0.9rem; color: rgba(244, 241, 235, 0.55); }

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

.site-footer {
    background: linear-gradient(160deg, var(--accent-deep), var(--accent-night));
    color: var(--on-dark);
    padding: 46px 0;
}

.site-footer p { font-size: 0.88rem; color: var(--on-dark-soft); }

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links { display: flex; gap: 22px; }

.footer-links a {
    font-size: 0.88rem;
    color: var(--on-dark-soft);
    transition: color 0.25s ease;
}

.footer-links a:hover { color: var(--on-dark); }

/* ---- Página legal ---- */

.legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.legal h1 {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    margin-bottom: 8px;
}

.legal .updated {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 36px;
}

.legal h2 { font-size: 1.35rem; margin: 36px 0 12px; }

.legal p, .legal li { color: var(--text-secondary); margin-bottom: 12px; }

.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); }

.legal-summary {
    background: var(--accent-soft);
    border-radius: var(--radius-card);
    padding: 22px 26px;
    margin: 24px 0;
}

.legal-summary p { color: var(--text); margin-bottom: 0; }

/* ---- Adaptación móvil ---- */

@media (max-width: 880px) {
    .hero .container {
        grid-template-columns: 1fr;
        padding-top: 56px;
        padding-bottom: 120px;
        text-align: center;
    }

    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-showcase { margin-top: 28px; }
    .phone { width: 270px; }

    .feature-grid { grid-template-columns: 1fr 1fr; }
    .pricing { grid-template-columns: 1fr; }
    .site-nav a:not(.nav-cta) { display: none; }

    .persona-grid { grid-template-columns: 1fr; gap: 40px; }
    .persona-showcase { justify-self: center; }
}

@media (max-width: 540px) {
    .feature-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .privacy-band { padding: 80px 0; }
    .manifesto { padding: 64px 0 8px; }
    .closing { padding: 80px 0; }
}

/* ---- Reducir movimiento: la app respeta este ajuste; la web también ---- */

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

    .hero-copy, .hero-showcase { animation: none; }
    .phone, .halo, .spark, .blob, .marquee-track, .button-shine::after { animation: none; }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .feature-card:hover, .price-card:hover, .button-shine:hover, .nav-cta:hover,
    .swatch:hover, .chip:hover {
        transform: none;
    }

    .persona-showcase .phone { animation: none; }
}
