:root {
    --pp-accent: #1296E8;
    --pp-accent-600: #0f7fc7;
    --pp-ink: #0F172A;
    --pp-muted: #64748B;
    --pp-bg: #F7F9FC;
    --pp-border: #E2E8F0;
    --pp-success: #10B981;
    --pp-danger: #DC2626;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--pp-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    background: var(--pp-bg);
    color: var(--pp-ink);
}

/* Imagen de cabecera (hero) del formulario de inscripción: full-width dentro del contenedor, responsive. */
.hero {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    margin-bottom: 14px;
}

/* El FocusOnNavigate enfoca el <h1> tras navegar; se oculta ese anillo de foco solo en elementos
   enfocados por programa (headings / tabindex=-1). No afecta el foco de teclado en botones/inputs. */
h1:focus, h2:focus, h3:focus,
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Opciones tipo radio (campos de selección Sí/No). */
.opciones { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; }
.opciones .radio { display: inline-flex; align-items: center; gap: 6px; font-weight: normal; cursor: pointer; }
.opciones .radio input { margin: 0; }

.portal-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.portal-header {
    background: var(--pp-ink); color: #fff; padding: 14px 18px;
    font-weight: 800; letter-spacing: .3px;
}
.portal-brand { font-size: 1.05rem; }
.portal-main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 18px; }
.portal-footer { text-align: center; color: var(--pp-muted); font-size: .8rem; padding: 18px; }

.card { background: #fff; border: 1px solid var(--pp-border); border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
h1 { font-size: 1.4rem; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 0 0 10px; }
.muted { color: var(--pp-muted); font-size: .9rem; }

label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.campo-error { display: block; margin-top: 6px; color: var(--pp-danger); font-size: .82rem; font-weight: 500; }
/* Bloque de datos de salud: se separa visualmente porque tambien se separa legalmente (consentimiento
   expreso y aparte). El borde y el fondo le dicen a la persona «esto es otra cosa, y es opcional». */
.bloque-sensible { border: 1px solid var(--pp-border); border-radius: 12px; padding: 14px 14px 2px; margin: 0 0 14px; background: #f8fafc; }
.bloque-sensible > legend { padding: 0 6px; font-size: .85rem; font-weight: 700; color: var(--pp-ink, #16233E); }
.nota-sensible { margin: 0 0 12px; font-size: .82rem; line-height: 1.5; color: var(--pp-muted); }

.input, select.input { width: 100%; padding: 11px 12px; border: 1px solid var(--pp-border); border-radius: 10px; font-size: 1rem; background: #fff; }
.input:focus, select.input:focus { outline: 2px solid var(--pp-accent); border-color: var(--pp-accent); }

.btn { display: inline-block; width: 100%; padding: 12px 16px; border: 0; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; text-align: center; }
.btn-primary { background: var(--pp-accent); color: #fff; }
.btn-primary:hover { background: var(--pp-accent-600); }
.btn-ghost { background: transparent; color: var(--pp-muted); width: auto; padding: 8px 0; text-decoration: none; }

.alert { border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin-bottom: 14px; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: var(--pp-danger); }
.alert-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

.persona { border: 1px solid var(--pp-border); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.persona-nombre { font-weight: 700; }
.persona-sub { color: var(--pp-muted); font-size: .85rem; }
.row-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.row-check input[type=checkbox] { width: 18px; height: 18px; }

.chip { display: inline-block; background: #eff6ff; color: var(--pp-accent); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; }
.aforo { font-size: .85rem; color: var(--pp-muted); }
