/* =============================================================
   1. Tokens (oscuro por defecto, claro con [data-theme=light])
   ============================================================= */
:root {
  --bg: #06051a;
  --bg-2: #0c0a2a;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --solid: #121034;
  --line: rgba(255, 255, 255, .11);
  --ink: #eef0ff;
  --muted: #9ea3cc;
  --a1: #8b5cf6;
  --a2: #22d3ee;
  --a3: #f472b6;
  --grad: linear-gradient(120deg, var(--a1), var(--a2));
  --grad-hot: linear-gradient(120deg, var(--a3), var(--a1) 55%, var(--a2));
  --hol: #ff6b9a;
  --hol-soft: rgba(255, 107, 154, .16);
  --vac: #2ee6a6;
  --vac-ink: #03261a;
  --we-soft: rgba(255, 255, 255, .06);
  --sum: #22d3ee;
  --glow: 0 0 0 1px rgba(139, 92, 246, .35), 0 20px 60px -20px rgba(139, 92, 246, .55);
  --radius: 22px;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4f4ff;
  --bg-2: #e9e8ff;
  --surface: rgba(255, 255, 255, .7);
  --surface-2: rgba(255, 255, 255, .9);
  --solid: #ffffff;
  --line: rgba(40, 30, 110, .12);
  --ink: #15123a;
  --muted: #5d5a85;
  --hol: #e0336d;
  --hol-soft: rgba(224, 51, 109, .12);
  --vac: #0fa877;
  --vac-ink: #ffffff;
  --we-soft: rgba(40, 30, 110, .06);
  --glow: 0 0 0 1px rgba(139, 92, 246, .25), 0 20px 50px -24px rgba(90, 60, 200, .45);
  color-scheme: light;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background .4s, color .4s;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: var(--a2); }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.08; letter-spacing: -0.025em; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--a1); color: #fff; }

/* Fondo: aurora + rejilla + estrellas */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 20% 10%, rgba(139, 92, 246, .35), transparent 70%),
    radial-gradient(35% 30% at 85% 15%, rgba(34, 211, 238, .22), transparent 70%),
    radial-gradient(40% 40% at 60% 90%, rgba(244, 114, 182, .14), transparent 70%);
  animation: aurora 22s ease-in-out infinite alternate;
}
.bg-fx::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .35;
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-theme="light"] #stars { opacity: .25; }
@keyframes aurora { to { transform: translate3d(4%, 6%, 0) rotate(8deg) scale(1.1); } }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: var(--bg); z-index: 99; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(100% - 2rem, 1180px); margin-inline: auto; }
.grad-text { background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glass {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 99px;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vac); box-shadow: 0 0 12px var(--vac); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
.section-head h2 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); margin: .8rem 0 .6rem; }
.section-head p { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }

/* =============================================================
   4. Header / footer
   ============================================================= */
.site-header { position: sticky; top: 0; z-index: 20; padding-block: .7rem; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem .7rem .55rem 1rem; border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; color: var(--ink); text-decoration: none; }
.logo svg { width: 32px; height: 32px; filter: drop-shadow(0 0 10px rgba(139, 92, 246, .6)); }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a { padding: .45rem .75rem; border-radius: 10px; font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.theme-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
[data-theme="light"] .theme-btn .sun { display: block; }
[data-theme="light"] .theme-btn .moon { display: none; }

.site-footer { margin-top: 5rem; border-top: 1px solid var(--line); padding-block: 2.2rem 3rem; color: var(--muted); font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-bottom: .8rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* =============================================================
   5. Hero + escena 3D
   ============================================================= */
.hero { display: grid; gap: 2rem; align-items: center; padding-block: 2.2rem 1.5rem; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 4rem); margin: 1rem 0 .9rem; }
.hero .sub { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.4rem; font-size: .85rem; color: var(--muted); }
.chips span { display: inline-flex; align-items: center; gap: .4rem; }
.chips svg { width: 16px; height: 16px; color: var(--vac); }

.scene { position: relative; height: 340px; perspective: 1100px; }
.scene-inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(var(--ry, 0) * 1deg)) rotateY(calc(var(--rx, 0) * 1deg));
  transition: transform .4s var(--ease-out);
}
.cube { position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px; transform-style: preserve-3d; animation: spin 20s linear infinite; }
.cube .f {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  border-radius: 26px; border: 1px solid rgba(255, 255, 255, .28);
  background: linear-gradient(140deg, rgba(124, 77, 255, .82), rgba(34, 160, 238, .62));
  box-shadow: inset 0 0 40px rgba(255, 255, 255, .12), 0 0 40px rgba(139, 92, 246, .35);
  color: #fff; font-family: var(--display); font-weight: 700; -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.cube .f b { display: block; font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; }
.cube .f small { display: block; font-size: .78rem; opacity: .85; letter-spacing: .14em; text-transform: uppercase; margin-top: .3rem; }
.f1 { transform: translateZ(85px); }
.f2 { transform: rotateY(90deg) translateZ(85px); }
.f3 { transform: rotateY(180deg) translateZ(85px); }
.f4 { transform: rotateY(-90deg) translateZ(85px); }
.f5 { transform: rotateX(90deg) translateZ(85px); }
.f6 { transform: rotateX(-90deg) translateZ(85px); }
@keyframes spin { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }

.orb { position: absolute; border-radius: 50%; animation: float 7s ease-in-out infinite; }
.orb-1 { width: 90px; height: 90px; left: 6%; top: 8%; background: radial-gradient(circle at 30% 30%, #fff, #f472b6 30%, #7c3aed 75%); box-shadow: 0 0 50px rgba(244, 114, 182, .5); }
.orb-2 { width: 54px; height: 54px; right: 8%; bottom: 10%; background: radial-gradient(circle at 30% 30%, #fff, #22d3ee 35%, #1e3a8a 80%); box-shadow: 0 0 40px rgba(34, 211, 238, .5); animation-delay: -2s; }
.ring { position: absolute; right: 10%; top: 6%; width: 120px; height: 120px; border-radius: 50%; border: 10px solid transparent; background: var(--grad) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: tilt 9s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(34, 211, 238, .6)); }
.pyr { position: absolute; left: 14%; bottom: 6%; width: 0; height: 0; border-left: 34px solid transparent; border-right: 34px solid transparent; border-bottom: 60px solid #8b5cf6; filter: drop-shadow(0 0 16px rgba(139, 92, 246, .8)); animation: float 6s ease-in-out infinite -1s; }
.floor { position: absolute; left: 50%; bottom: -10px; width: 300px; height: 60px; margin-left: -150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 92, 246, .45), transparent); filter: blur(6px); }
@keyframes float { 50% { translate: 0 -16px; } }
@keyframes tilt { 0%, 100% { transform: rotateX(60deg) rotateZ(0); } 50% { transform: rotateX(50deg) rotateZ(40deg); } }

/* =============================================================
   6. Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.2rem;
  border-radius: 14px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  text-decoration: none; transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, .6); }
.btn-main { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .8); }
.btn-main:hover { box-shadow: 0 14px 40px -10px rgba(34, 211, 238, .7); }
.btn svg { width: 18px; height: 18px; }
.btn-link { color: var(--muted); font-size: .88rem; text-decoration: underline; padding: .8rem .4rem; }

/* =============================================================
   7. Herramienta
   ============================================================= */
.tool-card { padding: clamp(1rem, 3vw, 1.8rem); margin-top: 1rem; box-shadow: var(--glow); position: relative; }
.tool-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(139, 92, 246, .9), transparent 35%, transparent 65%, rgba(34, 211, 238, .9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.tool-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.tool-title h2 { font-size: 1.3rem; }
.tool-title .eyebrow { font-size: .72rem; }
.noscript-msg { padding: 1rem; border-radius: 12px; background: var(--surface-2); }

.form-grid { display: grid; gap: .9rem; }
.field label, .field .lbl { display: block; font-size: .74rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .08em; }
.field select, .field input[type=date], .num input {
  width: 100%; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 600;
}
.field select option { background: var(--solid); color: var(--ink); }
.field select:focus, .field input:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
.num { display: flex; align-items: stretch; gap: .4rem; }
.num input { text-align: center; font-size: 1.15rem; min-width: 0; }
.num button { flex: 0 0 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 1.3rem; font-weight: 600; }
.num button:hover { border-color: var(--a1); color: var(--a2); }
.hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; background: var(--surface-2); padding: .3rem; border-radius: 14px; border: 1px solid var(--line); }
.field .seg label { position: relative; text-transform: none; letter-spacing: 0; font-size: inherit; color: inherit; margin: 0; display: block; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; text-align: center; padding: .5rem .3rem; border-radius: 10px; font-weight: 600; font-size: .88rem; cursor: pointer; transition: background .25s var(--ease-out); }
.seg span small { display: block; font-weight: 400; font-size: .7rem; color: var(--muted); }
.seg input:checked + span { background: var(--grad); color: #fff; box-shadow: 0 6px 20px -8px rgba(139, 92, 246, .9); }
.seg input:checked + span small { color: rgba(255, 255, 255, .85); }
.seg input:focus-visible + span { outline: 2px solid var(--a2); outline-offset: 2px; }

.more { margin-top: 1rem; border-top: 1px dashed var(--line); padding-top: .8rem; }
.more summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--muted); }
.more summary:hover { color: var(--ink); }
.more-grid { display: grid; gap: .9rem; margin-top: .8rem; }
.chk { display: flex; gap: .55rem; align-items: center; font-weight: 500; }
.chk input { width: 18px; height: 18px; accent-color: var(--a1); }
.meses { display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem; }
.mchk { position: relative; }
.mchk input { position: absolute; opacity: 0; }
.mchk span { display: block; text-align: center; padding: .38rem 0; border: 1px solid var(--line); border-radius: 9px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.mchk input:checked + span { background: var(--hol-soft); color: var(--hol); border-color: var(--hol); text-decoration: line-through; }
.mchk input:focus-visible + span { outline: 2px solid var(--a2); }

.result { margin-top: 1.3rem; }
.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.stat { padding: .9rem 1rem; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.8rem, 5.5vw, 2.6rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .8rem; color: var(--muted); }
.res-nota { margin-top: .6rem; font-size: .9rem; font-weight: 600; color: var(--a2); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.lista { list-style: none; padding: 0; margin-top: 1.1rem; display: grid; gap: .6rem; }
.brk { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .25s, transform .25s var(--ease-out); }
.brk:hover { border-color: rgba(139, 92, 246, .6); transform: translateX(4px); }
.brk-summer { border-color: rgba(34, 211, 238, .6); }
.brk-n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: .85rem; }
.brk-dates { font-weight: 500; }
.brk-req { font-size: .9rem; color: var(--vac); font-weight: 600; }
.brk-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.chip { font-size: .72rem; font-weight: 600; padding: .15rem .55rem; border-radius: 99px; }
.chip-hol { background: var(--hol-soft); color: var(--hol); }
.chip-sum { background: rgba(34, 211, 238, .18); color: var(--a2); }
.brk-score { text-align: right; display: flex; flex-direction: column; line-height: 1.15; }
.brk-score .big { font-family: var(--display); font-size: 1.9rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brk-score span { font-size: .76rem; font-weight: 600; }
.brk-score .small { font-weight: 400; color: var(--muted); }

.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 1.4rem 0 .6rem; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: .3rem; vertical-align: -1px; }
.calendario { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.cal-m { padding: .7rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.cal-m h4 { font-size: .85rem; margin-bottom: .35rem; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: .68rem; text-align: center; }
.cal-g b { color: var(--muted); font-weight: 600; }
.cal-g span { padding: .22rem 0; border-radius: 6px; font-variant-numeric: tabular-nums; }
.c-we { background: var(--we-soft); }
.c-hol { background: var(--hol-soft); color: var(--hol); font-weight: 700; }
.c-vac { background: var(--vac); color: var(--vac-ink); font-weight: 700; box-shadow: 0 0 10px rgba(46, 230, 166, .5); }
.c-brk { box-shadow: inset 0 -2px 0 var(--a1); }
.c-vac.c-brk { box-shadow: 0 0 10px rgba(46, 230, 166, .5), inset 0 -2px 0 var(--a1); }
.i-we { background: var(--we-soft); } .i-hol { background: var(--hol-soft); border: 1px solid var(--hol); } .i-vac { background: var(--vac); } .i-brk { box-shadow: inset 0 -2px 0 var(--a1); border: 1px solid var(--line); }

.tool-card[data-state=error] .result { display: none; }
.err { display: none; margin-top: 1rem; padding: .9rem 1rem; border-radius: 12px; background: var(--hol-soft); color: var(--hol); font-weight: 600; }
.tool-card[data-state=error] .err { display: block; }
.privacy { display: flex; gap: .5rem; align-items: flex-start; font-size: .84rem; color: var(--muted); margin-top: 1rem; }
.privacy svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: var(--vac); }

/* =============================================================
   8. Mapa 3D
   ============================================================= */
.map-section { margin-top: 5rem; }
.map-wrap { display: grid; gap: 1.2rem; align-items: start; }
.map-stage { position: relative; padding: 1rem; overflow: hidden; perspective: 1600px; }
.map-3d { transform: rotateX(var(--map-tilt, 24deg)) rotateZ(-2deg); transform-origin: 50% 60%; transition: transform .8s var(--ease-out); }
.map-stage:hover .map-3d { --map-tilt: 14deg; }
.map-svg { width: 100%; height: auto; overflow: visible; }
.map-svg .depth path { fill: #1d1460; stroke: none; }
[data-theme="light"] .map-svg .depth path { fill: #b9b0f2; }
.map-svg .reg {
  fill: url(#mapFill); stroke: rgba(200, 210, 255, .55); stroke-width: 1.1; cursor: pointer;
  transition: transform .35s var(--ease-out), filter .35s, fill .35s; transform-box: fill-box; transform-origin: center;
}
[data-theme="light"] .map-svg .reg { stroke: rgba(255, 255, 255, .9); }
.map-svg .reg:hover, .map-svg .reg:focus-visible { transform: translateY(-6px); filter: url(#glow); fill: url(#mapHot); outline: none; }
.map-svg .reg.is-active { transform: translateY(-9px); fill: url(#mapHot); filter: url(#glow); }
.map-svg .dotreg { fill: var(--a3); stroke: #fff; stroke-width: 1.5; cursor: pointer; }
.map-svg .dotreg.is-active, .map-svg .dotreg:hover { fill: var(--a2); filter: url(#glow); }
.map-svg .inset { fill: none; stroke: var(--line); stroke-dasharray: 6 6; }
.map-svg .lbl { font: 600 13px var(--sans); fill: var(--muted); pointer-events: none; }
.map-hint { position: absolute; right: 1rem; top: .9rem; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.map-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--a2); box-shadow: 0 0 10px var(--a2); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.map-panel { padding: 1.4rem; min-height: 100%; }
.map-panel h3 { font-size: 1.6rem; margin: .4rem 0 .2rem; }
.map-panel .muted { color: var(--muted); font-size: .92rem; }
.mp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1rem 0; }
.mp-stats div { padding: .7rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.mp-stats b { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mp-stats span { font-size: .74rem; color: var(--muted); }
.mp-best { padding: .9rem 1rem; border-radius: 14px; background: linear-gradient(120deg, rgba(139, 92, 246, .22), rgba(34, 211, 238, .12)); border: 1px solid rgba(139, 92, 246, .4); margin-bottom: 1rem; font-size: .92rem; }
.mp-best strong { color: var(--ink); }
.mp-list { list-style: none; padding: 0; display: grid; gap: .25rem; max-height: 260px; overflow: auto; font-size: .88rem; margin-bottom: 1rem; }
.mp-list li { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem .5rem; border-radius: 8px; }
.mp-list li:nth-child(odd) { background: var(--surface); }
.mp-list li span:first-child { color: var(--muted); white-space: nowrap; }
.mp-list li.own span:last-child { color: var(--a2); font-weight: 600; }
.mp-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* =============================================================
   9. Contador + bento
   ============================================================= */
.countdown { margin-top: 5rem; padding: clamp(1.4rem, 4vw, 2.4rem); text-align: center; overflow: hidden; position: relative; }
.countdown::after { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, rgba(139, 92, 246, .35), transparent); pointer-events: none; }
.countdown h2 { font-size: clamp(1.4rem, 3.4vw, 2.2rem); margin: .6rem 0 1.2rem; }
.cd-grid { display: flex; justify-content: center; gap: clamp(.4rem, 2vw, 1rem); position: relative; z-index: 1; }
.cd-grid div { min-width: clamp(64px, 16vw, 120px); padding: .9rem .5rem; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.cd-grid b { display: block; font-family: var(--display); font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd-grid span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.cd-note { margin-top: 1rem; color: var(--muted); position: relative; z-index: 1; }

.bento { display: grid; gap: 1rem; margin-top: 5rem; }
.bento .card { padding: 1.4rem; position: relative; overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s; }
.bento .card:hover { transform: translateY(-4px); box-shadow: var(--glow); }
.bento .card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 92, 246, .35), transparent); }
.bento .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 1rem; box-shadow: 0 8px 24px -8px rgba(139, 92, 246, .9); }
.bento .ico svg { width: 22px; height: 22px; }
.bento h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.bento p { color: var(--muted); font-size: .93rem; }
.bento .big-num { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1; margin-bottom: .4rem; }

/* =============================================================
   10. Anuncios + contenido SEO
   ============================================================= */
.ad-slot { min-height: 120px; margin-block: 2.5rem; border: 1px dashed var(--line); border-radius: 16px; display: grid; place-items: center; color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.content { margin-top: 4rem; }
.content > h2, .content section > h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 3rem 0 .9rem; }
.content h3 { font-size: 1.12rem; margin: 1.4rem 0 .4rem; }
.content p, .content li { max-width: 75ch; color: var(--ink); }
.content p { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.content p + p { margin-top: .8rem; }
.content ul, .content ol { padding-left: 1.2rem; margin-top: .6rem; }
.content li + li { margin-top: .3rem; }
.steps { display: grid; gap: 1rem; list-style: none; padding: 0 !important; counter-reset: s; }
.steps li { position: relative; padding: 1.3rem; max-width: none; }
.steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: .6rem; }
.steps strong { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: .25rem; }
.steps li + li { margin-top: 0; }
.steps span { color: var(--muted); }

.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); margin-top: .8rem; }
.tabla { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--surface); }
.tabla th, .tabla td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--line); }
.tabla th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface-2); }
.tabla tr:last-child td { border-bottom: 0; }

.faq details { margin-top: .6rem; padding: 1rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.3rem; line-height: 1; color: var(--a2); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .6rem; color: var(--muted); }

.grid-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; list-style: none; padding: 0 !important; }
.grid-links li + li { margin-top: 0; }
.grid-links a { display: block; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .92rem; transition: border-color .25s, transform .25s var(--ease-out); }
.grid-links a:hover { border-color: rgba(139, 92, 246, .7); transform: translateY(-2px); }
.grid-links a[aria-current] { border-color: var(--a2); background: rgba(34, 211, 238, .12); }

.legal { max-width: 780px; padding: clamp(1.2rem, 4vw, 2.4rem); margin-top: 2rem; }
.legal h1 { margin-bottom: 1rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { margin: 1.6rem 0 .5rem; font-size: 1.2rem; }
.legal p, .legal li { margin-top: .5rem; color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.todo { background: #fde047; color: #2a2300; padding: 0 .3rem; border-radius: 4px; }

/* =============================================================
   11. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .summary { grid-template-columns: repeat(4, 1fr); }
  .calendario { grid-template-columns: repeat(3, 1fr); }
  .grid-links { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1.3fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .more-grid { grid-template-columns: 1fr 1fr; }
  .more-grid .full { grid-column: 1 / -1; }
  .meses { grid-template-columns: repeat(12, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .c-wide { grid-column: span 4; }
  .bento .c-tall { grid-column: span 2; }
  .bento .c-third { grid-column: span 2; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.15fr .85fr; }
  .scene { height: 420px; }
  .calendario { grid-template-columns: repeat(4, 1fr); }
  .form-grid { grid-template-columns: 1.2fr .9fr 1.4fr .9fr; }
  .grid-links { grid-template-columns: repeat(4, 1fr); }
  .map-wrap { grid-template-columns: 1.45fr 1fr; }
}
@media (max-width: 719px) {
  .nav a { display: none; }
}
@media (max-width: 539px) {
  .brk { grid-template-columns: 1fr auto; }
  .brk-n { display: none; }
  .scene { height: 240px; }
  .orb-1 { width: 60px; height: 60px; }
  .ring { width: 80px; height: 80px; border-width: 7px; }
  .cube { transform: scale(.8); }
  .map-3d { --map-tilt: 12deg; }
}

/* =============================================================
   12. Movimiento reducido (solo efectos intrusivos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-fx::before, .cube, .orb, .ring, .pyr { animation: none; }
  #stars { display: none; }
}
@media print {
  .site-header, .site-footer, .ad-slot, .actions, .more, .privacy, .bg-fx, .hero .scene, .map-section, .countdown, .bento { display: none !important; }
  body { background: #fff; color: #000; }
}
