/* ══════════════════════════════════════════════════════════════════════════
   Oficina en un día · sitio público
   Tokens: tinta pizarra + lila + blanco. Hero: video explicativo 16:9
   (autoplay silenciado, sin loop). Todo lo demás, sobrio.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --ink: #15202b;
    --ink-2: #4a5662;
    --ink-3: #7b8692;
    --line: #e3e7eb;
    --paper: #ffffff;
    --mist: #f4f6f8;
    --brand: #7c3aed;          /* lila: acción principal (5,7:1 con blanco, WCAG AA) */
    --brand-rgb: 124, 58, 237;
    --brand-ink: #6d28d9;      /* hover / texto sobre fondo suave */
    --brand-soft: #f3effe;
    --ok: #1f7a55;
    --ok-soft: #e7f4ee;
    --warn: #b4540a;

    --font: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
    --radius-s: 8px;
    --radius-m: 14px;
    --radius-l: 22px;
    --shadow-1: 0 1px 2px rgba(21, 32, 43, .06), 0 8px 24px -12px rgba(21, 32, 43, .18);
    --shadow-2: 0 2px 4px rgba(21, 32, 43, .05), 0 24px 48px -20px rgba(21, 32, 43, .28);

    --bs-body-font-family: var(--font);
    --bs-body-color: var(--ink);
    --bs-link-color-rgb: 109, 40, 217;
    --bs-link-hover-color-rgb: 21, 32, 43;
    --bs-border-color: var(--line);
    --bs-focus-ring-color: rgba(var(--brand-rgb),.28);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
p { margin-bottom: 1rem; }
a { text-underline-offset: 3px; }
[data-lucide] { width: 1.15em; height: 1.15em; stroke-width: 2; vertical-align: -0.2em; }

:focus-visible { outline: 3px solid rgba(var(--brand-rgb),.45); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }

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

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn {
    font-weight: 600; border-radius: 999px; padding: .65rem 1.35rem;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-lg { padding: .85rem 1.7rem; font-size: 1.0625rem; }
.btn-sm-pill { padding: .45rem 1.05rem; font-size: .95rem; }
.btn-brand { background: var(--brand); border: 1px solid var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn-brand:disabled { background: var(--brand); opacity: .55; color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline-ink { background: #fff; border: 1px solid var(--ink); color: var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
.link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.text-brand { color: var(--brand) !important; }

/* ── Barra demo ───────────────────────────────────────────────────────── */
.demo-bar {
    background: #fff7e6; color: #7a4a00; border-bottom: 1px solid #f3dfb3;
    font-size: .875rem; text-align: center; padding: .4rem 1rem;
}
.demo-bar [data-lucide] { margin-right: .3rem; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-main { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: auto; height: 40px; flex: none; }
/* Texto anclado a la base del símbolo; el margen negativo compensa el descendente para que la línea base calce con el borde inferior */
.brand { align-items: flex-end; }
.brand-name { display: flex; flex-direction: column; line-height: 1; margin-bottom: -.15em; }
.brand-name-1 { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-name-2 { font-weight: 400; font-size: 1.02rem; letter-spacing: 0; margin-top: .1rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a, .nav-links .link-button { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-links a:hover, .nav-links .link-button:hover { color: var(--ink); }
.nav-links .btn-brand { color: #fff; }
.nav-sep { width: 1px; height: 22px; background: var(--line); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .4rem .55rem; color: var(--ink); }

@media (max-width: 991.98px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
        box-shadow: var(--shadow-1);
    }
    .nav-links.open { display: flex; }
    .nav-links a, .nav-links .link-button { padding: .8rem 0; border-bottom: 1px solid var(--mist); text-align: left; }
    .nav-links .btn-brand { margin-top: 1rem; text-align: center; border-bottom: 0; }
    .nav-sep { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: clamp(1.5rem, 3.5vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.hero-place { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-2); font-weight: 500; margin-bottom: 1.25rem; }
.hero-place [data-lucide] { color: var(--brand); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 1.4rem; max-width: 14ch; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.4rem; }
.hero-price { color: var(--ink-2); margin: 0; }
.hero-price strong { color: var(--ink); font-size: 1.15rem; }

/* Video explicativo (16:9, sin audio, autoplay sin loop) */
/* Alineado con el inicio del título (deja fuera la línea de ubicación) */
.hero-visual { position: relative; margin-top: 2.9rem; }
.hero-video { position: relative; margin: 0; }
.hero-video-player {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
    border-radius: 16px; background: var(--brand-soft); object-fit: cover;
    box-shadow: var(--shadow-2);
}
/* Botón "Volver a ver" al terminar (no hay loop) */
.hero-video-replay {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--brand); color: #fff; border: 0; border-radius: 999px;
    padding: .75rem 1.4rem; font-weight: 600; font-size: 1rem; box-shadow: var(--shadow-2); cursor: pointer;
}
.hero-video-replay:hover { background: var(--brand-ink); }
.hero-video-replay[hidden] { display: none; }

/* Sobre postal compacto bajo el video (motivo de marca, decorativo) */
.hero-mail { position: relative; margin-top: 2.25rem; padding-bottom: 1.25rem; }
.envelope {
    position: relative; aspect-ratio: 1.55 / 1; width: min(310px, 66%); margin-left: auto; margin-right: 1.5rem;
    border-radius: 12px; padding: 7px;
    background:
        repeating-linear-gradient(135deg,
            var(--brand) 0 10px, #fff 10px 16px, var(--ink) 16px 26px, #fff 26px 32px);
    box-shadow: var(--shadow-2);
    transform: rotate(-2.5deg);
}
.envelope-body {
    position: relative; height: 100%; background: #fff; border-radius: 5px;
    padding: .8rem 1rem; display: flex; flex-direction: column; justify-content: space-between;
}
.envelope-top { display: flex; justify-content: space-between; align-items: flex-start; }
.envelope-from { font-size: .68rem; color: var(--ink-3); font-weight: 500; }
.postage {
    display: grid; place-items: center; width: 38px; height: 46px;
    border: 1.5px dashed var(--brand); border-radius: 3px; color: var(--brand); background: var(--brand-soft);
}
.postage [data-lucide] { width: 18px; height: 18px; vertical-align: 0; }
.envelope-label {
    display: flex; flex-direction: column; align-self: center; min-width: 62%;
    padding-left: .65rem; border-left: 2px solid var(--ink); line-height: 1.4; font-size: .74rem;
}
.label-muted { color: var(--ink-3); font-size: .85em; }
.label-name { font-weight: 800; font-size: 1.2em; letter-spacing: -0.01em; }

.stamp {
    position: absolute; right: -16px; bottom: -18px;
    width: 82px; height: 82px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--ok); background: rgba(255, 255, 255, .92);
    border: 2px solid var(--ok); outline: 1.5px solid var(--ok); outline-offset: -7px;
    font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .52rem; line-height: 1.15;
    transform: rotate(-14deg);
    animation: stamp-in .55s cubic-bezier(.2, 1.4, .4, 1) .45s both;
}
.stamp strong { font-size: .72rem; letter-spacing: .04em; }
@keyframes stamp-in {
    from { opacity: 0; transform: rotate(-14deg) scale(1.9); }
    to { opacity: 1; transform: rotate(-14deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .stamp { animation: none; } }

/* Aviso superpuesto al borde izquierdo del sobre, a media altura */
.notice-chip {
    position: absolute; left: 5%; bottom: 40%; z-index: 1;
    display: flex; gap: .6rem; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: .55rem .9rem .55rem .55rem; box-shadow: var(--shadow-1); font-size: .78rem; line-height: 1.35; color: var(--ink-2);
}
.notice-chip strong { color: var(--ink); }
.notice-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); flex: none; }
.notice-icon [data-lucide] { width: 16px; height: 16px; vertical-align: 0; }

@media (max-width: 991.98px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero h1 { max-width: 18ch; }
    .hero-visual { max-width: 720px; width: 100%; margin: 0 auto; }
    .hero-mail { max-width: 520px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 575.98px) {
    .envelope { width: min(300px, 84%); margin-right: .75rem; }
    .envelope-body { padding: .7rem .8rem; }
    .envelope-label { font-size: .66rem; min-width: 70%; }
    .stamp { width: 68px; height: 68px; font-size: .46rem; right: -12px; bottom: -16px; }
    .stamp strong { font-size: .6rem; }
    .hero-mail { padding-bottom: 0; }
    .notice-chip { position: relative; margin-top: 1.5rem; width: fit-content; }
}

/* ── Incluye ──────────────────────────────────────────────────────────── */
.includes { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--mist); }
.includes-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.includes-list li { display: flex; gap: .9rem; padding: 1.6rem 1.25rem; align-items: flex-start; }
.includes-list li + li { border-left: 1px solid var(--line); }
.includes-list [data-lucide] { color: var(--brand); width: 24px; height: 24px; flex: none; margin-top: .15rem; }
.includes-list strong { display: block; font-size: 1rem; }
.includes-list span { color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
@media (max-width: 991.98px) {
    .includes-list { grid-template-columns: repeat(2, 1fr); }
    .includes-list li:nth-child(3) { border-left: 0; }
    .includes-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
    .includes-list { grid-template-columns: 1fr; }
    .includes-list li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* ── Secciones ────────────────────────────────────────────────────────── */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: .9rem; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }
.section-head-left { text-align: left; margin: 0; }
.empty-note { text-align: center; color: var(--ink-2); }

/* ── Planes ───────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plan {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-l); padding: 2rem 1.75rem;
}
.plan-featured { border: 2px solid var(--brand); box-shadow: var(--shadow-2); position: relative; }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1.1rem; }
.plan-head h3 { font-size: 1.2rem; margin: 0; }
.plan-badge { background: var(--brand-soft); color: var(--brand-ink); font-size: .8rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; }
.plan-featured .plan-badge { background: var(--brand); color: #fff; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: .3rem; }
.plan-price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.plan-price .per { color: var(--ink-2); font-weight: 500; }
.plan-equiv { color: var(--ok); font-weight: 600; font-size: .95rem; margin: .5rem 0 1rem; }
/* Condición (no ahorro): color neutro; el verde queda solo para beneficios */
.plan-equiv.plan-min { color: var(--ink-2); }
.plan-summary { color: var(--ink-2); font-size: .98rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; }
.checklist li { display: flex; gap: .6rem; padding: .35rem 0; font-size: .97rem; line-height: 1.45; }
.checklist [data-lucide] { color: var(--ok); flex: none; margin-top: .15rem; }
.plans-note { text-align: center; color: var(--ink-3); font-size: .92rem; margin: 2rem 0 0; }
@media (max-width: 991.98px) {
    .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .plan-featured { order: -1; }
}

/* ── Servicios (lista, no tarjetas) ───────────────────────────────────── */
.services { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.service {
    display: grid; grid-template-columns: auto 1fr auto minmax(240px, auto); gap: 1.5rem; align-items: center;
    padding: 1.6rem 1.75rem;
}
.service + .service { border-top: 1px solid var(--line); }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-m); background: var(--brand-soft); color: var(--brand); }
.service-icon [data-lucide] { width: 24px; height: 24px; vertical-align: 0; }
.service h3 { font-size: 1.15rem; margin: 0 0 .25rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.service p { color: var(--ink-2); margin: 0; font-size: .97rem; max-width: 52ch; }
.service-price { text-align: right; display: flex; flex-direction: column; line-height: 1.25; }
.service-price .amount { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; white-space: nowrap; }
.service-price .per { color: var(--ink-3); font-size: .88rem; }
.service-action .btn { width: 100%; white-space: nowrap; }
.tag { font-size: .75rem; font-weight: 700; background: var(--mist); color: var(--ink-2); border: 1px solid var(--line); padding: .1rem .55rem; border-radius: 999px; letter-spacing: 0; }
@media (max-width: 991.98px) {
    .service { grid-template-columns: auto 1fr; row-gap: 1rem; }
    .service-price { grid-column: 2; text-align: left; flex-direction: row; gap: .5rem; align-items: baseline; }
    .service-action { grid-column: 1 / -1; }
}

/* ── Pasos (secuencia real → numerados) ───────────────────────────────── */
.steps { list-style: none; counter-reset: paso; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.steps li { counter-increment: paso; position: relative; padding-top: 4.2rem; }
.steps li::before {
    content: counter(paso); position: absolute; top: 0; left: 0;
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--ink); color: #fff; font-weight: 800; font-size: 1.25rem;
}
.steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 26px; left: 68px; right: -1.25rem; border-top: 2px dashed var(--line);
}
.steps h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.steps p { color: var(--ink-2); margin: 0; }
.steps-cta { text-align: center; margin-top: 3rem; }
@media (max-width: 767.98px) {
    .steps { grid-template-columns: 1fr; gap: 2rem; }
    .steps li { padding: 0 0 0 4.5rem; min-height: 52px; }
    .steps li::after { display: none; }
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.faq { --bs-accordion-border-color: var(--line); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb),.2); --bs-accordion-active-bg: #fff; --bs-accordion-active-color: var(--ink); --bs-accordion-border-radius: var(--radius-m); --bs-accordion-inner-border-radius: var(--radius-m); }
.faq .accordion-header { margin: 0; }
.faq .accordion-button { font-weight: 600; font-size: 1.05rem; padding: 1.15rem 1.35rem; color: var(--ink); }
.faq .accordion-body { color: var(--ink-2); padding: 0 1.35rem 1.25rem; }
@media (max-width: 991.98px) { .faq-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ── Contacto ─────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-copy h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.contact-copy > p { color: var(--ink-2); font-size: 1.1rem; max-width: 42ch; }
.contact-channels { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-channels li { display: flex; gap: .75rem; align-items: center; padding: .6rem 0; }
.contact-channels [data-lucide] { color: var(--brand); }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 2rem; box-shadow: var(--shadow-1); }
@media (max-width: 991.98px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Formularios ──────────────────────────────────────────────────────── */
.form-label { font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.form-control, .form-select { border-radius: var(--radius-s); border-color: #cfd5db; padding: .7rem .9rem; font-size: 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb),.15); }
.form-check-input { border-color: #9aa4ae; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb),.15); }
.optional { color: var(--ink-3); font-weight: 400; }
.form-hint { display: block; color: var(--ink-3); font-size: .85rem; margin-top: .3rem; }
.field-error, .field-validation-error { display: block; color: #b42318; font-size: .87rem; margin-top: .3rem; }
.field-validation-valid { display: none; }
.input-validation-error { border-color: #b42318 !important; }
.validation-summary-valid { display: none; }
.form-status:not(:empty) { color: #b42318; font-size: .92rem; margin-bottom: .75rem; }
.form-success { text-align: center; padding: 1.5rem 0; }
.form-success [data-lucide] { width: 44px; height: 44px; color: var(--ok); }
.form-success h3 { font-size: 1.3rem; margin: .8rem 0 .4rem; }
.form-success p { color: var(--ink-2); margin: 0; }
.modal-content { border-radius: var(--radius-l); border: 0; }
.modal-header { border-bottom: 0; padding: 1.5rem 1.75rem 0; }
.modal-title { font-size: 1.3rem; }
.modal-body { padding: 1.25rem 1.75rem 1.75rem; }

/* ── Checkout ─────────────────────────────────────────────────────────── */
.checkout { padding: clamp(2.5rem, 5vw, 4rem) 0 5rem; background: var(--mist); min-height: 70vh; }
.checkout-head { margin-bottom: 2rem; }
.checkout-head h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: .4rem; }
.checkout-head p { color: var(--ink-2); margin: 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.checkout-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.75rem; margin: 0 0 1.5rem; }
/* legend flotante: así queda dentro del padding y no montado sobre el borde del fieldset */
.checkout-block legend + * { clear: both; }
.checkout-block legend { float: left; width: 100%; padding: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .65rem; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .95rem; }
.checkout-subtitle { font-size: 1.05rem; margin: 2rem 0 .9rem; }

.option-input { position: absolute; opacity: 0; pointer-events: none; }
.plan-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.option-card {
    display: flex; flex-direction: column; gap: .2rem; height: 100%;
    border: 1.5px solid var(--line); border-radius: var(--radius-m); padding: 1rem 1.1rem; cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.option-card:hover { border-color: #b9c1c9; }
.option-input:checked + .option-card { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.option-input:focus-visible + .option-card { outline: 3px solid rgba(var(--brand-rgb),.45); outline-offset: 2px; }
.option-title { font-weight: 700; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.option-price { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.option-price small { font-size: .85rem; color: var(--ink-2); font-weight: 500; margin-left: .15rem; }
.option-note { font-size: .86rem; color: var(--ink-2); }
.option-card-plain { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; padding: .8rem 1.1rem; }

.addon-list { display: grid; gap: .75rem; }
.addon {
    display: grid; grid-template-columns: auto auto 1fr auto; gap: .9rem; align-items: center;
    border: 1.5px solid var(--line); border-radius: var(--radius-m); padding: 1rem 1.1rem; cursor: pointer;
}
.addon:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.addon .form-check-input { margin: 0; width: 1.25rem; height: 1.25rem; }
.addon-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--mist); color: var(--brand); }
.addon-body { display: flex; flex-direction: column; line-height: 1.35; }
.addon-body span { color: var(--ink-2); font-size: .9rem; }
.addon-price { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }

.segmented { display: inline-flex; padding: 4px; background: var(--mist); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 1.5rem; }
.segmented label { padding: .45rem 1.1rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.segmented .option-input:checked + label { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(21, 32, 43, .14); }
.segmented .option-input:focus-visible + label { outline: 3px solid rgba(var(--brand-rgb),.45); }

.checkout-summary { position: sticky; top: 96px; }
.summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.75rem; box-shadow: var(--shadow-1); }
.summary-card h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.summary-lines { list-style: none; padding: 0; margin: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--mist); font-size: .97rem; }
.summary-lines li small { display: block; color: var(--ink-3); font-size: .82rem; }
.summary-lines .summary-empty { color: var(--ink-3); justify-content: flex-start; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 1.1rem 0; font-weight: 600; }
.summary-total strong { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; }
.terms { margin-bottom: 1.1rem; font-size: .95rem; }
.summary-secure { display: flex; gap: .5rem; align-items: flex-start; margin: 1rem 0 0; color: var(--ink-3); font-size: .87rem; line-height: 1.4; }
.summary-secure [data-lucide] { flex: none; margin-top: .1rem; }

@media (max-width: 991.98px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
}
@media (max-width: 767.98px) {
    .plan-options { grid-template-columns: 1fr; }
    .addon { grid-template-columns: auto 1fr; row-gap: .4rem; }
    .addon-icon { display: none; }
    .addon-price { grid-column: 2; }
    .checkout-block { padding: 1.25rem; }
}
@media (max-width: 575.98px) {
    .container { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ── Páginas angostas (resultado, login) ──────────────────────────────── */
.narrow-page { padding: clamp(2.5rem, 6vw, 5rem) 0; background: var(--mist); min-height: 70vh; }
.container-narrow { max-width: 680px; }
.container-auth { max-width: 480px; }
.status-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-1); }
.status-card h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: .6rem; }
.status-card > p { color: var(--ink-2); }
.small-muted { color: var(--ink-3); font-size: .92rem; }

.order-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1.5rem; margin: 1.5rem 0; padding: 1.1rem 1.25rem; background: var(--mist); border-radius: var(--radius-m); }
.order-meta dt { font-size: .8rem; color: var(--ink-3); font-weight: 500; }
.order-meta dd { margin: 0; font-weight: 600; word-break: break-word; }
.order-items { width: 100%; border-collapse: collapse; }
.order-items th, .order-items td { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.order-items thead th { font-size: .82rem; color: var(--ink-3); font-weight: 500; }
.order-items tfoot th, .order-items tfoot td { border-bottom: 0; font-size: 1.1rem; }
.order-item-period { display: block; font-size: .82rem; color: var(--ink-3); }

.result-stamp {
    width: 104px; height: 104px; border-radius: 50%; margin-bottom: 1.5rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    border: 3px solid currentColor; outline: 2px solid currentColor; outline-offset: -9px;
    font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; line-height: 1.15;
    transform: rotate(-10deg);
}
.result-stamp strong { font-size: .85rem; }
.result-ok { color: var(--ok); }
.result-fail { color: #b42318; }
.next-box { margin-top: 2rem; padding: 1.4rem 1.5rem; border: 1.5px dashed var(--brand); border-radius: var(--radius-m); background: var(--brand-soft); }
.next-box h2 { font-size: 1.15rem; margin-bottom: .4rem; }
.next-box p { color: var(--ink-2); }
.demo-note { margin: 1rem 0 0; font-size: .85rem; color: #7a4a00 !important; }

.prose h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.prose p { color: var(--ink-2); max-width: 68ch; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #c4ccd4; padding: 4rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer .brand-inverse, .site-footer .brand-inverse:hover { color: #fff; text-decoration: none; }
.footer-brand p { margin: 1rem 0 .75rem; max-width: 34ch; }
.footer-brand address { margin: 0; color: #93a0ac; }
.footer-title { font-size: .95rem; color: #fff; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .3rem 0; }
.site-footer a { color: #c4ccd4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; color: #93a0ac; font-size: .88rem; }
.footer-legal a { margin-left: 1.25rem; }
@media (max-width: 767.98px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-legal a { margin: 0 1.25rem 0 0; }
}

/* ── WhatsApp flotante ────────────────────────────────────────────────── */
.whatsapp-float {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040;
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: #1f9e57; color: #fff; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35);
}
.whatsapp-float:hover { background: #17834a; color: #fff; }

/* ══════════════════════════════════════════════════════════════════════════
   Mi cuenta (backoffice del cliente)
   Layout propio de aplicación: barra lateral fija + barra superior, sin header
   ni footer del sitio. En móvil la barra lateral se abre como panel.
   ══════════════════════════════════════════════════════════════════════════ */
.app-body { background: var(--mist); min-height: 100vh; }
.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.app-sidebar {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.5rem;
    background: #fff; border-right: 1px solid var(--line); padding: 1.25rem .9rem; overflow-y: auto;
}
.app-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 .5rem; }
.app-sidebar .brand-mark { height: 34px; }
.app-sidebar .brand-name-1 { font-size: 1.1rem; }
.app-sidebar .brand-name-2 { font-size: .9rem; }
.app-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.app-nav a, .app-sidebar-foot a {
    display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border-radius: var(--radius-s);
    color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .97rem;
}
.app-nav a:hover, .app-sidebar-foot a:hover { background: var(--mist); color: var(--ink); }
.app-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.app-nav [data-lucide], .app-nav svg, .app-sidebar-foot svg { width: 18px; height: 18px; flex-shrink: 0; }
.app-nav-label { margin: 1.25rem 0 .35rem .75rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.app-sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: .75rem; display: grid; gap: .15rem; }
.app-sidebar-foot a { font-size: .9rem; }
.app-nav-close, .app-nav-open {
    display: none; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
    border: 0; border-radius: var(--radius-s); background: transparent; color: var(--ink);
}
.app-nav-close:hover, .app-nav-open:hover { background: var(--mist); }
.app-backdrop { position: fixed; inset: 0; background: rgba(21, 32, 43, .4); z-index: 1040; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
    position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem;
    min-height: 64px; padding: .5rem clamp(1rem, 3vw, 2rem); background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.app-topbar-brand { display: none; }
.app-topbar-brand .brand-mark { height: 30px; }
.app-demo { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--warn); background: #fdf3e7; border-radius: 999px; padding: .2rem .65rem; }
.app-demo svg { width: 14px; height: 14px; }
.app-user { margin-left: auto; display: flex; align-items: center; gap: .65rem; min-width: 0; }
.app-avatar {
    flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: .85rem;
}
.app-user-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.app-user-text strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26ch; }
.app-user-text small { color: var(--ink-3); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30ch; }
.app-user form { margin: 0; }
.app-logout {
    display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: #fff;
    color: var(--ink-2); border-radius: var(--radius-s); padding: .4rem .75rem; font-size: .9rem; font-weight: 500;
}
.app-logout:hover { color: var(--ink); border-color: #cfd5db; }
.app-logout svg { width: 16px; height: 16px; }
.app-content { width: 100%; max-width: 1080px; padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2rem) 4rem; }

@media (max-width: 991.98px) {
    .app-shell { grid-template-columns: minmax(0, 1fr); }
    .app-sidebar {
        position: fixed; inset: 0 auto 0 0; width: min(290px, 85vw); z-index: 1050;
        transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-2);
    }
    .app-sidebar.open { transform: none; }
    .app-nav-close, .app-nav-open { display: inline-flex; }
    .app-topbar-brand { display: inline-flex; }
    .app-user-text { display: none; }
}
@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) { .app-sidebar { transition: none; } }
@media (max-width: 575.98px) { .app-logout span { display: none; } }

.account-title { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: .35rem; }
.account-lead { color: var(--ink-2); margin-bottom: 1.5rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(1.1rem, 3vw, 1.6rem); margin-bottom: 1.25rem; }
.panel h2 { font-size: 1.15rem; margin-bottom: .75rem; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.panel-head h2 { margin: 0; }
.panel-action { border: 1.5px solid var(--brand); background: var(--brand-soft); }
.panel-action p { color: var(--ink-2); }

/* Estados: badges suaves (un color, un significado) */
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.pill-success { background: var(--ok-soft); color: var(--ok); }
.pill-warning { background: #fff4e5; color: var(--warn); }
.pill-info { background: var(--brand-soft); color: var(--brand-ink); }
.pill-secondary { background: var(--mist); color: var(--ink-2); }
.pill-danger { background: #fdecec; color: #b42318; }

/* Datos clave en dos columnas */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0; }
.kv dt { color: var(--ink-3); font-weight: 500; }
.kv dd { margin: 0; color: var(--ink); }
@media (max-width: 575.98px) { .kv { grid-template-columns: 1fr; gap: .1rem; } .kv dd { margin-bottom: .5rem; } }

/* Stepper de la contratación: Pago → Datos → Revisión → Firma → Activo */
.stepper { list-style: none; display: flex; padding: 0; margin: 1.25rem 0 .5rem; counter-reset: paso; }
.stepper li { flex: 1; position: relative; text-align: center; font-size: .85rem; color: var(--ink-3); padding-top: 2.4rem; }
.stepper li::before {
    counter-increment: paso; content: counter(paso);
    position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
    width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
    background: #fff; border: 2px solid var(--line); color: var(--ink-3); font-weight: 700;
}
.stepper li::after { content: ""; position: absolute; top: 1rem; left: -50%; width: 100%; height: 2px; background: var(--line); }
.stepper li:first-child::after { display: none; }
.stepper li.done { color: var(--ink-2); }
.stepper li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.done::after, .stepper li.current::after { background: var(--ok); }
.stepper li.current { color: var(--ink); font-weight: 600; }
.stepper li.current::before { border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .15); }
@media (max-width: 575.98px) { .stepper li { font-size: .72rem; } }

.days-left { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.days-left small { font-size: .95rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

/* Tablas de listados del cliente */
.account-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.account-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; padding: .5rem .75rem; border-bottom: 1px solid var(--line); }
.account-table td { padding: .8rem .75rem; border-bottom: 1px solid var(--mist); vertical-align: top; }
.account-table tr:last-child td { border-bottom: 0; }
.account-table .num { text-align: right; white-space: nowrap; }
@media (max-width: 767.98px) {
    .account-table thead { display: none; }
    .account-table tr { display: block; padding: .75rem 0; border-bottom: 1px solid var(--line); }
    .account-table td { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border: 0; text-align: right; }
    .account-table td::before { content: attr(data-label); color: var(--ink-3); font-size: .85rem; }
    .account-table .num { text-align: left; }
}

.empty-state { text-align: center; padding: 2rem 1rem; color: var(--ink-3); }
.empty-state [data-lucide] { width: 40px; height: 40px; color: var(--line); margin-bottom: .5rem; }
.form-section-title { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* ── Creador de sitios web (mi cuenta) ── */
.text-ok { color: var(--ok); width: 18px; height: 18px; vertical-align: -3px; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem 1.25rem; margin: 0 0 1rem; }
.status-grid dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; }
.status-grid dd { margin: .2rem 0 0; }
.website-logo-preview { max-height: 56px; max-width: 180px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.template-option { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-m); padding: .9rem; cursor: pointer; }
.template-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.template-option input { margin-top: .3rem; accent-color: var(--brand); }
.revision-list, .history-list, .check-list, .ns-list { list-style: none; padding: 0; margin: .75rem 0 0; }
.revision-list li { padding: .55rem 0; border-bottom: 1px solid var(--mist); }
.revision-list .pill { margin-right: .4rem; }
.history-list li { padding: .3rem 0; font-size: .93rem; }
.check-list li { padding: .25rem 0 .25rem 1.6rem; position: relative; color: var(--ink-2); }
.check-list li::before { content: "○"; position: absolute; left: 0; color: var(--ink-3); }
.check-list li.ok::before { content: "✓"; color: var(--ok); font-weight: 700; }
.ns-list li { margin: .3rem 0; }
.ns-list code { font-size: 1rem; background: var(--mist); padding: .15rem .45rem; border-radius: 6px; user-select: all; }
.steps-list { padding-left: 1.2rem; }
.steps-list li { margin-bottom: .45rem; }
.section-order { list-style: none; padding: 0; margin: .25rem 0 0; max-width: 420px; }
.section-order li { display: flex; align-items: center; gap: .4rem; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 8px; margin-bottom: .35rem; background: #fff; }
.section-order li span { flex: 1; }
.dns-value { word-break: break-all; max-width: 420px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.preview-frame { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: #fff; }
.preview-frame iframe { display: block; width: 100%; height: 75vh; min-height: 520px; border: 0; }
.template-showcase { display: grid; gap: 2rem; }
.template-showcase .preview-frame iframe { height: 560px; min-height: 0; }

/* Contraseña con botón para mostrar u ocultar (site.js) */
.password-field { position: relative; }
.password-field .form-control { padding-right: 3rem; }
.password-toggle { position: absolute; top: 50%; right: .35rem; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; padding: 0; border: 0; border-radius: var(--radius-m); background: transparent; color: var(--ink); opacity: .55; cursor: pointer; }
.password-toggle:hover, .password-toggle[aria-pressed="true"] { opacity: 1; color: var(--brand); }
.password-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; opacity: 1; }
.password-toggle svg { width: 1.15rem; height: 1.15rem; }

/* ── Mi cuenta: contratar y detalle de compra ─────────────────────────── */
.back-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.back-link:hover { color: var(--brand-ink); }
.back-link svg { width: 16px; height: 16px; }
.buy-section-title { font-size: 1.15rem; font-weight: 700; margin: 1.75rem 0 .85rem; }
.buy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.buy-card { display: flex; flex-direction: column; margin: 0; }
.buy-card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.buy-card-head h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.buy-card-price { margin: .6rem 0 .5rem; }
.buy-price { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.buy-period { display: block; color: var(--ink-3); font-size: .85rem; }
.buy-list { list-style: none; margin: 0; padding: 0; }
.buy-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--mist); }
.buy-list li:first-child { padding-top: 0; }
.buy-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.buy-list-text { display: flex; flex-direction: column; gap: .15rem; }
.buy-list-price { margin: 0; text-align: right; }
.buy-list-price .buy-price { font-size: 1.15rem; }
.buy-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-s); background: var(--brand-soft); color: var(--brand); flex: none; }
.buy-icon svg { width: 22px; height: 22px; }
.buy-confirm { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.buy-confirm-head { display: flex; gap: 1rem; align-items: flex-start; }
.buy-confirm-head h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .2rem; }
.buy-confirm .order-meta { margin: 0; }
.buy-summary { position: sticky; top: 84px; }
.buy-summary h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.buy-summary-line { display: flex; justify-content: space-between; gap: 1rem; }
.buy-summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); margin: 1rem 0 1.25rem; padding-top: 1rem; }
.buy-summary-total strong { font-size: 1.6rem; letter-spacing: -0.02em; }
.buy-summary p svg { width: 16px; height: 16px; flex: none; margin-top: .15rem; }
@media (max-width: 991.98px) {
    .buy-confirm { grid-template-columns: minmax(0, 1fr); }
    .buy-summary { position: static; }
}
@media (max-width: 575.98px) {
    .buy-list li { grid-template-columns: auto minmax(0, 1fr); }
    .buy-list-price { text-align: left; grid-column: 2; }
    .buy-list li .btn { grid-column: 2; justify-self: start; }
}
.purchase-status { display: flex; gap: 1rem; align-items: flex-start; }
.purchase-status h1 { font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 .35rem; }
.purchase-status p { color: var(--ink-2); }
.purchase-status form { margin: 0; }
.purchase-status-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex: none; background: var(--brand-soft); color: var(--brand); }
.purchase-status-icon svg { width: 26px; height: 26px; }
.purchase-status-paid .purchase-status-icon { background: var(--ok-soft); color: var(--ok); }
.purchase-status-rejected .purchase-status-icon, .purchase-status-cancelled .purchase-status-icon { background: #fdecea; color: #b42318; }

/* ── Mi cuenta: sitio web (venta y galería de estilos) ────────────────── */
.pitch-hero { text-align: center; padding: clamp(1.75rem, 5vw, 3rem) clamp(1.1rem, 4vw, 2.5rem); }
.pitch-eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: .85rem; border-radius: 999px; padding: .25rem .8rem; margin-bottom: .9rem; }
.pitch-hero h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 auto .6rem; max-width: 24ch; }
.pitch-lead { color: var(--ink-2); font-size: 1.08rem; max-width: 56ch; margin: 0 auto 1.5rem; }
.pitch-price { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; background: var(--brand-soft); border: 1px solid rgba(var(--brand-rgb), .25); border-radius: var(--radius-m); padding: 1rem 1.75rem; margin-bottom: 1.5rem; }
.pitch-price strong { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--brand-ink); }
.pitch-price span { color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.pitch-hero .btn-lg { display: block; width: fit-content; margin: 0 auto; }
.pitch-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.pitch-pillars .panel { margin: 0; }
.pitch-pillars h3 { font-size: 1.2rem; font-weight: 800; margin: .75rem 0 .75rem; }
.pitch-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-s); background: var(--brand-soft); color: var(--brand); }
.pitch-icon svg { width: 22px; height: 22px; }
.pitch-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.pitch-steps li { counter-increment: step; display: flex; flex-direction: column; gap: .25rem; }
.pitch-steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: .4rem; }
.pitch-steps span { color: var(--ink-2); font-size: .95rem; }
.pitch-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pitch-scope h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; }
.pitch-no { list-style: none; padding: 0; color: var(--ink-2); }
.pitch-no li { padding: .35rem 0 .35rem 1.5rem; position: relative; }
.pitch-no li::before { content: "–"; position: absolute; left: .3rem; color: var(--ink-3); }
.pitch-final { text-align: center; margin: 2rem 0 1rem; }
@media (max-width: 991.98px) {
    .pitch-pillars { grid-template-columns: minmax(0, 1fr); }
    .pitch-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .pitch-steps, .pitch-scope { grid-template-columns: minmax(0, 1fr); }
}

.color-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: .75rem 1rem; }
.color-bar-label { font-weight: 600; margin-right: .25rem; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; background: var(--sw); box-shadow: 0 0 0 1px var(--line); padding: 0; cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.swatch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.swatch-auto { background: conic-gradient(#6d28d9, #0369a1, #15803d, #b45309, #be123c, #6d28d9); }
.swatch-custom { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .75rem .2rem .25rem; cursor: pointer; font-size: .92rem; font-weight: 500; }
.swatch-custom.is-active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.swatch-custom input { width: 30px; height: 30px; border: 0; border-radius: 50%; padding: 0; background: none; cursor: pointer; }
.swatch-custom input::-webkit-color-swatch-wrapper { padding: 0; }
.swatch-custom input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.swatch-custom input::-moz-color-swatch { border: 0; border-radius: 50%; }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.style-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; }
.style-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); border-bottom: 1px solid var(--line); }
.style-thumb iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 960px; border: 0; transform-origin: 0 0; pointer-events: none; }
.style-card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.style-card-body h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.style-card-body p { color: var(--ink-2); font-size: .93rem; margin: 0 0 .35rem; }
.style-card-body a { margin-top: auto; font-size: .92rem; display: inline-flex; align-items: center; gap: .3rem; }
.style-card-body a svg { width: 14px; height: 14px; }
.buy-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.buy-bar > div { display: flex; flex-direction: column; }

/* ── Mi cuenta: recorrido del cliente (bajo la barra superior) ───────── */
.journey { background: #fff; border-bottom: 1px solid var(--line); padding: .7rem clamp(1rem, 3vw, 2rem) .8rem; }
.journey-title { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .55rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.journey-title span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.journey-steps { list-style: none; margin: 0; padding: 0 0 .15rem; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: thin; }
.journey-step { position: relative; flex: 1 1 0; min-width: 168px; }
.journey-step a {
    display: flex; align-items: center; gap: .6rem; height: 100%; padding: .5rem .7rem; border-radius: var(--radius-s);
    border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, background .15s;
}
.journey-step a:hover { border-color: rgba(var(--brand-rgb), .45); background: var(--brand-soft); }
.journey-dot { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mist); color: var(--ink-2); }
.journey-dot svg { width: 16px; height: 16px; }
.journey-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.journey-text strong { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journey-text small { font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
.journey-step.is-owned a { background: var(--ok-soft); border-color: transparent; }
.journey-step.is-owned .journey-dot { background: var(--ok); color: #fff; }
.journey-step.is-owned small { color: var(--ok); font-weight: 600; }
.journey-step.is-available .journey-dot { background: var(--brand-soft); color: var(--brand); }
.journey-step.is-available small { color: var(--brand-ink); font-weight: 600; }
.journey-step.is-pending .journey-dot { background: #fdf3e7; color: var(--warn); }
.journey-step.is-pending small { color: var(--warn); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .journey-step a { transition: none; } }

/* ── Contrato y firma (/firmar/{token}, Mi cuenta → Contrato) ───────────── */
.signer-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-m); }
.signer-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .65rem .9rem; }
.signer-list li + li { border-top: 1px solid var(--line); }
.signing-guide { margin-top: 1.75rem; padding: 1.2rem 1.3rem; border-radius: var(--radius-m); background: var(--mist); }
.signing-guide h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.signing-steps { padding-left: 1.2rem; margin-bottom: .8rem; }
.signing-steps li { margin-bottom: .35rem; }
.signing-providers { list-style: none; padding: 0; margin: 0 0 .8rem; font-size: .92rem; }
.signing-providers li { margin-bottom: .25rem; }
.signing-warning { display: flex; gap: .5rem; align-items: flex-start; margin: 0; font-size: .92rem; color: var(--warn); font-weight: 600; }
.signing-warning svg { flex: none; width: 18px; height: 18px; margin-top: .1rem; }
.signed-upload { margin-top: 1.5rem; }
.rep-row { border: 1px solid var(--line); border-radius: var(--radius-m); padding: .9rem 1rem 1rem; margin-bottom: .9rem; }
.rep-row-title { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: .95rem; font-weight: 700; margin-bottom: .4rem; float: none; }
