/* =====================================================================
   Marca: 8.º Congreso Gastronómico foodgurus El Salvador · 10 marzo 2027
   Capa de marca sobre app.css (colores, tipografía y componentes).
   Los nombres --vv-* se conservan para no tocar cada componente: ahora
   apuntan a la paleta foodgurus (azul noche, amarillo, morado, rojo, verde agua).
   ===================================================================== */

/* Montserrat (OFL): equivalente web libre de Gotham, la tipografía de la gráfica */
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
    /* Paleta foodgurus (muestreada del logo y del brochure de patrocinios) */
    --fg-navy: #14182a;
    --fg-navy-2: #1f2440;
    --fg-yellow: #ffcc08;
    --fg-purple: #4f3c8d;
    --fg-red: #e44947;
    --fg-pink: #e8365a;
    --fg-teal: #2f9e8f;
    --fg-orange: #e8701e;

    /* Alias heredados (los componentes existentes usan estos nombres) */
    --vv-green: var(--fg-navy);
    --vv-green-dark: #0b0e1b;
    --vv-green-mid: var(--fg-purple);
    --vv-sage: #b9b4d0;
    --vv-mist: #eeebf7;
    --vv-teal: var(--fg-yellow);
    --vv-cream: #f5f4f9;
    --vv-slate: #4a4e63;

    /* Tokens de la app */
    --brand: var(--fg-navy);
    --brand-2: var(--fg-purple);
    --bg: #f4f3f8;
    --surface: #ffffff;
    --border: #e2e1ea;
    --text: #14182a;
    --text-secondary: #4a4e63;
    --muted: #747890;
    --grid: #ecebf2;
    --info-bg: #eeebf7;
    /* Gráficos (validados: contraste ≥3:1 y separación para daltonismo) */
    --series-1: #4f3c8d;
    --series-2: #e8701e;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(20, 24, 42, .06), 0 8px 24px rgba(20, 24, 42, .07);
    --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Montserrat", system-ui, sans-serif;
}

body { font-family: var(--font); letter-spacing: .005em; }
a { color: var(--vv-green-mid); }
h1 { font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; letter-spacing: .01em; color: var(--vv-green); }
h2 { font-weight: 600; color: var(--vv-green); }
.eyebrow { color: var(--vv-green-mid); letter-spacing: .16em; }
::selection { background: var(--vv-teal); color: var(--vv-green-dark); }

/* ---------- Botones ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: 9px 18px; border-color: #d5d8cf; }
.btn:hover { border-color: var(--vv-green-mid); background: #fbfbf8; }
.btn--primary { background: var(--vv-green); border-color: var(--vv-green); color: #fff; }
.btn--primary:hover { background: var(--vv-green-dark); border-color: var(--vv-green-dark); color: #fff; }
.btn--ghost { background: transparent; }
.btn--lg { padding: 14px 26px; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--vv-teal) 45%, transparent); border-color: var(--vv-green-mid); }
input:not([type=checkbox]):not([type=radio]), select, textarea { border-radius: 12px; border-color: #dcdfd6; }
.check input, .chip input { accent-color: var(--vv-green); }
.chip span { border-color: #d5d8cf; }
.chip input:checked + span { background: var(--vv-teal); border-color: var(--vv-teal); color: var(--vv-green-dark); font-weight: 600; }

/* ---------- Barra superior del personal ---------- */
.topbar { background: var(--vv-green); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.brand { gap: 12px; }
.brand__logo { height: 34px; width: auto; display: block; }
.brand__stack { display: flex; flex-direction: column; line-height: 1.1; }
.brand__org { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; opacity: .75; font-weight: 500; }
.brand__text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; letter-spacing: .03em; }
.nav a { font-weight: 500; }
.nav a.is-active { background: rgba(255, 204, 8, .22); }

/* ---------- Tarjetas y KPIs ---------- */
.card { border-color: var(--border); }
.kpi { border-top: 3px solid var(--vv-teal); }
.kpi__label { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: var(--vv-green-mid); }
.kpi__value { color: var(--vv-green); }
.progress span { background: var(--series-1); }
.bars__bar span { background: var(--series-1); }
.table th { background: #f8f8f4; color: var(--vv-green-mid); }
.tag--ok { background: #e3f3ef; color: #1d7a6e; }
.alert--success { background: #e6f4ef; color: #1d7a6e; border-color: #bfe3d7; }
.reader { background: var(--vv-green-dark); }
.checkin-result.is-ok { border-color: #2f9e8f; background: #e6f4ef; }
.checkin-result.is-ok .checkin-result__icon { background: #2f9e8f; }
.result-card { border-top-color: var(--vv-teal); }
.live-dot { background: var(--vv-teal); }

/* =====================================================================
   Página pública (registro, gafete, login)
   ===================================================================== */
.public { background: var(--vv-cream); color: var(--text); }

.vv-hero { position: relative; background: var(--vv-green); color: #fff; text-align: center; overflow: hidden; padding: 34px 16px 120px; }
.vv-hero::before { /* textura sutil de luz */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(900px 400px at 85% -10%, rgba(255,204,8,.20), transparent 60%),
                radial-gradient(700px 380px at -10% 110%, rgba(79,60,141,.12), transparent 60%);
}
.vv-hero__inner { position: relative; max-width: 980px; margin: 0 auto; }
.vv-hero__logo { width: 150px; height: auto; margin: 0 auto 26px; display: block; }
.vv-hero__title { font-family: var(--font-display); font-weight: 400; color: #fff; font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: 1; letter-spacing: .01em; margin: 0; text-transform: uppercase; }
.vv-hero__tagline { margin: 14px auto 0; max-width: 820px; text-transform: uppercase; letter-spacing: .32em; font-size: clamp(.72rem, 2.2vw, 1.02rem); line-height: 1.7; opacity: .95; }
.vv-hero__meta { margin-top: 22px; font-style: italic; opacity: .9; font-size: clamp(.9rem, 2.4vw, 1.05rem); }
.vv-hero__curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; display: block; }
.vv-hero--compact { padding: 26px 16px 96px; }
.vv-hero--compact .vv-hero__logo { width: 120px; margin-bottom: 14px; }
.vv-hero--compact .vv-hero__title { font-size: clamp(2rem, 7vw, 3.2rem); }

.public__main { position: relative; margin-top: -70px; z-index: 2; }
.container--narrow { max-width: 760px; }
.vv-layout { max-width: 1120px; margin: -70px auto 0; padding: 0 16px 48px; position: relative; z-index: 2; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.vv-layout > *, .reg-grid > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
@media (min-width: 980px) { .vv-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); align-items: start; } }

.public .card { border: 0; border-radius: 22px; box-shadow: 0 18px 50px rgba(20, 24, 42, .12); padding: 28px; }
@media (min-width: 720px) { .public .card { padding: 36px 40px; } }
.public .card h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-bottom: .35rem; }
.public .lead { color: var(--vv-slate); }
.public__footer { color: var(--vv-green-mid); padding-bottom: 40px; }
.public__footer a { color: var(--vv-green); font-weight: 600; }

/* Panel lateral con foto en arco y ejes temáticos */
.vv-aside { display: flex; flex-direction: column; gap: 18px; }
.vv-photo { position: relative; border-radius: 240px 240px 22px 22px; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--vv-mist); box-shadow: 0 18px 50px rgba(20, 24, 42, .14); }
.vv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vv-photo__badge { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); border-radius: 14px; padding: 12px 16px; color: var(--vv-green); font-size: .9rem; }
.vv-photo__badge strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; display: block; line-height: 1.1; }
.vv-ejes { background: var(--vv-mist); border-radius: 22px; padding: 22px 24px; }
.vv-ejes h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 0 0 10px; }
.vv-ejes ol { list-style: none; margin: 0; padding: 0; counter-reset: eje; }
.vv-ejes li { counter-increment: eje; display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(79, 60, 141, .14); color: var(--vv-green); font-weight: 500; line-height: 1.35; }
.vv-ejes li:first-child { border-top: 0; }
.vv-ejes li::before { content: counter(eje, upper-roman); font-family: var(--font-display); font-size: 1.35rem; color: var(--vv-green-mid); line-height: 1; padding-top: 1px; }
@media (max-width: 979px) { .vv-photo { aspect-ratio: 4 / 3.4; border-radius: 200px 200px 22px 22px; } .vv-photo img { object-position: center 30%; } .vv-photo__badge strong { font-size: 1.25rem; } }

/* Formulario público */
.public .field > span, .public .field legend { color: var(--vv-green); }
.public .btn--primary.btn--lg { font-size: 1.02rem; letter-spacing: .02em; padding: 16px 26px; }
.public .check { color: var(--vv-slate); }

/* ---------- Gafete (pase) ---------- */
.badge { max-width: 400px; border: 0; border-radius: 26px; box-shadow: 0 22px 60px rgba(20, 24, 42, .18); padding-bottom: 0; overflow: hidden; }
.badge__head { flex-direction: column; gap: 6px; padding: 22px 20px 44px; background: var(--vv-green); position: relative; }
.badge__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 34px; background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.badge__logo { width: 64px; height: auto; }
.badge__event { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; text-align: center; letter-spacing: .02em; text-transform: uppercase; line-height: 1.05; }
.badge__type { background: var(--vv-teal); color: var(--vv-green-dark); letter-spacing: .22em; font-size: .68rem; padding: 4px 12px; border-radius: 999px; }
.badge__qr { margin-top: 4px; }
.badge__name { color: var(--vv-green); font-size: 1.55rem; }
.badge__company { color: var(--vv-slate); }
.badge__code { color: var(--muted); }
.badge__status { background: #e6f4ef; color: #1d7a6e; }
.badge__foot { margin-top: 18px; background: var(--vv-mist); color: var(--vv-green); padding: 12px 16px; font-size: .82rem; letter-spacing: .04em; }
.badge__foot em { display: block; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; font-style: normal; color: var(--vv-green-mid); margin-bottom: 2px; }

@media print {
    .vv-hero, .vv-aside { display: none !important; }
    .vv-layout { margin: 0; display: block; }
    .badge__head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.vv-hero__tagline span { display: block; }
.vv-hero__meta span { display: block; }
.vv-hero__meta span:first-child { font-style: italic; }
.vv-hero__meta span + span { font-style: normal; font-weight: 500; }

/* ---------- Crédito de desarrollo ---------- */
.credit { margin: 18px 0 0; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.credit a { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; text-decoration: none; opacity: .85; transition: opacity .15s; }
.credit a:hover { opacity: 1; text-decoration: none; }
.credit img { height: 28px; width: auto; display: block; }
.app-footer { text-align: center; padding: 8px 16px 28px; border-top: 1px solid var(--border); max-width: 1280px; margin: 0 auto; }

/* =====================================================================
   Reuniones 1 a 1
   ===================================================================== */
.nav__count, .pnav__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--vv-teal); color: var(--vv-green-dark); font-size: .72rem; font-weight: 700; margin-left: 4px; }
.nav__count[hidden], .pnav__count[hidden] { display: none; }
.fieldset-box { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 6px; margin: 8px 0 14px; }
.fieldset-box legend { padding: 0 6px; font-weight: 700; color: var(--vv-green); }
.tag--m-accepted { background: #e3f3ef; color: #1d7a6e; }
.tag--m-pending { background: var(--warn-bg); color: var(--warn); }
.tag--m-declined, .tag--m-cancelled { background: #f0f1ee; color: var(--muted); }

/* Navegación del portal */
.pnav { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 10px 12px; margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pnav__hello { color: var(--vv-green); padding: 0 6px; font-size: .95rem; }
.pnav__tabs { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pnav__tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; color: var(--vv-green-mid); font-weight: 600; font-size: .9rem; }
.pnav__tabs a:hover { background: var(--vv-mist); text-decoration: none; }
.pnav__tabs a.is-active { background: var(--vv-green); color: #fff; }
@media (max-width: 560px) { .pnav { flex-direction: column; align-items: stretch; } .pnav__tabs { justify-content: space-between; } .pnav__tabs a { padding: 8px 10px; font-size: .85rem; } }

/* Directorios */
.dir { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.dir__item { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--grid); color: var(--text); }
.dir__item:last-child { border-bottom: 0; }
.dir__item:hover { background: #fbfaf5; text-decoration: none; }
.dir__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--vv-mist); color: var(--vv-green); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.35rem; }
.dir__avatar--p { background: var(--vv-green); color: #fff; font-family: var(--font); font-weight: 600; font-size: .95rem; letter-spacing: .03em; }
.dir__main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.dir__main strong { color: var(--vv-green); }
.dir__desc { font-size: .84rem; color: var(--vv-slate); }
@media (max-width: 560px) { .dir__item { grid-template-columns: 40px 1fr; } .dir__avatar { width: 40px; height: 40px; } .dir__side { grid-column: 2; } }
.optin { background: var(--vv-mist); border-radius: 14px; padding: 12px 16px; margin: 12px 0 16px; }
.optin .check { margin: 0; color: var(--vv-green); }
.chips--static .chip span { cursor: default; background: var(--vv-mist); border-color: var(--vv-mist); color: var(--vv-green); }
.empty--soft { padding: 22px 10px; }
.portal-cta { margin-top: 20px; text-align: center; }
.portal-cta .actions { justify-content: center; }

/* Selector de horarios */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; margin: 4px 0 8px; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { display: block; text-align: center; padding: 10px 4px; border: 1.5px solid #d5d8cf; border-radius: 12px; font-weight: 600; color: var(--vv-green); cursor: pointer; font-variant-numeric: tabular-nums; background: #fff; }
.slot span:hover { border-color: var(--vv-green-mid); }
.slot input:checked + span { background: var(--vv-green); border-color: var(--vv-green); color: #fff; }
.slot input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--vv-teal) 60%, transparent); outline-offset: 2px; }
.slot.is-busy span { color: #b3b9b3; background: #f4f4f0; border-style: dashed; text-decoration: line-through; cursor: not-allowed; }

/* Tarjetas de reunión */
.mtgs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.mtg { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; border: 1px solid var(--border); border-left: 4px solid var(--vv-green); border-radius: 14px; padding: 12px 14px; background: #fff; }
.mtg--pending { border-left-color: var(--warm); }
.mtg--declined, .mtg--cancelled { border-left-color: #cfd3cc; opacity: .8; }
.mtg__time { font-family: var(--font-display); font-size: 1.6rem; color: var(--vv-green); line-height: 1; }
.mtg__time small { display: block; font-family: var(--font); font-size: .75rem; color: var(--muted); margin-top: 4px; }
.mtg__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mtg__body strong { color: var(--vv-green); font-size: 1.02rem; }
.mtg__type { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--vv-green-mid); font-weight: 700; }
.mtg__msg { font-size: .85rem; color: var(--vv-slate); font-style: italic; }
.mtg__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.mtg__actions form { margin: 0; }
.mtg__actions--stack { flex-direction: column; align-items: stretch; min-width: 170px; }
.inline-form { display: flex; gap: 6px; }
.inline-form select { padding: 6px 8px; font-size: .85rem; min-width: 0; }
@media (max-width: 640px) { .mtg { grid-template-columns: 56px 1fr; } .mtg__actions { grid-column: 1 / -1; justify-content: flex-start; } .mtg__actions--stack { min-width: 0; } }
details.closed summary { cursor: pointer; color: var(--vv-green-mid); font-weight: 600; margin: 8px 0; }

/* Agenda del stand por horario */
.timeline-slots { list-style: none; margin: 0; padding: 0; }
.tslot { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--grid); }
.tslot:first-child { border-top: 0; }
.tslot time { font-family: var(--font-display); font-size: 1.4rem; color: var(--vv-green); line-height: 1.2; }
.tslot.is-past { opacity: .55; }
.tslot__items { display: flex; flex-direction: column; gap: 8px; }
.tslot__item { display: flex; justify-content: space-between; gap: 12px; background: #f7faf8; border: 1px solid #dfece7; border-radius: 12px; padding: 10px 12px; }
.tslot__actions { display: flex; gap: 6px; align-items: flex-start; }
.tslot__actions form { margin: 0; }
.only-busy .tslot:not(.is-busy) { display: none; }
.only-busy-empty { display: none; }
.only-busy ~ .only-busy-empty { display: block; }
.check--compact { margin: 0; font-size: .85rem; }

/* Agendar desde el escáner */
.meet-box { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.meet-box h3 { margin: 0 0 8px; color: var(--vv-green); font-size: 1rem; }

/* =====================================================================
   Registro por secciones (asistente)
   ===================================================================== */
.reg-time { background: var(--vv-mist); color: var(--vv-green); border-radius: 14px; padding: 12px 16px; font-size: .9rem; margin: 6px 0 18px; }
.reg-progress { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; counter-reset: none; }
.reg-progress li[hidden] { display: none; }
.reg-progress li { display: flex; flex-direction: column; gap: 6px; font-size: .74rem; color: var(--muted); cursor: pointer; line-height: 1.2; }
.reg-progress li::before { content: ""; height: 5px; border-radius: 999px; background: #e6e8e1; transition: background .2s; }
.reg-progress li.is-done::before { background: var(--vv-teal); }
.reg-progress li.is-current::before { background: var(--vv-green); }
.reg-progress li.is-current, .reg-progress li.is-done { color: var(--vv-green); }
.reg-progress li.is-current { font-weight: 700; }
.reg-progress__n { display: none; }
@media (max-width: 640px) {
    .reg-progress li .reg-progress__t { display: none; }
    .reg-progress li.is-current .reg-progress__t { display: block; position: absolute; left: 0; right: 0; top: 14px; }
    .reg-progress { position: relative; padding-bottom: 20px; }
}

.reg-step { border-top: 1px solid var(--grid); padding-top: 18px; margin-top: 18px; }
.reg--wizard .reg-step { border-top: 0; padding-top: 0; margin-top: 0; }
.reg-step__head { margin-bottom: 14px; }
.reg-step__n { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--vv-green-mid); font-weight: 700; }
.reg-step__head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; margin: 2px 0 4px; }
.reg-step__head p { margin: 0; font-size: .92rem; }
.reg-step__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--grid); }
.reg-step__nav [data-next], .reg-step__nav [type=submit] { margin-left: auto; }
.reg:not(.reg--wizard) .reg-step:not(:last-child) .reg-step__nav { display: none; }

.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 16px; }
@media (min-width: 640px) { .reg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .reg-grid > * { grid-column: 1 / -1; } .reg-grid > .rf--half { grid-column: auto; } }
.rf-group { grid-column: 1 / -1; margin: 14px 0 4px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--vv-green-mid); border-bottom: 1px solid var(--grid); padding-bottom: 6px; }
.rf { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.rf > label, .rf > legend { font-weight: 600; font-size: .9rem; color: var(--vv-green); padding: 0; margin-bottom: 2px; line-height: 1.35; }
.rf__req { color: #b4532a; }
.rf__help { color: var(--muted); font-size: .8rem; }
.rf__error { color: #b42323; font-size: .82rem; font-weight: 600; }
.rf__warn { color: #9a5a12; font-size: .82rem; font-weight: 600; }
.rf.has-error input:not([type=radio]):not([type=checkbox]), .rf.has-error select, .rf.has-error textarea { border-color: #d05656; background: #fffafa; }
.rf.has-error .opt span, .rf.has-error .scale__opt span, .rf.has-error .seg-opt span { border-color: #e2a3a3; }
.check.has-error { color: #b42323; }
.rf > .rf__copy { font-weight: 400; margin: 2px 0 0; }
.rf__copy { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--vv-slate); cursor: pointer; }
.rf__copy input { accent-color: var(--vv-green); }
input[readonly] { background: #f6f7f3; color: var(--vv-slate); }

/* Opciones como tarjetas seleccionables */
.opts { display: flex; flex-direction: column; gap: 8px; }
.rf--inline .opts, .opts--chips { flex-direction: row; flex-wrap: wrap; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: block; padding: 11px 14px 11px 40px; border: 1.5px solid #dcdfd6; border-radius: 12px; background: #fff; font-size: .9rem; line-height: 1.35; color: var(--text); transition: border-color .12s, background .12s; position: relative; }
.opt span::before { content: ""; position: absolute; left: 14px; top: 13px; width: 16px; height: 16px; border: 1.5px solid #b9c0b6; border-radius: 50%; background: #fff; }
.opt input[type=checkbox] + span::before { border-radius: 5px; }
.opt:hover span { border-color: var(--vv-green-mid); }
.opt input:checked + span { border-color: var(--vv-green); background: #f1f8f6; }
.opt input:checked + span::before { border-color: var(--vv-green); background: var(--vv-green); box-shadow: inset 0 0 0 3px #fff; }
.opt input[type=checkbox]:checked + span::before { box-shadow: none; background: var(--vv-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--vv-teal) 60%, transparent); outline-offset: 2px; }
.opt.is-disabled span { opacity: .45; cursor: not-allowed; }
.rf--inline .opt span, .opts--chips .opt span { padding-right: 18px; }

/* Escala 1–5 */
.scale { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.scale__opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale__opt { position: relative; cursor: pointer; }
.scale__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale__opt span { display: flex; align-items: center; justify-content: center; height: 46px; border: 1.5px solid #dcdfd6; border-radius: 12px; background: #fff; font-family: var(--font-display); font-size: 1.35rem; color: var(--vv-green); }
.scale__opt input:checked + span { background: var(--vv-green); border-color: var(--vv-green); color: #fff; }
.scale__opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--vv-teal) 60%, transparent); outline-offset: 2px; }
.scale__end { font-size: .78rem; color: var(--muted); }
.scale__end--max { text-align: right; }
@media (min-width: 640px) { .scale { grid-template-columns: 110px 1fr 110px; align-items: center; gap: 12px; } .scale__end { text-align: right; } .scale__end--max { text-align: left; } }

/* Matriz Sí / No */
.matrix { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.matrix__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--grid); }
.matrix__row:first-child { border-top: 0; }
.matrix__row:nth-child(even) { background: #fbfbf8; }
.matrix__label { font-size: .88rem; color: var(--text); line-height: 1.3; }
.matrix__opts { display: inline-flex; flex: none; border: 1.5px solid #dcdfd6; border-radius: 999px; overflow: hidden; background: #fff; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-opt span { display: block; padding: 7px 16px; font-size: .86rem; font-weight: 600; color: var(--vv-green-mid); }
.seg-opt + .seg-opt span { border-left: 1.5px solid #dcdfd6; }
.seg-opt input:checked + span { background: var(--vv-green); color: #fff; }
.seg-opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--vv-teal) 60%, transparent); outline-offset: -3px; }

.legal-note { grid-column: 1 / -1; font-size: .84rem; color: var(--vv-slate); background: #f8f8f3; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; line-height: 1.5; }
.consents { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; }

/* =====================================================================
   Soluciones financieras (catálogo de productos)
   ===================================================================== */
:root { --cat-credito: #134d47; --cat-ahorro: #4f3c8d; --cat-inversion: #c27a1c; --cat-seguros: #33655f; --cat-consumo: #8a5a9e; --cat-formacion: #b0475f; }
.cat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--vv-mist); color: var(--vv-green); white-space: nowrap; }
.cat-pill--credito { background: #e2ecea; color: var(--cat-credito); }
.cat-pill--ahorro { background: #ddf1ed; color: #00695c; }
.cat-pill--inversion { background: #f8ecdb; color: #8e5710; }
.cat-pill--seguros { background: #e5eceb; color: var(--cat-seguros); }
.cat-pill--consumo { background: #f1e8f5; color: #6d4380; }
.cat-pill--formacion { background: #f6e3e7; color: #8e3449; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

.products { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .products--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product { border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; background: #fff; border-top: 4px solid var(--vv-teal); display: flex; flex-direction: column; gap: 8px; }
.product--credito { border-top-color: var(--cat-credito); }
.product--ahorro { border-top-color: var(--cat-ahorro); }
.product--inversion { border-top-color: var(--cat-inversion); }
.product--seguros { border-top-color: var(--cat-seguros); }
.product--consumo { border-top-color: var(--cat-consumo); }
.product--formacion { border-top-color: var(--cat-formacion); }
.product__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.product__name { margin: 2px 0 0; font-size: 1.12rem; color: var(--vv-green); font-weight: 700; line-height: 1.25; }
.product__stand { font-size: .82rem; color: var(--vv-slate); }
.product__attr { font-weight: 600; color: var(--vv-green-mid); font-size: .92rem; }
.product__benefit { background: #fff6e6; border: 1px dashed #e7c27f; border-radius: 12px; padding: 9px 12px; font-size: .88rem; color: #7a4b0b; }
.product__benefit strong { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #9a5a12; margin-bottom: 2px; }
.product dl { margin: 0; display: grid; gap: 6px; font-size: .88rem; }
.product dt { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.product dd { margin: 0 0 4px; color: var(--text); white-space: pre-line; }
.product ul { margin: 0; padding-left: 18px; }
.product__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.product--empty { border-style: dashed; border-top-width: 1px; background: #fbfbf8; align-items: flex-start; }
.product--empty .product__name { color: var(--muted); font-weight: 600; }

.cat-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 6px 0 16px; -webkit-overflow-scrolling: touch; }
.cat-tabs a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--vv-green-mid); font-weight: 600; font-size: .86rem; background: #fff; }
.cat-tabs a:hover { text-decoration: none; border-color: var(--vv-green-mid); }
.cat-tabs a.is-active { background: var(--vv-green); border-color: var(--vv-green); color: #fff; }
.reco { background: linear-gradient(135deg, #eef7f5, #f6f1e4); border-radius: 18px; padding: 16px 18px; margin-bottom: 18px; }
.reco h2 { margin: 0 0 4px; font-size: 1.05rem; }
.reco p { margin: 0 0 10px; font-size: .88rem; color: var(--vv-slate); }

/* Productos de interés en lead / escáner */
.interest-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-opts .opt span { font-size: .85rem; padding: 8px 12px 8px 34px; }
.interest-opts .opt span::before { left: 10px; top: 10px; width: 15px; height: 15px; }

/* Matriz resumen (admin) */
.matrix-table td { vertical-align: top; font-size: .84rem; min-width: 150px; }
.matrix-table td.is-empty { color: #b3b9b3; text-align: center; vertical-align: middle; }
.matrix-table .mt-name { font-weight: 700; color: var(--vv-green); display: block; }
.matrix-table .mt-attr { color: var(--vv-slate); display: block; }
.matrix-table .mt-benefit { color: #8e5710; display: block; margin-top: 2px; }
.matrix-table .mt-item + .mt-item { border-top: 1px dashed var(--border); margin-top: 8px; padding-top: 8px; }
.product-group { margin: 18px 0; }
.product-group__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.product-group__head h2 { margin: 0; font-size: 1rem; }
.completeness { display: inline-flex; gap: 3px; }
.completeness i { width: 10px; height: 10px; border-radius: 3px; background: #e6e8e1; display: inline-block; }
.completeness i.on { background: var(--series-1); }

/* Reporte de línea base */
.bl-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .bl-grid { grid-template-columns: 1fr 1fr; } }
.bl-q { margin: 0 0 10px; font-size: .95rem; color: var(--vv-green); }
.bl-q small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; margin-top: 2px; }
.bars__label--wide { white-space: normal; line-height: 1.25; }
.bars--wide .bars__row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 64px; }
.profile-sec { margin-bottom: 14px; }
.profile-sec h3 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--vv-green-mid); margin: 0 0 6px; }
.bars--wide { max-height: none; }
.interest-opts .opt span[data-reco="1"]::after { content: " ★"; color: #c27a1c; }
.qa { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.qa dt { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.qa dd { margin: 2px 0 0; font-weight: 600; color: var(--text); font-size: .9rem; overflow-wrap: anywhere; }


/* =====================================================================
   Capa foodgurus: tipografía tipo Gotham, hero nocturno con la cocina
   ===================================================================== */
body { letter-spacing: 0; }
h1, .public .card h1 { font-family: var(--font-display); font-weight: 900; letter-spacing: -.01em; color: var(--fg-navy); }
h2 { font-weight: 800; }
.eyebrow { color: var(--fg-purple); font-weight: 800; letter-spacing: .14em; }
::selection { background: var(--fg-yellow); color: var(--fg-navy); }
a { color: var(--fg-purple); }

.btn { font-weight: 700; }
.btn--primary { background: var(--fg-purple); border-color: var(--fg-purple); color: #fff; }
.btn--primary:hover { background: #3f2f75; border-color: #3f2f75; }
.public .btn--primary.btn--lg { background: var(--fg-pink); border-color: var(--fg-pink); text-transform: uppercase; letter-spacing: .06em; }
.public .btn--primary.btn--lg:hover { background: #cf2547; border-color: #cf2547; }
input:focus, select:focus, textarea:focus { outline-color: color-mix(in srgb, var(--fg-yellow) 60%, transparent); border-color: var(--fg-purple); }

/* Barra del personal */
.topbar { background: var(--fg-navy); border-bottom: 3px solid var(--fg-yellow); }
.brand__logo { height: 40px; border-radius: 8px; }
.brand__org { color: var(--fg-yellow); opacity: 1; font-weight: 700; letter-spacing: .2em; }
.brand__text { font-weight: 800; font-size: 1.05rem; letter-spacing: 0; }
.nav a.is-active { background: rgba(255, 204, 8, .18); color: var(--fg-yellow); }

.kpi { border-top-color: var(--fg-yellow); }
.kpi__value { color: var(--fg-navy); font-weight: 800; }

/* Hero público: azul noche + ilustración de cocina (gráfica oficial) */
.vv-hero { background: var(--fg-navy) url("../brand/fg/cocina.jpg") center bottom / min(1800px, 160%) auto no-repeat; padding: 30px 16px 190px; }
.vv-hero::before { background: radial-gradient(ellipse 60% 70% at 50% 32%, rgba(20,24,42,.92) 0%, rgba(20,24,42,.7) 55%, rgba(20,24,42,.35) 100%); }
.vv-hero__logo { width: min(520px, 88vw); margin: 4px auto 18px; }
.vv-hero__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vv-hero__tagline { text-transform: none; letter-spacing: .02em; font-weight: 700; font-size: clamp(.95rem, 2.6vw, 1.2rem); }
.vv-hero__meta { display: inline-flex; gap: 0; margin-top: 18px; background: #fff; color: var(--fg-navy); border-radius: 4px; overflow: hidden; font-style: normal; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.vv-hero__meta span { display: block; padding: 10px 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .86rem; }
.vv-hero__meta span:first-child { font-style: normal; }
.vv-hero__meta span + span { background: var(--fg-yellow); font-weight: 900; }
.vv-hero__curve path { fill: var(--vv-cream); }
.vv-hero--compact { padding: 22px 16px 104px; background-size: min(1200px, 200%) auto; }
.vv-hero--compact .vv-hero__logo { width: min(320px, 70vw); margin-bottom: 6px; }
@media (max-width: 640px) { .vv-hero { padding-bottom: 150px; } .vv-hero__meta { flex-direction: column; } }

.public__footer { color: var(--muted); }
.public__footer a { color: var(--fg-purple); }

/* Panel lateral */
.vv-photo { border-radius: 22px; aspect-ratio: 4 / 3.1; background: var(--fg-navy); }
.vv-photo__badge strong { font-family: var(--font-display); font-weight: 900; color: var(--fg-navy); }
.vv-photo__badge { border-left: 6px solid var(--fg-yellow); }
.vv-ejes { background: var(--fg-navy); color: #fff; }
.vv-ejes h2 { font-family: var(--font-display); font-weight: 900; color: var(--fg-yellow); text-transform: uppercase; font-size: 1.25rem; letter-spacing: .02em; }
.vv-ejes li { color: #fff; border-top-color: rgba(255,255,255,.12); font-weight: 600; }
.vv-ejes li::before { font-family: var(--font-display); font-weight: 900; color: var(--fg-yellow); }
.vv-ejes li:nth-child(3n+2)::before { color: var(--fg-red); }
.vv-ejes li:nth-child(3n)::before { color: #49c2b1; }

/* Registro simple */
.reg-simple { display: grid; gap: 4px 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .reg-simple { grid-template-columns: 1fr 1fr; } .reg-simple > * { grid-column: 1 / -1; } .reg-simple > .rf--half { grid-column: auto; } }

/* ---------- Gafete ---------- */
.badge__head { background: linear-gradient(rgba(20,24,42,.82), rgba(20,24,42,.82)), var(--fg-navy) url("../brand/fg/cocina.jpg") center bottom / 260% auto no-repeat; padding: 20px 18px 46px; gap: 14px; }
.badge__logo { width: min(280px, 80%); height: auto; }
.badge__event { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.badge__name { color: var(--fg-navy); font-weight: 900; }
.badge__foot { background: var(--fg-navy); color: #fff; }
.badge__foot em { color: var(--fg-yellow); }

/* =====================================================================
   Tipos de pase: el color identifica el acceso en gafete, entrada y admin
   ===================================================================== */
.pass-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--pass, #2f9e8f); color: var(--pass-ink, #fff); white-space: nowrap; }
.pass-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge { border-top: 0; }
.badge__type { background: var(--pass, var(--fg-yellow)); color: var(--pass-ink, var(--fg-navy)); font-weight: 900; letter-spacing: .14em; font-size: .78rem; padding: 6px 16px; }
.badge__band { background: var(--pass); color: var(--pass-ink); text-align: center; padding: 14px 16px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 1.05rem; margin-top: 16px; }
.badge__band small { display: block; font-weight: 600; letter-spacing: .02em; text-transform: none; font-size: .78rem; opacity: .92; margin-top: 2px; }
.badge--typed { box-shadow: 0 0 0 6px var(--pass), 0 22px 60px rgba(20, 24, 42, .18); }
@media print { .badge__band, .pass-pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

.pass-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.pass-count { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 16px; }
.pass-count .kpi { border-top: 5px solid var(--pass); }

/* Control de acceso y estación de refrigerio */
.mode-switch { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 4px; }
.mode-switch a { padding: 8px 16px; border-radius: 999px; font-weight: 700; color: var(--fg-navy); }
.mode-switch a:hover { text-decoration: none; background: var(--vv-mist); }
.mode-switch a.is-active { background: var(--fg-navy); color: #fff; }
.checkin-result { border-width: 3px; }
.checkin-result__pass { margin-top: 8px; }
.checkin-result.has-pass { box-shadow: inset 10px 0 0 var(--pass); padding-left: 26px; }
.checkin-result.is-redeemed-twice { background: #fde8ea; border-color: #c4122f; animation: fg-flash .5s ease 3; }
.checkin-result.is-redeemed-twice .checkin-result__icon { background: #c4122f; }
.checkin-result.is-redeemed-twice .checkin-result__msg { color: #a10f27; font-size: 1.35rem; font-weight: 900; text-transform: uppercase; }
.checkin-result.is-not-included { background: #fff4dc; border-color: #b56a00; }
.checkin-result.is-not-included .checkin-result__icon { background: #b56a00; }
@keyframes fg-flash { 50% { background: #f9b8c1; } }
@media (prefers-reduced-motion: reduce) { .checkin-result.is-redeemed-twice { animation: none; } }
.snack-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.list__main .pass-pill { align-self: flex-start; margin-top: 4px; }
#bulk-pass select[name=pass_type] { min-width: 250px; }

/* Entrada de cortesía */
.invite-banner { background: var(--pass); color: var(--pass-ink); border-radius: 16px; padding: 14px 18px; margin: -6px 0 20px; display: flex; flex-direction: column; gap: 2px; }
.invite-banner__label { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.invite-banner strong { font-size: 1.35rem; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.invite-banner small { font-weight: 600; opacity: .92; }
.client-types { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.client-types label { border: 1px solid var(--border); border-top: 5px solid var(--pass); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .85rem; }
.usage { display: flex; flex-wrap: wrap; gap: 6px; }
.usage__item { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; }
.meter { height: 8px; border-radius: 99px; background: var(--grid); overflow: hidden; min-width: 90px; }
.meter span { display: block; height: 100%; background: var(--pass, var(--series-1)); }
.link-cell { display: flex; gap: 6px; align-items: center; min-width: 0; }
.link-cell code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; display: inline-block; }
.links-box { width: 100%; min-height: 120px; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }
.print-opts { display: grid; gap: 4px; }
#cr-print { margin-top: 10px; }
.steps-list { margin: 18px 0 22px; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 12px; }
.steps-list li { counter-increment: st; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; line-height: 1.4; }
.steps-list li::before { content: counter(st); width: 38px; height: 38px; border-radius: 50%; background: var(--fg-yellow); color: var(--fg-navy); font-weight: 900; display: flex; align-items: center; justify-content: center; }
