/* ─────────────────────────────────────────────────────────────
   BM Bodas v2 — sistema completo (basado en Claude Design)
   Paleta sage/eucalipto + cálidos crema + acento terracota
─────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────
   REGLA DE PALETA (Claude Design — área cliente)
   Solo existen 3 cremas. Blanco puro (#fff) está PROHIBIDO
   salvo color de texto sobre brand/accent.

   - paper   (#faf6ef): fondo de la página interna
   - paper-2 (#f3ece0): cards/bloques sobre la página
   - paper-3 (#ece4d4): chips muted, hatched, barras

   Patrón "sub-elemento":
   - sobre fondo paper      → usar paper-2 (más oscuro)
   - dentro de card paper-2 → usar paper   (más claro)
   - dentro de card paper-2 → puede usar paper-3 si necesita un tercer escalón
   ───────────────────────────────────────────────────────────── */
:root {
  /* Cremas v2 — intensidad subida (Miguel 03/05/2026) para que el fondo no parezca blanco */
  --paper:        #f2e9d3;
  --paper-2:      #e7d8b8;
  --paper-3:      #d4bf95;
  --ink:          #2b2421;
  --ink-2:        #5b5048;
  --ink-3:        #8c8278;
  --line:         #2b242133;
  --line-2:       #2b24211a;
  --brand:        #7ba89a;
  --brand-2:      #5e8c7e;
  --accent:       #c87457;
  --accent-2:     #e4a07f;
  /* Estados — colores vivos (Miguel 04/05/2026): pills deben ser claramente
     identificables, no mortecinos. Acordes a la paleta cream/oliva. */
  --ok:           #2f7a1f;
  --ok-bg:        #d9ecc8;
  --ok-line:      #95c47a;
  --warn:         #a87807;
  --warn-bg:      #f8e8b3;
  --warn-line:    #d9b94a;
  --err:          #b03020;
  --err-bg:       #f5cdc2;
  --err-line:     #d97a66;
  --shadow:       0 1px 0 #2b242115, 0 8px 24px -12px #2b242122;
}

* { margin:0; padding:0; box-sizing:border-box; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Cormorant Garamond por defecto pinta cifras old-style (bailones).
     Forzamos lining-nums global para que TODOS los números (15M, 2027, 2 h 30...)
     se alineen sin descender. Los importes con tabular-nums explícito mandan. */
  font-variant-numeric: lining-nums;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: transparent; color: inherit; }

/* ── tipografía ── */
.f-display  { font-family: "Cormorant Garamond","Newsreader",Georgia,serif; font-weight: 500; letter-spacing: -0.01em; }
.f-serif    { font-family: "Cormorant Garamond","Newsreader",Georgia,serif; font-weight: 500; }
.f-couple   { font-family: "Cormorant Garamond","Newsreader",Georgia,serif; font-weight: 500; font-style: italic; letter-spacing: -0.01em; }
.f-mono     { font-family: "JetBrains Mono", ui-monospace, monospace; }

.t-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 500;
}

.muted { color: var(--ink-2); }
.faded { color: var(--ink-3); }
.tiny  { font-size: 11px; }
.small { font-size: 13px; }
.big   { font-size: 22px; line-height: 1.15; }
.huge  { font-size: 32px; line-height: 1.05; }

/* ── primitivos ── */
.sk-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.sk-frame {
  background: var(--paper);
  border: 1.25px solid var(--ink);
  border-radius: 14px;
  position: relative;
}
.sk-divider { height: 1px; background: var(--line-2); margin: 10px 0; }
.sk-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--line-2);
}
.sk-row:last-child { border-bottom: none; }

.sk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  font-weight: 500;
  background: var(--ink); color: var(--paper); border: 1.25px solid var(--ink);
  transition: opacity .15s, transform .1s;
  text-decoration: none;
}
.sk-btn:hover { opacity: 0.9; }
.sk-btn:active { transform: translateY(1px); }
.sk-btn.ghost  { background: transparent; color: var(--ink); }
.sk-btn.brand  { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.sk-btn.accent { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.sk-btn.disabled, .sk-btn:disabled { background: transparent; color: var(--ink-3); border-color: var(--ink-3); cursor: not-allowed; }

.sk-input {
  display: block; width: 100%;
  padding: 10px 12px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.sk-input:focus { outline: none; border-color: var(--brand); background: var(--paper); }
.sk-input::placeholder { color: var(--ink-3); font-style: italic; }
textarea.sk-input { resize: vertical; min-height: 80px; }

.sk-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--line);
  background: var(--paper-3); color: var(--ink-2);
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.sk-chip.ok    { background: var(--ok-bg);    border-color: var(--ok-line);   color: var(--ok); }
.sk-chip.warn  { background: var(--warn-bg);  border-color: var(--warn-line); color: var(--warn); }
.sk-chip.err   { background: var(--err-bg);   border-color: var(--err-line);  color: var(--err); }
.sk-chip.muted { background: var(--paper-3);  color: var(--ink-2); }
/* Chip corporativo (verde --brand) — usado en home para uniformar pills */
.sk-chip.brand { background: #d8e8e1; border-color: var(--brand); color: var(--brand-2); }

.bar { height: 6px; background: var(--paper-3); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); }

/* ── layout app ── */
.app { display: flex; min-height: 100vh; }

/* SIDEBAR (desktop, icon-only) */
.sidebar {
  width: 80px; flex-shrink: 0;
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 0 16px; gap: 12px;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
}
.sidebar .brand-mark {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  margin-bottom: 8px;
}
.sidebar .brand-mark img {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply; filter: contrast(1.05);
}
.sidebar .nav-btn {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); position: relative;
  transition: background .15s, color .15s;
}
.sidebar .nav-btn:hover { background: var(--paper-3); color: var(--ink); }
.sidebar .nav-btn.active {
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
}
.sidebar .nav-btn .dot {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.sidebar .nav-btn svg { width: 22px; height: 22px; }
.sidebar .spacer { flex: 1; }

/* MAIN */
.main {
  flex: 1; margin-left: 80px;
  display: flex; flex-direction: column;
  min-height: 100vh;
}
/* Desktop: centrar verticalmente el contenido cuando cabe en viewport.
   Si una página crece más que el viewport (presupuesto, mi-boda con muchos
   campos), justify-content:center NO recorta nada — simplemente deja de
   centrar y el scroll funciona como siempre.
   body:not(.viewport-mobile) → respeta el toggle del impersonate. */
@media (min-width: 881px) {
  body:not(.viewport-mobile) .main { justify-content: center; }
}
.page { padding: 36px 44px 80px; max-width: 1100px; margin-left: auto; margin-right: auto; }
@media (min-width: 881px) { body:not(.viewport-mobile) .page { padding: 80px 44px 80px; } }

/* MOBILE HEADER y BOTTOM NAV */
.mobile-header {
  display: none;
  align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--paper); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.mobile-header .brand-mark {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
}
.mobile-header .brand-mark img {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply; filter: contrast(1.05);
}
.mobile-header .title { font-family: "Cormorant Garamond", serif; font-size: 16px; color: var(--ink-2); }
.mobile-header .icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink-2);
}

.bottom-nav {
  display: none;
  position: fixed; bottom: 8px; left: 12px; right: 12px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 99px; height: 56px;
  align-items: center; justify-content: space-around;
  box-shadow: var(--shadow);
  z-index: 40;
}
.bottom-nav .nav-btn {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); position: relative;
}
.bottom-nav .nav-btn.active { background: var(--paper-2); color: var(--brand); }
.bottom-nav .nav-btn svg { width: 20px; height: 20px; }
.bottom-nav .nav-btn .dot {
  position: absolute; top: 8px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* RESPONSIVE: < 880px → mobile chrome */
@media (max-width: 880px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .mobile-header { display: flex; }
  .bottom-nav { display: flex; }
  .page { padding: 18px 16px 90px; }
}

/* ────── PANTALLAS ────── */

/* LOGIN */
.login-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(123,168,154,0.10), transparent 60%),
    var(--paper-2);
}
.login-logo { text-align: center; margin-bottom: 0; }
.login-logo img {
  width: 520px; max-width: 78vw; height: auto;
  border-radius: 50%;
  mix-blend-mode: multiply; filter: contrast(1.05);
}
@media (max-width: 600px) {
  .login-logo img { width: 280px; }
}
.login-caption {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 18px; color: var(--ink-2);
  text-align: center; margin: -10px auto 0; max-width: 380px;
  line-height: 1.4;
}
.login-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 26px 24px;
  width: 100%; max-width: 360px;
  box-shadow: var(--shadow); margin: 14px auto 0;
}
.login-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px; font-weight: 500; text-align: center;
  margin-bottom: 22px; color: var(--ink);
}
.login-field { margin-bottom: 14px; }
.login-field label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 6px; font-weight: 500;
}
.login-btn {
  width: 100%; background: var(--brand); color: #fff;
  padding: 13px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.3px;
  margin-top: 8px;
}
.login-btn:hover { background: var(--brand-2); }
.login-error {
  background: var(--err-bg); color: var(--err);
  border: 1px solid var(--err-line);
  border-radius: 8px; padding: 10px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; margin-bottom: 14px; text-align: center;
}
.login-foot {
  text-align: center; margin-top: 18px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 14px;
}
.login-foot a { color: var(--ink-3); }
.login-foot a:hover { color: var(--accent); }

/* HOME */
.home-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; gap: 20px; flex-wrap: wrap;
}
/* Nombre de los novios SIN italic — misma tipografía que las cards (Mi boda, Mi presupuesto…).
   El "&" sí mantiene italic como detalle ornamental. */
.home-header .names .f-couple { font-size: 56px; line-height: 1.0; font-style: normal; }
.home-header .names .ampersand { color: var(--ink-2); font-size: 0.55em; font-style: italic; }
.home-header .meta {
  margin-top: 10px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.home-header .meta .sep { color: var(--ink-3); }

/* Mini-carrito (pill) arriba a la derecha del header */
.cart-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 6px;
  background: var(--paper-2);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  text-decoration: none; color: inherit;
  transition: transform .18s ease-out, box-shadow .18s ease-out, background .18s, border-color .18s;
  flex-shrink: 0;
  /* En mobile (default): pegado al borde derecho. En desktop el grid lo
     re-alinea a la derecha de la columna derecha. */
  align-self: flex-end;
  margin-left: auto;
}
.cart-pill:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 4px 0 #2b242115, 0 16px 32px -8px #2b242140;
  background: var(--accent);
  border-color: var(--accent);
}
.cart-pill:hover .lbl { color: var(--paper); }
.cart-pill:hover .ico-box { background: var(--paper); color: var(--accent); }
.cart-pill:hover .cta { background: var(--paper); color: var(--accent); }
.cart-pill:active { transform: translateY(-2px) scale(1.03); }
.cart-pill .ico-box {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cart-pill .lbl {
  font-weight: 500; font-size: 14px;
  padding: 0 4px;
  white-space: nowrap;
}
.cart-pill .cta {
  background: var(--brand); color: var(--paper);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center;
}
.cards-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.postal-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer;
  transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .15s;
  color: inherit;
}
.postal-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 4px 0 #2b242115, 0 18px 32px -10px #2b242135;
  border-color: var(--brand);
}
.postal-card:active { transform: translateY(-2px) scale(1.005); }
/* Card bloqueada (Mi boda incompleta) — atenuada + cursor candado.
   Se mantiene clickable para que JS abra el modal. */
.postal-card.locked,
.cart-pill.locked {
  opacity: 0.55;
  filter: grayscale(0.4);
  cursor: not-allowed;
}
.postal-card.locked:hover {
  transform: translateY(-2px) scale(1.005);
  border-color: var(--line);
  box-shadow: 0 1px 0 #2b242115, 0 4px 12px -8px #2b242122;
}
.cart-pill.locked:hover {
  transform: translateY(-1px) scale(1.01);
  background: var(--paper-2);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.cart-pill.locked:hover .lbl { color: var(--ink); }
.cart-pill.locked:hover .ico-box { background: var(--accent); color: var(--paper); }
.cart-pill.locked:hover .cta { background: var(--brand); color: var(--paper); }

/* Modal de bloqueo "Completa primero Mi boda" */
.bm-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(43, 36, 33, 0.55);
  backdrop-filter: blur(2px);
  z-index: 100000;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: bmFadeIn .18s ease-out;
}
.bm-modal.show { display: flex; }
.bm-modal-box {
  background: var(--paper);
  border-radius: 18px;
  padding: 32px 28px 26px;
  max-width: 440px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px -10px #2b242155, 0 4px 0 #2b242120;
  animation: bmPop .22s ease-out;
}
.bm-modal-ico {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  background: var(--accent-2);
  color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.bm-modal-box h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px; font-weight: 600;
  margin: 0 0 10px;
}
.bm-modal-box p {
  color: var(--ink-2); font-size: 15px; line-height: 1.5;
  margin: 0 0 22px;
}
.bm-modal-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.bm-modal-actions .sk-btn { padding: 10px 18px; font-size: 14px; }
@keyframes bmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bmPop { from { transform: translateY(8px) scale(.96); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.postal-card.accent { background: var(--brand); color: var(--paper); border-color: var(--brand); }
.postal-card.accent .ico { color: var(--paper); }
.postal-card.accent .summary { opacity: 0.85; color: var(--paper); }
.postal-card.accent .hint { color: var(--paper); }
.postal-card .head { display: flex; justify-content: space-between; align-items: center; }
.postal-card .ico { color: var(--brand); }
.postal-card .ico svg { width: 26px; height: 26px; }
.postal-card .title { font-family: "Cormorant Garamond", serif; font-size: 22px; line-height: 1.05; font-weight: 500; }
.postal-card .summary { font-size: 13px; color: var(--ink-2); }
.postal-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.postal-card .hint {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 19px; font-weight: 600;
  color: #a04a30; /* terracota oscuro saturado — debe leerse claro sobre cream */
}

/* aviso de carrito en home */
.cart-notice {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--paper-2);
  border: 1.25px solid var(--accent); border-radius: 12px;
  margin-bottom: 14px;
}
.cart-notice .ico-box {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent); color: var(--paper);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cart-notice .grow { flex: 1; min-width: 0; }
.cart-notice .lbl { font-weight: 500; font-size: 14px; }

/* PAGE TITLES */
.page-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 44px; line-height: 1.0; margin-bottom: 6px; font-weight: 500;
}
.page-sub { color: var(--ink-2); font-size: 14px; margin-bottom: 24px; }

/* FORM (mi boda) */
.form-block {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 24px; margin-bottom: 18px;
}
.form-block h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px; font-weight: 500; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px dashed var(--line-2);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--ink-2); font-weight: 500;
}
.form-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 18px;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* SERVICIOS */
.servs-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
@media (max-width: 880px) { .servs-grid { grid-template-columns: 1fr; } }
.serv-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1.5px dashed var(--ink);
}
.serv-row:last-child { border-bottom: none; }
/* Cuadradito de icono en filas de servicios (sobre fondo paper) → paper-2 contrasta sin border */
.serv-row .ico-box {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); flex-shrink: 0;
}
.serv-row .grow { flex: 1; min-width: 0; }
.serv-row .ttl { font-family: "Cormorant Garamond", serif; font-size: 17px; font-weight: 500; }
.serv-row .sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
/* Fila final con el total del pack — destacada en el bloque de incluidos. */
.serv-row.pack-total {
  border-bottom: none;
  padding-top: 18px;
}
.serv-row.pack-total .ttl {
  font-family: "Cormorant Garamond", serif;
  font-size: 19px; font-weight: 600;
}
.serv-row.pack-total .pack-total-amount {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--brand-2);
  font-variant-numeric: lining-nums tabular-nums;
}
/* Tarjeta de servicio opcional clicable (TOTALES, BRUTOS, etc.):
   fondo naranja vivo para llamar a la acción + precio en verde corporativo. */
.extra-card {
  padding: 18px 18px 16px;
  margin-top: 16px;
  background: var(--accent-2);
  border-color: var(--accent);
  color: var(--ink);
}
.extra-card .head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 4px;
}
.extra-card .head-text { flex: 1; min-width: 0; }
.extra-card .price {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700; color: var(--brand-2);
  font-size: 18px;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.extra-card .ttl {
  font-family: "Cormorant Garamond", serif;
  font-size: 19px; font-weight: 600; line-height: 1.15;
  margin: 0;
}
.extra-card .desc {
  font-size: 13px; color: var(--ink-2); line-height: 1.45;
  margin: 6px 0 14px;
}
.extra-card .sk-btn.brand {
  background: var(--brand); border-color: var(--brand-2);
  color: #fff;
}
.extra-card .sk-btn.brand:hover { background: var(--brand-2); }

/* PRESUPUESTO */
.presu-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; gap: 20px; flex-wrap: wrap; }
.presu-card { padding: 18px; min-width: 240px; }
.presu-card .total {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 38px; line-height: 1; margin: 4px 0 10px;
  font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
/* Grid de la página Pagos: 1 col por defecto (mobile y viewport-mobile toggle).
   Pasa a 2 cols solo en escritorio sin toggle mobile activo (Pagos + Extras). */
.presu-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 881px) {
  body:not(.viewport-mobile) .presu-grid { grid-template-columns: 1.15fr 1fr; }
}
/* Cards Pagos / Extras: padding generoso en escritorio, ajustado en mobile. */
.presu-block { padding: 28px; }
.cell-fecha { white-space: nowrap; }
@media (max-width: 720px) {
  .presu-block { padding: 18px; }
  .sk-table th, .sk-table td { padding: 10px 6px; }
  .cell-fecha { white-space: normal; }
}
body.viewport-mobile .presu-block { padding: 18px; }
body.viewport-mobile .sk-table th, body.viewport-mobile .sk-table td { padding: 10px 6px; }
body.viewport-mobile .cell-fecha { white-space: normal; }
.sk-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.sk-table th, .sk-table td {
  text-align: left; padding: 14px 10px;
  border-bottom: 1.5px dashed var(--ink); font-size: 14px;
}
.sk-table tr:last-child td { border-bottom: none; }
.sk-table th {
  font-family: "JetBrains Mono", monospace;
  color: var(--ink-2); font-weight: 500; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.sk-table td.num {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px; font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}

/* CTA por fila (botón Pagar / Factura): por defecto en escritorio va dentro
   de la última celda. En mobile (real <721px o toggle viewport-mobile) la
   celda se oculta y aparece una fila extra debajo con el botón al ancho. */
.sk-table .cta-cell .cta-btn { padding: 6px 14px; }
.row-cta-mobile { display: none; }
.row-cta-mobile td { text-align: center; }
.row-cta-mobile .cta-btn { display: inline-block; width: 100%; padding: 12px 16px; font-size: 14px; box-sizing: border-box; }
@media (max-width: 720px) {
  .sk-table .cta-cell { display: none; }
  .row-cta-mobile { display: table-row; }
}
body.viewport-mobile .sk-table .cta-cell { display: none; }
body.viewport-mobile .row-cta-mobile { display: table-row; }

/* CARRITO */
.cart-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 880px) { .cart-grid { grid-template-columns: 1fr; } }
.cart-summary {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 24px;
  position: sticky; top: 24px;
}
.cart-summary h4 { font-family: "Cormorant Garamond", serif; font-size: 18px; font-weight: 500; margin-bottom: 14px; }
.cart-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--ink-2); }
.cart-line.total {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px; color: var(--ink); font-weight: 600;
  padding-top: 14px; margin-top: 8px;
  border-top: 1px solid var(--line-2);
}

/* VIDEOS */
.video-block { margin-bottom: 36px; }
.video-stage {
  width: 100%; aspect-ratio: 16/9; border-radius: 12px;
  background: var(--paper-3);
  background-image:
    repeating-linear-gradient(135deg, transparent 0 6px, var(--line-2) 6px 7px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.video-stage iframe { width: 100%; height: 100%; border: 0; }
.video-empty-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
}
.video-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.video-meta .info .ttl { font-family: "Cormorant Garamond", serif; font-size: 22px; font-weight: 500; }
.video-meta .info .dur { font-size: 13px; color: var(--ink-2); }
.video-meta .actions { display: flex; gap: 8px; }

/* EMPTY */
.empty-state {
  background: var(--paper-2); border: 1px dashed var(--line);
  border-radius: 12px; padding: 48px 24px; text-align: center;
  color: var(--ink-2);
}
.empty-state .ico { font-size: 36px; margin-bottom: 12px; opacity: 0.5; }
.empty-state .ttl { font-family: "Cormorant Garamond", serif; font-size: 22px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }

/* MODAL EULA */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(43,36,33,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.modal {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 32px;
  max-width: 540px; width: 100%; max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal h2 {
  font-family: "Cormorant Garamond", serif; font-size: 28px;
  font-weight: 500; margin-bottom: 8px;
}
.modal .sub { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; font-style: italic; }
.modal .terms-box {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 16px;
  height: 280px; overflow-y: auto;
  font-size: 13px; line-height: 1.55; color: var(--ink-2);
  margin-bottom: 16px;
}
.modal .terms-box h4 { font-family: "Cormorant Garamond", serif; font-size: 15px; font-weight: 600; color: var(--ink); margin: 12px 0 4px; }
.modal .terms-box h4:first-child { margin-top: 0; }
.modal .accept {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; background: var(--paper-2); border-radius: 8px;
  margin-bottom: 16px;
}
.modal .accept input { margin-top: 2px; }
.modal .accept label { font-size: 13px; color: var(--ink); cursor: pointer; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal .sk-btn:disabled { background: var(--paper-3); color: var(--ink-3); border-color: var(--paper-3); }

/* helpers */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.aic { align-items: center; }
.gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-14 { gap: 14px; }
.grow { flex: 1; min-width: 0; }

/* responsive titulares */
@media (max-width: 600px) {
  .home-header .names .f-couple { font-size: 36px; }
  .page-title { font-size: 32px; }
  .cards-grid { grid-template-columns: 1fr; }
  .modal { padding: 22px 18px; }
  .modal h2 { font-size: 22px; }
}

/* DESKTOP HOME — escalado más grande para MacBook Air y monitores normales.
   Todo crece proporcionalmente. Móvil no se toca.
   Iter 3: -5% sobre iter 2.
   Iter 4: header como grid 2 cols (mimetiza cards-grid) — pill alineado con card der.
   Iter 5: nombre sin italic, tipografía unificada con cards.
   Iter 6: TODOS los selectores prefijados con body:not(.viewport-mobile) para que
   el toggle simulado del impersonate pueda previsualizar mobile sin contaminación. */
@media (min-width: 881px) {
  body:not(.viewport-mobile) .home-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 14px;
    margin-bottom: 38px;
  }
  body:not(.viewport-mobile) .home-header .names { grid-column: 1 / -1; }
  body:not(.viewport-mobile) .cart-pill { grid-column: 2; justify-self: end; align-self: end; margin-left: 0; align-self: end; }
  body:not(.viewport-mobile) .home-header .names .f-couple { font-size: 78px; font-style: normal; }
  body:not(.viewport-mobile) .home-header .names .ampersand { font-style: italic; }
  body:not(.viewport-mobile) .home-header .meta { gap: 14px; margin-top: 16px; }
  body:not(.viewport-mobile) .home-header .meta .t-eyebrow { font-size: 14px; }
  body:not(.viewport-mobile) .home-header .meta .muted.small { font-size: 16px; }

  body:not(.viewport-mobile) .cards-grid { gap: 24px; }
  body:not(.viewport-mobile) .postal-card { padding: 30px; gap: 13px; border-radius: 20px; }
  body:not(.viewport-mobile) .postal-card .head { margin-bottom: 5px; }
  body:not(.viewport-mobile) .postal-card .ico svg { width: 40px; height: 40px; }
  body:not(.viewport-mobile) .postal-card .title { font-size: 36px; }
  body:not(.viewport-mobile) .postal-card .summary { font-size: 16px; }
  body:not(.viewport-mobile) .postal-card .hint { font-size: 21px; }

  body:not(.viewport-mobile) .cart-pill { padding: 9px; gap: 13px; }
  body:not(.viewport-mobile) .cart-pill .ico-box { width: 46px; height: 46px; border-radius: 12px; }
  body:not(.viewport-mobile) .cart-pill .ico-box svg { width: 21px; height: 21px; }
  body:not(.viewport-mobile) .cart-pill .lbl { font-size: 18px; padding: 0 7px; }
  body:not(.viewport-mobile) .cart-pill .cta { padding: 11px 21px; font-size: 15px; }

  body:not(.viewport-mobile) .sk-chip { font-size: 12px; padding: 6px 13px; }
}
