/*
 * PÁGINAS PÚBLICAS DE LA DEMO (registro, confirmación, demo finalizada, enlace no válido, aviso de privacidad).
 *
 * Fuera del panel de Filament: aquí no hay Tailwind ni CSS de Filament, todo el maquetado es este fichero. La paleta es la de las tres
 * apps (índigo primario, esmeralda de éxito) con un acento verde azulado para el héroe.
 */
:root {
    --demo-ink: #0f172a;
    --demo-muted: #64748b;
    --demo-line: #e2e8f0;
    --demo-bg: #f1f5f9;
    --demo-card: #ffffff;
    --demo-primary: #4f46e5;
    --demo-primary-dark: #3730a3;
    --demo-teal: #0d9488;
    --demo-error: #e11d48;
    --demo-ok: #059669;
    --demo-warn-bg: #fff8e6;
    --demo-warn-line: #f5dfa0;
    --demo-warn-ink: #7a5b00;
}

* { box-sizing: border-box; }

.demo-body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--demo-bg);
    color: var(--demo-ink);
    font: 400 1rem/1.55 Poppins, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.demo-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: .75rem 1.5rem;
    background: #fff; border-bottom: 1px solid var(--demo-line);
}
.demo-brand { display: inline-flex; }
.demo-brand img { display: block; height: 2.5rem; width: auto; }
.demo-locales { font-size: .875rem; color: var(--demo-muted); display: flex; gap: .5rem; align-items: center; }
.demo-locales a { color: var(--demo-primary); text-decoration: none; }
.demo-locales a:hover { text-decoration: underline; }
.demo-locales [aria-current] { color: var(--demo-ink); font-weight: 600; }

.demo-main { flex: 1; display: flex; flex-direction: column; }

.demo-foot {
    padding: 1rem 1.5rem; text-align: center; font-size: .8125rem; color: var(--demo-muted);
}
.demo-foot a { color: var(--demo-primary); margin-left: .5rem; }

/* ── Registro: héroe a la izquierda, tarjeta a la derecha ─────────────────────────────── */
.demo-split { flex: 1; display: grid; grid-template-columns: 1fr; }
@media (min-width: 62rem) { .demo-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

.demo-hero {
    padding: 3rem 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #0f766e 100%);
    display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 62rem) { .demo-hero { padding: 4rem 4rem 4rem 5rem; } }
.demo-hero h1 { margin: 0 0 1rem; font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.15; font-weight: 700; max-width: 30rem; }
.demo-lead { margin: 0 0 1.5rem; max-width: 30rem; font-size: 1.0625rem; color: rgb(255 255 255 / .85); }
.demo-badge {
    display: inline-block; align-self: flex-start; margin: 0 0 1rem; padding: .25rem .75rem;
    border-radius: 999px; background: rgb(255 255 255 / .14); font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
}
.demo-chips { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.demo-chips li {
    padding: .4rem .9rem; border-radius: 999px; font-size: .875rem; font-weight: 600;
    background: #99f6e4; color: #134e4a;
}
.demo-points { margin: 0; padding: 0; list-style: none; max-width: 32rem; display: grid; gap: .65rem; }
.demo-points li { position: relative; padding-left: 1.5rem; color: rgb(255 255 255 / .9); font-size: .9375rem; }
.demo-points li::before {
    content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem; border-radius: 50%; background: #5eead4;
}

.demo-card {
    background: var(--demo-card); border-radius: 1rem; padding: 2rem 1.75rem;
    margin: 1.5rem; align-self: center; width: min(100% - 3rem, 30rem);
    box-shadow: 0 10px 40px -12px rgb(15 23 42 / .18); border: 1px solid var(--demo-line);
}
@media (min-width: 62rem) { .demo-split .demo-card { justify-self: center; } }
.demo-card h1, .demo-card h2 { margin: 0 0 1rem; font-size: 1.5rem; line-height: 1.25; font-weight: 700; color: var(--demo-ink); }
.demo-card--narrow { width: min(100% - 3rem, 34rem); text-align: center; padding: 2.5rem 2rem; }
.demo-card--narrow p { margin: 0 0 1rem; color: #334155; }
.demo-card--prose { width: min(100% - 3rem, 46rem); padding: 2.5rem 2.25rem; }
.demo-card--prose h2 { font-size: 1.0625rem; margin: 1.5rem 0 .5rem; }
.demo-card--prose p, .demo-card--prose li { color: #334155; font-size: .9375rem; }
.demo-card--prose ul { padding-left: 1.25rem; margin: 0; }

/* ── Formulario ────────────────────────────────────────────────────────────────────────── */
.demo-field, .demo-check { margin-bottom: 1.1rem; }
.demo-field label { display: block; margin-bottom: .35rem; font-size: .875rem; font-weight: 600; color: #1e293b; }
.demo-field input {
    width: 100%; padding: .7rem .85rem; border: 1px solid #cbd5e1; border-radius: .6rem;
    font: inherit; color: var(--demo-ink); background: #fff;
}
.demo-field input:focus { outline: 2px solid var(--demo-primary); outline-offset: 1px; border-color: var(--demo-primary); }
.demo-field.has-error input, .demo-check.has-error input { border-color: var(--demo-error); }
.demo-hint { margin: .3rem 0 0; font-size: .8125rem; color: var(--demo-muted); }
.demo-note {
    margin: .5rem 0 0; padding: .6rem .8rem; border-radius: .5rem; font-size: .8125rem; line-height: 1.45;
    background: var(--demo-warn-bg); border: 1px solid var(--demo-warn-line); color: var(--demo-warn-ink);
}
.demo-error { margin: .35rem 0 0; font-size: .8125rem; color: var(--demo-error); }
.demo-check { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-start; }
.demo-check input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--demo-primary); flex: none; }
.demo-check label { flex: 1; font-size: .8125rem; color: #475569; line-height: 1.45; }
.demo-check label a, .demo-link, .demo-foot-note a { color: var(--demo-primary); }
.demo-check .demo-error { flex-basis: 100%; }

/* El campo trampa sale de la pantalla sin `display: none` (algunos bots lo ignoran). */
.demo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.demo-button {
    display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: .85rem 1.25rem;
    border: 0; border-radius: .65rem; background: var(--demo-primary); color: #fff;
    font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s;
}
.demo-button:hover { background: var(--demo-primary-dark); }
.demo-button--wa { background: #16a34a; margin-bottom: 1rem; }
.demo-button--wa:hover { background: #15803d; }

.demo-foot-note { margin: 1.1rem 0 0; font-size: .8125rem; color: var(--demo-muted); text-align: center; }
.demo-muted { color: var(--demo-muted); font-size: .875rem; }
.demo-link { display: inline-block; margin-top: .25rem; font-size: .9375rem; }

.demo-alert { margin: 0 0 1rem; padding: .75rem 1rem; border-radius: .6rem; font-size: .875rem; }
.demo-alert--error { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; }

/* ── Páginas de un solo mensaje ────────────────────────────────────────────────────────── */
.demo-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem 0; }
.demo-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; margin: 0 auto 1.25rem;
    border-radius: 50%;
}
.demo-icon--ok { background: #d1fae5; color: var(--demo-ok); }
.demo-icon--end { background: #fef3c7; color: #b45309; }

@media (max-width: 40rem) {
    .demo-top { padding: .6rem 1rem; }
    .demo-hero { padding: 2rem 1.25rem; }
    .demo-card { margin: 1rem; width: calc(100% - 2rem); padding: 1.5rem 1.25rem; }
    .demo-card--narrow, .demo-card--prose { width: calc(100% - 2rem); }
}
