/* ════════════════════════════════════════════════════════════════════
   La Ruta · Sistema visual v5 (2026-11-26)
   El mundo sketch de @bodasconmetodo llevado a interfaz: papel marfil
   cálido, azul Wedding Planner #6D9EBF, filete dorado, serif editorial
   (Cinzel) para titulares, Cormorant Garamond para las frases del
   Método y Quicksand — la sans redondeada de la marca — para el texto.
   El oliva de Creative Atelier no se usa en esta app: no es su color.
   ════════════════════════════════════════════════════════════════════ */
:root {
  --paper: #FAF7EF;
  --paper-2: #F3EEDF;
  --card: #FFFDF8;
  --ink: #2B2620;
  --ink-soft: #5C5546;
  --brand: #6D9EBF;
  --brand-dark: #386380;
  --brand-deep: #264A63;
  --brand-tint: #E3ECF3;
  --gold: #B08D3C;
  --gold-soft: #D9BC7A;
  --gold-tint: #F5EDD6;
  --line: #E3DCC6;
  --danger: #A4442F;
  --ok: #5F7A3A;
  --warn: #C08A1E;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(56, 44, 20, .05), 0 4px 14px rgba(56, 44, 20, .05);
  --shadow-md: 0 2px 4px rgba(56, 44, 20, .05), 0 12px 32px rgba(56, 44, 20, .09);
  --shadow-brand: 0 10px 24px rgba(56, 99, 128, .28);
  --serif: "Cinzel", "Playfair Display", "Didot", Georgia, "Times New Roman", serif;
  --quote: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(120% 340px at 50% -60px, #FFFDF6 0%, rgba(255, 253, 246, 0) 70%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
#app { max-width: 520px; margin: 0 auto; padding: 0 20px 110px; min-height: 100vh; }
.view { animation: viewIn .38s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .5s var(--ease) both; }
:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; border-radius: 6px; }
img { user-select: none; }

.brand-mark { letter-spacing: .24em; font-size: 11px; font-weight: 700; color: var(--brand-dark); text-transform: uppercase; margin: 0; }
.brand-mark.small { margin: 28px 0 4px; }
.brand-mark.center { text-align: center; }
.display { font-family: var(--serif); font-size: 62px; font-weight: 700; letter-spacing: .03em; margin: 14px 0 0; color: var(--ink); line-height: 1.05; }
.screen-title { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: .01em; margin: 0 0 6px; }
.section-title { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 30px 0 2px; }
.section-sub { color: var(--ink-soft); margin: 0 0 12px; font-size: 15px; }
.filet { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px auto 2px; }
.filet::before, .filet::after { content: ""; height: 1px; width: 64px; background: linear-gradient(90deg, transparent, var(--gold)); }
.filet::after { background: linear-gradient(90deg, var(--gold), transparent); }
.filet span { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }
.card-kicker { margin: 0 0 6px; letter-spacing: .16em; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--brand-dark); display: flex; align-items: center; gap: 8px; }
.card-kicker::before { content: ""; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; flex: none; }

/* ── Botones y campos ── */
.btn-primary {
  display: inline-block; width: 100%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #5E97BA 0%, var(--brand-dark) 100%);
  color: #FFFDF4; font-family: var(--sans); font-size: 17px; font-weight: 700;
  padding: 16px 22px; border-radius: 999px; letter-spacing: .01em;
  box-shadow: var(--shadow-brand);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.btn-primary:active { transform: scale(.98); filter: brightness(1.06); }
.btn-secondary {
  border: 1.5px solid var(--brand); color: var(--brand-dark); background: rgba(255, 253, 248, .7);
  font-family: var(--sans); font-size: 15.5px; font-weight: 700; padding: 11px 20px;
  border-radius: 999px; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn-secondary:active { transform: scale(.97); background: var(--brand-tint); }
.btn-ghost { border: none; background: none; color: var(--brand-dark); font-family: var(--sans); font-size: 15.5px; font-weight: 700; cursor: pointer; padding: 6px 4px; transition: opacity .15s; }
.btn-ghost:active { opacity: .6; }
.btn-ghost.danger { color: var(--danger); font-weight: 600; font-size: 14px; }
.field { display: block; margin: 18px 0; }
.field span { display: block; font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-size: 17px; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--card); color: var(--ink); font-family: var(--sans);
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109, 158, 191, .18); }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); margin: 14px 0; cursor: pointer; }
.check-field input { width: 21px; height: 21px; margin-top: 1px; accent-color: var(--brand-dark); flex: none; }
.chip-group { display: grid; gap: 10px; margin: 18px 0; }
.chip {
  text-align: left; font-size: 16.5px; font-weight: 600; padding: 15px 17px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-family: var(--sans);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, background .18s, transform .15s var(--ease), box-shadow .18s;
}
.chip:active { transform: scale(.985); }
.chip.selected { border-color: var(--brand); background: var(--brand-tint); font-weight: 700; box-shadow: inset 0 0 0 1px var(--brand), var(--shadow-sm); }
.chip.selected::after { content: "✓"; float: right; font-weight: 700; color: var(--brand-dark); animation: pop .3s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.25); } 100% { transform: scale(1); opacity: 1; } }

/* ── Bienvenida ── */
.welcome-hero { padding-top: 42px; text-align: center; }
.hero-art {
  margin: 22px auto 0; max-width: 400px; padding: 9px;
  background: var(--card); border: 1px solid var(--gold-soft); border-radius: 999px 999px 24px 24px;
  box-shadow: var(--shadow-md);
}
.hero-art img {
  display: block; width: 100%; aspect-ratio: 4 / 4.35; object-fit: cover; object-position: 46% 30%;
  border-radius: 999px 999px 16px 16px;
}
.promise { font-family: var(--quote); font-style: italic; font-weight: 600; font-size: 28px; line-height: 1.25; margin: 12px 0 10px; color: var(--brand-dark); }
.welcome-sub { color: var(--ink-soft); margin: 0 auto 26px; max-width: 42ch; }
.welcome-note { color: var(--ink-soft); font-size: 13.5px; margin: 16px auto 0; max-width: 46ch; }
.welcome-demo { width: 100%; margin-top: 12px; padding: 14px 22px; font-size: 16px; border-color: var(--gold); color: #7A5F22; }
.welcome-demo:active { background: var(--gold-tint); }
.welcome-pillars { margin-top: 30px; display: grid; gap: 12px; text-align: left; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 18px; display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow-sm); }
.pillar-num { font-family: var(--serif); font-size: 32px; color: var(--gold); font-weight: 700; min-width: 36px; text-align: center; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ── Onboarding ── */
.ob-header { display: flex; align-items: center; gap: 12px; padding-top: 22px; }
.ob-progress { flex: 1; height: 8px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
#ob-progress-bar { height: 100%; background: linear-gradient(90deg, var(--brand), var(--gold-soft)); width: 0%; transition: width .45s var(--ease); border-radius: 99px; }
.ob-step-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.ob-step:not([hidden]) { animation: stepIn .4s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.ob-art { display: block; width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; object-position: center 58%; border-radius: var(--radius); border: 1px solid var(--gold-soft); box-shadow: var(--shadow-md); margin-top: 22px; }
.ob-step h2 { font-family: var(--serif); font-size: 29px; font-weight: 600; margin: 26px 0 6px; line-height: 1.2; }
.ob-hint { color: var(--ink-soft); margin: 0 0 8px; }
.ob-actions { margin-top: 26px; }
.ob-error { color: var(--danger); font-weight: 700; margin-top: 16px; }

/* ── Hoy · cuenta regresiva con anillo ── */
.countdown-card {
  margin-top: 18px; border-radius: 24px; padding: 22px 20px;
  background:
    radial-gradient(130% 120% at 12% -10%, rgba(217, 188, 122, .28) 0%, rgba(217, 188, 122, 0) 55%),
    linear-gradient(140deg, #4A7595 0%, var(--brand-dark) 52%, var(--brand-deep) 100%);
  color: #F6F1E3; box-shadow: var(--shadow-brand);
  display: flex; gap: 18px; align-items: center;
}
.cd-ringbox { position: relative; width: 126px; height: 126px; flex: none; }
.cd-ring { width: 126px; height: 126px; transform: rotate(-90deg); display: block; }
.cd-ring circle { fill: none; stroke-width: 7; }
.cd-ring-bg { stroke: rgba(246, 241, 227, .18); }
.cd-ring-fg { stroke: var(--gold-soft); stroke-linecap: round; transition: stroke-dashoffset 1.1s var(--ease); }
.cd-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.countdown-label { margin: 0; letter-spacing: .2em; font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: #D8CFAF; }
.countdown-num { margin: 0; font-family: var(--serif); font-size: 43px; line-height: 1.02; font-weight: 700; color: #FFFDF4; }
.countdown-unit { margin: 0; font-size: 12.5px; font-weight: 600; color: #D8CFAF; }
.cd-side { flex: 1; min-width: 0; }
.countdown-date { margin: 0; color: #FFF6DC; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.cd-avance { margin: 12px 0 0; font-size: 15px; color: #E9E2CC; }
.cd-avance #ring-pct { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--gold-soft); }
.cd-avance-sub { margin: 1px 0 0; font-size: 13px; color: #CFC7A8; }
.traffic { margin: 12px 0 0; display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.4; color: #E9E2CC; }
.traffic-dot { width: 11px; height: 11px; border-radius: 50%; background: #9DBE7E; flex: none; margin-top: 3px; box-shadow: 0 0 0 4px rgba(157, 190, 126, .22); }
.traffic-dot.warn { background: var(--warn); box-shadow: 0 0 0 4px rgba(192, 138, 30, .22); }
.traffic-dot.late { background: #E08A67; box-shadow: 0 0 0 4px rgba(224, 138, 103, .22); }

/* ── Tarjetas ── */
.now-card, .summary-card, .route-progress-card {
  margin-top: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.now-card h3 { font-family: var(--serif); font-size: 25px; margin: 0 0 4px; font-weight: 600; line-height: 1.2; }
.now-card p { margin: 0 0 8px; color: var(--ink-soft); }
.now-deadline { font-weight: 700; color: var(--ink) !important; font-size: 15px; }
.pay-card {
  margin-top: 16px; background: var(--card); border: 1px solid var(--line);
  border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.pay-card h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 2px; font-weight: 600; }
.pay-card p { margin: 0 0 12px; color: var(--ink-soft); }
.pay-card.overdue { border-left-color: var(--danger); }
.pay-card.overdue #next-payment-detail { color: var(--danger); font-weight: 700; }

.summary-list { margin: 6px 0 12px; }
.summary-list div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.summary-list div:last-child { border-bottom: none; }
.summary-list dt { color: var(--ink-soft); font-size: 14.5px; }
.summary-list dd { margin: 0; font-weight: 700; text-align: right; font-size: 14.5px; }

/* ── Tareas con check dibujable (Hoy y Momento) ── */
.task-check {
  width: 32px; height: 32px; flex: none; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--line); background: var(--card); padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease);
}
.task-check:active { transform: scale(.9); }
.task-check svg { width: 17px; height: 17px; }
.task-check .check-path { fill: none; stroke: #FFFDF4; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.task-check.done { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border-color: var(--brand-dark); }
.task-check.done .check-path { animation: drawCheck .38s var(--ease) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.week-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 10px;
  display: flex; gap: 13px; align-items: flex-start; box-shadow: var(--shadow-sm);
}
.week-card .wc-texts { flex: 1; min-width: 0; }
.week-card .wc-why { margin: 0 0 2px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dark); font-weight: 700; }
.week-card .wc-task { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
.week-card.is-done .wc-task { color: var(--ink-soft); }

/* ── Ruta · el viaje ── */
.ruta-art { margin: 16px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold-soft); box-shadow: var(--shadow-md); }
.ruta-art img { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; object-position: center; }
.route-progress-label { margin: 0; font-size: 15.5px; font-weight: 600; }
.route-progress-bar { height: 9px; margin-top: 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
#route-progress-fill { height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--gold-soft)); transition: width .9s var(--ease); }

.route-list { list-style: none; margin: 20px 0 0; padding: 0; }
.station { display: flex; align-items: stretch; position: relative; }
.st-rail { width: 54px; flex: none; position: relative; }
.st-curve { position: absolute; left: 0; top: 35px; width: 54px; height: calc(100% - 33px); overflow: visible; }
.station:last-child .st-curve { display: none; }
.st-curve path { fill: none; stroke: #D8CFB0; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: .5 7; }
.st-curve.painted path { stroke: var(--brand); stroke-width: 3; stroke-dasharray: none; opacity: .75; }
.st-node {
  position: relative; z-index: 1; margin: 13px auto 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--line); color: var(--ink-soft);
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.st-node svg { width: 21px; height: 21px; }
.st-node svg path { fill: none; stroke: #FFFDF4; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.station.st-current .st-node { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border-color: var(--brand-dark); color: #FFFDF4; width: 50px; height: 50px; font-size: 21px; margin-top: 10px; box-shadow: var(--shadow-brand); }
.station.st-done .st-node { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); border-color: var(--gold); color: #FFFDF4; box-shadow: 0 6px 16px rgba(176, 141, 60, .35); }
.station.st-current .st-node::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(109, 158, 191, .45); animation: halo 2.4s ease-out infinite;
}
@keyframes halo { 0% { transform: scale(.82); opacity: 0; } 35% { opacity: 1; } 100% { transform: scale(1.18); opacity: 0; } }
.station.st-past .st-node { background: var(--paper-2); color: var(--brand-dark); border-color: #D8CFB0; }
.st-card {
  flex: 1; min-width: 0; text-align: left; cursor: pointer; margin: 0 0 14px 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 17px; font-family: var(--sans); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), border-color .18s, box-shadow .18s;
}
.st-card:active { transform: scale(.985); }
.station.st-current .st-card { border-color: var(--brand); box-shadow: var(--shadow-md); }
.station.st-done .st-card { border-color: var(--gold-soft); background: linear-gradient(180deg, #FFFDF8, #FCF8EC); }
.station.st-past .st-card { opacity: .78; }
.route-name { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0; display: block; line-height: 1.25; }
.route-resumen { margin: 3px 0 0; color: var(--ink-soft); font-size: 14.5px; display: block; line-height: 1.45; }
.route-meta { margin: 8px 0 0; font-size: 13.5px; font-weight: 700; color: var(--brand-dark); display: flex; align-items: center; gap: 7px; }
.route-meta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.route-tasks { margin: 5px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-soft); display: block; }
.route-badge { display: inline-block; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--brand); color: #FFFDF4; padding: 3px 9px; border-radius: 99px; margin-left: 8px; vertical-align: 3px; }
.route-badge.compact { background: var(--gold); }
.route-badge.done { background: var(--gold-tint); color: #7A5F22; border: 1px solid var(--gold-soft); }

/* ── Momento (detalle) ── */
.momento-deadline { color: var(--brand-dark); font-weight: 700; margin: 0 0 4px; }
.momento-progress { --p: 0; margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.momento-progress::after {
  content: ""; display: block; margin-top: 8px; height: 8px; border-radius: 99px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--brand), var(--gold-soft)) left / calc(var(--p) * 1%) 100% no-repeat, var(--paper-2);
}
.momento-done {
  margin-top: 16px; display: flex; gap: 14px; align-items: center;
  background: var(--brand-tint); border: 1.5px solid var(--brand); border-radius: var(--radius); padding: 15px 17px;
}
.momento-done[hidden] { display: none; }
.momento-done p { margin: 0; font-weight: 700; color: var(--brand-dark); font-size: 15.5px; line-height: 1.4; }
.done-check { width: 46px; height: 46px; flex: none; }
.done-check-circle { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-dasharray: 151; stroke-dashoffset: 151; animation: drawCheck .7s var(--ease) forwards; }
.done-check-mark { fill: none; stroke: var(--brand-dark); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck .45s .5s var(--ease) forwards; }
.momento-objetivo {
  margin: 18px 0 0; padding: 18px 20px 18px 22px; background: var(--paper-2);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--quote); font-style: italic; font-weight: 500; font-size: 19.5px; line-height: 1.5; color: var(--ink);
}
/* Fase 20 — «Ver más» de la intro del momento, dentro de la cita. */
.momento-objetivo .objetivo-mas { font-style: normal; font-size: 13px; margin-left: 8px; padding: 2px 8px; }
.task-list { list-style: none; margin: 8px 0 0; padding: 0; }
.task-row { padding: 12px 2px; border-bottom: 1px dashed var(--line); }
.task-row:last-child { border-bottom: none; }
.task-main { display: flex; gap: 13px; align-items: flex-start; }
.task-row .task-text { flex: 1; min-width: 0; font-size: 16px; line-height: 1.45; padding-top: 4px; }
.task-row.is-done .task-text { color: var(--ink-soft); }
.momento-note { margin-top: 22px; color: var(--ink-soft); font-size: 14px; background: var(--paper-2); border: 1px dashed #D8CFB0; border-radius: var(--radius-sm); padding: 13px 15px; }

/* ── Momento 5: ruta por ceremonia y trámites (Fase 7) ── */
.ruta-nota {
  margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line);
  font-weight: 700; font-size: 15px; line-height: 1.5; color: var(--brand-dark);
}
.tramites-intro { margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.tramites-count { margin: 0; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; color: #7A5F22; }
.tramites-list { list-style: none; margin: 10px 0 4px; padding: 0; }
.tramite-row { display: flex; gap: 13px; align-items: flex-start; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.tramite-row:last-child { border-bottom: none; }
.tramite-texts { flex: 1; min-width: 0; padding-top: 3px; }
.tramite-text { margin: 0; font-size: 15.5px; line-height: 1.45; }
.tramite-row.is-done .tramite-text { color: var(--ink-soft); }
.tramite-meta { margin: 4px 0 0; font-size: 13.5px; font-weight: 700; color: var(--brand-dark); }
.tramite-meta.vencido { color: var(--danger); }
.tramite-nota { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); font-style: italic; }
.tramites-card .btn-secondary { margin-top: 12px; }
.ref-box { margin-top: 26px; }
.ref-head {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--paper-2); border: 1.5px dashed #D8CFB0; border-radius: var(--radius-sm);
  padding: 13px 15px; cursor: pointer; font: inherit; color: var(--ink-soft);
}
.ref-head-text { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; line-height: 1.4; }
.ref-head-count { flex: none; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-dark); }
.ref-head .task-chev { margin-top: 0; }
.ref-head[aria-expanded="true"] .task-chev { transform: rotate(180deg); }
.ref-body { padding: 4px 2px 0; }
.ref-intro { margin: 10px 0 2px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.task-row.task-ref .task-text { color: var(--ink-soft); }

/* ── Contenido completo del momento (Fase 1 de construcción) ── */
.task-toggle {
  flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 8px;
  background: none; border: none; cursor: pointer; text-align: left;
  font: inherit; color: inherit; padding: 0;
}
.task-toggle .task-text { padding-top: 4px; }
.task-chev { flex: none; width: 22px; height: 22px; margin-top: 5px; color: var(--brand); transition: transform .3s var(--ease); }
.task-chev svg { width: 100%; height: 100%; display: block; }
.task-row.is-open .task-chev { transform: rotate(180deg); }
.task-row.is-open .task-toggle .task-text { font-weight: 700; color: var(--brand-deep); }
.task-row.is-done.is-open .task-toggle .task-text { color: var(--ink-soft); }
.task-detail { margin: 14px 0 6px 45px; animation: rise .45s var(--ease) both; }
.task-detail[hidden] { display: none; }
.td-fecha {
  display: flex; gap: 9px; align-items: baseline; flex-wrap: wrap;
  background: var(--brand-tint); border-radius: 10px; padding: 9px 13px;
  font-size: 14.5px; line-height: 1.4; margin: 0 0 6px; color: var(--brand-deep);
}
.td-fecha-tag { font-weight: 700; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-dark); flex: none; }
.td-sec { margin-top: 16px; }
.td-sec > h4 {
  margin: 0 0 7px; font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--brand-dark);
  display: flex; align-items: center; gap: 8px;
}
.td-sec > h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.td-alerta { background: #FAF0E9; border-left: 4px solid var(--danger); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 13px 15px; }
.td-alerta > h4 { color: var(--danger); }
.td-alerta > h4::after { background: #EAD3C6; }
.td-practica { background: var(--gold-tint); border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 13px 15px; }
.td-practica > h4 { color: #7A5F22; }
.td-practica > h4::after { background: #E4D5A8; }
.voz-bloque { background: var(--gold-tint); border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 13px 15px; margin-top: 14px; }
.voz-tag { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #7A5F22; }
.capsula-card { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 19px; box-shadow: var(--shadow-sm); }
.content-card { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 19px; box-shadow: var(--shadow-sm); }
.content-title { font-family: var(--serif); font-size: 18.5px; font-weight: 600; margin: 0 0 10px; color: var(--brand-deep); }
.content-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.content-head .content-title { margin: 0; }
.btn-copy {
  flex: none; border: 1.5px solid var(--brand); color: var(--brand-dark); background: var(--card);
  border-radius: 999px; padding: 6px 15px; font-family: var(--sans); font-weight: 700; font-size: 13px; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-copy:active { background: var(--brand-tint); }
.cierre-card { margin-top: 16px; background: linear-gradient(140deg, #4A7595, var(--brand-deep)); color: #F6F1E3; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-brand); }
.cierre-card .card-kicker { color: var(--gold-soft); }
.cierre-card .md, .cierre-card .md p, .cierre-card .md li { color: #F6F1E3; }

/* Markdown del contenido de fábrica */
.md { font-size: 15.5px; line-height: 1.58; color: var(--ink); }
.md p { margin: 0 0 10px; }
.md p:last-child, .md ul:last-child, .md ol:last-child, .md blockquote:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 23px; }
.md li { margin-bottom: 5px; }
.md li > ul, .md li > ol { margin: 5px 0 2px; }
.md strong { font-weight: 700; }
.md-cita { margin: 0 0 10px; padding: 11px 15px; background: var(--paper-2); border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; font-style: italic; }
.md-cita p { margin: 0 0 6px; }
.md-cita p:last-child { margin-bottom: 0; }
.md-hr { border: none; border-top: 1px solid var(--line); margin: 14px 0; }
.md-tabla { overflow-x: auto; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; }
.md-tabla table { border-collapse: collapse; width: 100%; font-size: 13.5px; line-height: 1.45; }
.md-tabla th, .md-tabla td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.md-tabla thead th { background: var(--brand-tint); color: var(--brand-deep); font-weight: 700; border-bottom: 2px solid var(--brand); }
.md-tabla tbody tr:last-child td { border-bottom: none; }

/* Fase 20 — los cuatro caminos como tarjetas apiladas: en el
   celular las columnas de la tabla se cortaban; aquí cada camino
   es una tarjeta con mini-etiquetas y se lee completo a 390 px. */
.md-caminos { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; }
.camino-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--paper-2); }
.camino-nombre { margin: 0 0 8px; font-weight: 700; color: var(--brand-deep); font-size: 15px; }
.camino-linea { margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.camino-linea:last-child { margin-bottom: 0; }
.camino-tag { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 2px; }
.camino-ojo { color: var(--ink-soft); }
.camino-ojo .camino-tag { color: #7A5F22; }

/* ── Barra de navegación ── */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: rgba(250, 247, 239, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); display: flex; justify-content: center; gap: 2px;
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(56, 44, 20, .05);
}
#tabbar[hidden] { display: none; }
.tab {
  flex: 1; max-width: 130px; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 700; color: var(--ink-soft);
  padding: 2px 4px 3px; border-radius: 14px;
  transition: color .2s;
}
.tab-ico { width: 24px; height: 24px; padding: 5px 13px; border-radius: 999px; transition: background .25s var(--ease), color .2s; box-sizing: content-box; }
.tab.active { color: var(--brand-dark); }
.tab.active .tab-ico { background: var(--brand-tint); color: var(--brand-dark); }

/* ── Ejemplo (demo) ── */
.demo-banner {
  margin-top: 18px; border-radius: var(--radius); padding: 17px 19px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-deep)); color: #F2F7FA;
  border-bottom: 3px solid var(--gold); box-shadow: var(--shadow-brand);
}
.demo-banner p { margin: 0 0 12px; font-size: 15px; }

/* Fase 17 · Aviso sin conexión: la misma voz visual del banner
   de ejemplo, en clave serena — papel azul con filete dorado.
   En modo «sync» (hay red, solo queda cola) se atenúa. */
.offline-banner {
  margin-top: 14px; border-radius: var(--radius); padding: 13px 17px;
  background: var(--brand-tint, #E3ECF3); color: var(--brand-deep);
  border: 1px solid var(--brand); border-bottom: 3px solid var(--gold);
}
.offline-banner p { margin: 0; font-size: 14px; line-height: 1.5; }
.offline-banner.sync { border-bottom-color: var(--brand); opacity: .85; }
.btn-secondary.light { border-color: #F2F7FA; color: #F2F7FA; background: transparent; }
.btn-secondary.light:active { background: rgba(242, 247, 250, .15); }

/* ── Inversión ── */
.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 16px; }
.money-cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 17px; box-shadow: var(--shadow-sm); }
.money-cell.hero {
  background: linear-gradient(140deg, #4A7595, var(--brand-deep)); border-color: var(--brand-deep); color: #F6F1E3;
  box-shadow: var(--shadow-brand);
}
.money-cell.hero .money-label { color: var(--gold-soft); }
.money-cell.hero .money-value { color: #FFFDF4; }
.money-cell.hero .money-note { color: #CFC7A8; }
.money-cell.gold .money-value { color: #7A5F22; }
.money-label { margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--brand-dark); }
.money-value { margin: 4px 0 0; font-family: var(--serif); font-size: 25px; font-weight: 700; line-height: 1.1; }
.money-note { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.money-bar-wrap { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.money-bar { height: 12px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
#money-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--gold-soft)); width: 0%; border-radius: 99px; transition: width .8s var(--ease); }
#money-bar-fill.over { background: linear-gradient(90deg, #C05B3C, var(--danger)); }
.money-bar-label { margin: 9px 0 0; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }

.partida-card, .hogar-card, .padrino-card, .prov-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 17px; margin-bottom: 11px; box-shadow: var(--shadow-sm);
}
.partida-head, .hogar-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.partida-head h4, .hogar-head h4 { font-family: var(--serif); font-size: 19px; margin: 0; font-weight: 600; line-height: 1.25; }
.hogar-meta { margin: 3px 0 0; color: var(--ink-soft); font-size: 14px; }
.partida-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 0; }
.partida-nums dt { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.partida-nums dd { margin: 2px 0 0; font-weight: 700; font-size: 14.5px; }
.partida-meter { height: 7px; margin-top: 13px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.partida-meter-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); border-radius: 99px; transition: width .7s var(--ease); }
.partida-meter-label { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.partida-form, .hogar-form { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 4px; }

.pago-row {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 9px; box-shadow: var(--shadow-sm);
}
.pago-row.paid { opacity: .72; }
.pago-row.upcoming.overdue { border-left: 5px solid var(--danger); }
.pago-check {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex; align-items: center; justify-content: center;
}
.pago-check svg { width: 14px; height: 14px; }
.pago-check svg path { fill: none; stroke: #FFFDF4; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pago-main { flex: 1; min-width: 0; }
.pago-concepto { margin: 0; font-weight: 700; font-size: 15.5px; }
.pago-meta { margin: 1px 0 0; color: var(--ink-soft); font-size: 13.5px; }
.pago-monto { margin: 0; font-weight: 700; font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.pago-actions { display: flex; flex-direction: column; align-items: flex-end; }
.empty-note { color: var(--ink-soft); background: var(--paper-2); border: 1px dashed #D8CFB0; border-radius: var(--radius-sm); padding: 13px 15px; font-size: 14.5px; }

.mini-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 20px; box-shadow: var(--shadow-sm); }
.mini-form .field { margin: 14px 0; }

/* ── Invitados ── */
.guest-counters { display: flex; flex-direction: column; gap: 11px; margin-top: 16px; }
.gc-hero {
  border-radius: var(--radius); padding: 18px 20px; text-align: center;
  background: linear-gradient(140deg, #4A7595, var(--brand-deep)); color: #F6F1E3; box-shadow: var(--shadow-brand);
}
.gc-hero .counter-num { color: #FFFDF4; font-size: 46px; }
.gc-hero .counter-label { color: var(--gold-soft); letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; }
.gc-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.gc-meter { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; box-shadow: var(--shadow-sm); }
.gc-meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.gc-meter-num { font-family: var(--serif); font-size: 27px; font-weight: 700; line-height: 1; }
.gc-meter-pct { font-size: 12.5px; font-weight: 700; color: var(--brand-dark); background: var(--brand-tint); padding: 2px 8px; border-radius: 99px; }
.gc-meter-label { margin: 5px 0 0; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.gc-meter-bar { height: 8px; margin-top: 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.gc-meter-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--gold-soft)); border-radius: 99px; transition: width .7s var(--ease); }
.gc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.counter-cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 10px; text-align: center; box-shadow: var(--shadow-sm); }
.counter-num { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.1; }
.counter-label { margin: 3px 0 0; font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.hogar-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.toggle-pill {
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-soft);
  font-size: 13.5px; font-weight: 700; padding: 8px 13px; border-radius: 999px; cursor: pointer; font-family: var(--sans);
  transition: background .22s var(--ease), border-color .22s, color .22s, transform .15s var(--ease);
}
.toggle-pill:active { transform: scale(.94); }
.toggle-pill.on { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-dark); animation: pillPop .32s var(--ease); }
.toggle-pill.on::before { content: "✓ "; font-weight: 700; }
@keyframes pillPop { 0% { transform: scale(.88); } 55% { transform: scale(1.07); } 100% { transform: scale(1); } }
.hogar-form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }

/* ── Mesas · el plano del salón (Fase 2) ── */
/* Encabezado de Mesas más bajo (visibilidad): el título largo
   cabe en una línea y el kicker respira menos, para que el
   lienzo asome en la primera pantalla incluso con el aviso del
   ejemplo encima. */
#view-mesas .brand-mark.small { margin-top: 18px; }
#view-mesas .screen-title { font-size: 29px; }

.plano-stats { margin-top: 14px; }
/* Resumen compacto (arreglo de visibilidad 2026-11-27): sustituye
   al héroe de tres cifras + tarjeta de barra, que empujaban el
   lienzo fuera de la primera pantalla. */
.plano-resumen { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px 14px; box-shadow: var(--shadow-sm); }
.plano-resumen-linea { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.35; }
.plano-resumen-linea strong { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--brand-deep); }
.plano-meter-row { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.plano-meter-row .gc-meter-bar { flex: 1; }
.plano-pct { flex: none; font-size: 13px; font-weight: 700; color: var(--brand-dark); }
.btn-ir-plano {
  flex: none; border: 1.5px solid var(--brand); background: var(--brand-tint); color: var(--brand-dark);
  font-family: var(--sans); font-size: 13px; font-weight: 700; border-radius: 99px; padding: 7px 13px; cursor: pointer;
  transition: transform .15s var(--ease);
}
.btn-ir-plano:active { transform: scale(.95); }
.plano-bar-label { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }

.plano-add-title { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 18px 0 9px; }
.plano-add { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.add-mesa-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 9px 4px 8px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font-family: var(--sans); font-size: 12px; font-weight: 700; box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease), border-color .18s, background .18s;
}
.add-mesa-btn:active { transform: scale(.95); border-color: var(--brand); background: var(--brand-tint); }
.add-glyph { display: block; border: 2px solid var(--brand-dark); background: var(--brand-tint); }
.add-glyph.redonda { width: 20px; height: 20px; border-radius: 50%; }
.add-glyph.cuadrada { width: 19px; height: 19px; border-radius: 5px; }
.add-glyph.rectangular { width: 27px; height: 16px; border-radius: 4px; }
.add-glyph.imperial { width: 31px; height: 15px; border-radius: 4px; }

.plano-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.plano-hint { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.plano-zoom { display: flex; gap: 7px; flex: none; }
.zoom-btn {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--brand); background: var(--card); color: var(--brand-dark);
  font-size: 21px; font-weight: 700; font-family: var(--sans); line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s var(--ease), background .18s;
}
.zoom-btn:active { transform: scale(.92); background: var(--brand-tint); }

.plano-viewport {
  margin-top: 10px; height: min(58vh, 560px); overflow: auto; scroll-margin-top: 10px;
  border: 1.5px solid var(--gold-soft); border-radius: var(--radius);
  background:
    linear-gradient(rgba(56, 99, 128, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 99, 128, .055) 1px, transparent 1px),
    var(--paper-2);
  background-size: 36px 36px, 36px 36px, auto;
  box-shadow: var(--shadow-md);
  -webkit-overflow-scrolling: touch;
}
.plano-canvas {
  position: relative; margin: 0 auto; box-sizing: border-box;
  /* Fase 23: el lienzo ES el salón — paredes y rejilla de metros
     (el tamaño de la rejilla lo fija la vista según la escala:
     cada cuadro es 1 × 1 m real). */
  border: 2.5px solid var(--brand-dark); border-radius: 8px;
  background-color: #FFFEFA;
  background-image:
    linear-gradient(rgba(56, 99, 128, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 99, 128, .09) 1px, transparent 1px);
  box-shadow: inset 0 0 0 5px rgba(217, 188, 122, .18);
}
.salon-tag {
  position: absolute; top: 8px; left: 10px; z-index: 2; pointer-events: none;
  font-size: 11.5px; font-weight: 800; letter-spacing: .03em; color: var(--brand-deep);
  background: rgba(255, 253, 248, .88); border: 1px solid var(--gold-soft);
  padding: 3px 10px; border-radius: 99px;
}
.plano-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; margin: 0; padding: 24px; color: var(--ink-soft); font-size: 15px; line-height: 1.55;
}
.plano-alert {
  margin: 12px 0 0; background: #FAF0E9; border-left: 4px solid var(--danger);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 11px 14px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}

.mesa {
  position: absolute; transform: translate(-50%, -50%);
  background: linear-gradient(160deg, #FFFDF8, #F7F1E1);
  border: 2.5px solid var(--brand-dark);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: border-color .18s, box-shadow .18s;
}
.mesa.forma-redonda { border-radius: 50%; }
.mesa.forma-cuadrada { border-radius: 14%; }
.mesa.forma-rectangular, .mesa.forma-imperial { border-radius: 12px; }
.mesa.sel { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 188, 122, .55), var(--shadow-md); z-index: 3; }
.mesa.dragging { cursor: grabbing; box-shadow: var(--shadow-md); z-index: 5; opacity: .96; }
.mesa.over { border-color: var(--danger); }
.mesa.over .mesa-cuenta { color: var(--danger); }
.asiento {
  position: absolute; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--card);
  border: 1.5px solid var(--brand-dark); pointer-events: none;
}
.asiento.ocupado { background: var(--gold); border-color: #8A6D2F; }
.mesa-label { text-align: center; pointer-events: none; padding: 0 6px; max-width: 100%; }
.mesa-nombre { display: block; font-weight: 700; line-height: 1.15; color: var(--brand-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mesa-cuenta { display: block; font-weight: 700; color: var(--ink-soft); line-height: 1.2; }

/* El panel de asignación se trae a la vista solo al seleccionar
   una mesa (mostrarPanelMesa): el margen deja aire sobre él. */
#mesa-panel { scroll-margin-top: 12px; }
.mesa-editor {
  margin-top: 18px; background: var(--card); border: 1.5px solid var(--gold-soft);
  border-radius: var(--radius); padding: 16px 17px 18px; box-shadow: var(--shadow-sm);
}
.mesa-editor h4 { font-family: var(--serif); font-size: 20px; margin: 0; font-weight: 600; }
.mesa-form .field { margin: 13px 0; }
.mesa-form-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.mesa-form-grid .field { margin: 0 0 13px; }

.seat-list { display: flex; flex-direction: column; gap: 9px; }
.seat-row {
  display: flex; align-items: center; gap: 11px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; box-shadow: var(--shadow-sm);
}
.seat-main { flex: 1; min-width: 0; }
.seat-nombre { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.3; }
.seat-meta { margin: 1px 0 0; color: var(--ink-soft); font-size: 13px; }
.seat-badge {
  flex: none; font-size: 12.5px; font-weight: 700; color: var(--brand-dark);
  background: var(--brand-tint); padding: 4px 11px; border-radius: 99px; white-space: nowrap;
}
.seat-badge.bad { background: #FAF0E9; color: var(--danger); }
.seat-controls { display: flex; align-items: center; gap: 6px; flex: none; }
.seat-btn {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; flex: none;
  border: 1.5px solid var(--brand); background: var(--card); color: var(--brand-dark);
  font-family: var(--sans); font-size: 16px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform .13s var(--ease), background .18s;
}
.seat-btn:active { transform: scale(.9); background: var(--brand-tint); }
.seat-btn.wide { width: auto; border-radius: 999px; padding: 0 12px; font-size: 13px; }
.seat-count { font-weight: 700; font-size: 15.5px; min-width: 20px; text-align: center; }
.seat-go { padding: 8px 17px; font-size: 14px; flex: none; }
.seat-go:disabled { opacity: .45; cursor: default; }

/* ── Fase 13 · Montaje, medidas y mesas unidas ── */
.plano-montaje {
  margin-top: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 16px 14px; box-shadow: var(--shadow-sm);
}
.plano-montaje-label { font-family: var(--serif); font-size: 16.5px; font-weight: 600; color: var(--brand-deep); }
.plano-montaje-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.plano-montaje-btns button {
  font-family: var(--sans); font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 9px 10px; border-radius: 999px; border: 1.5px solid var(--brand);
  background: var(--card); color: var(--brand-dark);
  transition: transform .13s var(--ease), background .18s, color .18s;
}
.plano-montaje-btns button:active { transform: scale(.96); }
.plano-montaje-btns button.active { background: var(--brand-dark); border-color: var(--brand-dark); color: #FFFDF8; }
.plano-montaje-nota { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }

.mesa.en-grupo { border-style: dashed; }
.plano-grupo {
  position: absolute; z-index: 4; pointer-events: none;
  border: 2.5px dashed var(--gold); border-radius: 18px;
  background: rgba(217, 188, 122, .07);
}
.grupo-pill {
  position: absolute; left: 50%; top: -11px; transform: translateX(-50%);
  background: var(--gold); color: #4A3A10; font-size: 11px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  padding: 3px 10px; border-radius: 99px; box-shadow: var(--shadow-sm);
}
.mesa-medida-otra { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mesa-medida-otra .field { margin: 0 0 13px; }
.mesa-medida-otra[hidden] { display: none; }
.lugares-stepper { margin-top: 7px; }
.lugares-stepper .seat-count { font-size: 19px; min-width: 34px; }
.cap-nota { margin: 9px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.cap-nota.aviso { animation: cap-aviso 1.6s var(--ease); }
@keyframes cap-aviso {
  0%, 60% { color: var(--brand-deep); font-weight: 700; }
  100% { color: var(--ink-soft); font-weight: 400; }
}
.grupo-editor { margin-top: 18px; }
.union-row { margin-bottom: 9px; }
.union-msg { margin: 8px 0 0; font-size: 13.5px; font-weight: 700; color: var(--danger); }

/* ── Fase 23 · Salón escalable, elementos y aviso de cabida ── */
.plano-salon {
  margin-top: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 16px 14px; box-shadow: var(--shadow-sm);
}
.plano-salon:empty { display: none; }
.salon-dims { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; }
.salon-dim { display: flex; align-items: center; gap: 9px; }
.salon-dim-label { font-weight: 700; font-size: 14.5px; color: var(--brand-deep); min-width: 44px; }
.salon-dim-unit { font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.salon-num {
  width: 66px; text-align: center; font-family: var(--sans); font-size: 16px; font-weight: 700;
  color: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 2px;
  background: var(--paper-2);
}
.salon-num:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

.plano-add-el { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.plano-add-el .add-mesa-btn { justify-content: center; text-align: center; }

.zoom-btn.fit { width: auto; border-radius: 999px; padding: 0 13px; font-size: 12.5px; }

.elemento {
  position: absolute; transform: translate(-50%, -50%); z-index: 1;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 10px; cursor: grab; touch-action: none;
  user-select: none; -webkit-user-select: none;
  transition: box-shadow .18s;
}
.elemento.tipo-pista {
  border: 2px dashed var(--gold);
  background:
    repeating-conic-gradient(rgba(176, 141, 60, .14) 0% 25%, rgba(176, 141, 60, .04) 0% 50%) 0 0 / 26px 26px,
    #FBF6E9;
}
.elemento.tipo-novios {
  background: linear-gradient(160deg, #386380, #264A63);
  border: 2px solid var(--gold); color: #FFF7E6;
  box-shadow: var(--shadow-sm);
}
.elemento.tipo-estacion { background: var(--brand-tint); border: 2px solid var(--brand); }
.elemento.sel { box-shadow: 0 0 0 3px rgba(217, 188, 122, .55), var(--shadow-md); z-index: 3; }
.elemento.dragging { cursor: grabbing; box-shadow: var(--shadow-md); z-index: 5; opacity: .96; }
.elemento-label { pointer-events: none; padding: 0 6px; max-width: 100%; }
.elemento-nombre { display: block; font-weight: 800; line-height: 1.15; color: var(--brand-deep); }
.elemento.tipo-novios .elemento-nombre { color: #FFF7E6; }
.elemento-medida { display: block; font-weight: 700; line-height: 1.2; opacity: .72; color: var(--brand-deep); }
.elemento.tipo-novios .elemento-medida { color: #FFF7E6; }

.plano-alert.cabida { background: #FBF3DF; border-left-color: var(--gold); }

.etiqueta-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 12px; }

/* ── Padrinos y testigos (Fase 3) ── */
.inv-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 6px; }
.inv-tabs .chip { text-align: center; }
.partida-nums.tres { grid-template-columns: repeat(3, 1fr); }
.partida-meter-fill.gold { background: linear-gradient(90deg, var(--gold-soft), var(--gold)); }
.padrino-resumen, .prov-resumen {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 17px 15px; margin-top: 16px; box-shadow: var(--shadow-sm);
}
.padrino-card.completo { border-color: var(--gold-soft); }
.padrino-partida { margin: 8px 0 0; font-weight: 600; font-size: 15px; color: var(--brand-deep); }
.padrino-sinmonto { margin: 10px 0 0; color: var(--ink-soft); font-size: 14.5px; font-style: italic; font-family: var(--quote); font-size: 16.5px; }
.padrino-done {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  background: var(--gold-tint); border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm); padding: 11px 14px;
}
.padrino-done p { margin: 0; font-family: var(--quote); font-style: italic; font-weight: 600; font-size: 16.5px; color: #7A5F22; line-height: 1.35; }
.padrino-done-seal {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  display: flex; align-items: center; justify-content: center;
  animation: pop .45s var(--ease);
}
.padrino-done-seal svg { width: 18px; height: 18px; }
.padrino-done-seal svg path { fill: none; stroke: #FFFDF4; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* Fase 21 · el apoyo en especie: su renglón en el resumen, la
   pastilla de estado en su tarjeta y su caja de entrega. */
.padrinos-especie-linea { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 600; color: var(--brand-deep); }
.padrino-resumen > .padrinos-especie-linea:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.padrino-estado { display: inline-block; margin: 10px 0 0; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; background: var(--brand-tint); color: var(--brand-dark); }
.padrino-estado.ok { background: var(--gold-tint); color: #7A5F22; }
.padrino-valor { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.padrino-valor span { font-size: 12.5px; }
.especie-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.especie-form .field { flex: 1 1 150px; margin: 0; }
.abonos-box { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.abonos-title { margin: 0 0 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--brand-dark); }
.abonos-empty { margin: 0 0 4px; color: var(--ink-soft); font-size: 14px; }
.abono-row {
  display: flex; align-items: center; gap: 10px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 12px; margin-bottom: 7px;
}
.abono-fecha { margin: 0; flex: 1; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.abono-monto { margin: 0; font-weight: 700; font-family: var(--serif); font-size: 16.5px; white-space: nowrap; }
.abono-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 4px; }
.abono-form .field { margin: 8px 0; }
.abono-form .btn-secondary { grid-column: 1 / -1; }
.apoyo-card {
  margin-top: 16px; background: var(--card); border: 1px solid var(--gold-soft);
  border-radius: var(--radius); padding: 16px 18px 18px; box-shadow: var(--shadow-sm);
}
.apoyo-card .partida-nums { margin-top: 4px; }
.apoyo-note { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.apoyo-card .btn-secondary { margin-top: 12px; }
/* ── Fase 6: calculadora + ahorro ── */
.calc-card .mini-form { margin-top: 12px; }
.calc-total { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.calc-total-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dark); }
.calc-total-rango { margin: 4px 0 0; font-family: "Cinzel", serif; font-size: 24px; font-weight: 700; color: var(--brand-deep); }
.calc-total-punto { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.calc-total-punto strong { color: var(--gold); }
/* Fase 20 — la cifra protagonista de la calculadora es el punto
   según el nivel; el rango completo queda como contexto. */
.calc-punto-frase { margin: 8px 0 0; font-size: 15px; color: var(--ink); }
.calc-rango-contexto { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.calc-previa-nota { margin-top: 12px; }
.calc-desglose { margin-top: 12px; }
.calc-linea { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.calc-linea:last-child { border-bottom: none; }
.calc-nombre { font-weight: 700; color: var(--ink); }
.calc-rango { color: var(--ink-soft); }
.calc-punto { margin-left: auto; font-weight: 700; color: var(--brand-dark); text-align: right; }
.calc-fuente { font-weight: 400; font-size: 12.5px; color: var(--ink-soft); }
.calc-sin { margin-left: auto; color: var(--ink-soft); font-style: italic; font-size: 13px; }
.calc-notas { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; }
.calc-notas li { margin-top: 4px; }
.etiqueta-ref { margin: 12px 0 0; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.calc-acciones { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.calc-sub { margin: 18px 0 8px; font-family: "Cinzel", serif; font-size: 15px; font-weight: 700; color: var(--brand-deep); }
#ahorro-movs .pago-row { margin-top: 8px; }
.partida-apoyo {
  margin: 11px 0 0; font-size: 13.5px; font-weight: 600; color: #7A5F22;
  background: var(--gold-tint); border-radius: 10px; padding: 8px 11px; line-height: 1.45;
}
.partida-apoyo span { display: block; font-weight: 600; color: var(--ink-soft); font-size: 12.5px; }

/* ── Proveedores (Fase 4) ── */
.prov-estado { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.prov-pill {
  display: inline-block; padding: 3px 11px; border-radius: 99px;
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
.prov-pill.est-por-contactar { background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line); }
.prov-pill.est-cotizando { background: var(--brand-tint); color: var(--brand-dark); }
.prov-pill.est-apartado { background: var(--gold-tint); color: #7A5F22; border: 1px solid var(--gold-soft); }
.prov-pill.est-contratado { background: var(--brand-dark); color: #FFFDF4; }
.prov-pill.est-liquidado { background: var(--brand-deep); color: var(--gold-soft); }
.prov-fecha { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.prov-monto { margin: 11px 0 0; font-size: 15px; color: var(--ink-soft); }
.prov-monto strong { color: var(--ink); font-family: var(--serif); font-size: 17px; }
.prov-vinculo {
  margin-top: 12px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 13px 12px;
}
.prov-vinculo-head { margin: 0; font-weight: 700; font-size: 14.5px; color: var(--brand-deep); }
.prov-vinculo .partida-nums { margin-top: 8px; }
.prov-vinculo-note { margin: 9px 0 0; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.45; }
.prov-sinvinculo { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.prov-notas {
  margin: 11px 0 0; font-family: var(--quote); font-style: italic;
  font-size: 16.5px; color: var(--ink-soft); line-height: 1.4;
}
.prov-buscar { margin: 4px 0 10px; }
.prov-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.prov-filtros .chip { padding: 8px 13px; font-size: 13.5px; border-radius: 99px; }
.prov-filtros .chip.selected::after { content: none; }

/* ── Documentos · la bóveda (Fase 5) ── */
.inv-tabs.tres { grid-template-columns: 1fr 1fr 1fr; }
.inv-tabs.tres .chip { font-size: 13.5px; padding-left: 6px; padding-right: 6px; }
.prov-docs { margin-top: 13px; border-top: 1px dashed var(--line); padding-top: 11px; }
.doc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 15px; margin-bottom: 11px; box-shadow: var(--shadow-sm);
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px;
}
.doc-badge {
  flex: none; width: 47px; height: 47px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 12.5px; letter-spacing: .03em;
}
.doc-badge.b-contrato { background: var(--brand-deep); color: var(--gold-soft); }
.doc-badge.b-cotizacion { background: var(--brand-tint); color: var(--brand-dark); }
.doc-badge.b-comprobante { background: var(--gold-tint); color: #7A5F22; border: 1px solid var(--gold-soft); }
.doc-badge.b-nota { background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line); }
.doc-badge.b-otro { background: var(--paper); color: var(--ink-soft); border: 1px dashed var(--line); }
.doc-info { flex: 1 1 170px; min-width: 0; }
.doc-info h4 {
  font-family: var(--serif); font-size: 17.5px; margin: 1px 0 0; font-weight: 600;
  line-height: 1.25; overflow-wrap: anywhere;
}
.doc-ejemplo { margin: 6px 0 0; font-size: 12.5px; font-weight: 700; color: #7A5F22; }
.doc-actions { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.doc-actions .btn-ghost { text-align: center; text-decoration: none; }
.doc-actions .btn-ghost[disabled] { opacity: .45; cursor: default; }
.doc-thumb {
  flex-basis: 100%; width: 100%; max-height: 190px; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.doc-provfiltro {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--brand-tint); border: 1px solid var(--brand);
  border-radius: var(--radius-sm); padding: 9px 13px; margin: 0 0 12px;
  font-size: 14px; font-weight: 700; color: var(--brand-dark);
}

/* ── Cuentas ── */
.account-welcome { margin-top: 26px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.account-line { margin: 0 0 10px; color: var(--ink-soft); font-size: 15px; }
.account-line strong { color: var(--ink); }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.account-note { color: var(--ink-soft); font-size: 13.5px; margin: 10px 0 0; }
.invite-code {
  font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: .18em;
  color: var(--brand-dark); background: var(--brand-tint); border: 1.5px dashed var(--gold);
  border-radius: var(--radius-sm); text-align: center; padding: 12px 6px; margin: 4px 0 16px;
}
.sync-notice {
  background: var(--brand-tint); border: 1px solid var(--brand); color: var(--brand-dark);
  border-radius: var(--radius-sm); padding: 13px 15px; font-size: 14.5px; font-weight: 600; margin: 18px 0 0;
}
/* Fase 11: mensaje de éxito en formularios de cuenta y el aviso
   amable de verificación de correo (no bloquea: solo recuerda). */
.form-ok { color: #3E6B34; font-weight: 700; font-size: 14.5px; margin: 10px 0 0; }
.verif-notice .btn-secondary { margin-top: 10px; }
.verif-msg { font-size: 14px; font-weight: 600; margin: 10px 0 0; color: var(--brand-dark); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 6px; }
.auth-tabs .chip { text-align: center; }

/* ════════ FASE 8 · RSVP POR WHATSAPP ════════ */
.hogar-rsvp { margin-top: 12px; }
.wa-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.wa-btn::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint);
}
.wa-btn[disabled] { opacity: .55; }
.rsvp-note { font-size: 13.5px; color: var(--ink-soft); margin: 8px 0 0; }
#rsvp-resumen .gc-row { margin-top: 11px; }
.rsvp-card, .rsvp-resp-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin: 14px 0;
  box-shadow: var(--shadow-sm);
}
.rsvp-card h4 { font-family: var(--serif); font-size: 19px; margin: 0 0 6px; }
.rsvp-card p { margin: 0 0 8px; }
.rsvp-link-demo {
  font-weight: 700; color: var(--brand-deep); background: var(--brand-tint);
  border-radius: 12px; padding: 10px 12px; word-break: break-all;
}
.rsvp-link-row { display: flex; gap: 8px; margin: 10px 0 4px; }
.rsvp-link-row input {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 13.5px;
  color: var(--brand-deep); background: var(--brand-tint);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.rsvp-card .mini-form { margin-top: 14px; }
.rsvp-card .mini-form .btn-secondary { margin-top: 10px; }
#rsvp-texto-form textarea {
  width: 100%; font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px;
}
.rsvp-resp-card.apagada { opacity: .62; }
.rsvp-estado {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; border-radius: 99px; padding: 5px 10px;
  background: var(--gold-tint); color: #7A5F22; white-space: nowrap;
}
.rsvp-estado.aplicada { background: var(--brand-tint); color: var(--brand-deep); }
.rsvp-estado.descartada { background: var(--line); color: var(--ink-soft); }
.rsvp-mensaje {
  font-family: var(--quote); font-style: italic; font-size: 18px;
  color: var(--brand-deep); margin: 10px 0 0;
}

/* ── Fase 9 · Itinerario del gran día y Modo Día B ── */
.itin-head-card {
  margin-top: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 6px 20px 18px; box-shadow: var(--shadow-sm);
}
.itin-nota-coord {
  margin: 12px 0 4px; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--gold-tint); border: 1px solid var(--gold-soft);
  font-size: 14.5px; line-height: 1.55; color: #6B5518;
}
.itin-aviso {
  margin: 12px 0 0; padding: 13px 15px; border-radius: var(--radius-sm);
  font-size: 14.5px; line-height: 1.55; border: 1px solid var(--line); background: var(--card);
}
.itin-aviso.error { border-left: 5px solid var(--danger); }
.itin-aviso.aviso { border-left: 5px solid var(--warn); }
.itin-aviso.consejo { border-left: 5px solid var(--gold); font-family: var(--quote); font-style: italic; font-size: 16.5px; color: var(--brand-deep); }
.itin-resumen { margin: 16px 0 0; font-weight: 700; font-size: 16px; color: var(--brand-deep); }
.itin-timeline { margin-top: 6px; }
.itin-tl-row {
  display: flex; align-items: baseline; gap: 12px; padding: 9px 2px;
  border-bottom: 1px dashed var(--line); font-size: 14.5px;
}
.itin-tl-horas { font-weight: 700; color: var(--brand-dark); white-space: nowrap; min-width: 118px; }
.itin-tl-titulo { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: break-word; }
.itin-tl-resp { flex: 0 1 34%; max-width: 34%; min-width: 0; overflow-wrap: break-word; color: var(--ink-soft); text-align: right; font-size: 13.5px; }
.itin-vacio {
  margin-top: 14px; padding: 18px 20px; border: 1.5px dashed var(--gold-soft);
  border-radius: var(--radius); background: var(--gold-tint);
}
.itin-vacio p { margin: 0 0 14px; line-height: 1.55; }

.bloque-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 17px; margin: 12px 0; box-shadow: var(--shadow-sm);
}
.bloque-head { display: flex; gap: 10px; align-items: flex-start; }
.bloque-head-txt { flex: 1; min-width: 0; }
.bloque-titulo { margin: 0; font-family: var(--serif); font-size: 18.5px; font-weight: 600; line-height: 1.25; }
.bloque-meta { margin: 3px 0 0; font-size: 13px; color: var(--brand-dark); font-weight: 700; }
.bloque-acciones { display: flex; gap: 5px; flex: none; }
.mini-btn {
  border: 1.5px solid var(--line); background: var(--card); color: var(--brand-dark);
  font-family: var(--sans); font-size: 13.5px; font-weight: 700; cursor: pointer;
  border-radius: 10px; padding: 6px 9px; line-height: 1;
}
.mini-btn:active { transform: scale(.94); background: var(--brand-tint); }
.mini-btn:disabled { opacity: .35; cursor: default; }
.mini-btn.danger { color: var(--danger); }
.bloque-resp { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.bloque-nota { margin: 6px 0 0; font-family: var(--quote); font-style: italic; font-size: 16px; color: var(--brand-deep); line-height: 1.45; }
.bloque-subs { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); }
.bloque-subs li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14.5px; }
.bloque-sub-resp { color: var(--ink-soft); font-size: 13.5px; text-align: right; }
.bloque-form { margin-top: 14px; }
.sub-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.sub-row .sub-titulo { flex: 1; min-width: 0; font-size: 15.5px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-family: var(--sans); }
.sub-row .sub-duracion { width: 76px; flex: none; font-size: 15.5px; padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-family: var(--sans); }

/* Modo Día B: la transformación de Hoy */
.diab-wrap { margin-top: 18px; }
.diab-head {
  border-radius: 24px; padding: 22px 20px; color: #F6F1E3; box-shadow: var(--shadow-brand);
  background:
    radial-gradient(130% 120% at 12% -10%, rgba(217, 188, 122, .28) 0%, rgba(217, 188, 122, 0) 55%),
    linear-gradient(140deg, #4A7595 0%, var(--brand-dark) 52%, var(--brand-deep) 100%);
}
.diab-head .card-kicker { color: #D8CFAF; }
.diab-head .card-kicker::before { background: var(--gold-soft); }
.diab-clock { display: flex; align-items: baseline; gap: 12px; margin: 2px 0 8px; }
.diab-clock-num { font-family: var(--serif); font-size: 52px; font-weight: 700; line-height: 1; color: #FFFDF4; }
.diab-clock-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #D8CFAF; }
.diab-frase { font-family: var(--quote); font-style: italic; font-size: 19.5px; line-height: 1.45; margin: 0 0 10px; color: #FFF6DC; }
.diab-mando { margin: 0; font-size: 14.5px; color: #E9E2CC; line-height: 1.5; }
.diab-vacio {
  margin-top: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.diab-vacio p { margin: 0 0 14px; color: var(--ink-soft); }
.diab-desfase {
  margin: 14px 0 0; padding: 13px 15px; border-radius: var(--radius-sm);
  font-size: 14.5px; line-height: 1.55; background: var(--card); border: 1px solid var(--line);
}
.diab-desfase.tarde { border-left: 5px solid var(--warn); }
.diab-desfase.adelanto { border-left: 5px solid var(--ok); }
.diab-ahora {
  margin-top: 14px; background: var(--card); border: 1.5px solid var(--gold-soft);
  border-radius: var(--radius); padding: 19px 20px; box-shadow: var(--shadow-md);
}
.diab-ahora h3 { font-family: var(--serif); font-size: 27px; margin: 0 0 6px; font-weight: 600; line-height: 1.2; }
.diab-ahora p { margin: 0 0 8px; color: var(--ink-soft); line-height: 1.5; }
.diab-ahora .diab-nota { font-family: var(--quote); font-style: italic; font-size: 17px; color: var(--brand-deep); }
.diab-proy { color: var(--warn); font-weight: 700; font-size: 13.5px; }
.diab-envivo { color: var(--danger) !important; font-weight: 700; font-size: 14.5px; }
.diab-siguiente {
  margin-top: 12px; background: var(--brand-tint); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 18px;
}
.diab-sig-txt { margin: 0; font-size: 16px; line-height: 1.5; }
.diab-timeline { margin-top: 4px; }
.diab-row {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 13px; margin-bottom: 9px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.diab-row.estado-actual { border: 1.5px solid var(--brand); background: var(--brand-tint); }
.diab-row.estado-siguiente { border-color: var(--gold-soft); }
.diab-row.hecho { opacity: .66; }
.diab-row-horas { flex: none; min-width: 74px; }
.diab-row-ini { display: block; font-weight: 700; font-size: 16.5px; color: var(--brand-deep); }
.diab-row-fin { display: block; font-size: 13px; color: var(--ink-soft); }
.diab-row-plan { display: block; font-size: 11.5px; color: var(--warn); font-weight: 700; margin-top: 2px; }
.diab-row-txt { flex: 1; min-width: 0; }
.diab-row-titulo { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.3; }
.diab-row-meta { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.diab-row-real { margin: 3px 0 0; font-size: 13px; font-weight: 700; color: var(--ok); }
.diab-btn { flex: none; padding: 9px 14px; font-size: 14px; }
.diab-quien { margin-top: 6px; }
.diab-acciones { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }

/* ════════ FASE 10 · WEB DE FOTOS ════════ */
.fotos-bar { margin-top: 12px; }
.fotos-bar-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--gold-soft));
  transition: width .8s var(--ease);
}
.wf-switch-card .wf-switch { margin-top: 12px; }
.wf-mensaje-form { margin-top: 16px; }
.fotos-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px;
}
.foto-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow-sm);
}
.foto-media { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.foto-media img {
  display: block; width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.foto-ph {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 12px;
  background: linear-gradient(160deg, var(--paper-2), var(--gold-tint));
  border: 1px dashed var(--gold-soft); border-radius: var(--radius-sm);
  color: var(--ink-soft); font-family: var(--quote); font-style: italic; font-size: 15.5px; line-height: 1.35;
}
.foto-portada-badge {
  position: absolute; top: 8px; left: 8px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #FFFDF4;
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; box-shadow: var(--shadow-sm);
}
.foto-nombre {
  margin: 9px 0 0; font-weight: 700; font-size: 14.5px; line-height: 1.3;
  overflow-wrap: anywhere;
}
.foto-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.foto-actions .btn-ghost { padding: 6px 10px; font-size: 13px; }
.foto-actions .btn-ghost[disabled] { opacity: .4; cursor: default; }

/* La vista previa dentro de la app: la página pública enmarcada */
.web-previa {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px 26px; box-shadow: var(--shadow-sm); text-align: center;
}
.wp-art {
  margin: 0 auto; max-width: 300px;
  border-radius: 150px 150px 16px 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(56, 44, 20, .09);
}
.wp-art img { display: block; width: 100%; height: auto; }
.wp-brand {
  letter-spacing: .24em; font-size: 10.5px; font-weight: 700;
  color: var(--brand-dark); text-transform: uppercase; margin: 14px 0 0;
}
.wp-titulo { font-family: var(--serif); font-size: 27px; font-weight: 600; margin: 6px 0 2px; line-height: 1.15; }
.wp-fecha { font-family: var(--quote); font-style: italic; font-size: 19.5px; color: var(--brand-deep); margin: 3px 0 0; }
.wp-lugar { color: var(--ink-soft); margin: 0; font-size: 15px; }
.wp-cuenta { font-weight: 700; color: var(--gold); margin: 9px 0 0; }
.wp-mensaje {
  font-family: var(--quote); font-style: italic; font-size: 18.5px; color: var(--brand-deep);
  margin: 12px auto 0; max-width: 44ch; line-height: 1.45;
}
.wp-nota { color: var(--ink-soft); font-size: 14px; margin: 14px 0 0; line-height: 1.5; }
.wp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.wp-cell { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.wp-cell img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.wp-cell .foto-ph { border: none; border-radius: 0; }
.wp-art { position: relative; }

/* ════════ FASE 14 · EL MONOGRAMA DE LA PAREJA ════════
   La marca sobre las fotos, en presentación (los originales
   jamás se tocan). La misma geometría de la página pública:
   esquina ~17% (12% discreto) con margen y sombra suave;
   Polaroid = marco de papel AÑADIDO (tarjetita marfil con
   sombra sobre fondo greige, monograma completo al pie);
   banda = franja marfil al pie con filete dorado. */
img.m-esq {
  position: absolute; right: 4.5%; bottom: 4.5%;
  width: 17%; height: auto; aspect-ratio: auto; object-fit: contain;
  border: none; border-radius: 0;
  opacity: .92; filter: drop-shadow(0 2px 6px rgba(40, 30, 10, .45));
  pointer-events: none; z-index: 3;
}
img.m-esq.m-chica { width: 12%; }
/* La misma regla con la especificidad de cada contenedor:
   dentro de una mini-previa, la regla de su foto base
   (.mono-mini > img, que va después en este archivo) le
   ganaría el empate a img.m-esq y la marca se vería enorme. */
.foto-media > img.m-esq, .wp-cell > img.m-esq,
.wp-art > img.m-esq, .mono-mini > img.m-esq {
  width: 17%; height: auto; aspect-ratio: auto; object-fit: contain; border: none;
}
.foto-media > img.m-esq.m-chica, .wp-cell > img.m-esq.m-chica,
.wp-art > img.m-esq.m-chica, .mono-mini > img.m-esq.m-chica { width: 12%; }
.m-banda {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16%;
  background: #FAF6EC; border-top: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 3;
}
.m-banda > img.m-img { height: 80%; width: auto; aspect-ratio: auto; object-fit: contain; border: none; display: block; }
.m-pola-fondo {
  position: absolute; inset: 0; background: #EAE3CF;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.m-pola-card {
  background: #FAF6EC; box-shadow: 0 8px 22px rgba(56, 44, 20, .30);
  width: 86%; height: 93%; padding: 4.5% 4.5% 0;
  display: flex; flex-direction: column;
}
.m-pola-foto { flex: 1; min-height: 0; overflow: hidden; }
.m-pola-foto > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border: none; display: block; }
.m-pola-zona { position: relative; }
.m-pola-zona::before { content: ""; display: block; padding-top: 33%; }
.m-pola-zona > img.m-img {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: 74%; width: auto; aspect-ratio: auto; object-fit: contain; border: none; display: block;
}
.m-pola-zona > img.m-img.m-chica { height: 58%; }
.foto-media.con-pola > img, .wp-cell.con-pola > img { visibility: hidden; }
.wp-art.con-pola { display: flex; flex-direction: column; padding: 5% 5% 0; background: #FAF6EC; }
.wp-art.con-pola > img { flex: 1; min-height: 0; object-fit: cover; width: 100%; }

/* La gestión del monograma */
.mono-card h5.mono-sub { font-family: var(--serif); font-size: 15.5px; font-weight: 600; margin: 18px 0 8px; }
.mono-ficha { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.mono-ficha p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.mono-ficha p strong { color: var(--ink); }
.mono-chip {
  flex: none; width: 86px; height: 86px; border-radius: 12px;
  background: #FAF6EC; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.mono-chip img { max-width: 88%; max-height: 88%; display: block; }
.mono-opciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mono-opcion {
  font: inherit; text-align: left; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 8px; color: var(--ink);
}
.mono-opcion.sel { border-color: var(--gold); background: var(--gold-tint); }
.mono-mini {
  display: block; position: relative; aspect-ratio: 4 / 5;
  border-radius: 8px; overflow: hidden; margin-bottom: 8px;
  border: 1px solid var(--line); background: var(--paper-2);
}
.mono-mini > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mono-mini.con-pola > img { visibility: hidden; }
.mono-opcion-nombre { display: block; font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.mono-opcion-desc { display: block; font-size: 11.5px; color: var(--ink-soft); line-height: 1.35; margin-top: 3px; }
.mono-seg { display: flex; gap: 8px; }
.mono-seg-btn {
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink-soft);
}
.mono-seg-btn.sel { border-color: var(--gold); background: var(--gold-tint); color: var(--ink); }
.mono-actions { align-items: center; margin-top: 16px; }
.mono-cambiar { cursor: pointer; }
.mono-form { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ════════ FASE 12 · PLANES Y ACTIVACIÓN ════════ */
.plan-activar-box {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.plan-activar-titulo { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.plan-cards { display: grid; gap: 14px; margin: 4px 0 6px; }
.plan-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px 18px; box-shadow: var(--shadow-sm);
}
.plan-card.destacada { border: 1.5px solid var(--gold); box-shadow: var(--shadow-md); }
.plan-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 0 0 2px; }
.plan-precio { font-family: var(--serif); font-size: 31px; font-weight: 700; color: var(--brand-dark); margin: 0 0 10px; }
.plan-precio span { font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.plan-card ul { margin: 0 0 6px; padding-left: 19px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.plan-card li { margin: 0 0 7px; }
.plan-card li strong { color: var(--ink); }
.plan-badge {
  position: absolute; top: -11px; right: 16px;
  background: var(--gold-tint); color: var(--gold); border: 1px solid var(--gold);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px;
}

/* ════════ ATENCIÓN PERSONALIZADA · ASESORÍAS (2026-11-27) ════════ */
.asesorias-avance {
  font-weight: 700; color: var(--brand-dark);
  margin: 10px 0 12px;
}
.asesorias-lista { list-style: none; margin: 14px 0 2px; padding: 0; display: grid; gap: 8px; }
.asesorias-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px;
}
.asesorias-item.hecha { border-color: var(--gold); background: var(--gold-tint); }
.asesorias-item p { margin: 0; font-size: 14px; line-height: 1.4; }
.asesorias-item p strong { display: block; }
.asesorias-estado { color: var(--ink-soft); font-size: 13px; }
.asesorias-item .btn-ghost { flex: none; }
#asesorias-card-accion .wa-btn { margin-top: 2px; }
.asesorias-accion .account-line { margin-top: 0; }

/* ── Fase 15 · Los datos de su boda (editor del perfil) ── */
.datos-titulo { margin: 2px 0 10px; }
.datos-form { margin-top: 12px; }
#datos-boda-card .chip-group { grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 2px; }
#datos-boda-card .chip { padding: 10px 12px; font-size: 14.5px; }
.datos-pasada { margin: 14px 0 0; }
#datos-boda-card .btn-primary[disabled] { opacity: .45; cursor: default; }

/* ── Fase 16 · Tu privacidad (aviso de privacidad) ──
   Texto corrido en tarjeta de papel, legible en el celular:
   titulares serif del sistema y cuerpo a 15.5px/1.55. */
.privacidad-cuerpo { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 8px 20px 16px; margin-bottom: 24px; }
.privacidad-cuerpo h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--brand-deep); margin: 22px 0 6px; }
.privacidad-cuerpo p { font-size: 15.5px; line-height: 1.55; margin: 8px 0; }
.privacidad-cuerpo ul { margin: 6px 0 10px; padding-left: 20px; }
.privacidad-cuerpo li { font-size: 15.5px; line-height: 1.55; margin: 4px 0; }
.privacidad-cuerpo a { color: var(--brand-dark); font-weight: 700; }
.privacidad-cuerpo .priv-cierre { color: var(--ink-soft); font-size: 14px; text-align: center; margin-top: 22px; }
.privacy-line { color: var(--ink-soft); font-size: 15px; margin: 0 0 6px; }
.linklike { border: none; background: none; padding: 0; font: inherit; color: var(--brand-dark); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ── Fase 18 · Ayuda automática ──
   La conversación: burbujas sobre el papel de la casa; la
   pareja a la derecha en azul, la asistente a la izquierda en
   tarjeta con filete dorado. */
.ayuda-hilo { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.ayuda-msg { max-width: 88%; padding: 10px 14px 12px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.ayuda-msg .ayuda-quien { margin: 0 0 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ayuda-msg .ayuda-texto { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: break-word; }
.ayuda-msg.de-asistente { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.ayuda-msg.de-asistente .ayuda-quien { color: var(--gold); }
.ayuda-msg.de-ella { align-self: flex-end; background: var(--brand-deep); color: #F5F9FC; }
.ayuda-msg.de-ella .ayuda-quien { color: var(--gold-soft); }
.ayuda-msg.ayuda-espera { color: var(--ink-soft); font-style: italic; font-family: var(--quote); font-size: 16px; }
.ayuda-accion { margin-top: 10px; padding: 10px 12px; background: var(--paper, #FBF7EE); border: 1px solid var(--gold); border-radius: var(--radius-sm); }
.ayuda-accion .ayuda-accion-txt { margin: 0; font-size: 14.5px; line-height: 1.45; }
.ayuda-accion-btns { display: flex; gap: 8px; margin-top: 10px; }
.ayuda-accion-btns .btn-primary { padding: 8px 16px; }
.ayuda-accion.estado-hecha { border-color: var(--line); background: transparent; }
.ayuda-accion.estado-hecha .ayuda-accion-txt { color: var(--brand-dark); font-weight: 600; }
.ayuda-accion.estado-no { border-color: var(--line); background: transparent; opacity: .75; }
.ayuda-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ayuda-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px 16px 16px; margin-bottom: 24px; }
.ayuda-form .ayuda-campo { margin-bottom: 10px; }
.ayuda-form textarea { width: 100%; resize: vertical; }

/* ── Fase 28 · Buzón «Mensajes de invitados» (WhatsApp) ── */
.wa-switch { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-weight: 600; cursor: pointer; }
.wa-switch input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); }
.wa-estado { font-size: 13.5px; color: var(--brand-dark); font-weight: 700; margin: 2px 0 10px; }
.wa-hilo { display: grid; gap: 8px; margin: 10px 0 14px; }
.wa-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; }
.wa-msg p { margin: 0; white-space: pre-wrap; }
.wa-msg span { display: block; margin-top: 5px; font-size: 11.5px; opacity: .75; }
.wa-in { justify-self: start; background: var(--brand-tint); border: 1px solid var(--brand); border-bottom-left-radius: 4px; }
.wa-out { justify-self: end; background: #fff; border: 1px solid #d9c98a; border-bottom-right-radius: 4px; }
