:root {
  /* Verdes de marca (tinte por defecto = tema Coral) */
  --green-900: #2C3A45; --green-700: #C9532A; --green-600: #F2703D;
  /* Superficies cálidas del mockup */
  --green-100: #F3ECDC; --green-50: #FAF5E9;
  /* Dorado de acción, fijo en los 4 temas */
  --yellow: #F2B33D; --yellow-dark: #D9981F; --yellow-tinte: #FDF0D9;
  /* Lila/acento secundario (tiñe junto con green-600/700) */
  --lilac: #F2703D; --lilac-bg: #FDEBE2; --lilac-text: #C9532A;
  /* Semánticos de resultado, fijos en los 4 temas */
  --ok: #3E7D57; --ok-bg: #E7F2E8;
  --red: #C94F4A; --red-bg: #F9E8E7;
  --amber: #E9A23B; --amber-bg: #FBF1DE;
  /* Neutros, modo claro por defecto */
  --bg: #FAF9F5; --card: #FFFFFF; --text: #2E3A42; --muted: #77808A; --green-900: #2C3A45;
  --border: #E7E2D8;
  --radius: 14px; --radius-sm: 12px; --radius-pill: 9999px;
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 4px 12px rgba(44,58,69,0.06);
  --shadow-md: 0 12px 30px rgba(44,58,69,0.1);
}

[data-theme="coral"]     { --green-600: #F2703D; --green-700: #C9532A; --lilac: #F2703D; --lilac-text: #C9532A; --lilac-bg: #FDEBE2; }
[data-theme="esmeralda"] { --green-600: #17B287; --green-700: #0E8A67; --lilac: #17B287; --lilac-text: #0E8A67; --lilac-bg: #E0F7EE; }
[data-theme="violeta"]   { --green-600: #A855C8; --green-700: #8B3FA8; --lilac: #A855C8; --lilac-text: #8B3FA8; --lilac-bg: #F5EAF9; }
/* Modo Gris accesible: en vez de mantener a mano una lista de variables a desaturar (enfoque
   previo, que dejaba huecos — ver historial de bugs), se usa filter:grayscale(1) real, igual que
   hace el propio mockup de Francisco en su documento fuente para las capturas de este tema. Se
   aplica a los CONTENEDORES DE PANTALLA (.auth-screen/.onboarding-screen/.app-screen/.screen-hidden)
   y a .overlay (modales) por separado — nunca a body/html — porque un filter en un ancestro crea un
   nuevo containing block para descendientes position:fixed, lo que rompería el posicionamiento de
   los modales si quedaran dentro del árbol filtrado. Los modales ya son hermanos de los contenedores
   de pantalla a nivel de <body>, así que aplicarles su propio filter (son ellos mismos position:fixed,
   sin descendientes fixed) los desatura sin ese riesgo. Ver reglas más abajo, junto a .overlay. */
[data-theme="gris"] .auth-screen,
[data-theme="gris"] .onboarding-screen,
[data-theme="gris"] .app-screen,
[data-theme="gris"] .screen-hidden,
[data-theme="gris"] .overlay {
  filter: grayscale(1);
}

/* Modo oscuro con identidad de marca: derivado de --green-900 (#2C3A45, el pizarra del mockup),
   no de una paleta genérica tipo "slate" de Tailwind. Texto off-white (no blanco puro) para menos
   fatiga visual en mobile. Es solo un cambio de paleta — misma estructura/layout que el modo claro. */
[data-mode="oscuro"] {
  --bg: #212B33; --card: #2A3640; --text: #F0EDE6; --muted: #9BA5AC; --green-900: #F0EDE6;
  --border: rgba(255,255,255,0.08);
  --green-50: #23303A; --green-100: #2E3D48;
}
/* Tinte del lila en modo oscuro: no está definido en el mockup (no contempla modo oscuro).
   Aproximación propia, pendiente de aprobación visual en una futura iteración. */
[data-theme="coral"][data-mode="oscuro"]     { --lilac-bg: #3A2620; }
[data-theme="esmeralda"][data-mode="oscuro"] { --lilac-bg: #0F2A22; }
[data-theme="violeta"][data-mode="oscuro"]   { --lilac-bg: #2A1F30; }
[data-theme="gris"][data-mode="oscuro"]      { --lilac-bg: #2A2E33; }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
/* Íconos lineales SVG — reemplazan Font Awesome. Heredan tamaño de font-size y color de currentColor, igual que los <i> que reemplazan. */
.ico { width: 1em; height: 1em; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.125em; display: inline-block; flex-shrink: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; letter-spacing: -0.01em; }

/* ── MARCA / TIPOGRAFÍA / LAYOUT (clases del mockup, copiadas tal cual) ── */
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--green-700); }
.logo .leaf { width: 30px; height: 30px; background: var(--green-700); border-radius: 50% 4px 50% 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.logo .endo { color: var(--yellow-dark); }
.brand-sub { font-size: 10px; letter-spacing: 1.2px; color: var(--muted); font-weight: 800; text-transform: uppercase; margin-top: 2px; }
.h2 { font-size: 20px; font-weight: 800; color: var(--green-900); line-height: 1.25; }
.p { font-size: 13px; color: var(--muted); line-height: 1.45; }
.label { font-size: 12px; font-weight: 800; color: var(--green-900); margin: 12px 0 6px; }
.step-tag { font-size: 11px; font-weight: 800; color: var(--lilac-text); letter-spacing: .5px; margin-top: 10px; }
.link { font-size: 13px; font-weight: 700; color: var(--lilac-text); text-align: center; cursor: pointer; background: none; border: none; font-family: var(--font); text-decoration: none; }
.divider { height: 1.5px; background: var(--border); margin: 12px 0; border: none; }
.note { background: var(--lilac-bg); border-radius: 12px; padding: 11px 12px; font-size: 12px; color: var(--lilac-text); line-height: 1.4; font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.header { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 10px; }

/* Las 4 pantallas de perfil/configuración usan el header compacto del mockup (.header, ‹ atrás +
   título) como única navegación superior, en cualquier viewport — no hay .topbar/pill de escritorio
   en paralelo (se eliminaron del HTML). app-screen y auth-screen no entran en esta regla, conservan
   su .topbar persistente siempre. */
.perfil-screen .header { display: flex; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green-600); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--lilac-bg); border: 1.5px solid var(--border); border-radius: 20px; padding: 6px 12px; font-size: 12px; font-weight: 800; color: var(--lilac-text); }
.chev { margin-left: auto; color: var(--muted); font-size: 16px; }

/* ── BOTONES (mockup) ── */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--yellow); color: #2C3A45; border: none; border-radius: var(--radius); padding: 13px; font-size: 15px; font-weight: 800; text-align: center; cursor: pointer; font-family: var(--font); transition: all 0.2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(44,58,69,0.15); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--green-700); border: 1.5px solid var(--green-600); }
.btn.ghost:hover { background: var(--green-50); }
.btn.subtle { background: var(--green-50); color: var(--green-700); }
.btn.subtle:hover { filter: brightness(0.97); }
.btn.btn-compact { width: auto; padding: 15px 20px; }
.btn-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-bottom: 10px; }
.btn-row .btn { margin-bottom: 0; }
.skip-link { text-align: center; }
.skip-link button { background: none; border: none; color: var(--muted); font-size: 13px; font-family: var(--font); cursor: pointer; font-weight: 600; text-decoration: underline; }

/* ── INPUTS (mockup .input aplicado directo al elemento real) ── */
input.input, select.input { width: 100%; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; color: var(--text); font-family: var(--font); transition: all 0.2s; }
input.input::placeholder { color: var(--muted); }
input.input:focus, select.input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px var(--lilac-bg); background: var(--card); }
select.input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2377808A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field { margin-bottom: 18px; }
.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper input.input { flex: 1; padding-right: 40px; }
.toggle-pass { position: absolute; right: 12px; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 18px; padding: 0; display: flex; align-items: center; justify-content: center; }
.toggle-pass:hover { color: var(--green-600); }
textarea { width: 100%; min-height: 120px; padding: 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--card); color: var(--text); font-size: 15px; font-family: var(--font); resize: none; line-height: 1.6; margin-bottom: 12px; transition: all 0.2s; }
textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px var(--lilac-bg); }

/* ── TABS (mockup) ── */
.tabs { display: flex; background: var(--green-100); border-radius: var(--radius); padding: 4px; }
.tab { flex: 1; text-align: center; padding: 9px; border-radius: 11px; font-size: 14px; font-weight: 800; color: var(--green-700); border: none; background: none; cursor: pointer; font-family: var(--font); }
.tab.on { background: var(--card); color: var(--green-900); box-shadow: 0 2px 6px rgba(30,58,44,.12); }

/* ── PROGRESO (mockup, segmentos discretos) ── */
.progress { display: flex; gap: 6px; margin: 14px 0 4px; }
.progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--green-100); display: block; }
.progress i.on { background: var(--yellow); }

.onboarding-screen { min-height: 100vh; display: none; align-items: flex-start; justify-content: center; padding: 24px; background: radial-gradient(circle at bottom left, var(--lilac-bg), var(--bg)); overflow-y: auto; }
.onboarding-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 32px 24px; width: 100%; max-width: 520px; margin: auto; }
.onboarding-step { display: none; }
.onboarding-step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.step-header { margin-bottom: 24px; }
.opciones-principales { margin-bottom: 24px; }

/* ── OPT-CARD (mockup) ── */
.opt-card { width: 100%; text-align: left; padding: 14px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--card); cursor: pointer; display: flex; gap: 12px; align-items: center; margin-bottom: 10px; font-family: var(--font); transition: all 0.2s; }
.opt-card:hover { border-color: var(--yellow); }
.opt-card.sel { border-color: var(--yellow); background: var(--green-50); }
.opt-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--green-100); display: flex; align-items: center; justify-content: center; color: var(--green-700); flex-shrink: 0; }
.opt-t { font-size: 14px; font-weight: 800; color: var(--green-900); }
.opt-d { font-size: 12px; color: var(--muted); line-height: 1.3; margin-top: 2px; }

/* ── CHIPS (mockup + variante propia .danger para alérgenos) ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--card); border: 1.5px solid var(--border); border-radius: 20px; padding: 7px 13px; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; font-family: var(--font); transition: all 0.2s; }
.chip:hover { border-color: var(--green-600); }
.chip.sel { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.chip.sel.danger { background: var(--red); border-color: var(--red); color: #fff; }

/* ── CARD (mockup, plana) ── */
.card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }

/* ── APP / TOPBAR ── */
.app-screen { display: none; }
/* Utilitaria genérica para pantallas de perfil: deliberadamente NO se reutiliza .app-screen para no pisar esa clase si en el futuro gana reglas propias del contenedor principal */
.screen-hidden { display: none; }
.topbar { background: var(--card); border-bottom: 1px solid var(--border); padding: 14px 20px; position: sticky; top: 0; z-index: 10; box-shadow: var(--shadow-sm); }
.topbar-inner { max-width: 580px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 40px; height: 40px; background: var(--green-700); color: #fff; border-radius: 50% 4px 50% 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-text { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.logo-sub { font-size: 11px; font-weight: 600; color: var(--lilac-text); letter-spacing: 0.03em; text-transform: uppercase; margin-top: 1px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-topbar { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-pill); border: 1.5px solid var(--border); background: var(--card); color: var(--muted); cursor: pointer; font-family: var(--font); transition: all 0.2s; display: flex; align-items: center; gap: 5px; }
.btn-topbar:hover { background: var(--green-50); }

.main { max-width: 580px; margin: 0 auto; padding: 16px 16px 40px; }
.section-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.section-title i { color: var(--green-600); }

.perfil-activo-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.pa-vacio { font-size: 13px; color: var(--muted); }

/* ── LISTA (mockup .list-item, usada en Historial) ── */
.list-item { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 13px 14px; margin-bottom: 9px; }
.li-t { font-size: 14px; font-weight: 800; color: var(--green-900); }
.li-d { font-size: 12px; color: var(--muted); margin-top: 1px; }
.historial-vacio { font-size: 13px; color: var(--muted); text-align: center; padding: 24px 0; }

/* ── BADGE (mockup, veredictos) ── */
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 9px; padding: 4px 9px; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; }
/* Hex del mockup son #3E8E63/#C98A1B; se usan las variables semánticas --ok/--amber en vez del
   hex literal para que este badge se desature correctamente bajo data-theme="gris" (ver nota en
   la sección de temas) — los valores por defecto quedan visualmente equivalentes al mockup. */
.badge-ok { background: var(--ok); }
.badge-warn { background: var(--amber); }
.badge-no { background: var(--red); }
.badge svg { width: 11px; height: 11px; stroke: #fff; stroke-width: 2.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ── Modo de análisis (Foto/Texto) — bespoke, sin equivalente en mockup, retemado ── */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-btn { padding: 20px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--card); cursor: pointer; text-align: center; transition: all 0.2s; font-family: var(--font); display: flex; flex-direction: column; align-items: center; }
.mode-btn:hover { border-color: var(--green-600); transform: translateY(-2px); }
.mode-btn.active { border-color: var(--yellow); background: var(--green-50); }
.micon { font-size: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; color: var(--muted); background: var(--green-100); width: 46px; height: 46px; border-radius: 50%; transition: all 0.2s; }
.mode-btn.active .micon { background: var(--card); color: var(--green-700); }
.mlabel { font-size: 14px; font-weight: 700; color: var(--text); }
.msub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.mode-btn.active .mlabel { color: var(--green-700); }

.panel { display: none; }
.panel.active { display: block; animation: fadeIn 0.3s ease; }

.upload-area { border: 2px dashed var(--yellow); border-radius: var(--radius); padding: 36px 20px; text-align: center; cursor: pointer; background: var(--green-50); transition: all 0.2s; margin-bottom: 12px; }
.upload-area:hover { border-color: var(--green-600); background: var(--lilac-bg); }
.uicon { font-size: 30px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; color: var(--green-700); background: var(--card); width: 54px; height: 54px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.upload-area p { font-size: 15px; color: var(--text); font-weight: 700; }
.upload-area small { font-size: 12px; color: var(--muted); margin-top: 4px; display: block; }

.preview-box { position: relative; margin-bottom: 12px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.preview-box img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.preview-remove { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.95); border: none; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--red); box-shadow: var(--shadow-sm); }

.cam-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.btn-outline { padding: 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--card); color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font); display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s; }
.btn-outline:hover { background: var(--green-50); border-color: var(--green-600); color: var(--green-700); }

/* ── RESULTADOS (bespoke, sin equivalente 1:1 — retemado con tokens del mockup) ── */
.result-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin-top: 18px; box-shadow: var(--shadow-md); }
.result-header { padding: 20px; display: flex; align-items: center; gap: 14px; }
.result-header.apto { background: linear-gradient(135deg, var(--ok-bg), var(--card)); border-bottom: 1.5px solid var(--ok-bg); }
.result-header.noap { background: linear-gradient(135deg, var(--red-bg), var(--card)); border-bottom: 1.5px solid var(--red-bg); }
.result-header.prec { background: linear-gradient(135deg, var(--amber-bg), var(--card)); border-bottom: 1.5px solid var(--amber-bg); }
.result-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.result-icon.apto { background: var(--ok-bg); color: var(--ok); }
.result-icon.noap { background: var(--red-bg); color: var(--red); }
.result-icon.prec { background: var(--amber-bg); color: var(--amber); }
.result-title { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.result-title.apto { color: var(--ok); }
.result-title.noap { color: var(--red); }
.result-title.prec { color: var(--amber); }
.result-sub { font-size: 13px; margin-top: 3px; font-weight: 500; }
.result-sub.apto { color: var(--ok); }
.result-sub.noap { color: var(--red); }
.result-sub.prec { color: var(--amber); }
.result-body { padding: 20px; }
.slabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; margin-top: 16px; display: flex; align-items: center; gap: 6px; }
.slabel:first-child { margin-top: 0; }
.score-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; font-weight: 600; }
.score-bar { height: 7px; border-radius: var(--radius-pill); background: var(--green-50); overflow: hidden; }
.score-fill { height: 100%; border-radius: var(--radius-pill); transition: width .8s cubic-bezier(0.4,0,0.2,1); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: var(--radius-pill); display: flex; align-items: center; gap: 5px; }
.tag.bad { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-bg); }
.tag.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-bg); }
.explanation { font-size: 14px; color: var(--muted); line-height: 1.7; }

.alergen-alert-box { background: var(--red-bg); border: 1.5px solid var(--red-bg); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.alergen-alert-box i { color: var(--red); font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.alergen-alert-box p { font-size: 13px; color: var(--red); font-weight: 600; line-height: 1.5; }

.loading { text-align: center; padding: 36px 20px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--green-50); border-top-color: var(--green-600); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { font-size: 14px; color: var(--muted); font-weight: 500; }
.error-box { padding: 14px; background: var(--red-bg); border-radius: var(--radius-sm); color: var(--red); font-size: 14px; margin-top: 14px; border: 1px solid var(--red-bg); font-weight: 500; }

/* ── LÍMITE / PRO (bespoke, sin equivalente 1:1 — retemado con tokens del mockup) ── */
.limite-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--yellow); margin-top: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.limite-header { padding: 22px; text-align: center; background: var(--yellow-tinte); border-bottom: 1.5px solid var(--yellow); }
.limite-header .licon { font-size: 36px; display: block; margin-bottom: 8px; color: var(--yellow-dark); }
.limite-header h3 { font-size: 17px; font-weight: 800; color: var(--yellow-dark); }
.limite-header p { font-size: 13px; color: var(--yellow-dark); margin-top: 3px; font-weight: 600; opacity: .9; }
.limite-body { padding: 22px; }
.limite-body p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; text-align: center; }
.pro-precio { font-size: 28px; font-weight: 800; color: var(--text); text-align: center; margin-bottom: 6px; }
.pro-precio span { font-size: 14px; font-weight: 500; color: var(--muted); }
.pro-features { list-style: none; margin-bottom: 20px; }
.pro-features li { font-size: 14px; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-weight: 500; }
.pro-features li i { color: var(--yellow-dark); }
.pro-features li:last-child { border-bottom: none; }

/* ── AUTH (bespoke contenedor de pantalla completa, retemado; .tabs/.input/.btn ya son del mockup) ── */
.auth-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(circle at top right, var(--yellow-tinte), var(--bg)); }
.auth-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 40px 32px; width: 100%; max-width: 420px; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo-icon { width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; background: var(--green-700); color: #fff; border: 3px solid var(--card); box-shadow: var(--shadow-sm); }
.auth-logo-title { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.auth-logo-sub { font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 500; }
.auth-msg { font-size: 14px; text-align: center; margin-top: 16px; padding: 12px; border-radius: var(--radius-sm); font-weight: 500; }
.auth-msg.error { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-bg); }
.auth-msg.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-bg); }

/* ── MODALES (mockup .overlay/.sheet/.dialog) ── */
.overlay { position: fixed; inset: 0; background: rgba(30,58,44,.45); display: none; align-items: flex-end; justify-content: center; z-index: 100; }
.overlay.center { align-items: center; padding: 0 22px; }
.sheet { background: var(--card); border-radius: 22px 22px 0 0; padding: 22px 20px 26px; width: 100%; max-width: 420px; position: relative; }
.dialog { background: var(--card); border-radius: 20px; padding: 22px 20px; width: 100%; max-width: 380px; position: relative; }

/* Resumen (paso 5 del onboarding) */
.resumen-grupo { margin-bottom: 16px; }
.resumen-vacio { font-size: 13px; color: var(--muted); font-style: italic; }
