/* ════════════════════════════════════════════
   MCA Smart Calculator (landing) — styles.css
   Paleta del SunSplash ERP · sistema de la SEC Calculator
   ════════════════════════════════════════════ */
:root {
  --bg: #050e29;
  --bg2: #0d1e46;
  --card: #0d1d46;            /* opaco: la malla de puntos no se ve a través de las tarjetas */
  --card-solid: #0c1a40;
  --opt: rgba(10, 24, 60, .78);
  --border: rgba(130, 180, 255, .22);
  --border-strong: rgba(160, 205, 255, .42);
  --edge: rgba(255, 255, 255, .14);
  --text: #eef4ff;
  --muted: #a5b9de;
  --faint: #8ea3cc;
  --sun: #ffcf33;
  --sun2: #ff9f1c;
  --aqua: #37c4ff;
  --aqua2: #3d7dff;
  --cyan: #3ff0ff;
  --green: #22ffa0;
  --red: #ff5d7a;
  --wa: #0f7a3c;
  --wa2: #0b6a33;
  --btn: #1f5fe0;
  --btn2: #1a4fcf;
  --glow-aqua: 0 0 34px -6px rgba(55, 196, 255, .55);
  --shadow: 0 1px 0 var(--edge) inset, 0 18px 40px -18px rgba(0, 0, 0, .7), 0 4px 12px -6px rgba(0, 0, 0, .5);
  --dots: rgba(120, 175, 255, .16);
  --radius: 20px;
  --font: "Sora", system-ui, -apple-system, sans-serif;
  --num: "Space Grotesk", "Sora", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eaf2ff;
  --bg2: #d4e4ff;
  --card: #ffffff;
  --card-solid: #ffffff;
  --opt: #f5f9ff;
  --border: rgba(30, 90, 220, .16);
  --border-strong: rgba(30, 90, 220, .34);
  --edge: rgba(255, 255, 255, .95);
  --text: #0a1a3c;
  --muted: #4a5f8c;
  --faint: #55688f;
  --sun: #955300;
  --sun2: #a34d00;
  --aqua: #1a4fcf;
  --aqua2: #2563ff;
  --cyan: #006478;
  --green: #047a52;
  --red: #d42a55;
  --wa: #0f7a3c;
  --wa2: #0b6a33;
  --glow-aqua: 0 0 26px -8px rgba(61, 125, 255, .35);
  --shadow: 0 1px 0 var(--edge) inset, 0 16px 34px -18px rgba(20, 60, 160, .35), 0 3px 10px -5px rgba(20, 60, 160, .18);
  --dots: rgba(30, 90, 220, .12);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 85% -10%, rgba(55, 196, 255, .20), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(61, 125, 255, .16), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* ─────────── Header / hero ─────────── */
.top { max-width: 720px; margin: 0 auto; padding: 14px 16px 0; padding-top: calc(14px + env(safe-area-inset-top)); }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--border-strong); box-shadow: var(--glow-aqua); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-txt strong { font-weight: 800; letter-spacing: .06em; font-size: 16px; }
.brand-txt span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; gap: 8px; flex-shrink: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow); font-weight: 700; font-size: 14px; justify-content: center;
}
.pill.icon { padding: 0; }
.lang-switch { display: flex; padding: 3px; gap: 3px; border-radius: 15px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.lang-opt {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 44px; padding: 0 10px;
  border-radius: 11px; font-weight: 700; font-size: 13.5px; color: var(--muted);
}
.lang-opt.on { color: #fff; background: linear-gradient(135deg, var(--btn), var(--btn2)); box-shadow: var(--glow-aqua); }
.flag { width: 22px; height: 15px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }

.hero { text-align: center; padding: 34px 4px 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan); background: rgba(63, 240, 255, .08); border: 1px solid rgba(63, 240, 255, .35);
}
:root[data-theme="light"] .badge { background: rgba(0, 122, 150, .07); border-color: rgba(0, 122, 150, .3); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 {
  margin-top: 16px; font-size: clamp(38px, 11vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em;
}
.hero h1 em {
  display: block; font-style: normal;
  background: linear-gradient(92deg, var(--sun) 0%, var(--sun2) 35%, var(--aqua) 70%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 14px auto 0; max-width: 480px; color: var(--muted); font-size: 16.5px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.chips li {
  font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
}

/* ─────────── Tarjetas de pasos ─────────── */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; display: grid; gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; box-shadow: var(--shadow); scroll-margin-top: 14px; position: relative;
}
.card.flash, .when.flash, .book.flash { animation: flash 1.1s ease; }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: var(--shadow), 0 0 0 3px var(--aqua), var(--glow-aqua); } }
.card-hd { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--num); font-weight: 700; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, var(--btn), var(--btn2)); box-shadow: var(--glow-aqua);
}
.card-hd h2 { font-size: 18px; font-weight: 700; line-height: 1.2; }
.card-hd p { font-size: 13.5px; color: var(--muted); }

.opt {
  position: relative; background: var(--opt); border: 1.5px solid var(--border); border-radius: 16px;
  min-height: 52px; padding: 12px; text-align: center; transition: border-color .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 1px 0 var(--edge) inset, 0 6px 14px -10px rgba(0, 0, 0, .6);
  -webkit-tap-highlight-color: transparent;
}
.opt:active { transform: scale(.97); }
.opt.on {
  border-color: var(--aqua); box-shadow: 0 1px 0 var(--edge) inset, 0 0 0 1px var(--aqua), var(--glow-aqua);
  background: linear-gradient(160deg, rgba(55, 196, 255, .18), rgba(61, 125, 255, .10)), var(--opt);
}
@media (hover: hover) { .opt:hover { border-color: var(--border-strong); } }

/* Tipos de limpieza */
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.type-opt { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 3px; padding: 14px 12px 12px; min-height: 142px; }
.t-ico { font-size: 26px; line-height: 1; margin-bottom: 6px; }
.t-name { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.t-tag { font-size: 12px; color: var(--muted); line-height: 1.3; }
.t-from { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--muted); }
.t-from b { font-family: var(--num); font-size: 16px; color: var(--sun); }
.pop {
  position: absolute; top: -9px; right: 6px; font-size: 10px; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
  padding: 3px 8px; border-radius: 999px; color: #1b1300; background: linear-gradient(90deg, var(--sun), var(--sun2));
}
:root[data-theme="light"] .pop { color: #fff; background: #a34d00; }

.includes {
  margin-top: 14px; display: grid; gap: 12px; padding: 14px; border-radius: 16px;
  background: rgba(55, 196, 255, .06); border: 1px dashed var(--border-strong);
}
.includes[hidden] { display: none; }
.includes h3 { font-size: 13.5px; margin-bottom: 6px; }
.includes ul { list-style: none; display: grid; gap: 5px; }
.includes li { font-size: 13.5px; color: var(--muted); padding-left: 16px; position: relative; }
.includes li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.includes .no li::before { background: var(--red); }

/* Tamaño / números / cleaners */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 10px; }
.grid-3 .opt { display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 10px; }
.o-main { font-weight: 700; font-size: 15px; }
.o-sub { font-size: 13px; color: var(--muted); }
.grid-num { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.grid-num .opt { font-family: var(--num); font-weight: 700; font-size: 20px; min-height: 56px; }
.grid-num .wide { grid-column: span 2; }
.grid-2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid-2 .opt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; }
.grid-2 .o-main { font-size: 14px; }
.grid-2 .o-sub { font-size: 11.5px; line-height: 1.3; }
.o-ico { font-size: 24px; line-height: 1; margin-bottom: 4px; }

/* ─────────── Resultado ─────────── */
.result { border-color: var(--border-strong); }
.result-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.result-hd h2 { font-size: 19px; }
.big-total {
  font-family: var(--num); font-weight: 700; font-size: 40px; line-height: 1; color: var(--faint);
}
.result.ready .big-total { color: var(--green); text-shadow: 0 0 24px rgba(34, 255, 160, .35); }
:root[data-theme="light"] .result.ready .big-total { text-shadow: none; }
.summary { margin-top: 14px; display: grid; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 600; text-align: right; }
.supplies { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; background: rgba(34, 255, 160, .08); border: 1px solid rgba(34, 255, 160, .30); }
:root[data-theme="light"] .supplies { background: rgba(4, 122, 82, .07); border-color: rgba(4, 122, 82, .28); }
.res-note { margin-top: 10px; font-size: 12.5px; color: var(--faint); }

.when { scroll-margin-top: 14px; margin-top: 18px; padding: 16px 12px; border-radius: 16px; background: rgba(55, 196, 255, .06); border: 1px solid var(--border-strong); }
.when h3 { font-size: 18px; font-weight: 800; padding: 0 4px; }
.when-sub { font-size: 13px; color: var(--muted); padding: 0 4px; margin-top: 2px; }
.month-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mtab { min-height: 44px; border-radius: 12px; font-weight: 700; font-size: 14px; background: var(--opt); border: 1.5px solid var(--border); }
.mtab.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--btn), var(--btn2)); box-shadow: var(--glow-aqua); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.wk { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 0 4px; }
.day {
  min-height: 42px; border-radius: 10px; font-family: var(--num); font-weight: 700; font-size: 15px;
  background: var(--opt); border: 1.5px solid var(--border); position: relative;
}
.day.today { border-color: var(--aqua); }
.day.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--aqua); }
.day.past { cursor: not-allowed; color: var(--red); text-decoration: line-through; background: rgba(255, 93, 122, .10); border-color: rgba(255, 93, 122, .35); }
.day.on { color: #fff; border-color: transparent; background: linear-gradient(180deg, var(--wa), var(--wa2)); box-shadow: 0 8px 18px -8px rgba(37, 211, 102, .7); }
.day.on::after { background: #fff; }
.when-picked { margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 700; background: rgba(34, 255, 160, .08); border: 1px solid rgba(34, 255, 160, .30); }
.when-picked[hidden] { display: none; }
.when-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.walt { min-height: 48px; padding: 8px; border-radius: 12px; font-weight: 700; font-size: 13.5px; background: var(--opt); border: 1.5px solid var(--border); }
.walt.on { color: #fff; border-color: transparent; background: linear-gradient(180deg, var(--wa), var(--wa2)); }
.book { scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom)); margin-top: 18px; padding: 16px; border-radius: 16px; background: rgba(37, 211, 102, .07); border: 1px solid rgba(37, 211, 102, .30); }
.book h3 { font-size: 20px; font-weight: 800; }
.book > p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); min-height: 48px; padding: 0 14px;
  border-radius: 12px; border: 1.5px solid var(--border); background: var(--opt);
}
.field input::placeholder { color: var(--faint); }

.wa-btn {
  margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 12px 16px; border-radius: 16px; text-decoration: none; text-align: center;
  font-weight: 800; font-size: 17px; color: #fff;
  background: linear-gradient(180deg, var(--wa) 0%, var(--wa2) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 28px -10px rgba(37, 211, 102, .7);
  transition: transform .15s, filter .15s;
}
.wa-btn:active { transform: scale(.98); }
.wa-btn svg { flex-shrink: 0; }
.wa-btn.is-off { background: #5a6680; box-shadow: none; }

.reset { margin: 14px auto 0; display: block; min-height: 44px; padding: 0 16px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* ─────────── Footer ─────────── */
.foot { max-width: 720px; margin: 34px auto 0; padding: 0 16px 20px; display: grid; justify-items: center; gap: 4px; text-align: center; }
.foot-logo { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 6px; border: 1px solid var(--border-strong); }
.foot > span { font-size: 13px; color: var(--muted); }
.foot .pay-t { color: var(--muted); }
.foot .pay-chip, .foot .pay-chip span { color: #fff; font-size: 14px; }
.foot-tel { color: var(--aqua); font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot small { font-size: 12px; color: var(--muted); }

/* ─────────── Barra fija ─────────── */
body.typing .bar { transform: translateY(110%); }
.bar {
  transition: transform .2s;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #050e29;
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -12px 30px -12px rgba(0, 0, 0, .6);
}
:root[data-theme="light"] .bar { background: rgba(255, 255, 255, .97); box-shadow: 0 -10px 26px -14px rgba(20, 60, 160, .35); }
.bar-in { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar-txt { display: grid; min-width: 0; }
.bar-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.bar-total { font-family: var(--num); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--faint); }
.bar.ready .bar-total { color: var(--green); }
.bar-btn {
  flex-shrink: 0; min-height: 50px; padding: 0 20px; border-radius: 14px; font-weight: 800; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--btn), var(--btn2)); box-shadow: var(--glow-aqua);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
}
.bar.ready .bar-btn { background: linear-gradient(180deg, var(--wa), var(--wa2)); box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .7); }

/* ─────────── Pantallas más grandes ─────────── */
@media (min-width: 560px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 .opt { flex-direction: column; justify-content: center; text-align: center; gap: 2px; }
  .grid-num { grid-template-columns: repeat(7, 1fr); }
  .grid-num .wide { grid-column: span 1; }
  .types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .includes { grid-template-columns: 1.4fr 1fr; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Teléfonos muy estrechos: solo "MCA" junto al logo para que quepan las banderas */
@media (max-width: 359px) { .brand-txt span { display: none; } .lang-opt { padding: 0 8px; } }

/* ════════════════════════════════════════════
   Cristal de color levantado (toda la web)
   Cada botón/tarjeta usa --c (r,g,b): fondo transparente de color,
   borde iluminado y resplandor del mismo color por debajo y por detrás.
   ════════════════════════════════════════════ */
:root { --tint: .22; --tint2: .08; --tint-on: .38; --tint-on2: .20; --glow-a: .55; --glow-on: .9; --in-sub: #c9d6f0; }
:root[data-theme="light"] { --tint: .16; --tint2: .05; --tint-on: .30; --tint-on2: .14; --glow-a: .40; --glow-on: .6; --in-sub: #3d5078; }

.opt, .day, .mtab, .walt, .chips li, .pill, .lang-switch {
  --c: 55, 196, 255;
  background: linear-gradient(160deg, rgba(var(--c), var(--tint)), rgba(var(--c), var(--tint2)));
  border: 1.5px solid rgba(var(--c), .45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .22) inset,
    0 14px 28px -14px rgba(var(--c), var(--glow-a)),
    0 4px 10px -6px rgba(0, 0, 0, .45);
  transition: transform .15s, box-shadow .2s, border-color .2s, background .2s;
}
.opt { transform: translateY(-2px); }
.opt:active, .day:active, .mtab:active, .walt:active { transform: translateY(0) scale(.97); }
@media (hover: hover) {
  .opt:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 20px 34px -14px rgba(var(--c), var(--glow-on)), 0 6px 14px -8px rgba(0, 0, 0, .45); }
}
.opt.on, .day.on, .mtab.on, .walt.on, .lang-opt.on {
  color: var(--text);
  background: linear-gradient(160deg, rgba(var(--c), var(--tint-on)), rgba(var(--c), var(--tint-on2)));
  border-color: rgba(var(--c), 1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .3) inset,
    0 0 0 1px rgba(var(--c), .9),
    0 18px 36px -12px rgba(var(--c), var(--glow-on)),
    0 0 26px -4px rgba(var(--c), calc(var(--glow-a) * .8));
}
.opt .o-sub, .opt .t-tag, .opt .t-from { color: var(--in-sub); }

/* Colores por paso */
.size-1 { --c: 55, 196, 255; }
.size-2 { --c: 139, 123, 255; }
.type-standard { --c: 55, 196, 255; }
.type-deep { --c: 139, 123, 255; }
.type-post { --c: 255, 159, 28; }
.type-airbnb { --c: 34, 220, 150; }
#bedGrid .opt { --c: 61, 125, 255; }
#bathGrid .opt { --c: 45, 212, 191; }
#cleanerGrid .opt { --c: 139, 123, 255; }
.day { --c: 61, 125, 255; }
.day.on { --c: 34, 220, 150; }
.walt[data-when="asap"] { --c: 255, 159, 28; }
.walt[data-when="any"] { --c: 34, 220, 150; }
.chips li:nth-child(2) { --c: 139, 123, 255; }
.chips li:nth-child(3) { --c: 255, 159, 28; }
.chips li:nth-child(4) { --c: 34, 220, 150; }

/* Días pasados: siguen en rojo y planos (no se pueden tocar) */
.day.past { --c: 255, 93, 122; box-shadow: none; background: rgba(255, 93, 122, .10); border-color: rgba(255, 93, 122, .35); }
:root[data-theme="light"] .day.past { color: #b3163c; }

/* Selector de idioma: la cápsula es de cristal y el idioma activo brilla */
.lang-opt { --c: 61, 125, 255; background: none; border: 1.5px solid transparent; }
.lang-opt.on { color: var(--text); }

/* Tamaño: dos tarjetas grandes lado a lado */
.grid-size { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-size .opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 118px; padding: 16px 10px; }
.grid-size .o-ico { font-size: 30px; margin-bottom: 6px; }
.grid-size .o-main { font-size: 16px; }

/* Las tarjetas se separan un poco más para que se vea el resplandor */
.types { gap: 14px; }
.grid-num, .grid-2 { gap: 12px; }
.cal { gap: 6px; }

/* Marca ✓ en lo elegido: el estado se ve aunque el color sea claro */
.opt.on::after, .day.on::before, .walt.on::after {
  content: "✓"; position: absolute; top: -8px; left: -8px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; line-height: 1; color: #fff;
  background: var(--btn); border: 2px solid var(--card-solid); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .5);
}
.walt { position: relative; }
.day.on::before { top: -7px; left: -7px; width: 18px; height: 18px; font-size: 11px; }
.day.past { color: #ff8da1; }
:root[data-theme="light"] .day.past { color: #b3163c; }

/* Frase principal del hero: letra editorial premium, más grande y en dorado */
.hero-lead {
  margin: 16px auto 0; max-width: 520px;
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 600;
  font-size: clamp(22px, 6.2vw, 30px); line-height: 1.22; letter-spacing: -.005em;
  color: #f5d58a; text-shadow: 0 0 22px rgba(245, 213, 138, .28);
}
:root[data-theme="light"] .hero-lead { color: #8a4700; text-shadow: none; }
.hero-lead + .hero-sub { margin-top: 10px; font-size: 15px; }

/* Métodos de pago */
.pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 700; }
.result .pay { justify-content: flex-start; }
.pay-t { color: var(--muted); }
.pay-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; color: #fff; font-weight: 800; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); }
.pay-chip.zelle { background: #6d1ed4; box-shadow: 0 10px 22px -10px rgba(109, 30, 212, .8); }
.pay-chip.cash { background: #0f7a3c; box-shadow: 0 10px 22px -10px rgba(15, 122, 60, .8); }

/* ─────────── Bono recurrente ─────────── */
.bonus {
  border: 1.5px solid rgba(255, 207, 51, .55);
  background: linear-gradient(150deg, rgba(255, 207, 51, .14), rgba(255, 159, 28, .05)), var(--card);
  box-shadow: var(--shadow), 0 18px 40px -18px rgba(255, 190, 40, .55);
}
:root[data-theme="light"] .bonus { border-color: rgba(184, 110, 0, .45); background: linear-gradient(150deg, #fff6df, #ffffff); }
.bonus-ico { flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: linear-gradient(135deg, #ffcf33, #ff9f1c); box-shadow: 0 8px 20px -8px rgba(255, 170, 30, .8); }
.bonus .card-hd { align-items: flex-start; padding-right: 64px; }
.bonus .card-hd p { font-size: 14px; color: var(--text); opacity: 1; margin-top: 2px; }
.bonus-badge {
  position: absolute; top: 14px; right: 14px; padding: 5px 10px; border-radius: 999px;
  font-family: var(--num); font-weight: 700; font-size: 13px; color: #1b1300;
  background: linear-gradient(90deg, #ffcf33, #ff9f1c); box-shadow: 0 8px 18px -8px rgba(255, 170, 30, .9);
}
:root[data-theme="light"] .bonus-badge { color: #fff; background: #a34d00; }
.bonus-ask { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.grid-freq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .grid-freq { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid-freq .opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.grid-freq .opt[data-freq="once"] { --c: 120, 150, 200; }
.grid-freq .opt { --c: 255, 179, 40; min-height: 52px; padding: 10px 6px; }
.grid-freq .o-main { font-size: 13.5px; line-height: 1.25; }

/* ════════════════════════════════════════════
   ESCRITORIO (≥ 1024 px): pasos a la izquierda y el paquete fijo a la derecha
   ════════════════════════════════════════════ */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .bar { display: none; }
  .top, .foot { max-width: 1200px; padding-left: 32px; padding-right: 32px; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 64px; }
  .hero h1 span, .hero h1 em { display: inline; }
  .hero-lead { font-size: 32px; max-width: 760px; }
  .wrap {
    max-width: 1200px; padding: 0 32px;
    grid-template-columns: minmax(0, 1fr) 420px; column-gap: 28px; row-gap: 18px; align-items: start;
  }
  .wrap > .card:not(.result), .wrap > .foot { grid-column: 1; }
  .result {
    grid-column: 2; grid-row: 1 / span 8;
    position: sticky; top: 16px;
  }
  .card { padding: 26px; }
  .types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .type-opt { min-height: 170px; }
  .grid-size .opt { min-height: 130px; }
  .grid-num { grid-template-columns: repeat(7, 1fr); }
  .grid-num .wide { grid-column: span 1; }
  .foot { margin-top: 24px; padding-left: 0; padding-right: 0; max-width: none; }
}

/* Malla de puntos (canvas fijo detrás de todo): el contenido va por delante */
.top, .wrap, .foot { position: relative; z-index: 1; }

/* Escritorio estrecho: 4 tipos no caben con palabras largas en español → 2 columnas */
@media (min-width: 1024px) and (max-width: 1180px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t-name { overflow-wrap: anywhere; hyphens: auto; }
/* El pie en móvil sigue centrado dentro de la columna */
.wrap > .foot { width: 100%; }

/* Cristal de color SOBRE base opaca en lo que flota directamente sobre la malla (arriba del todo) */
.chips li, .pill, .lang-switch {
  background: linear-gradient(160deg, rgba(var(--c), var(--tint)), rgba(var(--c), var(--tint2))), var(--card-solid);
}

/* Tarjeta de día + agendar: sin el margen extra que tenía dentro del paquete */
.book-card .when { margin-top: 0; }
/* Escritorio con pantalla muy baja: si el recibo no cabe, que tenga su propio scroll como último recurso */
@media (min-width: 1024px) and (max-height: 740px) {
  .result { max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; }
}

/* Escritorio: recibo compacto para que quepa entero sin scroll propio */
@media (min-width: 1024px) {
  .result { padding: 22px 24px; }
  .result .summary { margin-top: 10px; }
  .result .summary div { padding: 7px 0; font-size: 13.5px; }
  .result .supplies { margin-top: 12px; padding: 10px 12px; font-size: 13px; }
  .result .reset { margin-top: 6px; }
}
