/* =====================================================================
   NOVA GIFTS · estilo "vidrio navideño"
   Noche de pino con arcos de luz roja, dorada y verde; paneles de vidrio
   esmerilado; detalles de papel de regalo, cinta dorada y papel madera.
   ===================================================================== */
:root {
  --night: #06170F;
  --night-2: #0B2A21;
  --pine: #17402F;
  --red: #D23A33;
  --red-dk: #8E1B1F;
  --gold: #F0C24F;
  --gold-dk: #B8871F;
  --snow: #FFFFFF;
  --frost: #D4E6DC;
  --mute: rgba(255,255,255,.62);
  --kraft: #DDB98C;
  --ink: #2B1B0F;

  --glass: linear-gradient(140deg, rgba(255,255,255,.13), rgba(255,255,255,.035) 60%);
  --glass-strong: linear-gradient(140deg, rgba(255,255,255,.18), rgba(255,255,255,.06) 60%);
  --glass-line: rgba(255,255,255,.16);
  --glass-hi: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.04);
  --glass-shadow: 0 24px 60px -18px rgba(0,0,0,.55);
  --blur: blur(22px) saturate(160%);

  --display: "Grandstander", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
  --r-sm: 14px;
  --side-w: 256px;
  --side-mini: 86px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font: 400 1rem/1.6 var(--body); color: var(--snow);
  background: radial-gradient(140% 90% at 70% 0%, var(--night-2) 0%, var(--night) 60%);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg { width: 22px; height: 22px; flex: none; }

/* ---------- Cielo: arcos de luz detrás del vidrio ---------- */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.arc { position: absolute; border-radius: 50%; will-change: transform; }
/* "planeta" verde pino abajo, con borde iluminado en dorado */
.a1 {
  width: 190vmax; height: 190vmax; left: -60vmax; top: 58vh;
  background: radial-gradient(closest-side, #0E3B2E 70%, #145442 92%, #1F6B52 100%);
  box-shadow: 0 -2px 0 rgba(255,226,150,.55), 0 -26px 90px rgba(240,194,79,.32), inset 0 30px 80px rgba(240,194,79,.18);
  animation: drift 26s ease-in-out infinite alternate;
}
/* barrido rojo en diagonal arriba a la derecha */
.a2 {
  width: 120vmax; height: 120vmax; right: -78vmax; top: -86vmax;
  background: radial-gradient(closest-side, transparent 78%, rgba(210,58,51,.0) 79%, rgba(210,58,51,.75) 92%, rgba(255,120,100,.95) 96%, transparent 100%);
  filter: blur(6px);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
/* resplandor dorado suave */
.a3 {
  width: 70vmax; height: 70vmax; left: -20vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(240,194,79,.18), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(2vmax, -1.5vmax, 0) rotate(4deg); } }

#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* ---------- Guirnalda ---------- */
.garland {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; pointer-events: none;
  display: flex; justify-content: space-between; padding: 0 1rem; height: 30px;
  background: radial-gradient(120% 60px at 50% -30px, transparent 58%, rgba(0,0,0,.55) 59%, rgba(0,0,0,.55) 61%, transparent 62%) repeat-x;
  background-size: 140px 40px;
}
.bulb {
  width: 10px; height: 15px; margin-top: calc(6px + (var(--i) * 7px % 11px));
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; position: relative;
  animation: twinkle 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.37s);
}
.bulb::before { content: ""; position: absolute; top: -4px; left: 2.5px; width: 5px; height: 5px; background: #33433b; border-radius: 2px; }
.b0 { background: #FF4D4D; --glow: #FF4D4D; } .b1 { background: #FFD34D; --glow: #FFD34D; }
.b2 { background: #5CE08A; --glow: #5CE08A; } .b3 { background: #6EC6FF; --glow: #6EC6FF; }
@keyframes twinkle { 0%, 100% { opacity: 1; box-shadow: 0 0 12px 3px var(--glow); } 50% { opacity: .35; box-shadow: 0 0 2px 0 var(--glow); } }

/* ---------- Vidrio base ---------- */
.glass, .panel, .glass-card, .pick-face, .reveal-card, .confirm, .notice, .toast, .tabbar, .sidebar {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .panel, .glass-card, .pick-face, .reveal-card, .confirm, .notice, .toast, .tabbar, .sidebar { background: rgba(17,52,41,.94); }
}

/* ---------- Estructura ---------- */
.shell { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr; min-height: 100vh; padding-top: 30px; }
.wrap { position: relative; z-index: 2; width: 100%; max-width: 1120px; margin: 0 auto; padding: 1.4rem clamp(1rem, 3vw, 2.2rem) 4rem; min-width: 0; }
.wrap.solo { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding-top: 3rem; }

/* ---------- Menú lateral de vidrio (PC) ---------- */
.sidebar {
  position: sticky; top: 44px; margin: 14px 0 14px 16px; height: calc(100vh - 58px);
  width: var(--side-w); border-radius: var(--r); padding: 14px 12px;
  display: flex; flex-direction: column; gap: 6px; overflow: hidden;
  transition: width .35s cubic-bezier(.3,1.2,.4,1);
}
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 6px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #FF5F57; box-shadow: 0 0 8px #FF5F57; }
.dots i:nth-child(2) { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.dots i:nth-child(3) { background: #3DD47A; box-shadow: 0 0 8px #3DD47A; }
.collapse {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--snow); background: rgba(255,255,255,.08); border: 1px solid var(--glass-line); padding: 0;
}
.collapse svg { width: 16px; height: 16px; transition: transform .35s; }
.brand { font: 800 1.55rem/1 var(--display); color: var(--snow); text-decoration: none; }
.brand em { font-style: normal; font-weight: 500; color: var(--gold); margin-left: .12em; }
.side-brand { padding: 8px 8px 12px; display: block; white-space: nowrap; }
.side-brand .full { background: linear-gradient(90deg, #fff 30%, var(--gold)); -webkit-background-clip: text; background-clip: text; }
.side-brand .mini { display: none; }
.who { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-sm); background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.07); margin-bottom: 10px; }
.avatar {
  width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font: 800 1.05rem var(--display); color: var(--ink);
  background: linear-gradient(140deg, #FFE08A, var(--gold-dk));
}
.avatar.small { width: 34px; height: 34px; border-radius: 11px; }
.who-text { display: grid; line-height: 1.2; min-width: 0; white-space: nowrap; }
.who-text b { overflow: hidden; text-overflow: ellipsis; }
.who-text small { color: var(--mute); }
.side-nav { display: grid; gap: 4px; }
.side-nav a, .side-out button {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px;
  border-radius: 14px; color: var(--frost); text-decoration: none; font-weight: 700; white-space: nowrap;
  border: 1px solid transparent; transition: background .2s, color .2s;
}
.side-nav a:hover, .side-out button:hover { background: rgba(255,255,255,.07); color: var(--snow); }
.side-nav a.on {
  color: var(--snow); background: linear-gradient(140deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border-color: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.side-nav a.on::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 22px; margin-top: -11px;
  border-radius: 0 4px 4px 0; background: var(--gold); box-shadow: 0 0 14px var(--gold);
}
.pill { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; font-size: .75rem; background: var(--red); color: #fff; box-shadow: 0 0 10px rgba(210,58,51,.7); }
.side-out { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px; }
.side-out button { width: 100%; background: none; font: inherit; font-weight: 700; cursor: pointer; }

/* menú achicado: solo íconos (como el video) */
html.nav-mini .sidebar { width: var(--side-mini); }
html.nav-mini .collapse svg { transform: rotate(180deg); }
html.nav-mini .side-top { flex-direction: column; gap: 10px; }
html.nav-mini .side-brand .full, html.nav-mini .who-text, html.nav-mini .side-nav span, html.nav-mini .side-out span { display: none; }
html.nav-mini .side-brand { text-align: center; padding-inline: 0; }
html.nav-mini .side-brand .mini { display: inline; }
html.nav-mini .who { justify-content: center; padding: 8px 0; }
html.nav-mini .side-nav a, html.nav-mini .side-out button { justify-content: center; padding: 0; }
html.nav-mini .pill { position: absolute; top: 4px; right: 8px; min-width: 9px; height: 9px; padding: 0; font-size: 0; }

/* ---------- Encabezado compacto (celular / tablet) ---------- */
.mobile-top { display: none; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.mobile-top .brand { margin-right: auto; }
.mobile-top form { margin: 0; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px 0 10px; border-radius: 99px; cursor: pointer;
  font: 700 .9rem var(--body); color: var(--snow); background: rgba(255,255,255,.08); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.chip-btn svg { width: 18px; height: 18px; }

/* ---------- Barra de pestañas de vidrio con curva luminosa ---------- */
.tabbar {
  --h: 66px;
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 20px)); height: var(--h);
  display: none; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: stretch;
  border-radius: 999px; padding: 0 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
}
.tab-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tab-stroke { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(240,194,79,.9)) drop-shadow(0 0 10px rgba(240,194,79,.5)); }
.tab-fill { fill: url(#tab-glow); }
.tab {
  position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 3px;
  text-decoration: none; color: var(--mute); font: 700 .7rem/1 var(--body); padding-top: 2px;
  transition: color .25s;
}
.tab-ico { position: relative; display: grid; place-items: center; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.tab.on { color: var(--snow); }
.tab.on .tab-ico { transform: translateY(-3px); color: var(--gold); filter: drop-shadow(0 0 8px rgba(240,194,79,.7)); }
.tab:active .tab-ico { transform: scale(.88); }
.tab-label { white-space: nowrap; }
.dot { position: absolute; top: -2px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: #FF5A4E; box-shadow: 0 0 0 2px rgba(6,23,15,.8), 0 0 10px #FF5A4E; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.25); } }

/* ---------- Tipografía ---------- */
.display { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0 0 .5rem; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.display.big { font-size: clamp(2.3rem, 7vw, 4.6rem); text-shadow: 0 4px 0 var(--red-dk), 0 0 40px rgba(240,194,79,.25); }
h2 { font: 700 1.25rem/1.25 var(--display); margin: 0 0 .6rem; }
h3 { font: 700 1.08rem/1.25 var(--display); margin: 0 0 .25rem; }
.lead { font-size: 1.06rem; color: var(--frost); max-width: 62ch; margin: 0 0 1rem; }
.fine { font-size: .9rem; color: var(--mute); }
.mt { margin-top: 1.5rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px;
  font: 800 1rem/1 var(--body); padding: .85rem 1.35rem; border-radius: 14px; border: 0; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .2s, filter .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.red {
  color: #fff; background: linear-gradient(180deg, #E8524A, var(--red) 55%, #B42A2A);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 26px -8px rgba(210,58,51,.9);
}
.btn.red:hover:not(:disabled) { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 32px -6px rgba(210,58,51,1); }
.btn.gold { color: var(--ink); background: linear-gradient(180deg, #FFE08A, var(--gold) 55%, var(--gold-dk)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 26px -10px rgba(240,194,79,.9); }
.btn.ghost { color: var(--snow); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.small { min-height: 38px; padding: .5rem .9rem; font-size: .88rem; border-radius: 11px; }
.btn.wide { width: 100%; }
.link-btn { background: none; border: 0; color: var(--frost); font: inherit; font-weight: 700; cursor: pointer; padding: .3rem .45rem; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }
.link-btn:hover { color: var(--snow); }
.link-btn.danger { color: #FF9C94; }

/* ---------- Avisos ---------- */
.toast { padding: .85rem 1.1rem; border-radius: var(--r-sm); margin: 0 0 1rem; font-weight: 700; animation: drop .45s cubic-bezier(.2,1.4,.4,1); }
.toast.ok { border-left: 4px solid var(--gold); }
.toast.error { border-left: 4px solid #FF7A7A; background: linear-gradient(140deg, rgba(210,58,51,.35), rgba(210,58,51,.12)); }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } }

/* ---------- Formularios ---------- */
.form { display: grid; gap: .95rem; }
.form label { display: grid; gap: .35rem; font-weight: 700; font-size: .9rem; color: var(--frost); }
input, textarea, select {
  font: inherit; font-size: 1rem; color: var(--snow); width: 100%; min-height: 48px;
  background: rgba(0,0,0,.26); border: 1px solid rgba(255,255,255,.14); border-radius: 13px; padding: .7rem .9rem;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.25); transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { min-height: 0; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.38); }
input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(240,194,79,.8); background: rgba(0,0,0,.32); box-shadow: inset 0 2px 6px rgba(0,0,0,.25), 0 0 0 4px rgba(240,194,79,.15); }
select option { color: var(--ink); }
input[type=file] { padding: .55rem; color: var(--frost); }
input[type=file]::file-selector-button { font: 700 .85rem var(--body); border: 0; border-radius: 9px; padding: .45rem .8rem; margin-right: .7rem; background: rgba(255,255,255,.14); color: var(--snow); cursor: pointer; }
input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(1); }
.field { position: relative; display: block; }
.field > svg { position: absolute; left: 13px; top: 50%; margin-top: -10px; width: 20px; height: 20px; color: rgba(255,255,255,.5); pointer-events: none; }
.field input { padding-left: 2.7rem; }
.field input:focus ~ svg, .field:focus-within > svg { color: var(--gold); }
.peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; cursor: pointer; opacity: .6; font-size: 1rem; }
.peek:hover { opacity: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
.span2 { grid-column: span 2; }
.inline { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: .5rem 0; }
.inline input { flex: 1 1 240px; width: auto; }
.inline select { width: auto; flex: 1 1 140px; }

/* ---------- Tarjeta de acceso: vidrio con esquinas cortadas y giro 3D ---------- */
.auth-card { width: min(460px, 100%); perspective: 1400px; }
.flip { display: grid; }
.face { grid-area: 1 / 1; border-radius: 28px; }
.glass-card {
  position: relative; padding: 2.4rem 2rem 2rem;
  clip-path: polygon(46px 0, 100% 0, 100% calc(100% - 46px), calc(100% - 46px) 100%, 0 100%, 0 46px);
  background: var(--glass-strong);
}
.glass-card::after { /* brillo diagonal del vidrio */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.08) 42%, transparent 52%);
}
.corner { position: absolute; width: 46px; height: 46px; z-index: 1; }
.corner.tl { top: 0; left: 0; background: linear-gradient(135deg, var(--gold) 0 50%, transparent 50%); opacity: .9; filter: drop-shadow(0 0 10px rgba(240,194,79,.7)); }
.corner.br { bottom: 0; right: 0; background: linear-gradient(315deg, var(--red) 0 50%, transparent 50%); opacity: .9; filter: drop-shadow(0 0 10px rgba(210,58,51,.8)); }
.front { display: grid; place-items: center; align-content: center; gap: 1rem; visibility: hidden; }
.logo-mark { width: 120px; height: 120px; filter: drop-shadow(0 12px 30px rgba(210,58,51,.6)); }
.logo-word { font: 800 2rem var(--display); }
.logo-word em { font-style: normal; color: var(--gold); font-weight: 500; margin-left: .1em; }
.auth-card .display { font-size: clamp(1.7rem, 5vw, 2.2rem); }
.auth-card .lead { font-size: 1rem; }
.tag-to { font-family: var(--display); margin: 0 0 .4rem; color: var(--gold); }

.flip-in .front { visibility: visible; animation: faceOut 1.9s cubic-bezier(.55,0,.25,1) forwards; }
.flip-in .back { animation: faceIn 1.9s cubic-bezier(.55,0,.25,1) backwards; }
.flip-in.done .front { visibility: hidden; animation: none; }
@keyframes faceOut {
  0%   { transform: perspective(1400px) scale(.88); opacity: 0; }
  18%  { transform: perspective(1400px) scale(1); opacity: 1; }
  50%  { transform: perspective(1400px) rotateY(0); opacity: 1; }
  70%  { transform: perspective(1400px) rotateY(90deg); opacity: 1; }
  70.1%, 100% { transform: perspective(1400px) rotateY(90deg); opacity: 0; }
}
@keyframes faceIn {
  0%, 70% { transform: perspective(1400px) rotateY(-90deg); opacity: 0; }
  70.1%   { opacity: 1; }
  100%    { transform: perspective(1400px) rotateY(0); opacity: 1; }
}

/* ---------- Paneles ---------- */
.panel { border-radius: var(--r); padding: 1.45rem; margin-bottom: 1rem; position: relative; }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.board.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 1rem; }
.board .panel { margin-bottom: 0; }
.panel.feature {
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(100% - 96px), rgba(240,194,79,.95) calc(100% - 96px) calc(100% - 72px), transparent calc(100% - 72px)),
    linear-gradient(140deg, rgba(232,82,74,.62), rgba(142,27,31,.55));
  border-color: rgba(255,160,150,.35);
}
.panel.feature::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent); pointer-events: none; }
.panel.feature .btn.red { background: #fff; color: var(--red-dk); box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); }
.panel.feature p { max-width: 46ch; }
.name-tag { font: 800 clamp(1.9rem, 5vw, 2.8rem)/1.1 var(--display); margin: .2rem 0 .5rem; }
.budget { font: 800 1.6rem/1.2 var(--display); color: var(--gold); margin: 0; text-shadow: 0 0 20px rgba(240,194,79,.35); }
.badge-q { background: var(--gold); color: var(--ink); display: inline-block; padding: .25rem .75rem; border-radius: 999px; font-weight: 800; }
.progress { height: 10px; background: rgba(0,0,0,.3); border-radius: 99px; overflow: hidden; margin-top: .6rem; box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
.progress span { display: block; height: 100%; border-radius: 99px; background: repeating-linear-gradient(45deg, var(--red) 0 10px, #fff 10px 20px); box-shadow: 0 0 12px rgba(210,58,51,.6); }
.empty p { margin: 0; }
.msg-panel { max-width: 560px; margin: 3rem auto; }

/* ---------- Inicio ---------- */
.hero { text-align: center; padding: .6rem 0 2rem; }
.hello { font: 600 1.1rem var(--display); color: var(--gold); margin: 0 0 .3rem; }
.countdown { display: flex; justify-content: center; gap: clamp(.6rem, 3vw, 1.6rem); margin-top: 2.6rem; }
.bauble {
  --c: var(--red); position: relative; width: clamp(70px, 17vw, 104px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.7) 0 6%, rgba(255,255,255,.15) 18%, transparent 34%), var(--c);
  box-shadow: inset -8px -12px 0 rgba(0,0,0,.2), inset 0 0 0 1px rgba(255,255,255,.2), 0 14px 30px rgba(0,0,0,.4), 0 0 28px -4px var(--c);
  transform-origin: 50% -30px; animation: sway 4s ease-in-out infinite;
}
.bauble:nth-child(2) { animation-delay: -1s; } .bauble:nth-child(3) { animation-delay: -2s; } .bauble:nth-child(4) { animation-delay: -3s; }
.bauble::before { content: ""; position: absolute; top: -10px; left: 50%; width: 22px; height: 12px; margin-left: -11px; background: linear-gradient(#FFE08A, var(--gold-dk)); border-radius: 4px 4px 2px 2px; }
.bauble::after { content: ""; position: absolute; top: -30px; left: 50%; width: 2px; height: 20px; background: rgba(255,255,255,.35); }
.bauble.g { --c: #2E9A5F; } .bauble.y { --c: #C9921E; }
.bauble b { font: 800 clamp(1.45rem, 5vw, 2.2rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.bauble small { font-size: .76rem; opacity: .9; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.countdown-done { font: 700 1.3rem var(--display); color: var(--gold); }

/* ---------- Elegir destinatario ---------- */
.page-head { padding: .4rem 0 1.2rem; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick-face {
  display: grid; justify-items: center; gap: .6rem; padding: 1.3rem .8rem; cursor: pointer; border-radius: var(--r);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pick-face:hover { transform: translateY(-3px); }
.pick input:focus-visible + .pick-face { outline: 3px solid var(--gold); outline-offset: 3px; }
.pick input:checked + .pick-face { border-color: var(--gold); transform: translateY(-4px) rotate(-1.5deg); box-shadow: var(--glass-hi), 0 0 0 1px var(--gold), 0 0 30px -4px rgba(240,194,79,.7); }
.pick-ornament {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 800 1.7rem var(--display);
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.6) 0 7%, transparent 30%), var(--red); box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.pick:nth-child(3n) .pick-ornament { background-color: #2E9A5F; }
.pick:nth-child(3n+1) .pick-ornament { background-color: #C9921E; }
.pick-name { font-weight: 800; text-align: center; }
.pick-actions { grid-column: 1 / -1; }

/* ---------- Diálogos ---------- */
.confirm, .notice { border-radius: var(--r); padding: 1.9rem; max-width: 420px; width: calc(100% - 2rem); color: var(--snow); background: linear-gradient(150deg, rgba(40,90,70,.75), rgba(10,35,27,.85)); }
.confirm::backdrop, .notice::backdrop { background: rgba(3,12,8,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.row { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; margin-top: 1rem; }
.row.start { justify-content: flex-start; align-items: center; }
.row.start form { margin: 0; }
.notice { text-align: center; overflow: visible; padding-top: 2.4rem; }
.notice[open] { animation: pop .6s cubic-bezier(.3,1.6,.5,1); }
.notice .row { justify-content: center; }
@keyframes pop { from { transform: scale(.6) translateY(30px); opacity: 0; } }
.envelope { position: relative; width: 120px; height: 80px; margin: -4.6rem auto 1rem; background: #fff; border-radius: 8px; box-shadow: 0 14px 30px rgba(0,0,0,.4), 0 0 40px rgba(240,194,79,.35); animation: bounce 1.4s ease-in-out infinite; }
.envelope .flap { position: absolute; inset: 0 0 auto; height: 50px; background: #EDE6DA; clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 8px 8px 0 0; }
.envelope .seal { position: absolute; left: 50%; top: 36px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--gold); font-weight: 800; }
@keyframes bounce { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }

/* ---------- Deseos: etiquetas de papel madera colgadas ---------- */
.add-wish summary { font: 700 1.2rem var(--display); cursor: pointer; list-style: none; display: flex; align-items: center; gap: .5rem; }
.add-wish summary::-webkit-details-marker { display: none; }
.add-wish summary::before { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--gold); color: var(--ink); font-weight: 800; transition: transform .25s; }
.add-wish[open] summary::before { transform: rotate(45deg); }
.add-wish[open] summary { margin-bottom: 1rem; }
.wishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2.4rem 1.2rem; padding-top: 1.6rem; margin-bottom: 1.5rem; }
.wish {
  position: relative; color: var(--ink);
  background: linear-gradient(160deg, rgba(232,205,165,.96), rgba(214,178,132,.93));
  background-image: repeating-linear-gradient(115deg, rgba(122,85,50,.06) 0 2px, transparent 2px 7px), linear-gradient(160deg, rgba(232,205,165,.96), rgba(214,178,132,.93));
  border-radius: 6px 6px var(--r) var(--r);
  clip-path: polygon(16% 0, 84% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  padding: 1.6rem .9rem 1rem; transform-origin: 50% -20px; transition: transform .3s cubic-bezier(.3,1.6,.5,1);
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.4));
}
.wish:nth-child(odd) { transform: rotate(-1.2deg); } .wish:nth-child(even) { transform: rotate(1.2deg); }
.wish:hover { transform: rotate(0); }
.wish::before { content: ""; position: absolute; top: 10px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 3px var(--gold); }
.wish-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; display: block; background: #FFFDF8; }
.wish-img.placeholder { display: grid; place-items: center; font-size: 2.6rem; background: rgba(255,255,255,.4); }
.wish-body { padding-top: .7rem; }
.price { font: 800 1.05rem var(--display); color: var(--red-dk); margin: 0; }
.specs, .notes { margin: .2rem 0; font-size: .92rem; }
.notes { color: #5A3F25; }
.wish-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.wish-actions form { margin: 0; }
.wish .btn.ghost { color: var(--ink); background: rgba(255,255,255,.35); box-shadow: inset 0 0 0 1px rgba(43,27,15,.35); }
.wish.is-bought .wish-img { filter: grayscale(.6) opacity(.75); }
.wish.is-bought::after {
  content: "Comprado"; position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg);
  font: 800 1.4rem var(--display); color: var(--red); border: 3px solid var(--red); border-radius: 10px;
  padding: .1rem .7rem; background: rgba(255,253,248,.85); pointer-events: none; animation: stamp .35s cubic-bezier(.3,1.8,.5,1);
}
@keyframes stamp { from { transform: translate(-50%, -50%) rotate(-12deg) scale(2); opacity: 0; } }

/* ---------- Preguntas anónimas ---------- */
.qa { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .8rem; }
.qa li { background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-sm); padding: .85rem 1rem; }
.q { margin: 0; font-weight: 800; }
.q::before { content: "🎅 "; }
.a { margin: .3rem 0 0; color: var(--gold); }
.a::before { content: "↳ "; }

/* ---------- Regalo que se abre ---------- */
.reveal-me { text-align: center; padding: 1rem 0 2rem; }
.reveal-me .lead { margin-inline: auto; }
.giftbox { position: relative; width: 170px; height: 170px; margin: 2.6rem auto .6rem; display: block; background: none; border: 0; cursor: pointer; padding: 0; color: var(--snow); animation: wiggle 2.2s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.giftbox::before { content: ""; position: absolute; left: 50%; bottom: -10px; width: 220px; height: 60px; margin-left: -110px; background: radial-gradient(closest-side, rgba(240,194,79,.45), transparent); }
.giftbox .box { position: absolute; left: 10px; right: 10px; bottom: 0; height: 110px; border-radius: 8px; background: linear-gradient(90deg, transparent 43%, var(--gold) 43% 57%, transparent 57%), linear-gradient(160deg, #E24840, #A82326); box-shadow: inset 0 -10px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.3); }
.giftbox .lid { position: absolute; left: 0; right: 0; top: 34px; height: 34px; border-radius: 8px; z-index: 2; background: linear-gradient(90deg, transparent 43%, #FFD46A 43% 57%, transparent 57%), linear-gradient(160deg, #EE5A50, #C8312F); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); transition: transform .8s cubic-bezier(.3,1.3,.5,1), opacity .8s; }
.giftbox .bow { position: absolute; top: -26px; left: 50%; width: 64px; height: 30px; margin-left: -32px; }
.giftbox .bow::before, .giftbox .bow::after { content: ""; position: absolute; top: 0; width: 30px; height: 26px; border: 7px solid var(--gold); border-radius: 50% 50% 0 50%; }
.giftbox .bow::before { left: 0; transform: rotate(-20deg); }
.giftbox .bow::after { right: 0; transform: scaleX(-1) rotate(-20deg); }
.giftbox .inside { position: absolute; left: 50%; bottom: 60px; z-index: 1; white-space: nowrap; font: 800 2rem/1 var(--display); color: #fff; text-shadow: 0 3px 0 var(--red-dk), 0 0 24px rgba(240,194,79,.9); transform: translate(-50%, 40px) scale(.3); opacity: 0; transition: transform .7s .25s cubic-bezier(.3,1.6,.5,1), opacity .4s .25s; }
.giftbox.open { animation: none; }
.giftbox.open .lid { transform: translate(40px, -120px) rotate(38deg); opacity: 0; }
.giftbox.open .inside { transform: translate(-50%, -64px) scale(1); opacity: 1; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-6deg); } 88% { transform: rotate(6deg); } 92% { transform: rotate(-4deg); } 96% { transform: rotate(3deg); } }
.reveal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.reveal-card { border-radius: var(--r); padding: 1rem; text-align: center; overflow: hidden; }
.reveal-card .to { font: 700 1.1rem var(--display); margin: 0; }
.reveal-card.newest { border-color: var(--gold); box-shadow: var(--glass-hi), 0 0 0 1px var(--gold), 0 0 44px -6px rgba(240,194,79,.7); }
.giftbox.small { transform: scale(.78); margin: 2rem auto 0; }
.giftbox.small .inside { font-size: 1.6rem; }

/* ---------- Organizador ---------- */
.table-wrap { overflow-x: auto; }
.people { width: 100%; border-collapse: collapse; font-size: .95rem; }
.people th, .people td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: middle; }
.people th { font-weight: 700; color: var(--mute); font-size: .85rem; }
.people .actions { display: flex; gap: .2rem; flex-wrap: wrap; }
.people .actions form { margin: 0; }
.ok { color: #8BE3A8; font-weight: 800; }
.chips { list-style: none; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.chips li { background: rgba(255,255,255,.08); border: 1px solid var(--glass-line); border-radius: 999px; padding: .2rem .3rem .2rem .9rem; display: flex; align-items: center; gap: .2rem; }
.chips form { margin: 0; }
.one-by-one { border-color: rgba(240,194,79,.55); box-shadow: var(--glass-hi), var(--glass-shadow), 0 0 40px -16px rgba(240,194,79,.8); }
.rev-meter { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 .4rem; }
.rev-meter span { width: 22px; height: 32px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: rgba(255,255,255,.14); position: relative; }
.rev-meter span::before { content: ""; position: absolute; top: -6px; left: 6px; width: 10px; height: 8px; background: #3a4a42; border-radius: 2px; }
.rev-meter span.lit { background: var(--gold); box-shadow: 0 0 14px 3px rgba(240,194,79,.7); }
.big-btn { font-size: 1.15rem; padding: 1.1rem 1.8rem; margin: .8rem 0; }
.rev-list { margin: 1rem 0; padding-left: 1.4rem; columns: 2; }
.rev-list li { font-weight: 700; }

/* ---------- Confeti ---------- */
.confetti { position: fixed; top: -12px; width: 9px; height: 14px; z-index: 60; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* =====================================================================
   Tamaños de pantalla
   ===================================================================== */

/* Tablet y celular: sin menú lateral, con barra de pestañas abajo */
@media (max-width: 1099px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-top { display: flex; }
  .tabbar { display: grid; }
  .wrap { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .wrap.solo { padding-bottom: 2rem; }
}

/* Tablet: más aire, columnas de 2 */
@media (min-width: 700px) and (max-width: 1099px) {
  .tabbar { --h: 72px; }
  .tab { font-size: .78rem; }
  .tab svg { width: 24px; height: 24px; }
}

/* Inicio en pantallas anchas: tarjeta principal a lo ancho y tres paneles debajo */
@media (min-width: 900px) {
  .board:not(.two) { grid-template-columns: repeat(3, 1fr); }
  .board:not(.two) .panel.feature { grid-column: 1 / -1; }
}

/* Celular */
@media (max-width: 699px) {
  .grid2 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .glass-card { padding: 2.2rem 1.4rem 1.6rem; clip-path: polygon(34px 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%, 0 34px); }
  .corner { width: 34px; height: 34px; }
  .panel { padding: 1.2rem; }
  .wishes { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 2rem .8rem; }
  .pick-grid { grid-template-columns: repeat(2, 1fr); }
  .rev-list { columns: 1; }
  .tab-label { font-size: .66rem; }

  /* Tabla de participantes como tarjetas */
  .people thead { display: none; }
  .people, .people tbody, .people tr, .people td { display: block; width: 100%; }
  .people tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .people td { border: 0; padding: 0; }
  .people td:nth-child(1) { font-weight: 800; font-size: 1.05rem; }
  .people td:nth-child(2) { text-align: right; }
  .people td:nth-child(3)::before { content: "Eligió: "; color: var(--mute); }
  .people td:nth-child(4)::before { content: "Deseos: "; color: var(--mute); }
  .people td:nth-child(n+3) { font-size: .9rem; }
  .people .actions { grid-column: 1 / -1; }
}

@media (max-width: 360px) {
  .tab-label { display: none; }
}

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

/* =====================================================================
   Cierre de listas, estados, regalo o efectivo
   ===================================================================== */
.mt-s { margin-top: .9rem; }
.status {
  display: inline-flex; align-items: center; gap: .35rem; vertical-align: middle;
  font: 800 .78rem/1 var(--body); padding: .38rem .7rem; border-radius: 99px; white-space: nowrap;
  border: 1px solid transparent;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.s-pendiente { color: #FFB4A8; background: rgba(210,58,51,.18); border-color: rgba(255,140,125,.35); }
.s-preparacion { color: #FFE08A; background: rgba(240,194,79,.16); border-color: rgba(240,194,79,.4); }
.s-completada { color: #8BE3A8; background: rgba(61,212,122,.15); border-color: rgba(61,212,122,.4); }
.s-cerrada { color: #CFD8D3; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.s-cerrada::before { box-shadow: none; }
.s-cash { color: #B9E6FF; background: rgba(110,198,255,.14); border-color: rgba(110,198,255,.4); }
h2 .status { margin-left: .4rem; font-size: .72rem; }

.status-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.status-row h2 { margin-bottom: .4rem; }
.status-steps { display: flex; gap: 4px; flex-wrap: wrap; }
.step { font-size: .76rem; font-weight: 700; color: var(--mute); padding: .35rem .65rem; border-radius: 10px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.06); }
.step.past { color: var(--frost); }
.step.on { color: var(--ink); background: var(--gold); box-shadow: 0 0 16px -2px rgba(240,194,79,.8); }
.deadline-line { margin: .8rem 0 .4rem; color: var(--frost); }
.status-line { margin: .2rem 0 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.mini-count { display: flex; gap: .5rem; margin-top: .4rem; }
.mini-count span { display: grid; place-items: center; min-width: 64px; padding: .5rem .4rem; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.mini-count b { font: 800 1.5rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--gold); text-shadow: 0 0 14px rgba(240,194,79,.4); }
.mini-count small { font-size: .7rem; color: var(--mute); margin-top: 2px; }
.mini-count.closed { font-weight: 700; }

.pref fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pref legend { padding: 0; }
.pref-options { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.pref-opt { position: relative; cursor: pointer; }
.pref-opt input { position: absolute; opacity: 0; }
.pref-face {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .8rem; align-items: center;
  height: 100%; padding: 1rem 1.1rem; border-radius: 18px; background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.12); transition: border-color .2s, box-shadow .2s, background .2s, transform .2s;
}
.pref-face b { font: 700 1.1rem var(--display); }
.pref-face small { grid-column: 2; color: var(--mute); font-size: .88rem; line-height: 1.4; }
.pref-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: rgba(255,255,255,.08); }
.pref-opt:hover .pref-face { background: rgba(255,255,255,.06); }
.pref-opt input:checked + .pref-face { border-color: var(--gold); background: linear-gradient(140deg, rgba(240,194,79,.18), rgba(240,194,79,.04)); box-shadow: 0 0 0 1px var(--gold), 0 0 30px -8px rgba(240,194,79,.8); }
.pref-opt input:checked + .pref-face .pref-ico { background: var(--gold); }
.pref-opt input:focus-visible + .pref-face { outline: 3px solid var(--gold); outline-offset: 3px; }
.pref fieldset:disabled .pref-opt { cursor: not-allowed; opacity: .6; }

.cash-card { margin-top: 1rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: linear-gradient(140deg, rgba(110,198,255,.14), rgba(61,212,122,.08)); border: 1px solid rgba(185,230,255,.3); }
.cash-card .budget { font-size: 2rem; }
.cash-card.big { text-align: center; padding: 2rem 1.4rem; margin-top: 0; }
.cash-card.big .budget { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.cash-card.big form { margin-top: 1rem; }
.cash-card.is-ready { border-color: var(--gold); box-shadow: var(--glass-hi), 0 0 40px -10px rgba(240,194,79,.8); }
.envelope-ico { font-size: 3rem; display: block; animation: bounce 1.6s ease-in-out infinite; }
.fx { margin: .2rem 0; font-weight: 700; color: var(--frost); }
.price-big { font: 800 1.3rem var(--display); color: var(--gold); margin: 0; }

.calc { margin: .2rem 0 0; padding: .7rem .9rem; border-radius: 12px; background: rgba(240,194,79,.12); border: 1px dashed rgba(240,194,79,.5); font-weight: 700; color: #FFE08A; }
.status-summary { list-style: none; padding: 0; margin: .4rem 0 .6rem; display: flex; gap: .5rem 1rem; flex-wrap: wrap; }
.status-summary li { display: flex; align-items: center; gap: .4rem; }
.pref-tag, .ext { display: block; margin-top: .3rem; color: var(--mute); font-size: .78rem; }
.ext { color: #FFE08A; }
.ext-menu { position: relative; }
.ext-menu summary { list-style: none; display: inline-block; }
.ext-menu summary::-webkit-details-marker { display: none; }
.ext-pop { position: absolute; z-index: 5; right: 0; top: 100%; display: flex; gap: .4rem; align-items: center; padding: .5rem; border-radius: 14px; background: rgba(12,40,31,.96); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
.ext-pop form { margin: 0; }

@media (max-width: 699px) {
  .pref-options { grid-template-columns: 1fr; }
  .status-steps .step { font-size: .7rem; padding: .3rem .5rem; }
  .people td:nth-child(5) { grid-column: 1 / -1; }
  .ext-pop { left: 0; right: auto; }
}

/* =====================================================================
   Rendimiento y respuesta inmediata
   ===================================================================== */
/* Barra dorada de carga al cambiar de pantalla */
.page-loader {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100; pointer-events: none;
  background: linear-gradient(90deg, var(--gold), #fff3c4, var(--gold));
  box-shadow: 0 0 12px rgba(240,194,79,.9);
}
body.navigating .page-loader { animation: loadbar 2.5s cubic-bezier(.1,.7,.2,1) forwards; }
body.navigating .wrap { opacity: .65; transition: opacity .2s .15s; }
@keyframes loadbar { 0% { width: 0; } 30% { width: 55%; } 100% { width: 92%; } }

/* En celulares y tablets: vidrio más liviano y fondo quieto (menos trabajo para el teléfono) */
@media (max-width: 1099px) {
  :root { --blur: blur(12px) saturate(150%); }
  .arc { animation: none; }
  .a2 { filter: none; }
  .glass-card::after { display: none; }
}

/* Abierta como app desde la pantalla de inicio: espacio para la barra de estado y la muesca */
@media (display-mode: standalone) {
  .garland { top: env(safe-area-inset-top); }
  .shell { padding-top: calc(30px + env(safe-area-inset-top)); }
  .wrap.solo { padding-top: calc(3rem + env(safe-area-inset-top)); }
}

/* ---------- Agregar a la pantalla de inicio ---------- */
.install-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.1rem; align-items: start;
  border-color: rgba(240,194,79,.45);
  background: linear-gradient(140deg, rgba(240,194,79,.14), rgba(255,255,255,.04) 60%);
}
.install-card[hidden] { display: none; }
.install-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.install-body h2 { margin-bottom: .2rem; }
.install-body .fine { margin: 0 0 .7rem; }
.install-steps { margin: 0 0 .6rem; padding-left: 1.3rem; display: grid; gap: .45rem; }
.install-steps[hidden] { display: none; }
.install-steps li::marker { color: var(--gold); font-weight: 800; }
.key {
  display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 5px; margin: 0 2px;
  vertical-align: middle; border-radius: 8px; background: rgba(255,255,255,.12); border: 1px solid var(--glass-line);
  font-weight: 800; color: var(--snow);
}
.key svg { width: 17px; height: 17px; }
.addr { display: inline-block; padding: .1rem .45rem; border-radius: 6px; background: rgba(0,0,0,.3); font-size: .85rem; word-break: break-all; user-select: all; }

/* ---------- Cómo funciona ---------- */
.guide-steps { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.guide-steps li { counter-increment: paso; position: relative; padding-left: 3.3rem; }
.guide-steps li::before {
  content: counter(paso); position: absolute; left: 0; top: -.1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center; font: 800 1.1rem var(--display); color: var(--snow);
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.6) 0 7%, transparent 30%), var(--red);
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
}
.guide-steps li:nth-child(3n+2)::before { background-color: #2E9A5F; }
.guide-steps li:nth-child(3n)::before { background-color: #C9921E; }
.guide-steps h2 { font-size: 1.1rem; margin: 0 0 .2rem; }
.guide-steps p { margin: 0; color: var(--frost); }
.plain { margin: 0 0 .6rem; padding-left: 1.2rem; display: grid; gap: .3rem; }
.chip-btn.icon-only { padding: 0; width: 38px; justify-content: center; }
.chip-btn.on { border-color: var(--gold); color: var(--gold); }
