/* =====================================================================
   MERCADO DEL RÍO · v7 · Mandora 360
   Sistema visual derivado del logo oficial (verde río + amarillo mantequilla).
   Mobile-first. Sin frameworks.
   ===================================================================== */
:root {
  --brand: #115c50;
  --brand-600: #0e5046;
  --brand-700: #0b443b;
  --brand-800: #0a3d35;
  --brand-900: #062a24;
  --brand-50: #e9f3f0;
  --brand-100: #d3e8e2;
  --butter: #f1e88d;
  --gold: #eccb4a;
  --gold-600: #d9b22c;
  --cream: #f7f5ee;
  --paper: #ffffff;
  --ink: #13221e;
  --ink-2: #2b3b36;
  --muted: #5b6b66;
  --line: rgba(19, 34, 30, .11);
  --line-2: rgba(19, 34, 30, .18);
  --ok: #1d7a4f;
  --ok-bg: #e3f4ea;
  --warn: #9a6400;
  --warn-bg: #fff3d6;
  --err: #b3261e;
  --err-bg: #fde8e6;
  --info: #235e9c;
  --info-bg: #e5eff9;
  --sunset-a: #f39a5b;
  --sunset-b: #b0508f;
  --sunset-c: #5a3c8f;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --sh-1: 0 1px 2px rgba(6, 42, 36, .06), 0 2px 8px rgba(6, 42, 36, .05);
  --sh-2: 0 8px 28px rgba(6, 42, 36, .10);
  --sh-3: 0 24px 60px rgba(6, 42, 36, .18);
  --head: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 700px) { :root { --gutter: 32px; --header-h: 76px; } }
@media (min-width: 1200px) { :root { --gutter: max(48px, calc((100vw - 1240px) / 2)); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font: 400 16px/1.55 var(--body); color: var(--ink); background: var(--cream); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .4em; color: inherit; }
p { margin: 0 0 .8em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--brand-50); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden], .hidden { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .75rem; }
.center { text-align: center; }
.mt { margin-top: 32px; }
.ic { display: inline-block; vertical-align: -.2em; width: 1.15em; height: 1.15em; flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.kicker, .eyebrow { display: inline-block; font: 700 .72rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.eyebrow { color: var(--butter); }
.noscript { padding: 20px; background: var(--warn-bg); text-align: center; }

/* ------------------------------------------------------------------ Botones */
.btn { --bg: var(--paper); --fg: var(--ink); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 10px 18px;
  border-radius: 12px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font: 600 .95rem/1.1 var(--body); text-decoration: none; white-space: nowrap; transition: transform .18s var(--ease), box-shadow .18s, background .18s, border-color .18s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh-1); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn-primary { --bg: var(--gold); --fg: var(--brand-900); --bd: transparent; }
.btn-primary:hover { --bg: #f2d55f; }
.btn-gold { --bg: var(--gold); --fg: var(--brand-900); --bd: transparent; }
.btn-dark { --bg: var(--brand-800); --fg: #fff; --bd: transparent; }
.btn-light { --bg: #fff; --fg: var(--brand-800); --bd: transparent; }
.btn-ghost { --bg: transparent; --fg: var(--brand-800); --bd: var(--line-2); }
.btn-ghost:hover { --bg: var(--brand-50); }
.btn-glass { --bg: rgba(255,255,255,.12); --fg: #fff; --bd: rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn-outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.45); }
.btn-danger { --bg: var(--err); --fg: #fff; --bd: transparent; }
.btn-wa { --bg: #1faa55; --fg: #fff; --bd: transparent; }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; border-radius: 14px; }
.btn-xl { min-height: 64px; font-size: 1.1rem; letter-spacing: .02em; border-radius: 16px; }
.btn.block, .block { width: 100%; }
.btn.is-busy { opacity: .85; }
.text-btn { background: none; border: 0; padding: 4px 0; color: var(--brand); font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--brand-800); text-decoration: none; font-weight: 700; font-size: .85rem; }
.icon-btn:hover { background: var(--brand-50); }
.icon-btn.ok { color: var(--ok); border-color: #b9e0c9; }
.icon-btn.danger { color: var(--err); }
.icon-btn:disabled { opacity: .35; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
.spinner.dark { color: var(--brand); width: 28px; height: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-wrap.center { justify-content: center; }
.row-end { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.center-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.stack { display: grid; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font: 600 .75rem/1 var(--body); }
.pill-sunset { background: #f5e8f2; color: #8a3a74; }
.pill-invite { background: #fff4d6; color: #7a5a00; }

/* Badges de estado */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font: 600 .72rem/1.1 var(--body); background: #eef1f0; color: var(--ink-2); white-space: nowrap; }
.badge .ic { width: 12px; height: 12px; }
.b-approved, .b-published, .b-confirmed, .b-paid, .b-checked_in, .b-completed, .b-closed { background: var(--ok-bg); color: var(--ok); }
.b-pending, .b-unpaid, .b-waitlist, .b-no_response, .b-invited, .b-new, .b-follow_up { background: var(--warn-bg); color: var(--warn); }
.b-rejected, .b-cancelled, .b-declined { background: var(--err-bg); color: var(--err); }
.b-active, .b-reviewed { background: var(--info-bg); color: var(--info); }
.b-inactive, .b-hidden, .b-draft, .b-archived, .b-unpublished { background: #eceeed; color: #5f6865; }

/* ------------------------------------------------------------------ Encabezado */
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
body.scrolled .site-header { border-color: var(--line); box-shadow: 0 6px 20px rgba(6,42,36,.06); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-800); min-width: 0; }
.brand-logo { width: 40px; height: 40px; border-radius: 11px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font: 700 1.1rem var(--head); letter-spacing: -.01em; }
.brand-copy small { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.menu-btn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--brand-50); display: grid; place-content: center; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--brand-800); border-radius: 2px; transition: transform .25s, opacity .2s; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav { position: fixed; inset: var(--header-h) 0 auto 0; display: flex; flex-direction: column; gap: 2px; padding: 12px var(--gutter) 20px; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .22s var(--ease); max-height: calc(100dvh - var(--header-h)); overflow: auto; }
body.menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
.nav a { padding: 13px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a.active, .nav a:hover { background: var(--brand-50); color: var(--brand-800); }
.nav .nav-cta { margin-top: 8px; color: var(--brand-900); }
@media (min-width: 1000px) {
  .menu-btn { display: none; }
  .nav { position: static; flex-direction: row; align-items: center; gap: 4px; padding: 0; background: none; border: 0; box-shadow: none; transform: none; opacity: 1; pointer-events: auto; max-height: none; overflow: visible; }
  .nav a { padding: 9px 12px; font-size: .93rem; }
  .nav .nav-cta { margin: 0 0 0 8px; padding: 9px 16px; }
  .nav .nav-soft { color: var(--muted); }
  .nav .nav-mobile-only { display: none; }
}
body.app-mode .site-header, body.app-mode .site-footer { display: none; }

/* ------------------------------------------------------------------ Hero */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: flex-end; overflow: hidden; background: var(--brand-900); color: #fff; }
.hero picture, .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { object-fit: cover; transform: scale(1.03); animation: heroIn 1.4s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.1); opacity: .6; } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,42,36,.25) 0%, rgba(6,42,36,.55) 45%, rgba(6,42,36,.94) 100%); }
.hero-content { position: relative; z-index: 2; width: 100%; padding: 48px var(--gutter) 40px; max-width: calc(760px + var(--gutter) * 2); }
.hero-logo { width: 84px; height: 84px; border-radius: 22px; margin-bottom: 20px; box-shadow: var(--sh-3); }
.hero h1 { font-size: clamp(2.3rem, 9vw, 4.6rem); line-height: .98; letter-spacing: -.035em; margin: 12px 0 16px; font-weight: 800; }
.hero h1 span { color: var(--butter); display: block; }
.hero p { font-size: clamp(1.02rem, 2.4vw, 1.3rem); color: rgba(255,255,255,.88); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-actions .btn { flex: 1 1 220px; }
.hero-next { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; text-decoration: none; font-size: .9rem; backdrop-filter: blur(8px); }
.hero-next .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(236,203,74,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(236,203,74,0); } 100% { box-shadow: 0 0 0 0 rgba(236,203,74,0); } }
.hero-static { min-height: 70svh; }
@media (min-width: 900px) {
  .hero { align-items: center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(6,42,36,.94) 0%, rgba(6,42,36,.72) 45%, rgba(6,42,36,.12) 100%); }
  .hero-content { padding: 80px var(--gutter); }
  .hero-actions .btn { flex: 0 0 auto; }
  .hero-logo { width: 112px; height: 112px; border-radius: 28px; }
}

/* ------------------------------------------------------------------ Secciones */
.section { padding: 64px var(--gutter); }
@media (min-width: 900px) { .section { padding: 104px var(--gutter); } }
.section-white { background: #fff; }
.section-green { background: radial-gradient(1200px 500px at 100% 0%, #16705f 0%, transparent 60%), linear-gradient(160deg, var(--brand-800), var(--brand)); color: #fff; }
.section-green .kicker { color: var(--butter); }
.section-deep { background: linear-gradient(135deg, var(--brand-900), var(--brand-700)); color: #fff; }
.section-deep .kicker { color: var(--butter); }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; margin: 8px 0 0; }
.section-head > p { color: var(--muted); max-width: 520px; margin: 0; }
.section-head.light > p { color: rgba(255,255,255,.78); }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-bottom: 44px; } }
.strip { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.strip > div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; }
.strip span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.strip .muted { text-transform: none; letter-spacing: 0; font-size: .88rem; }
.strip .strip-ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }

/* Página interna */
.page { padding: 28px var(--gutter) 64px; }
.page.narrow { max-width: calc(760px + var(--gutter) * 2); margin: 0 auto; }
.page-hero { background: linear-gradient(150deg, var(--brand-900), var(--brand)); color: #fff; padding: 44px var(--gutter) 40px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(241,232,141,.25), transparent 70%); }
.page-hero.sunset-bg { background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 45%, #6c3f7e 100%); }
.page-hero .kicker { color: var(--butter); }
.page-hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; margin: 8px 0; }
.page-hero p { color: rgba(255,255,255,.82); margin: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.h-md { font-size: 1.5rem; }
.h-sm { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.h-xs { font-size: .95rem; display: flex; align-items: center; gap: 6px; margin: 16px 0 8px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 16px; }
.card.soft { background: var(--brand-50); border-color: transparent; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-head .h-sm { margin: 0; }
@media (min-width: 700px) { .card { padding: 24px; } }
.two-col { display: grid; gap: 16px; }
@media (min-width: 980px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } .two-col.wide-left { grid-template-columns: 1.6fr 1fr; } }
.cta-card { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--butter), #f6efb6); }
.cta-card h3 { margin: 0 0 4px; font-size: 1.35rem; }
.cta-card p { margin: 0; }

/* ------------------------------------------------------------------ Eventos */
.ev-home { display: grid; gap: 18px; }
.ev-side { display: grid; gap: 18px; }
@media (min-width: 960px) { .ev-home { grid-template-columns: 1.55fr 1fr; } }
.e-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s var(--ease); }
.e-card:hover { box-shadow: var(--sh-2); }
.e-img { position: relative; aspect-ratio: 16/10; max-height: 440px; width: 100%; overflow: hidden; background: var(--brand-100); }
.e-card:not(.featured) .e-img { aspect-ratio: 16/8; }
.e-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.e-card:hover .e-img img { transform: scale(1.04); }
.e-date { position: absolute; left: 14px; top: 14px; background: #fff; border-radius: 14px; padding: 8px 12px; text-align: center; line-height: 1; box-shadow: var(--sh-1); }
.e-date b { display: block; font: 800 1.6rem var(--head); color: var(--brand-800); }
.e-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.e-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.e-body h3 { font-size: 1.45rem; margin: 2px 0; }
.e-card.featured .e-body h3 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.e-body p { color: var(--muted); margin: 0; }
.e-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.e-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: .9rem; }
.e-meta span { display: inline-flex; align-items: center; gap: 6px; }
.e-meta .ic { color: var(--brand); }
.e-meta.light { color: rgba(255,255,255,.9); }
.e-meta.light .ic { color: var(--butter); }
.e-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.e-card.sunset .e-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(90,60,143,.45)); }
.e-list { display: grid; gap: 18px; }
.e-list.past .e-card { opacity: .78; }
.ev-layout { display: grid; gap: 24px; }
@media (min-width: 980px) { .ev-layout { grid-template-columns: 1fr 340px; align-items: start; } .cal-card { position: sticky; top: calc(var(--header-h) + 16px); } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-family: var(--head); font-size: 1.1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid i { font-style: normal; font-size: .72rem; color: var(--muted); font-weight: 700; padding: 4px 0; }
.cal-grid span, .cal-grid a { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-size: .9rem; text-decoration: none; color: var(--ink); }
.cal-grid .past { color: #a3aeaa; }
.cal-grid .today { outline: 2px solid var(--brand); outline-offset: -2px; font-weight: 700; }
.cal-grid a.has { background: var(--brand); color: #fff; font-weight: 700; }
.cal-grid a.has.sunset { background: linear-gradient(135deg, var(--sunset-a), var(--sunset-b)); }
.cal-grid a.has.past { opacity: .5; }
.cal-legend { display: flex; gap: 14px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg.lg-reg { background: var(--brand); }
.lg.lg-sun { background: linear-gradient(135deg, var(--sunset-a), var(--sunset-b)); }

/* ------------------------------------------------------------------ Emprendedores */
.v-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .v-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .v-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.v-card { position: relative; background: #fff; color: var(--ink); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.v-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.v-card-link { position: absolute; inset: 0; z-index: 1; }
.v-cover { aspect-ratio: 16/9; background: var(--brand-100); overflow: hidden; }
.v-cover img { width: 100%; height: 100%; object-fit: cover; }
.v-cover-fallback { width: 100%; height: 100%; background: radial-gradient(circle at 20% 20%, rgba(241,232,141,.5), transparent 50%), linear-gradient(135deg, var(--brand-100), var(--brand-50)); }
.v-body { padding: 0 18px 18px; display: flex; flex-direction: column; flex: 1; }
.v-logo { width: 68px; height: 68px; margin-top: -34px; border-radius: 18px; background: #fff; border: 3px solid #fff; box-shadow: var(--sh-1); overflow: hidden; display: grid; place-items: center; position: relative; }
.v-logo img { width: 100%; height: 100%; object-fit: cover; }
.v-logo span, .p-logo span, .vr-logo i { font: 800 1.3rem var(--head); color: var(--brand); font-style: normal; }
.v-cat { font: 700 .7rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-top: 12px; }
.v-body h3 { font-size: 1.3rem; margin: 6px 0 6px; }
.v-body p { color: var(--muted); font-size: .92rem; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.v-loc { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 2; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--brand-50); color: var(--brand-800); text-decoration: none; font-weight: 600; font-size: .9rem; }
.socials a:hover { background: var(--brand-100); }
.socials.compact a { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 10px; }
.empty.on-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.25); color: #fff; }
.empty.on-dark p { color: rgba(255,255,255,.75); }
.empty.on-dark .empty-ic { background: rgba(255,255,255,.12); color: var(--butter); }

.dir-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 50px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(17,92,80,.1); }
.search .ic { color: var(--muted); }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; padding: 12px 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .88rem; display: inline-flex; gap: 8px; align-items: center; }
.chip b { font-size: .75rem; color: var(--muted); }
.chip.on { background: var(--brand-800); color: #fff; border-color: transparent; }
.chip.on b { color: var(--butter); }
.dir-count { color: var(--muted); font-size: .9rem; margin: 6px 0 14px; min-height: 1.4em; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 44px; height: 26px; border-radius: 999px; background: #cfd8d5; position: relative; transition: .2s; flex: none; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: .2s var(--ease); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.switch.full { grid-column: 1 / -1; }

/* Perfil */
.profile { background: var(--cream); }
.p-cover { position: relative; height: 34vh; min-height: 220px; max-height: 420px; background: var(--brand-800); overflow: hidden; }
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-cover-fallback { position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(241,232,141,.35), transparent 50%), linear-gradient(135deg, var(--brand-900), var(--brand)); }
.p-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,42,36,.15), rgba(6,42,36,.45)); }
.p-wrap { position: relative; margin-top: -72px; }
.p-wrap .back { color: #fff; position: absolute; top: -110px; left: var(--gutter); background: rgba(6,42,36,.45); padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.p-head { display: grid; gap: 14px; background: #fff; border-radius: var(--r-xl); padding: 20px; box-shadow: var(--sh-2); margin-bottom: 18px; }
.p-logo { width: 104px; height: 104px; border-radius: 26px; overflow: hidden; background: #fff; border: 4px solid #fff; box-shadow: var(--sh-2); display: grid; place-items: center; margin-top: -64px; }
.p-logo img { width: 100%; height: 100%; object-fit: cover; }
.p-logo.sm { width: 64px; height: 64px; border-radius: 18px; margin: 0; flex: none; border-width: 2px; box-shadow: var(--sh-1); }
.p-title h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 800; margin: 6px 0 4px; }
.p-sub { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: 0; }
.p-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.p-actions .btn { flex: 1 1 140px; }
@media (min-width: 800px) {
  .p-head { grid-template-columns: auto 1fr auto; align-items: end; padding: 24px 28px; }
  .p-logo { width: 132px; height: 132px; margin-top: -76px; }
  .p-actions .btn { flex: 0 0 auto; }
}
.p-grid { display: grid; gap: 16px; }
@media (min-width: 980px) { .p-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } .p-side { position: sticky; top: calc(var(--header-h) + 16px); } }
.p-desc { font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); margin: 0; }
.addr { display: flex; gap: 8px; align-items: flex-start; }
.addr .ic { color: var(--brand); margin-top: 3px; }
.map { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; margin: 12px 0; background: var(--brand-50); }
.map iframe { width: 100%; height: 100%; border: 0; }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list-plain li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--cream); }
.list-plain a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.list-plain li > span, .list-plain a { min-width: 0; }
.list-plain small, .list-plain a span { color: var(--muted); font-size: .85rem; display: block; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; } }
.g-item { position: relative; border: 0; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--brand-100); }
.g-item.wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; color: #fff; font-size: .8rem; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .25s; }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; }
.card .gallery { grid-auto-rows: 140px; }
.lightbox { position: relative; display: grid; place-items: center; min-height: 60vh; }
.lightbox figure { margin: 0; display: grid; gap: 10px; place-items: center; }
.lightbox img { max-height: 78vh; width: auto; border-radius: var(--r); }
.lightbox figcaption { color: #fff; text-align: center; font-size: .9rem; }
.lightbox figcaption small { opacity: .6; margin-left: 8px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center; }
.lb-nav.prev { left: 4px; }
.lb-nav.next { right: 4px; }

/* Noticias */
.n-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .n-grid { grid-template-columns: repeat(3, 1fr); } }
.n-card { background: linear-gradient(180deg, #fff, #fbfaf6); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.n-img { aspect-ratio: 16/9; overflow: hidden; }
.n-img img { width: 100%; height: 100%; object-fit: cover; }
.n-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.n-cat { font: 700 .72rem var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.n-body h3 { font-size: 1.3rem; }
.n-text { color: var(--muted); max-height: 7.8em; overflow: hidden; }
.n-card.open .n-text { max-height: none; }
.n-body .text-btn { margin-top: auto; align-self: flex-start; }

/* Contacto */
.contact { display: grid; gap: 24px; align-items: center; }
.contact h2 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; margin: 8px 0; }
.contact p { color: rgba(255,255,255,.8); max-width: 620px; }
.contact-actions { display: grid; gap: 10px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr auto; } }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: var(--brand-900); color: #fff; padding: 48px var(--gutter) 28px; }
.footer-top { display: grid; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 14px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font: 700 1.25rem var(--head); }
.footer-brand span { color: rgba(255,255,255,.6); font-size: .88rem; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.footer-cols h4 { font: 700 .72rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--butter); margin-bottom: 10px; }
.footer-cols a { display: block; color: rgba(255,255,255,.82); text-decoration: none; padding: 5px 0; font-size: .93rem; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.footer-bottom small { color: rgba(255,255,255,.5); }
#footerSocial { display: flex; gap: 8px; }
#footerSocial a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1fr 1.4fr; } .footer-cols { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------------ Formularios */
.form { display: block; }
.form-head { margin-bottom: 18px; }
.form-head h2 { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; margin: 6px 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; margin: 16px 0; }
@media (min-width: 700px) { .form-card { padding: 32px; } }
.form-card h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); font-weight: 800; margin: 8px 0; }
.grid-2, .grid-3 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 .full, .grid-3 .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--ink-2); min-width: 0; }
.field > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }
.field.inline select { min-width: 220px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 16px; font-weight: 400; color: var(--ink);
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235b6b66' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(17,92,80,.12); }
input:disabled, select:disabled, textarea:disabled { background: #f3f5f4; color: var(--muted); }
input[type=file] { font-size: .9rem; padding: 10px; border: 1px dashed var(--line-2); border-radius: 12px; background: #fff; width: 100%; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); box-shadow: 0 0 0 4px rgba(179,38,30,.1); }
.counter { font-weight: 400; color: var(--muted); font-size: .75rem; align-self: flex-end; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: .92rem; padding: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.check.terms { background: var(--brand-50); padding: 14px; border-radius: 12px; margin-top: 14px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 52px !important; }
.pw .icon-btn { position: absolute; right: 4px; top: 4px; border: 0; background: transparent; }
.seg { display: inline-flex; background: #eef2f0; border-radius: 12px; padding: 4px; gap: 4px; }
.seg.wrap { flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 9px 16px; border-radius: 9px; font-weight: 600; cursor: pointer; font-size: .9rem; }
.seg input:checked + span { background: #fff; box-shadow: var(--sh-1); color: var(--brand-800); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); }
.loc-fields { display: grid; gap: 14px; padding: 16px; border-radius: 16px; background: var(--brand-50); }
@media (min-width: 640px) { .loc-fields { grid-template-columns: 1fr 1fr; } }
.loc-help { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.note { background: var(--warn-bg); color: #6d4a00; padding: 10px 12px; border-radius: 10px; font-size: .9rem; }
.note.err { background: var(--err-bg); color: var(--err); }
.note.warn { display: inline-flex; gap: 6px; align-items: center; }
.sticky-actions { position: sticky; bottom: -1px; background: linear-gradient(transparent, #fff 30%); padding: 16px 0 4px; margin-bottom: -4px; }
.inline-form { display: flex; gap: 8px; margin: 16px auto; max-width: 480px; }
.radio-card { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; cursor: pointer; font-weight: 400; }
.radio-card input { accent-color: var(--brand); margin-top: 3px; }
.radio-card small { display: block; color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }

/* Selector de fotos */
.picker { margin: 12px 0 18px; }
.picker-head { display: flex; flex-direction: column; margin-bottom: 8px; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.picker.wide .picker-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pk-item, .pk-add { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--brand-50); display: grid; place-items: center; }
.picker.wide .pk-item, .picker.wide .pk-add { aspect-ratio: 4/3; }
.pk-item img { width: 100%; height: 100%; object-fit: cover; }
.pk-item.loading { background: var(--brand-50); }
.pk-del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.pk-del .ic { width: 16px; height: 16px; }
.pk-add { border: 2px dashed var(--brand-100); color: var(--brand); font-weight: 600; font-size: .85rem; gap: 4px; align-content: center; }
.pk-add:hover { border-color: var(--brand); }
.pk-add .ic { width: 28px; height: 28px; }
.pk-tag { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; padding: 3px 7px; border-radius: 999px; }
.drop { display: grid; place-items: center; min-height: 170px; border: 2px dashed var(--brand-100); border-radius: var(--r); cursor: pointer; background: var(--brand-50); margin-bottom: 14px; overflow: hidden; }
.drop span { display: grid; place-items: center; gap: 4px; color: var(--brand); text-align: center; }
.drop .ic { width: 34px; height: 34px; }
.drop img { max-height: 260px; width: 100%; object-fit: contain; }

/* Registro */
.reg { max-width: calc(760px + var(--gutter) * 2); margin: 0 auto; padding: 20px var(--gutter) 64px; }
.reg-top { text-align: center; margin-bottom: 18px; }
.reg-top .back { position: absolute; left: var(--gutter); }
.reg-logo { width: 56px; height: 56px; border-radius: 16px; margin: 8px auto 12px; }
.reg-top h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); font-weight: 800; }
.stepper { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: s; }
.stepper li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .7rem; color: var(--muted); cursor: pointer; text-align: center; position: relative; }
.stepper li::before { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line-2); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); font-weight: 700; z-index: 1; transition: .2s; }
.stepper li em { font-style: normal; display: none; }
.stepper li.on span { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px rgba(17,92,80,.15); }
.stepper li.on { color: var(--brand-800); font-weight: 700; }
.stepper li.on em { display: block; }
.stepper li.done span { background: var(--brand-100); border-color: var(--brand-100); color: var(--brand-800); }
.stepper li.done::before, .stepper li.on::before { background: var(--brand); }
@media (min-width: 640px) { .stepper li em { display: block; } }
.reg-form { background: #fff; border-radius: var(--r-xl); padding: 20px; border: 1px solid var(--line); box-shadow: var(--sh-1); }
@media (min-width: 700px) { .reg-form { padding: 32px; } }
.step { border: 0; padding: 0; margin: 0; min-width: 0; animation: stepIn .3s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } }
.step legend { font: 800 1.45rem var(--head); margin-bottom: 14px; padding: 0; }
.reg-nav { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 10px; margin: 20px -20px -20px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-xl) var(--r-xl); backdrop-filter: blur(8px); }
.reg-nav .btn-primary { flex: 1; max-width: 320px; margin-left: auto; }
@media (min-width: 700px) { .reg-nav { margin: 28px -32px -32px; padding: 16px 32px; } }
#draftNote { margin: 26px 0 0; }
.review { display: grid; gap: 2px; }
.rv-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rv-row span { color: var(--muted); font-size: .85rem; }
.rv-row b { font-weight: 600; word-break: break-word; }

/* Resultados */
.done { text-align: center; padding: 24px 8px; }
.done.big { padding: 40px 0; }
.done h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; margin: 10px 0; }
.done-ic { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.done-ic .ic { width: 36px; height: 36px; }
.id-chip { display: inline-block; margin: 6px 0 20px; padding: 6px 14px; border-radius: 999px; background: var(--brand-50); color: var(--brand-800); font-weight: 700; letter-spacing: .04em; }
.key-card { text-align: left; }
.share-url { display: flex; gap: 8px; margin: 12px 0; }
.share-url input { min-width: 0; font-size: .85rem !important; }

/* Empty / error / skeleton */
.empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: rgba(255,255,255,.6); }
.empty h3 { font-size: 1.3rem; margin: 10px 0 6px; }
.empty p { color: var(--muted); max-width: 480px; margin: 0 auto 16px; }
.empty-ic { width: 60px; height: 60px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.empty-ic .ic { width: 28px; height: 28px; }
.empty.err .empty-ic { background: var(--err-bg); color: var(--err); }
.sk { background: linear-gradient(90deg, #e9eeec 25%, #f4f7f6 37%, #e9eeec 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--r); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-block { height: 180px; margin-bottom: 16px; }
.sk-card { height: 120px; margin-bottom: 12px; }
.sk-vcard { height: 330px; border-radius: var(--r-lg); }
.sk-line { height: 18px; margin: 8px 0; }
.sk-line.w60 { width: 60%; }
.section-green .sk { opacity: .15; }
.profile.loading .p-cover { border-radius: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
#app.page-in > * { animation: pageIn .35s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ------------------------------------------------------------------ Modal y toasts */
.modal-wrap { position: fixed; inset: 0; z-index: 200; display: grid; align-items: end; justify-items: center; }
@media (min-width: 700px) { .modal-wrap { align-items: center; padding: 24px; } }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,20,17,.55); opacity: 0; transition: opacity .2s; backdrop-filter: blur(2px); }
.modal { position: relative; width: 100%; max-width: 620px; max-height: 92dvh; overflow: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); transform: translateY(30px); opacity: 0; transition: transform .28s var(--ease), opacity .2s; overscroll-behavior: contain; }
@media (min-width: 700px) { .modal { border-radius: 26px; padding: 32px; } }
.modal.sm { max-width: 460px; }
.modal.lg { max-width: 860px; }
.modal.full { max-width: 1100px; background: #0b1512; }
.modal.full .modal-x { color: #fff; background: rgba(255,255,255,.12); }
.modal-wrap.in .modal-backdrop { opacity: 1; }
.modal-wrap.in .modal { transform: none; opacity: 1; }
.modal-x { position: sticky; float: right; top: -10px; margin: -12px -6px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f0f3f2; display: grid; place-items: center; z-index: 3; }
.dialog h3 { font-size: 1.35rem; margin: 4px 0 8px; }
.dialog .qr-box { margin: 10px 0; }
#toasts { position: fixed; z-index: 300; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
body.app-mode #toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.app-mode #toasts { bottom: 24px; } }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; background: var(--brand-900); color: #fff; box-shadow: var(--sh-3); font-size: .92rem; opacity: 0; transform: translateY(10px); transition: .25s var(--ease); pointer-events: auto; }
.toast.in { opacity: 1; transform: none; }
.toast .ic { color: var(--butter); margin-top: 1px; }
.toast.t-error { background: #5b1410; }
.toast.t-error .ic { color: #ffb4ab; }
.toast.t-info { background: #183a5c; }

/* QR */
.qr-box { display: grid; place-items: center; padding: 14px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.qr-svg { width: min(240px, 70vw); height: auto; }
.qr-full { text-align: center; }
.qr-full .qr-svg { width: min(320px, 80vw); margin: 16px auto; }
.qr-card { display: grid; gap: 16px; align-items: center; }
@media (min-width: 600px) { .qr-card { grid-template-columns: 1fr auto; } .qr-card.qr-first { grid-template-columns: auto 1fr; } }
.qr-card.qr-first { border: 2px solid var(--gold); background: #fffbea; margin-top: 14px; }
.qr-card.qr-first .qr-box { border-color: var(--gold); }
.qr-card.qr-first .qr-svg { width: min(220px, 62vw); }

/* Portal */
.portal-head { display: flex; gap: 14px; align-items: center; margin: 8px 0 18px; }
.portal-head h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin: 4px 0 0; }
.portal-head p { margin: 0; }
.status-card { border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; display: grid; gap: 14px; color: #fff; background: linear-gradient(135deg, var(--brand-800), var(--brand)); }
.status-card h3 { font-size: 1.35rem; margin: 10px 0 4px; }
.status-card p { color: rgba(255,255,255,.85); margin: 0 0 6px; }
.status-card .note { color: #6d4a00; }
.status-card.s-pending { background: linear-gradient(135deg, #6b5311, #a37f1b); }
.status-card.s-rejected, .status-card.s-inactive { background: linear-gradient(135deg, #5c2320, #8a3b35); }
.status-card .badge { background: rgba(255,255,255,.2); color: #fff; }
.pe-list { display: grid; gap: 10px; }
.pe-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px; border-radius: 14px; background: var(--cream); }
.pe-item > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: .85rem; }
.kv dd { margin: 0; word-break: break-word; }
.ph-status { display: flex; flex-wrap: wrap; gap: 10px; }
.phs { display: grid; gap: 4px; justify-items: start; width: 96px; }
.phs-img { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--brand-50); display: grid; place-items: center; color: var(--brand); }
.phs-img img { width: 100%; height: 100%; object-fit: cover; }

/* Confirmación */
.ev-banner { border-radius: var(--r-xl); padding: 24px; color: #fff; background: linear-gradient(135deg, var(--brand-900), var(--brand)); margin: 8px 0 16px; display: grid; gap: 10px; justify-items: start; }
.ev-banner.sunset { background: linear-gradient(135deg, var(--sunset-c), var(--sunset-b) 60%, var(--sunset-a)); }
.ev-banner h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); font-weight: 800; margin: 0; }
.ev-banner .pill { background: rgba(255,255,255,.15); color: #fff; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 18px; }
.yesno input { position: absolute; opacity: 0; }
.yesno span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; border-radius: 16px; border: 2px solid var(--line-2); font-weight: 700; cursor: pointer; text-align: center; padding: 8px; }
.yesno input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.yesno label:last-child input:checked + span { background: #5c2320; border-color: #5c2320; }
.yesno input:focus-visible + span { outline: 3px solid var(--gold); }
.tgl-grid { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 560px) { .tgl-grid { grid-template-columns: 1fr 1fr; } }
.tgl input { position: absolute; opacity: 0; }
.tgl-box { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line-2); cursor: pointer; transition: .15s; }
.tgl-box > .ic { width: 26px; height: 26px; color: var(--muted); }
.tgl-box b { flex: 1; font-weight: 600; }
.tgl-box i { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.tgl input:checked + .tgl-box { border-color: var(--brand); background: var(--brand-50); }
.tgl input:checked + .tgl-box > .ic { color: var(--brand); }
.tgl input:checked + .tgl-box i { background: var(--brand); border-color: var(--brand); color: #fff; }
.tgl input:focus-visible + .tgl-box { outline: 3px solid var(--gold); }
.gen { padding: 14px; background: var(--brand-50); border-radius: 14px; margin-bottom: 14px; }

/* ------------------------------------------------------------------ Auth */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(900px 500px at 10% 0%, rgba(241,232,141,.35), transparent 60%), linear-gradient(160deg, var(--brand-900), var(--brand)); }
.auth-card { width: min(420px, 100%); background: #fff; border-radius: var(--r-xl); padding: 28px 22px; box-shadow: var(--sh-3); display: grid; gap: 12px; text-align: left; }
.auth-card h1 { font-size: 1.8rem; font-weight: 800; margin: 0; }
.auth-card .spinner { margin: 30px auto; }
.auth-logo { width: 64px; height: 64px; border-radius: 18px; }
.auth-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.steps-list { padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.temp-pw { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--brand-50); margin: 12px 0; }
.temp-pw code { font-size: 1.4rem; background: #fff; padding: 8px 12px; text-align: center; letter-spacing: .06em; }

/* ------------------------------------------------------------------ Admin */
.adm { min-height: 100dvh; background: #f3f5f2; }
.adm-side { position: fixed; z-index: 90; inset: 0 auto 0 0; width: 272px; background: var(--brand-900); color: #fff; display: flex; flex-direction: column; padding: 18px 14px; transform: translateX(-100%); transition: transform .25s var(--ease); overflow-y: auto; }
body.adm-open .adm-side { transform: none; box-shadow: var(--sh-3); }
body.adm-open .adm::after { content: ''; position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.4); }
.adm-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; padding: 4px 8px 18px; }
.adm-brand img { border-radius: 10px; }
.adm-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.adm-brand b { font-family: var(--head); font-size: 1.05rem; }
.adm-brand small { color: rgba(255,255,255,.55); font-size: .72rem; }
.adm-nav { display: grid; gap: 2px; }
.adm-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: rgba(255,255,255,.78); text-decoration: none; font-weight: 500; font-size: .93rem; }
.adm-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.adm-nav a.on { background: rgba(241,232,141,.14); color: var(--butter); font-weight: 600; }
.cnt { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--gold); color: var(--brand-900); font: 700 .72rem/22px var(--body); text-align: center; font-style: normal; }
.cnt:empty { display: none; }
.adm-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 8px 8px; border-top: 1px solid rgba(255,255,255,.1); }
.adm-user .icon-btn { background: rgba(255,255,255,.06); border-color: transparent; color: #fff; width: 36px; height: 36px; }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--butter); color: var(--brand-900); display: grid; place-items: center; font-weight: 800; flex: none; }
.who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.who b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: rgba(255,255,255,.55); font-size: .75rem; }
.adm-site { display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,.6); font-size: .82rem; text-decoration: none; padding: 8px; }
.adm-main { min-width: 0; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.adm-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px 16px; min-height: 64px; background: rgba(243,245,242,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.adm-top h1 { font-size: 1.25rem; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-top-actions { display: flex; gap: 8px; }
.adm-body { padding: 16px; max-width: 1240px; }
.adm-tabbar { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.adm-tabbar a, .adm-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: .68rem; font-weight: 600; color: var(--muted); text-decoration: none; background: none; border: 0; }
.adm-tabbar .ic { width: 22px; height: 22px; }
.adm-tabbar a.on { color: var(--brand); }
.adm-tabbar .cnt { position: absolute; top: 0; left: 55%; margin: 0; min-width: 18px; height: 18px; line-height: 18px; font-size: .62rem; padding: 0 5px; }
.hide-sm { display: none; }
@media (min-width: 600px) { .hide-sm { display: inline; } }
@media (min-width: 900px) {
  .adm { display: grid; grid-template-columns: 272px 1fr; }
  .adm-side { position: sticky; top: 0; height: 100dvh; transform: none; }
  body.adm-open .adm::after { display: none; }
  .adm-burger, .adm-tabbar { display: none; }
  .adm-main { padding-bottom: 40px; }
  .adm-top { padding: 14px 28px; }
  .adm-top h1 { font-size: 1.5rem; }
  .adm-body { padding: 24px 28px; }
}
.hello { font-size: 1.05rem; margin: 0 0 16px; }
.next-ev { border-radius: var(--r-xl); padding: 22px; margin-bottom: 20px; color: #fff; background: radial-gradient(600px 300px at 100% 0%, rgba(241,232,141,.25), transparent 60%), linear-gradient(135deg, var(--brand-900), var(--brand)); display: grid; gap: 14px; }
.next-ev.sunset { background: linear-gradient(135deg, var(--sunset-c), var(--sunset-b) 70%, var(--sunset-a)); }
.next-ev .kicker { color: var(--butter); }
.next-ev h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); margin: 6px 0; }
.next-ev p { margin: 0; color: rgba(255,255,255,.85); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
@media (min-width: 800px) { .next-ev { grid-template-columns: 1fr auto; align-items: center; padding: 28px; } }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(6, 1fr); } }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: .2s; }
.kpi:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.kpi b { font: 800 2rem/1 var(--head); color: var(--brand-800); margin-top: 6px; }
.kpi > span:last-child { font-size: .82rem; color: var(--muted); font-weight: 500; }
.kpi-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.kpi.ok .kpi-ic { background: var(--ok-bg); color: var(--ok); }
.kpi.warn { border-color: #f1d99a; background: #fffcf1; }
.kpi.warn .kpi-ic { background: var(--warn-bg); color: var(--warn); }
.kpi.warn b { color: var(--warn); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 6px 0; }
.rows li:last-child { border: 0; }
.rows a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; text-decoration: none; color: var(--ink); width: 100%; }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-main small { color: var(--muted); font-size: .8rem; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: thin; }
.tab { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .86rem; display: inline-flex; gap: 8px; align-items: center; }
.tab b { font-size: .72rem; min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #eef1f0; }
.tab.on { background: var(--brand-800); border-color: transparent; color: #fff; }
.tab.on b { background: rgba(255,255,255,.18); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.vrows { display: grid; gap: 8px; }
.vrow { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.vrow:hover { border-color: var(--brand-100); box-shadow: var(--sh-1); }
.vr-logo { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: var(--brand-50); display: grid; place-items: center; }
.vr-logo img { width: 100%; height: 100%; object-fit: cover; }
.vr-main { display: flex; flex-direction: column; min-width: 0; }
.vr-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vr-main small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vr-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vr-meta small { color: var(--muted); font-size: .75rem; }
@media (min-width: 800px) { .vrow { grid-template-columns: 52px 1fr auto; } .vr-meta { grid-column: auto; justify-content: flex-end; } }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; }
.vd-head { display: grid; gap: 14px; grid-template-columns: auto 1fr; align-items: start; }
.vd-title h2 { margin: 0 0 4px; font-size: 1.5rem; }
.vd-title .note { margin-top: 8px; }
.vd-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.vd-actions .btn { flex: 1 1 160px; }
@media (min-width: 900px) { .vd-head { grid-template-columns: auto 1fr auto; } .vd-actions { grid-column: auto; flex-direction: column; min-width: 220px; } .vd-actions .btn { flex: none; } }
.ph-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ph-admin.big { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pha { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.pha.s-pending { border-color: #f1d99a; box-shadow: 0 0 0 3px #fff3d6; }
.pha.s-hidden, .pha.s-rejected { opacity: .7; }
.pha-img { aspect-ratio: 4/3; background: var(--brand-50); overflow: hidden; }
.pha-img img { width: 100%; height: 100%; object-fit: cover; }
.pha figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; padding: 8px 10px 0; font-size: .78rem; }
.pha-cap { font-size: .82rem; padding: 4px 10px 0; margin: 0; }
.pha .tiny { padding: 0 10px; margin: 2px 0 0; }
.pha-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; margin-top: auto; }
.pha-actions .icon-btn { width: 36px; height: 36px; }
.danger-zone { border-color: #f3c7c3; }
.ev-admin { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.ev-admin.s-cancelled, .ev-admin.s-archived { opacity: .7; }
.eva-date { text-align: center; border-radius: 14px; background: var(--brand-50); padding: 8px 4px; line-height: 1.1; }
.eva-date b { display: block; font: 800 1.6rem var(--head); color: var(--brand-800); }
.eva-date span { font-size: .75rem; text-transform: uppercase; font-weight: 700; color: var(--brand); }
.eva-date small { display: block; font-size: .7rem; color: var(--muted); }
.eva-main h3 { margin: 8px 0 4px; font-size: 1.2rem; }
.eva-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--ink-2); margin: 6px 0 0; }
.eva-stats span { display: inline-flex; gap: 4px; align-items: center; }
.eva-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 1000px) { .ev-admin { grid-template-columns: 72px 1fr auto; } .eva-actions { grid-column: auto; justify-content: flex-end; max-width: 380px; } }
.cover-prev { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.cover-prev img { width: 120px; height: 72px; object-fit: cover; border-radius: 10px; }
.ev-strip { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; font-size: .85rem; }
.ev-strip span { display: inline-flex; gap: 4px; align-items: center; color: var(--ink-2); }
.tabs.scroll { flex-wrap: nowrap; }
.p-rows { display: grid; gap: 8px; }
.p-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.p-main { display: flex; flex-direction: column; min-width: 0; }
.p-main a { color: var(--ink); text-decoration: none; }
.p-main small { color: var(--muted); font-size: .8rem; }
.p-state { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.p-state small { color: var(--muted); font-size: .78rem; }
.p-act { display: flex; flex-wrap: wrap; gap: 6px; }
.p-detail { display: none; grid-column: 1 / -1; font-size: .88rem; background: var(--cream); padding: 10px 12px; border-radius: 10px; }
.p-detail p { margin: 0 0 4px; }
.p-row.open .p-detail { display: block; }
.req-mini { display: flex; gap: 4px; margin-top: 6px; }
.req-mini span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #f0f2f1; color: #b5bfbb; }
.req-mini span.on { background: var(--brand-50); color: var(--brand); }
.req-mini .ic { width: 16px; height: 16px; }
@media (min-width: 900px) { .p-row { grid-template-columns: 1.4fr 1fr auto; align-items: center; } }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl.small { font-size: .8rem; }
.t-act { white-space: nowrap; text-align: right; }
.news-admin { display: grid; grid-template-columns: 80px 1fr; gap: 14px; align-items: start; }
.news-admin > img, .na-ph { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; background: var(--brand-50); display: grid; place-items: center; color: var(--brand); }
.na-main h3 { margin: 6px 0 4px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.na-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 900px) { .news-admin { grid-template-columns: 96px 1fr auto; } .na-act { grid-column: auto; } }
.fb-msg { font-size: 1rem; margin: 12px 0; white-space: normal; }
.fb-act { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-act input { flex: 1 1 200px; min-height: 40px !important; }
.fb-act select { width: auto; min-height: 40px; }
.dialog.wide { min-width: 0; }

/* Check-in */
.chk { max-width: 720px; margin: 0 auto; padding: 0 16px 100px; min-height: 100dvh; }
.chk-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; background: var(--cream); }
.chk-top h1 { font-size: 1.3rem; margin: 4px 0 0; }
.chk-top h1 small { font: 500 .85rem var(--body); color: var(--muted); margin-left: 6px; }
.chk-tools { display: grid; gap: 10px; margin-bottom: 14px; }
#scanner { position: relative; border-radius: 20px; overflow: hidden; background: #000; margin-bottom: 14px; }
#scanner video { width: 100%; max-height: 46vh; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18% 22%; border: 3px solid var(--gold); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); pointer-events: none; }
#scanner .btn { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); }
.chk-list { display: grid; gap: 6px; margin-bottom: 16px; }
.chk-row { min-width: 0; max-width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 10px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.chk-row:focus-visible { outline: 2px solid var(--brand-600); }
.chk-row-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 50%; }
.chk-row-main b { overflow-wrap: anywhere; }
.chk-row small { color: var(--muted); font-size: .78rem; }
.chk-row-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chk-row .chk-quick { flex: 1 1 100%; width: 100%; min-height: 44px; }
.chk-outline { --bg: #fff; --fg: var(--brand-900); --bd: var(--brand-900); border: 2px solid var(--bd); }
.chk-card { border-width: 2px; border-color: var(--brand-100); }
.chk-card.err { text-align: center; border-color: #f3c7c3; }
.chk-id { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.chk-id h2 { font-size: 1.5rem; margin: 0 0 2px; }
.chk-id p { margin: 0 0 4px; }
.chk-status { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.big-state { border-radius: 16px; padding: 14px 10px; text-align: center; background: #eef1f0; color: var(--ink-2); display: grid; gap: 4px; justify-items: center; }
.big-state .ic { width: 28px; height: 28px; }
.big-state b { font: 800 clamp(.85rem, 3.6vw, 1.05rem) var(--head); letter-spacing: .01em; }
.big-state small { font-size: .78rem; }
.big-state.ok { background: var(--ok-bg); color: var(--ok); }
.big-state.warn { background: #fff0c7; color: #7a5000; }
.chk-conf { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; font-size: .9rem; }
.req-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.req { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; background: #f0f2f1; color: #9aa6a2; font-size: .82rem; font-weight: 600; text-decoration: line-through; }
.req.on { background: var(--brand-50); color: var(--brand-800); text-decoration: none; }
.pay-box { margin: 16px 0 8px; padding: 14px; border-radius: 16px; background: #fffbea; border: 1px solid #f3e3a4; }
.pay-box .h-xs { margin-top: 0; }
.chk-card .btn-xl { margin: 12px 0 4px; }

/* Utilidades de impresión */
@media print { .site-header, .site-footer, .adm-side, .adm-tabbar, .adm-top-actions, #toasts { display: none !important; } body { background: #fff; } }

/* Invitaciones por evento */
.inv-list { display: grid; gap: 6px; max-height: 50vh; overflow: auto; padding: 2px; }
.inv-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.inv-item:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); }
.inv-item input { width: 20px; height: 20px; flex: none; }
.inv-item span { display: flex; flex-direction: column; min-width: 0; }
.inv-item small { color: var(--muted); font-size: .78rem; }

/* Aviso de versión del script vs sitio (solo administración) */
.adm-vcheck { margin: 12px 16px 0; padding: 12px 14px; border-radius: 12px; background: #fff4d6; color: #5a4300; border: 1px solid #f0d78a; font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.adm-vcheck > span { flex: 1 1 auto; min-width: 0; }
.adm-vcheck .ic { flex: none; margin-top: 2px; }
.adm-vcheck code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 5px; }

/* Dinero recaudado */
.money-card { border-color: #e6d9a8; background: linear-gradient(180deg, #fffdf5, #fff); }
.money-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .money-grid { grid-template-columns: 1.6fr 1fr 1fr; } .money-grid .money-big:only-child { grid-column: 1 / -1; } }
.money-big, .money-box { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.money-big { border-color: var(--gold); background: #fff8dc; }
.money-big span, .money-box span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.money-big b { font: 800 2.2rem/1.1 var(--head); color: var(--brand-800); }
.money-box b { font: 800 1.5rem/1.1 var(--head); color: var(--brand-800); }
.money-big small, .money-box small { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.money-list { margin-top: 12px; }
.money-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.money-list li > span { display: flex; flex-direction: column; }
.money-list small { color: var(--muted); font-size: .78rem; }
.money-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff8dc; border: 1px solid var(--gold); color: var(--brand-900); font-size: .9rem; margin: 0 0 8px; }
.money-pill b { font-weight: 800; }

/* Bitácora de incidentes (confidencial) */
.inc-card { border-color: #e9c9c5; background: linear-gradient(180deg, #fff9f8, #fff); }
.inc-card .card-head small { font-weight: 500; font-size: .75rem; margin-left: 6px; }
.inc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inc-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; border-left-width: 5px; }
.inc-item.s-leve { border-left-color: #c9d6d2; }
.inc-item.s-moderado { border-left-color: var(--gold); }
.inc-item.s-grave { border-left-color: #b3261e; }
.inc-when { display: flex; flex-direction: column; }
.inc-when b { font-size: .9rem; }
.inc-when small { color: var(--muted); }
.inc-main p { margin: 6px 0; }
.inc-main .row-wrap { gap: 6px; }
.inc-act { display: flex; flex-direction: column; gap: 6px; }
.badge.inc-leve { background: #eef2f1; color: #3f5650; }
.badge.inc-moderado { background: var(--warn-bg); color: var(--warn); }
.badge.inc-grave { background: #fde7e5; color: #8f1d17; }
@media (max-width: 600px) { .inc-item { grid-template-columns: 1fr auto; } .inc-when { grid-column: 1 / -1; flex-direction: row; gap: 8px; align-items: baseline; } }

/* Manual dentro del centro de control */
.manual-frame { margin: -8px -4px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.manual-frame iframe { display: block; width: 100%; height: calc(100dvh - 150px); min-height: 520px; border: 0; }

/* ===== v7.1 · Beneficiario, gastos, relevo de responsabilidad ===== */
.neg { color: var(--err) !important; }
.tag-ok, .tag-warn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; line-height: 1.5; }
.note.ok { background: var(--ok-bg); color: var(--ok); display: flex; gap: 8px; align-items: center; }

/* Portada: beneficiario */
.bene { padding: 0 var(--gutter); margin-top: -36px; position: relative; z-index: 3; }
.bene-card { max-width: 1100px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: hidden; display: grid; grid-template-columns: 1fr; }
.bene-img { background: var(--brand-50); aspect-ratio: 4/3; max-height: 420px; overflow: hidden; }
.bene-img .bene-photo, .bene-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.bene-ph { display: grid; place-items: center; color: var(--brand); height: 100%; }
.bene-ph .ic { width: 64px; height: 64px; }
.bene-body { padding: 22px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.bene-body h2 { font-size: clamp(1.5rem, 4.5vw, 2.3rem); font-weight: 800; margin: 4px 0 8px; text-wrap: balance; color: var(--brand-800); }
.bene-body p { max-width: 62ch; color: var(--ink-2); }
.bene-how { font-size: .95rem; color: var(--muted) !important; }
@media (min-width: 820px) {
  .bene-card { grid-template-columns: 5fr 6fr; }
  .bene-img { aspect-ratio: auto; max-height: none; min-height: 360px; }
  .bene-body { padding: 36px 40px; }
}
.e-bene { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--brand-700); background: var(--brand-50); padding: 8px 12px; border-radius: 12px; }
.bene-note { display: flex; gap: 14px; align-items: center; }
.bene-note img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.bene-note p { margin: 0; font-size: .92rem; }
.bene-heart { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--brand); flex: none; }

/* Confirmación en pasos */
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 4px 0 18px; overflow-x: auto; }
.steps li { display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; padding: 8px 10px; border-radius: 12px; background: var(--cream); color: var(--muted); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.steps li i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); font-style: normal; font-size: .78rem; flex: none; }
.steps li i .ic { width: 14px; height: 14px; }
.steps li.on { background: var(--brand); color: #fff; }
.steps li.on i { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.steps li.done { background: var(--ok-bg); color: var(--ok); }
.steps li.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
@media (max-width: 560px) { .steps li span { display: none; } .steps li.on span { display: inline; } }
.waiver-pre { background: var(--cream); border-radius: 12px; padding: 12px 14px; font-size: .93rem; }
.clauses { display: grid; gap: 10px; margin: 12px 0; }
.clause { border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; background: #fff; }
.clause h4 { font-size: 1rem; margin-bottom: 4px; color: var(--brand-800); }
.clause p { font-size: .9rem; color: var(--ink-2); margin-bottom: 8px; }
.sign-box { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--cream); display: grid; gap: 10px; }
#sigPad { width: 100%; max-width: 480px; aspect-ratio: 16/5; background: #fff; border: 1.5px dashed var(--line-2); border-radius: 12px; touch-action: none; cursor: crosshair; }
.step-actions { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Admin: gastos y balance */
.fin-kpis { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .fin-kpis { grid-template-columns: repeat(5, 1fr); } }
.kpi.bad { border-color: #efb6b1; background: #fff6f5; }
.kpi.bad b { color: var(--err); }
.fin-tbl .num, .tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.filters select { max-width: 100%; }
.exp-row { display: grid !important; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.exp-row .row-main { display: flex; flex-direction: column; min-width: 0; }
.exp-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.exp-actions { display: flex; gap: 4px; }
@media (max-width: 560px) { .exp-row { grid-template-columns: 1fr auto; } .exp-actions { grid-column: 1 / -1; justify-content: flex-end; } }
.receipt-view img { width: 100%; height: auto; border-radius: 12px; }
fieldset.fs-bene { border: 1.5px solid var(--brand-100); background: var(--brand-50); border-radius: 16px; padding: 14px; margin: 8px 0; min-width: 0; }
fieldset.fs-bene legend { padding: 0 8px; font-weight: 700; color: var(--brand-800); display: flex; gap: 6px; align-items: center; }
.eva-bene, .eva-fin { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.waiver-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; margin: 10px 0; }
.waiver-row > span { flex: 1; display: flex; flex-direction: column; }
.waiver-row.ok { background: var(--ok-bg); color: var(--ok); }
.waiver-row.warn { background: var(--warn-bg); color: var(--warn); }
.waiver-view h1 { font-size: 1.4rem; }
.waiver-view dl { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 4px 12px; margin: 8px 0 12px; }
.waiver-view dt { color: var(--muted); font-size: .88rem; }
.waiver-view dd { margin: 0; overflow-wrap: anywhere; }
.waiver-view .sig { max-width: 320px; background: #fff; border-bottom: 1px solid var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters select { width: auto; min-width: 170px; flex: 1 1 170px; }

/* ===== v7.2 · Informes ===== */
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }
.sw-m { background: var(--brand); } .sw-s { background: var(--sunset-b); } .sw-t { background: var(--ink); }
.dl { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl-up { background: var(--ok-bg); color: var(--ok); } .dl-down { background: var(--err-bg); color: var(--err); }
.dl-flat, .dl-new { background: var(--cream); color: var(--muted); }
.rp-kpis { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .rp-kpis { grid-template-columns: repeat(4, 1fr); } .rp-kpis .kpi:nth-child(5) { grid-column: auto; } }
@media (min-width: 1200px) { .rp-kpis { grid-template-columns: repeat(5, 1fr); } }
.rp-kpis .kpi { cursor: default; } .rp-kpis .kpi:hover { transform: none; box-shadow: none; }
.rp-kpis .kpi > small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.rp-card { margin-bottom: 14px; padding: 16px; }
.rp-card.rp-total { border: 2px solid var(--brand); background: linear-gradient(180deg, var(--brand-50), #fff 60%); }
.rp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 8px; }
.rp-head h3 { margin: 0; font-size: 1.2rem; }
.rp-tbl th small { display: block; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.rp-tbl tbody th { text-align: left; font-weight: 600; white-space: nowrap; position: sticky; left: 0; background: inherit; }
.rp-card .table-wrap { overflow-x: auto; }
.rp-svg svg { width: 100%; height: auto; display: block; }
.rp-grid { stroke: var(--line); stroke-width: 1; }
.rp-ax { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.rp-val { fill: var(--ink-2); font-size: 10.5px; font-weight: 700; font-family: var(--body); }
.rp-bm { fill: var(--brand); } .rp-bs { fill: var(--sunset-b); }
.rp-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; margin: 6px 0 14px; }
.rp-chart { padding: 16px; }

.rp-bar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.rp-date { margin: 0; flex-wrap: nowrap; }
.rp-date .rp-lbl { white-space: nowrap; font-size: .9rem; color: var(--muted, #5b6b66); }
.rp-date input { min-width: 0; width: 10rem; }

/* v7.3 — medidor X de N, confirmar por lista, zona de reinicio */
.meter { display: block; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; margin: 10px 0; }
a.meter:hover { box-shadow: var(--sh-2); }
.mt-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mt-label { font-weight: 700; font-size: .95rem; }
.mt-num { font: 800 1.25rem/1 var(--head); color: var(--brand-800); margin-left: auto; font-variant-numeric: tabular-nums; }
.mt-pct { font-weight: 700; color: var(--muted); min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }
.mt-bar { height: 10px; border-radius: 999px; background: var(--brand-50); overflow: hidden; margin-top: 8px; }
.mt-bar i { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .5s ease; }
.mt-ok .mt-bar i { background: #2f8f5b; } .mt-ok .mt-num { color: #1f6b43; }
.mt-warn .mt-bar i { background: #d49a1c; }
.mt-bad .mt-bar i { background: #c6473e; }
.mt-hint { display: block; margin-top: 6px; color: var(--muted); }
.next-ev .meter { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; margin: 0; }
.next-ev .meter .mt-num, .next-ev .meter .mt-pct, .next-ev .meter .mt-hint { color: #fff; }
.next-ev .meter .mt-bar { background: rgba(255,255,255,.22); } .next-ev .meter .mt-bar i { background: var(--butter); }
.ev-meters { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 10px 0 14px; }
.ev-meters .meter { margin: 0; }
.cl-rows { display: grid; gap: 6px; max-height: 50vh; overflow: auto; padding: 2px; }
.cl-row { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cl-row.cl-nf { background: #fff6f5; border-color: #f1c7c3; }
.cl-row.cl-pb { background: #fffaea; border-color: #f0dfa1; }
.cl-row.cl-ok { background: #f3faf5; border-color: #cfe8d8; }
.cl-row .cl-name { font-weight: 700; }
.cl-row small { display: block; color: var(--muted); }
.cl-row select { margin-top: 4px; max-width: 100%; }
.cl-sum { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.cl-sum span { padding: 4px 10px; border-radius: 999px; background: var(--brand-50); font-size: .85rem; font-weight: 600; }
.cl-sum .nf { background: #fde7e4; color: #8f2a22; } .cl-sum .pb { background: #fdf2cf; color: #7a5a00; } .cl-sum .okk { background: #dcefe3; color: #1f6b43; }
.danger-zone { border: 1px solid #f1c7c3; background: #fff8f7; }
.danger-zone h3 { color: #8f2a22; }
.danger-zone .rz-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 10px 0; }
.danger-zone .rz-grid div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.danger-zone .rz-grid b { display: block; font: 800 1.3rem/1.1 var(--head); color: var(--brand-800); }
.danger-zone .rz-grid span { color: var(--muted); font-size: .82rem; }
.btn-danger { background: #c6473e; color: #fff; border-color: #c6473e; }
.btn-danger:hover { background: #a93a32; }
.btn-danger[disabled] { opacity: .5; cursor: not-allowed; }

.acc-link { display: flex; gap: 6px; align-items: center; background: var(--brand-50); border: 1px dashed var(--brand); border-radius: 12px; padding: 8px 10px; margin: 10px 0; }
.acc-link code { flex: 1; min-width: 0; word-break: break-all; font-size: .8rem; }
.acc-fallback { margin-top: 10px; text-align: left; }
.acc-fallback summary { cursor: pointer; }

.install-box { margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--brand-50); border: 1px solid var(--line); display: grid; gap: 8px; text-align: left; }
.install-box b { display: flex; gap: 6px; align-items: center; font-size: .95rem; }
.install-box small { line-height: 1.45; }

label.cl-row { cursor: pointer; }
.cl-row.cl-sent { background: #e7f5ec; border-color: #9fd3b4; }
.cl-row.cl-sent .cl-name::after { content: " ✓ enviado"; color: #1f6b43; font-weight: 600; font-size: .85rem; }

.qr-cta { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: #fff8dc; border: 1px solid #f0dfa1; margin: 0 0 12px; }
.qr-cta span { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
@media (max-width: 599px) { .qr-cta .btn { width: 100%; justify-content: center; } }

.rc-cta { background: #eef6f1; border-color: #cfe8d8; }
.rc-dialog .kpis { margin: 6px 0 12px; }
.rc-dialog .two-col { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 12px; }
.rc-dialog ul.plain { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; }
.rc-dialog ul.rows.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.rc-dialog .neg { color: #c6473e; }

.ev-cta { background: #f3f7f5; border-color: #cfe0d8; }
.eve-prev { margin: 10px 0; }
.eve-prev summary { cursor: pointer; }
.eve-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 12px; background: #f3f5f4; margin-top: 8px; }

/* v7.6.2 · Check-in en un solo paso: llegada + pago + relevo y sigue con el próximo */
.arr-form { display: grid; gap: 14px; margin-top: 14px; }
.arr-step { border: 1.5px solid var(--brand-100); border-radius: var(--r); padding: 12px 14px 14px; margin: 0; display: grid; gap: 10px; background: #fff; }
.arr-step legend { font: 800 1rem var(--head); color: var(--brand-900); padding: 0 6px; display: inline-flex; align-items: center; gap: 6px; }
.arr-step.warn { border-color: #f0d38a; background: var(--warn-bg); }
.arr-step.warn legend { color: #7a5000; background: var(--warn-bg); border-radius: 8px; }
.arr-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.arr-choice label { position: relative; }
.arr-choice input { position: absolute; opacity: 0; inset: 0; }
.arr-choice span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; border-radius: 14px; border: 2px solid var(--line-2); font: 800 1.02rem var(--head); color: var(--ink-2); background: #fff; cursor: pointer; text-align: center; padding: 6px; transition: background .15s, border-color .15s; }
.arr-choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.arr-choice input[value=YES]:checked + span { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.arr-choice input[value=NO]:checked + span { background: var(--warn-bg); border-color: var(--warn); color: #7a5000; }
.arr-choice.need span { border-color: var(--err); }
.arr-paydetail { display: grid; gap: 10px; }
.arr-check { font-size: 1rem; font-weight: 700; padding: 6px 0 0; }
.arr-check input { width: 24px; height: 24px; }
.arr-more { margin-top: 10px; }
.arr-more > summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.arr-more input, .arr-more select { width: 100%; margin-top: 6px; min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 12px; font: inherit; background: #fff; }
.chk-nav { margin-top: 12px; }
.chk-done { text-align: center; border: 2px solid var(--ok); background: linear-gradient(180deg, var(--ok-bg), #fff 70%); }
.chk-done h2 { margin: 0 0 8px; font: 800 1.35rem var(--head); color: var(--brand-900); }
.chk-done-list { list-style: none; margin: 0 auto 16px; padding: 0; display: grid; gap: 6px; max-width: 340px; text-align: left; }
.chk-done-list li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .98rem; }
.chk-done-list li.ok { color: var(--ok); }
.chk-done-list li.warn { color: #7a5000; }
.chk-done-list .ic { width: 20px; height: 20px; flex: none; }

/* v7.7.0 · Check-in rápido: barra de guardado, cámara persistente */
.sync-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 10px 14px; border-radius: 14px; font-weight: 600; font-size: .92rem; background: var(--info-bg); color: var(--info); box-shadow: var(--sh-1); }
.sync-bar[data-state=ok] { background: var(--ok-bg); color: var(--ok); }
.sync-bar[data-state=err] { background: var(--err-bg); color: var(--err); }
.sync-bar > span:not(.spinner) { flex: 1 1 180px; }
.sync-bar .ic { width: 20px; height: 20px; flex: none; }
.sync-bar .spinner { width: 16px; height: 16px; border-width: 2px; flex: none; }
.chk-loading { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 22px; font-weight: 600; color: var(--muted); }
.chk-done { padding: 14px 16px; }
.chk-done-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; }
.chk-done-head h2 { margin: 0; }
.done-ic.sm { width: 40px; height: 40px; margin: 0; }
.done-ic.sm .ic { width: 22px; height: 22px; }
.chk-done-list { margin-bottom: 12px; }
.scan-hint { position: absolute; left: 0; right: 0; top: 12px; margin: 0; text-align: center; color: #fff; font-weight: 700; font-size: .9rem; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }

/* v7.7.1 · Zona de energía (electricidad / generador) */
.pw-cta { background: #fff6d8; border-color: #f0d38a; }
.pw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pw-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; line-height: 1.3; }
.pw-tag .ic { width: 14px; height: 14px; flex: none; }
.pw-tag.gen { background: #fde7c2; color: #8a4b00; }
.pw-tag.elec { background: #e0ecfb; color: #1d4f8c; }
.chk-row-badges .pw-tag { margin-right: 4px; }
.pw-alert { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; font-size: .95rem; }
.pw-alert .ic { width: 26px; height: 26px; flex: none; }
.pw-alert span { display: grid; gap: 2px; }
.pw-alert small { font-weight: 600; opacity: .9; }
.pw-alert.gen { background: #fde7c2; color: #7a4200; border: 2px solid #f2b660; }
.pw-alert.elec { background: #e0ecfb; color: #1d4f8c; border: 2px solid #9cc0ee; }
.pw-sec { margin-top: 14px; }
.pw-sec h3 { display: flex; align-items: center; gap: 8px; font: 800 1rem var(--head); margin: 0 0 8px; }
.pw-sec h3 b { margin-left: auto; background: var(--brand-50); color: var(--brand-900); border-radius: 999px; padding: 1px 10px; font-size: .85rem; }
.pw-sec.gen h3 { color: #8a4b00; }
.pw-sec.elec h3 { color: #1d4f8c; }
.pw-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.pw-row > div:first-child { display: grid; gap: 2px; min-width: 0; }
.pw-row small { overflow-wrap: anywhere; }
.pw-det { color: #8a4b00; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.pw-det .ic { width: 14px; height: 14px; }
.pw-side { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* v7.7.3 · Anclaje (+$10) en el check-in */
.arr-step legend small { font: 600 .82rem var(--body); }
.arr-choice.anc span { min-height: 50px; font-size: .95rem; }
.arr-choice.anc input[value=NO]:checked + span { background: #eef1f0; border-color: var(--ink-2); color: var(--ink-2); }
.arr-choice.anc input[value=YES]:checked + span { background: var(--brand-50); border-color: var(--brand); color: var(--brand-900); }
.anc-hint { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--info); font-weight: 600; }
.anc-hint .ic { width: 16px; height: 16px; }

/* v7.7.4 · Llegadas "tanto de tanto" en el check-in */
.arr-meter { margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1.5px solid var(--brand-100); display: grid; gap: 6px; }
.am-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 1rem; color: var(--ink-2); }
.am-head b { color: var(--brand-900); font-variant-numeric: tabular-nums; }
.am-pct { font: 800 1.5rem var(--head); color: var(--brand); font-variant-numeric: tabular-nums; }
.am-bar { height: 12px; border-radius: 999px; background: #e7ece9; overflow: hidden; }
.am-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #2a9a77); border-radius: inherit; transition: width .4s var(--ease); }
.arr-meter small { color: var(--muted); font-size: .86rem; }
.arr-meter small b { color: #7a5000; }
.arr-meter.full { border-color: var(--ok); background: var(--ok-bg); }
.arr-meter.full .am-pct, .arr-meter.full small { color: var(--ok); }

/* v7.8.0 · Sin fines de lucro */
.np-tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: #fbe4ec; color: #9c2858; font-size: .78rem; font-weight: 700; }
.np-tag .ic { width: 14px; height: 14px; }
.np-check { padding-top: 0; }
.np-check .ic { width: 18px; height: 18px; color: #9c2858; vertical-align: -3px; }
.anc-q { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: .95rem; }
.anc-q .ic { width: 18px; height: 18px; }
.np-none { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 14px; background: #fbe4ec; color: #7d1f47; }
.np-none .ic { width: 20px; height: 20px; flex: none; }

/* v7.8.1 · Equipo de anclaje */
.an-cta { background: #e6f0fb; border-color: #a9c7ec; }
.an-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; line-height: 1.3; }
.an-tag .ic { width: 14px; height: 14px; flex: none; }
.an-tag.paid { background: #dbeafe; color: #1e4f91; }
.an-tag.due { background: #ffe8c7; color: #8a4b00; }
.an-tag.mention { background: #eef1f0; color: var(--ink-2); }
.pw-sec.an h3 { color: #1e4f91; }
.pw-sec.an-m h3 { color: var(--ink-2); }

/* v7.9.0 · Cancelaciones y reembolsos */
.b-refunded, .b-left { background: #ece7f6; color: #5b3d8f; }
.arr-choice.cx { grid-template-columns: repeat(3, 1fr); }
.arr-choice.cx span { min-height: 48px; font-size: .9rem; }
.arr-choice.cx input:checked + span { background: var(--err-bg); border-color: var(--err); color: var(--err); }
.cx-refund { background: var(--warn-bg); border-radius: 12px; padding: 10px 12px; }
.p-cancel { color: var(--err); }
.chk-cancelled { border: 2px solid var(--err); background: var(--err-bg); color: var(--err); border-radius: 14px; padding: 12px 14px; margin-top: 12px; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.chk-cancelled .ic { width: 22px; height: 22px; flex: none; }
.chk-cx { color: var(--err); margin-top: 10px; }
.chk-done.cx { border-color: var(--err); background: linear-gradient(180deg, var(--err-bg), #fff 70%); }
.chk-done.cx .done-ic { background: var(--err-bg); color: var(--err); }
.chk-editpay { margin-top: 10px; }

/* v7.9.2 · Anclaje visible en el check-in */
.chk-row-badges .an-tag { margin-right: 4px; }
.an-share { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; background: #e6f0fb; color: #1e4f91; font-size: .92rem; }
.an-share .ic { width: 16px; height: 16px; vertical-align: -3px; }
.an-alert { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; font-size: .95rem; background: #dbeafe; color: #1e4f91; border: 2px solid #9cc0ee; }
.an-alert.due { background: #ffe8c7; color: #7a4200; border-color: #f2b660; }
.an-alert .ic { width: 24px; height: 24px; flex: none; }
.an-alert span { display: grid; gap: 2px; }
.an-alert small { font-weight: 600; }

/* v7.9.3 · Eliminar pago de prueba */
.pay-del { margin: 4px 0 0; }
.text-btn.danger { color: var(--err); display: inline-flex; align-items: center; gap: 6px; }
.text-btn.danger .ic { width: 16px; height: 16px; }

/* v7.9.4 · Neto de Mercado del Río (recaudado − causa − gastos) */
.bal-box .bal-lines { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: .86rem; }
.bal-box .bal-lines li { display: flex; justify-content: space-between; gap: 8px; }
.bal-box .bal-lines li b { font-variant-numeric: tabular-nums; font-size: .9rem; }
.bal-box .bal-lines li small { color: var(--muted); }
.bal-box .bal-lines li.tot { border-top: 1px solid var(--line-2); padding-top: 4px; font-weight: 700; }

/* ---------- 7.10 Agradecimiento + encuesta de cierre ---------- */
.sv-card h1 { margin: 6px 0 4px; }
.sv-thanks { background: var(--brand-50); border-radius: 12px; padding: 10px 14px; font-size: .95rem; margin: 12px 0 4px; }
.sv-form { display: grid; gap: 14px; margin-top: 10px; }
.sv-q { border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 12px; margin: 0; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.sv-q legend { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 1rem; line-height: 1.35; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.sv-q .sv-faces { clear: both; }
.sv-q.sv-miss { border-color: var(--err); box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.sv-n { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; }
.sv-faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sv-face { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 2px 7px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; text-align: center; transition: transform .12s, border-color .12s, background .12s; -webkit-tap-highlight-color: transparent; }
.sv-face input { position: absolute; opacity: 0; pointer-events: none; }
.sv-emo { font-size: 1.7rem; line-height: 1.1; filter: grayscale(.55); opacity: .75; transition: filter .12s, opacity .12s; }
.sv-lbl { font-size: .7rem; line-height: 1.15; color: var(--muted); }
.sv-face:hover { border-color: var(--brand-100); }
.sv-face:has(input:checked) { border-color: var(--brand); background: var(--brand-50); transform: translateY(-1px); }
.sv-face:has(input:checked) .sv-emo { filter: none; opacity: 1; }
.sv-face:has(input:checked) .sv-lbl { color: var(--brand-800); font-weight: 700; }
.sv-face:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.sv-com textarea { min-height: 96px; }
.sv-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
@media (max-width: 599px) { .sv-foot .btn { width: 100%; justify-content: center; } .sv-lbl { font-size: .62rem; } .sv-emo { font-size: 1.5rem; } }
.sv-done { text-align: center; }
.sv-ok { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand-50); color: var(--brand); margin: 0 auto 8px; }
.sv-ok svg { width: 30px; height: 30px; }
.sv-sum { list-style: none; padding: 0; margin: 14px auto; max-width: 420px; display: grid; gap: 6px; text-align: left; }
.sv-sum li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; }
.sv-cmt { font-style: italic; color: var(--muted); max-width: 460px; margin: 0 auto 12px; }
.sv-acts { justify-content: center; margin: 8px 0 10px; }
/* Resultados (admin) */
.sv-qs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 18px; }
.sv-res { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--paper); }
.sv-res header { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.sv-res header div { flex: 1; display: grid; gap: 2px; }
.sv-res header small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.sv-avg { font: 700 1.5rem/1 var(--body); font-variant-numeric: tabular-nums; color: var(--brand-800); }
.sv-avg.ok { color: var(--ok); } .sv-avg.mid { color: var(--warn); } .sv-avg.bad { color: var(--err); }
.kpi.mid b { color: var(--warn); }
.sv-bars { display: grid; gap: 5px; }
.sv-bar { display: grid; grid-template-columns: 112px 1fr 26px; gap: 8px; align-items: center; font-size: .8rem; }
.sv-bl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-track { height: 9px; border-radius: 99px; background: var(--brand-50); overflow: hidden; }
.sv-track i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.sv-bn { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.sv-cmts { display: grid; gap: 10px; margin-bottom: 18px; }
.sv-cq { margin: 0; padding: 12px 14px; border-left: 4px solid var(--gold); background: var(--paper); border-radius: 0 12px 12px 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sv-cq p { margin: 0 0 6px; }
.sv-cq footer { font-size: .8rem; color: var(--muted); }
.sv-pill { display: inline-grid; place-items: center; min-width: 26px; height: 24px; border-radius: 8px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--brand-50); color: var(--brand-800); }
.sv-pill.s1, .sv-pill.s2 { background: #fdecea; color: var(--err); }
.sv-pill.s3 { background: #fff4d6; color: var(--warn); }
.sv-tbl tr.sv-low td:first-child { box-shadow: inset 3px 0 0 var(--err); }
.sv-tc { max-width: 340px; font-size: .85rem; color: var(--muted); }
.sv-pend { margin: 8px 0 18px; }

/* 7.10.1 · Mensaje especial del día en la encuesta */
.sv-note { margin: 14px 0 4px; padding: 18px 20px 6px; border-radius: 16px; background: linear-gradient(180deg, var(--brand-50), #f6faf8); border: 1px solid var(--brand-100); }
.sv-note h2 { margin: 0 0 10px; font: 600 1.2rem/1.3 Georgia, 'Times New Roman', serif; color: var(--brand-800); text-wrap: balance; }
.sv-note p { margin: 0 0 12px; font: 1rem/1.65 Georgia, 'Times New Roman', serif; color: var(--ink); }
.sv-note p:last-child { font-weight: 700; }

/* 7.10.2 · Dinero recaudado: filas uniformes (evento y temporada) */
.mrow { margin: 0 0 14px; }
.mrow-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.mrow-h h3 { margin: 0; font: 700 .74rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-700); }
.mrow-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.mrow-chip svg { width: 14px; height: 14px; }
.mrow-chip b { color: var(--brand-800); font-variant-numeric: tabular-nums; }
.mrow-g { display: grid; gap: 10px; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
@media (max-width: 899px) { .mrow-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 459px) { .mrow-g { grid-template-columns: 1fr; } }
.mtile { display: flex; flex-direction: column; gap: 4px; min-height: 108px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.mtile-l { font-size: .8rem; font-weight: 600; color: var(--muted); }
.mtile-v { font: 800 1.6rem/1.1 var(--head); color: var(--brand-800); font-variant-numeric: tabular-nums; }
.mtile-v.neg { color: var(--err); }
.mtile-s { margin-top: auto; font-size: .76rem; line-height: 1.4; color: var(--muted); }
.mtile-s a { color: var(--brand); font-weight: 700; text-decoration: none; }
.mtile-s a:hover { text-decoration: underline; }
.mtile-net { background: var(--brand-50); border-color: var(--brand-100); }
.mtile-net .mtile-l { color: var(--brand-700); }

/* 7.10.3 · Cobros del día (revisión + registro por lista) */
.pay-cta { background: #fff3e0; border-color: #f2c48d; }
.pr-found { padding: 12px 14px; border-radius: 14px; background: var(--ok-bg); border: 1px solid #b9e2c9; margin: 0 0 12px; display: grid; gap: 6px; justify-items: start; }
.pr-found p { margin: 0; }
.pr-why { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pr-why summary { cursor: pointer; }
.pr-list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: .9rem; }
.pr-tools { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 8px 0; }
.pr-rows { display: grid; gap: 6px; max-height: 46vh; overflow: auto; padding-right: 4px; }
.pr-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 150px; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pr-row.off { opacity: .55; }
.pr-row .check span { display: inline; }
.pr-row input.prAmt { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) { .pr-row { grid-template-columns: 1fr 1fr; } .pr-row .check { grid-column: 1 / -1; } }
.pr-total { margin-right: auto; font-size: .95rem; }
.pr-total b { font-variant-numeric: tabular-nums; }
.mtile-warn { background: #fff3e0; border-color: #f2c48d; }
.pr-peek { width: 100%; } .pr-peek ul { margin: 6px 0 0; padding-left: 18px; max-height: 180px; overflow: auto; }
/* 7.10.5 · Rescate de check-in */
.rescue-note { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin: 6px 0 4px; }
.rescue-note a { font-weight: 700; }
.rescue-acts { margin: 12px 0; }
.rescue-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.rescue-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rescue-list li small { grid-column: 1; color: var(--muted); font-size: .78rem; }
.rescue-list .rs-amt { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* =====================================================================
   7.11 · App Finanzas MDR (/finanzas) — gastos y donaciones, solo administradores
   ===================================================================== */
body.fz-mode { background: var(--cream); }
.fz { max-width: 640px; margin: 0 auto; padding: 0 16px calc(40px + env(safe-area-inset-bottom)); min-height: 100dvh; display: flex; flex-direction: column; gap: 14px; }
.fz-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 0 10px; background: var(--cream); }
.fz-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fz-brand img { border-radius: 10px; }
.fz-brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.fz-brand small { font: 700 .7rem var(--body); letter-spacing: .12em; color: var(--brand); }
.fz-brand b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-ev { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--paper); text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.fz-ev-l { display: flex; flex-direction: column; min-width: 0; }
.fz-ev-l small { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fz-ev-l b { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-ev-l b span { font-weight: 500; color: var(--muted); }
.fz-sync { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--info-bg); color: var(--info); font-size: .88rem; }
.fz-sync span { flex: 1; }
.fz-bal { background: var(--brand-800); color: #fff; border-radius: var(--r-lg); padding: 18px 18px 14px; box-shadow: var(--sh-2); }
.fz-bal .sk { background: rgba(255,255,255,.12); }
.fz-net { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.14); }
.fz-net small { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--butter); font-weight: 700; }
.fz-net b { font-size: 2.3rem; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.fz-net.neg b { color: #ffb4ab; }
.fz-rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.fz-rows li { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.fz-rows li b { font-variant-numeric: tabular-nums; }
.fz-bal .fz-rows li.in span { color: #c9efdc; }
.fz-bal .fz-rows li.out span { color: rgba(255,255,255,.8); }
.fz-note { margin: 10px 0 0; font-size: .85rem; display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; color: rgba(255,255,255,.85); }
.fz-note.warn { color: var(--butter); }
.fz-err { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fz-err .btn { color: #fff; border-color: rgba(255,255,255,.3); }
.fz-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fz-big { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; min-height: 112px; border-radius: var(--r-lg); border: 0; font: inherit; text-align: left; cursor: pointer; box-shadow: var(--sh-1); transition: transform .12s; }
.fz-big:active { transform: scale(.97); }
.fz-big b { font-size: 1.25rem; }
.fz-big small { font-size: .82rem; opacity: .85; }
.fz-plus { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.fz-big-exp { background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); }
.fz-big-exp .fz-plus { background: var(--err-bg); color: var(--err); }
.fz-big-don { background: var(--gold); color: var(--brand-900); }
.fz-big-don .fz-plus { background: rgba(255,255,255,.55); color: var(--brand-800); }
.fz-moves { background: var(--paper); border-radius: var(--r-lg); padding: 14px 6px 6px; border: 1px solid var(--line); }
.fz-moves-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 0 10px 8px; }
.fz-moves-h h2 { font-size: 1.05rem; margin: 0; }
.fz-chips { display: flex; gap: 6px; }
.fz-chip { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 6px 12px; font: 600 .82rem var(--body); color: var(--ink-2); cursor: pointer; }
.fz-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.fz-list { list-style: none; margin: 0; padding: 0; }
.fz-list li + li { border-top: 1px solid var(--line); }
.fz-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px; border: 0; background: transparent; font: inherit; color: var(--ink); text-align: left; cursor: pointer; border-radius: 12px; }
.fz-item:active { background: var(--brand-50); }
.fz-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; background: var(--err-bg); color: var(--err); }
.fz-item.g .fz-ic { background: #fff3d6; color: #9a6400; }
.fz-item.r .fz-ic { background: var(--ok-bg); color: var(--ok); }
.fz-it { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fz-it b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-it small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-amt { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-variant-numeric: tabular-nums; }
.fz-item.r .fz-amt { color: var(--ok); }
.fz-tag { font-style: normal; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-top: 3px; }
.fz-tag.p { background: var(--warn-bg); color: var(--warn); }
.fz-tag.q { background: var(--info-bg); color: var(--info); }
.fz-empty { padding: 22px 12px; text-align: center; color: var(--muted); }
.fz-season { background: var(--paper); border-radius: var(--r); border: 1px solid var(--line); padding: 12px 16px; }
.fz-season summary { font-weight: 700; cursor: pointer; }
.fz-season .fz-rows li.tot { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 700; }
.fz-season .fz-note { color: var(--warn); }
.fz-foot { text-align: center; display: flex; gap: 6px; justify-content: center; align-items: flex-start; }
/* Formularios (hoja que sube desde abajo) */
.fz-sheet { max-width: 560px; }
.fz-form { display: flex; flex-direction: column; gap: 16px; }
.fz-fh h2 { margin: 4px 0 0; font-size: 1.35rem; }
.fz-amount { display: flex; align-items: center; gap: 6px; border: 2px solid var(--brand); border-radius: var(--r); padding: 6px 16px; background: var(--brand-50); }
.fz-amount span { font-size: 1.8rem; font-weight: 700; color: var(--brand); }
.fz-form .fz-amount input:not([type=checkbox]):not([type=radio]):not([type=file]) { flex: 1; min-width: 0; width: auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; font: 700 2rem var(--body); color: var(--ink); padding: 6px 0; outline: none; font-variant-numeric: tabular-nums; }
.fz-amount:focus-within { box-shadow: 0 0 0 4px rgba(17,92,80,.14); }
.fz-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.fz-pick label, .fz-seg label { position: relative; cursor: pointer; }
.fz-pick input, .fz-seg input, .fz-type input { position: absolute; opacity: 0; pointer-events: none; }
.fz-pick span { display: inline-block; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.fz-pick input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.fz-pick input:focus-visible + span, .fz-seg input:focus-visible + span, .fz-type input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.fz-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.fz-seg span { display: block; text-align: center; padding: 12px 8px; font-weight: 700; color: var(--ink-2); background: var(--paper); }
.fz-seg label + label span { border-left: 1px solid var(--line-2); }
.fz-seg input:checked + span { background: var(--brand); color: #fff; }
.fz-type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fz-type label { position: relative; cursor: pointer; }
.fz-type span { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--r); border: 2px solid var(--line-2); background: var(--paper); height: 100%; }
.fz-type b { font-size: 1rem; }
.fz-type small { color: var(--muted); font-size: .8rem; }
.fz-type input:checked + span { border-color: var(--brand); background: var(--brand-50); }
.fz-photo { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fz-cam { display: block; width: 100%; cursor: pointer; }
.fz-cam span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 14px 16px; border-radius: var(--r); border: 2px dashed var(--line-2); color: var(--brand); }
.fz-cam small { width: 100%; color: var(--muted); font-size: .8rem; }
.fz-thumb { max-width: 100%; max-height: 180px; border-radius: 12px; object-fit: cover; }
.fz-more { border-top: 1px solid var(--line); padding-top: 10px; display: block; }
.fz-more summary { font-weight: 700; color: var(--brand); cursor: pointer; padding: 4px 0; }
.fz-more[open] { display: flex; flex-direction: column; gap: 12px; }
.fz-hint { margin: -6px 0 0; }
.fz-save { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); display: flex; gap: 10px; padding: 12px 0 calc(4px + env(safe-area-inset-bottom)); background: #fff; margin-bottom: calc(-20px - env(safe-area-inset-bottom)); }
.fz-save .btn-primary { flex: 1; }
.fz-del { color: var(--err); }
.fz-evh { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0 -8px; }
.fz-evl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fz-evi { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.fz-evi small { color: var(--muted); }
.fz-evi.on { border-color: var(--brand); background: var(--brand-50); box-shadow: inset 4px 0 0 var(--brand); }
@media (min-width: 700px) { .fz-net b { font-size: 2.7rem; } }
.fz-inst { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--paper); border: 2px solid var(--gold); box-shadow: var(--sh-1); }
.fz-inst img { flex: none; border-radius: 12px; }
.fz-inst-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.fz-inst-t b:first-child { font-size: 1rem; }
.fz-inst-t ol { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.fz-inst-t small { color: var(--muted); }
.fz-inst-t .btn { align-self: flex-start; }
.fz-k { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--info-bg); color: var(--info); font-size: .8rem; }
.fz-inst-x { flex: none; width: 34px; height: 34px; }
