:root {
  /* Paleta de marca (logotipo de maze.energy): índigo #5660e0 y azul marino #1b1464 */
  --bg: #0b0a33;
  --surface: #14115a;
  --surface-2: #1d1a74;
  --line: rgba(141, 151, 255, .22);
  --text: #f2f2f2;
  --muted: #b0b3dd;
  --brand: #5660e0;
  --accent: #9aa3ff;
  --navy: #1b1464;
  --warn: #ffb454;
  --radius: 16px;
  --maxw: 1200px;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 48px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.proto-banner { background: var(--warn); color: #1a1100; text-align: center; font-size: .78rem; padding: 5px 16px; font-weight: 500; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px;
  padding: 12px max(16px, calc((100vw - var(--maxw)) / 2));
  background: rgba(11, 10, 51, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }
#mainnav { flex: 1; }
.menu { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; justify-content: center; }
.menu > li { position: static; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 8px; font: 500 .92rem var(--sans); color: var(--text);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px;
  padding: 9px 16px; cursor: pointer; text-decoration: none; transition: background .15s;
}
.nav-btn:hover, .nav-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .2); }
button.nav-btn::after {
  content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px); transition: transform .15s;
}
button.nav-btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.nav-toggle { display: none; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.lang a { text-decoration: none; }

.panel {
  position: absolute; left: max(16px, calc((100vw - var(--maxw)) / 2)); right: max(16px, calc((100vw - var(--maxw)) / 2));
  top: calc(100% - 4px); background: #12104f; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.panel[hidden] { display: none; }
.panel-sm { grid-template-columns: 1fr; width: 320px; right: auto; left: auto; }
.panel-right { right: max(16px, calc((100vw - var(--maxw)) / 2)); left: auto; }
.menu > li.has-panel { position: static; }
.menu > li.has-panel:has(.panel-sm) { position: relative; }
.menu > li.has-panel:has(.panel-sm) .panel-sm { left: 0; top: calc(100% + 8px); }
.menu > li.has-panel:has(.panel-right) .panel-right { left: auto; right: 0; }
.col { padding: 0 18px; border-left: 1px solid var(--line); }
.col:first-child { border-left: 0; padding-left: 0; }
.col h2 { font-size: 1rem; margin-bottom: 14px; }
.col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.col li a {
  display: block; padding: 9px 12px; border-radius: 8px; background: rgba(255, 255, 255, .08);
  text-decoration: none; font-size: .9rem; font-weight: 500; transition: background .12s;
}
.col li a:hover { background: var(--brand); }
.promo { display: block; padding: 14px; border-radius: 12px; background: linear-gradient(150deg, var(--brand), var(--navy)); text-decoration: none; }
.promo b { display: block; margin-bottom: 6px; }
.promo span { font-size: .85rem; color: #dfe2ff; }

.btn {
  display: inline-block; background: var(--brand); color: #fff; font: 600 1rem var(--sans);
  padding: 13px 24px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(86, 96, 224, .5); background: #6670f0; }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: none; border-color: var(--accent); }

/* ---------- LAYOUT ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 16px; }
.section.tight { padding-top: 24px; padding-bottom: 32px; }
.head { max-width: 720px; margin-bottom: 28px; }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 56ch; }
.note { color: var(--muted); font-size: .78rem; font-family: var(--mono); }
.crumb { font: .78rem var(--mono); color: var(--muted); margin-bottom: 16px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--text); }
.page-head { max-width: var(--maxw); margin: 0 auto; padding: 56px 16px 24px; }
.page-hero {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 16px 24px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.hero-img { width: 100%; height: 340px; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); }

/* ---------- HERO ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 56px 16px 32px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: 0 -50vw; z-index: -1; opacity: .55;
  background: url("/assets/maze-energy-1-scaled.webp") center / cover no-repeat;
  mask-image: linear-gradient(#000 40%, transparent);
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.battery-wrap { margin: 0; position: relative; }
.battery { width: 100%; height: auto; display: block; overflow: visible; }
.hud { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-top: 12px; }
.hud span { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; }
.hud b { color: var(--text); font-weight: 500; font-size: 1rem; font-variant-numeric: tabular-nums; }
.pause {
  position: absolute; right: 0; top: -10px; background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font: .72rem var(--mono); cursor: pointer;
}
.pause:hover { color: var(--text); border-color: var(--accent); }

/* laberinto */
.m-wall { stroke: #4a4fc0; stroke-width: 1.6; stroke-linecap: round; fill: none; opacity: .85; }
.m-body { fill: rgba(20, 17, 90, .7); stroke: var(--brand); stroke-width: 2.6; }
.m-nub { fill: var(--brand); }
.m-route { fill: none; stroke: #c3c8ff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(154, 163, 255, .9)); }
.m-route-base { fill: none; stroke: rgba(154, 163, 255, .16); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.m-pulse { animation: flow 5s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -1; } }
[data-motion="off"] .m-pulse { animation-play-state: paused; }

/* ---------- CARDS ---------- */
.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-decoration: none; transition: border-color .2s, transform .2s, background .2s;
  display: flex; flex-direction: column; gap: 6px;
}
a.card:hover { border-color: var(--accent); transform: translateY(-4px); background: var(--surface-2); }
.card p { color: var(--muted); margin: 0; }
.card.feature img { width: 84px; height: auto; margin: -8px 0 0 -12px; }
.tag { font-family: var(--mono); font-size: .75rem; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.more { margin-top: auto; padding-top: 12px; color: var(--accent); font-weight: 500; }
.case-meta { display: flex; justify-content: space-between; font: .72rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.big { font-size: 2.8rem !important; color: var(--accent) !important; font-weight: 700; line-height: 1; margin-top: 10px !important; }
.big small { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); margin-top: 8px; line-height: 1.3; }
.quote { margin: 0; }
.quote p { color: var(--text); font-size: 1.05rem; }
.quote footer { margin-top: auto; padding-top: 16px; font-size: .85rem; color: var(--muted); }
.quote em { color: var(--warn); font-style: normal; }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; }
.stats div { border-top: 1px solid var(--line); padding-top: 16px; }
.stats dd { margin: 0; font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.stats dt { color: var(--muted); margin-top: 6px; }

/* ---------- CTA ---------- */
.cta-band {
  max-width: var(--maxw); margin: 40px auto 72px; padding: 36px 40px; border-radius: 20px;
  background: linear-gradient(120deg, var(--brand), var(--navy)); display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap; width: calc(100% - 32px);
}
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: #dfe2ff; }
.cta-band .btn { background: #fff; color: var(--navy); }
.cta-band .btn:hover { background: #eef; box-shadow: none; }

/* ---------- STORY ---------- */
.story { height: 340vh; position: relative; }
.story-sticky {
  position: sticky; top: 64px; height: calc(100vh - 64px);
  max-width: var(--maxw); margin: 0 auto; padding: 24px 16px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center;
}
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 4px; }
.steps li { padding: 12px 18px; border-left: 2px solid var(--line); opacity: .4; transition: opacity .3s, border-color .3s, background .3s; }
.steps li b { display: block; font-size: 1.1rem; }
.steps li span { color: var(--muted); font-size: .92rem; }
.steps li.on { opacity: 1; border-color: var(--accent); background: linear-gradient(90deg, rgba(154, 163, 255, .14), transparent); }
.hud-story { justify-content: space-between; }

/* ---------- LOGOS ---------- */
.logo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.logo-grid li { border: 1px dashed var(--line); border-radius: 12px; height: 72px; display: grid; place-items: center; color: var(--muted); font: .75rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- FORMS ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.phone a { color: var(--accent); font-weight: 600; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.full { grid-column: 1 / -1; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: auto; }
.hp { position: absolute; left: -9999px; }
.form-msg { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--accent); min-height: 1.4em; }
.form-msg.err { color: var(--warn); }
.newsletter { text-align: center; }
.newsletter form { display: flex; justify-content: center; gap: 12px; max-width: 520px; margin: 20px auto 0; }
.newsletter label { flex: 1; }

/* ---------- FOOTER ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 16px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; color: var(--muted); font-size: .9rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.copy { grid-column: 1 / -1; margin: 0; font: .75rem var(--mono); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
a.card.reveal { transition: opacity .6s, transform .25s, border-color .2s, background .2s; }
a.card.reveal.in:hover { transform: translateY(-4px); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1240px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; margin-left: auto; font: 500 .9rem var(--sans); color: var(--text); background: rgba(255, 255, 255, .1); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; order: 2; }
  .nav-right { order: 3; }
  #mainnav { order: 4; flex-basis: 100%; display: none; }
  #mainnav.open { display: block; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu > li { position: static !important; }
  .nav-btn { width: 100%; justify-content: space-between; }
  .panel, .panel-sm, .panel-right { position: static !important; width: auto !important; margin-top: 6px; grid-template-columns: 1fr; box-shadow: none; }
  .col { border-left: 0; padding: 0 0 14px; }
}
@media (max-width: 960px) {
  .hero, .contact, .story-sticky, .page-hero { grid-template-columns: 1fr; }
  .cards.three, .cards.four { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .story { height: 300vh; }
  .story-sticky { gap: 12px; align-content: center; }
  .steps li span { display: none; }
  .story-left h1 { font-size: 1.5rem; }
  .hero-img { height: 220px; }
}
@media (max-width: 600px) {
  .cards.three, .cards.four, form { grid-template-columns: 1fr; }
  .section { padding: 48px 16px; }
  .pause { position: static; margin-top: 10px; }
  .cta-band { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .m-pulse { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Contenido de páginas interiores ---------- */
.status { display: inline-block; font: .78rem var(--mono); color: #0b0a33; background: var(--accent); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.checks { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.checks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.checks li { padding-left: 26px; position: relative; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.checks + .note { margin-top: 12px; }

.example { background: linear-gradient(160deg, var(--surface), #0f0c45); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; align-items: stretch; }
.cmp > div { border-radius: 14px; padding: 20px; background: rgba(255, 255, 255, .05); }
.cmp span { font: .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cmp b { display: block; font-size: 2.4rem; line-height: 1.1; margin: 6px 0 8px; }
.cmp p { margin: 0; color: var(--muted); font-size: .88rem; }
.cmp .win { background: var(--brand); }
.cmp .win span, .cmp .win p { color: #e4e6ff; }
.cmp .delta { display: grid; place-content: center; text-align: center; font-size: 2.4rem; font-weight: 700; color: var(--accent); background: none; }
.cmp .delta small { display: block; font: .72rem var(--mono); color: var(--muted); font-weight: 400; }

.markets { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.markets a { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: .2s; }
.markets a:hover { border-color: var(--accent); background: var(--surface); }
.markets b { display: block; font-size: 1.3rem; }
.markets span { color: var(--muted); font-size: .9rem; }
.markets .on a { border-color: var(--accent); background: linear-gradient(160deg, rgba(154, 163, 255, .16), transparent); }

.team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.team li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.team b { display: block; }
.team span { color: var(--accent); font-size: .88rem; }

.table-wrap { overflow-x: auto; }
.reqs { width: 100%; border-collapse: collapse; min-width: 640px; }
.reqs th, .reqs td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.reqs th { font: .75rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.reqs td.ok { color: #6ee7a8; font-weight: 600; }
.reqs td.wip { color: var(--warn); font-weight: 600; }
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: r; }
.roadmap li { border-top: 2px solid var(--brand); padding-top: 14px; }
.roadmap b { display: block; font-size: 1.1rem; color: var(--accent); }
.roadmap span { color: var(--muted); font-size: .9rem; }

@media (max-width: 960px) {
  .cmp { grid-template-columns: 1fr; }
  .team, .roadmap { grid-template-columns: 1fr 1fr; }
  .checks ul { grid-template-columns: 1fr; }
  .markets { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .team, .roadmap { grid-template-columns: 1fr; } }

/* Equipo con fotos */
.team { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team li { padding: 0; overflow: hidden; }
.team img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 25%; background: #fff; }
.team b { padding: 14px 18px 0; }
.team span { display: block; padding: 2px 18px 18px; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team { grid-template-columns: 1fr; } }
.lang b { color: var(--text); }

/* Menú: puente invisible entre el botón y el panel (evita que se cierre al bajar el ratón) */
.panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
@media (max-width: 1240px) { .panel::before { display: none; } }

/* ---------- Servicios: estructuras propias por página ---------- */
.stats.n3 { grid-template-columns: repeat(3, 1fr); }
.stats.n3 dd { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; counter-reset: f; }
.flow li { position: relative; padding: 18px 18px 8px 0; border-top: 2px solid var(--line); }
.flow li::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.flow .n { display: block; font: .75rem var(--mono); color: var(--accent); margin: 6px 0 4px; }
.flow h3 { font-size: 1.05rem; }
.flow p { color: var(--muted); font-size: .9rem; margin: 0; }

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mod { background: var(--surface); padding: 24px; }
.mod h3 { color: var(--accent); }
.mod p { color: var(--muted); margin: 0; }

.prod td b { color: var(--accent); }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 20px; padding: 32px; background: linear-gradient(160deg, var(--surface), #0f0c45); }
.callout h2 { margin-bottom: 8px; }
.callout p:last-child { color: var(--muted); max-width: 60ch; margin: 0; }

.hx-reverse .hero-img { order: -1; }
.hx-reverse { grid-template-columns: 1fr 1.1fr; }
.hx-centered { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hx-centered .lead { margin-inline: auto; }
.hx-centered .cta-row { justify-content: center; }
.hero-panel { height: 340px; border-radius: 20px; border: 1px solid var(--line); display: grid; place-content: center; text-align: center; gap: 4px;
  background: radial-gradient(circle at 30% 20%, rgba(86, 96, 224, .5), transparent 60%), var(--surface); }
.hero-panel span { font: .78rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero-panel b { font-size: 5rem; line-height: 1; }
.hero-panel small { color: var(--muted); }
.split2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.split2 .checks ul { grid-template-columns: 1fr; }
.panel-status { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; border-left: 2px solid var(--line); }
.timeline li { padding-left: 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline li.done::before { background: var(--accent); }
.timeline b { display: block; }
.timeline span { color: var(--muted); font-size: .9rem; }

/* ---------- LinkedIn, conocimiento y noticias ---------- */
.li-row { margin-top: 18px; }
.li-card { flex-direction: row; align-items: center; gap: 20px; flex-wrap: wrap; }
.li-card > div { flex: 1; min-width: 240px; }
.li-card h3 { margin-bottom: 4px; }
.li-card .more { margin: 0; padding: 0; }
.li-logo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: #0a66c2; color: #fff; font: 700 1.4rem var(--sans); }
.subnav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.subnav a { text-decoration: none; font-size: .9rem; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; }
.subnav a:hover { border-color: var(--accent); background: var(--surface); }
.feature-doc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; padding: 32px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(150deg, var(--brand), var(--navy)); }
.feature-doc p { color: #dfe2ff; }
.feature-doc .tag { color: #fff; }
.feature-doc .btn { background: #fff; color: var(--navy); }
.feature-doc .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.toc { margin: 0; padding: 18px 22px 18px 40px; background: rgba(0, 0, 0, .25); border-radius: 14px; display: grid; gap: 8px; color: #dfe2ff; }
.chip { font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chip.on { background: var(--accent); color: #0b0a33; border-color: var(--accent); }
.pub { scroll-margin-top: 90px; }
.news { display: grid; gap: 12px; }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.news-item time { font: .8rem var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; padding-top: 4px; }
.news-item h3 { margin-bottom: 4px; }
.news-item p { color: var(--muted); margin: 0; }

@media (max-width: 960px) {
  .flow { grid-auto-flow: row; grid-auto-columns: auto; border-left: 2px solid var(--line); gap: 8px; }
  .flow li { border-top: 0; padding: 4px 0 8px 20px; }
  .flow li::before { top: 10px; left: -6px; }
  .modules, .stats.n3, .split2, .feature-doc { grid-template-columns: 1fr; }
  .hx-reverse .hero-img { order: 0; }
  .hero-panel { height: 200px; }
  .hero-panel b { font-size: 3.4rem; }
}
@media (max-width: 600px) { .news-item { grid-template-columns: 1fr; gap: 4px; } }

/* Fondo interactivo (bg.js) */
.bg-net { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: .6; }

/* Hero: batería más compacta y ruta iluminada = estado de carga */
.hero .battery-wrap { width: 100%; max-width: 470px; margin-left: auto; } /* ancho fijo: no depende del texto del panel */
.hero .battery { transition: filter .4s; }
.m-head { stroke: #fff; stroke-width: 5; }
.battery.st-charge .m-route { stroke: #c3c8ff; }
.battery.st-sell .m-route, .battery.st-sell .m-head { stroke: #ffc77a; filter: drop-shadow(0 0 6px rgba(255, 180, 84, .8)); }
.battery.st-wait .m-route { stroke: #9aa3ff; filter: drop-shadow(0 0 3px rgba(154, 163, 255, .5)); }
@media (max-width: 960px) { .hero .battery-wrap { margin-inline: auto; max-width: 400px; } }

/* Mini gráfico de precios del hero */
.mini-prices { width: 100%; height: auto; display: block; margin: 30px 0 14px; overflow: visible; }
.mp-label { fill: var(--muted); font: 10px var(--mono); letter-spacing: .06em; }
.mp-bar { fill: rgba(154, 163, 255, .28); }
.mp-bar.lo { fill: rgba(195, 200, 255, .65); }
.mp-bar.hi { fill: rgba(255, 199, 122, .7); }
.mp-now { stroke: #fff; stroke-width: 1.5; stroke-linecap: round; opacity: .85; }
@media (max-width: 960px) { .mini-prices { margin-top: 20px; } }



/* Laberinto como buscador de oportunidades: rojo sin punto de compra/venta; camino iluminado cuando aparece */
.battery .m-wall, .battery .m-route-base { transition: stroke .5s, opacity .5s; }
.battery.st-wait .m-wall { stroke: #ff3b4e; opacity: .9; animation: seek 2.4s ease-in-out infinite; }
.battery.st-wait .m-route-base { opacity: 0; }
@keyframes seek { 50% { opacity: .45; } }
[data-motion="off"] .battery.st-wait .m-wall { animation-play-state: paused; }
.battery .m-route, .battery .m-head { transition: opacity .6s; }
.hero .battery .m-route { stroke-width: 4; }
.battery.st-charge .m-route { stroke: #39ff88; filter: drop-shadow(0 0 7px rgba(57, 255, 136, .9)); }
.battery.st-sell .m-route { stroke: #1fc8ff; filter: drop-shadow(0 0 7px rgba(31, 200, 255, .9)); }
.battery .m-head, .battery.st-sell .m-head { stroke: #fff; filter: none; }
.mp-bar.lo { fill: rgba(57, 255, 136, .75); }
.mp-bar.hi { fill: rgba(31, 200, 255, .8); }
@media (prefers-reduced-motion: reduce) { .battery.st-wait .m-wall { animation: none; } }

/* Buscadores en rojo: puntos que recorren el laberinto sin encontrar la salida */
.seekers { transition: opacity .8s; }
.seeker-trail { fill: none; stroke: #ff5b6b; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.seeker-dot { fill: #ff8a95; filter: drop-shadow(0 0 4px rgba(255, 59, 78, .9)); }

/* Solo al pasar el ratón: la batería crece un poco y se ilumina */
.hero .battery-wrap { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.hero .battery-wrap:hover { transform: scale(1.05); }
.hero .battery-wrap:hover .battery { filter: drop-shadow(0 0 22px rgba(86, 96, 224, .5)); }
@media (hover: none), (prefers-reduced-motion: reduce) { .hero .battery-wrap:hover { transform: none; } }

/* Relleno de carga: verde tenue al cargar, azul tenue al vender; muestra el nivel de la batería */
.soc-fill { fill: rgba(154, 163, 255, .10); transition: fill .8s; }
.soc-edge { fill: rgba(154, 163, 255, .25); transition: fill .8s; }
.battery.st-charge .soc-fill { fill: rgba(57, 255, 136, .16); }
.battery.st-charge .soc-edge { fill: rgba(57, 255, 136, .45); }
.battery.st-sell .soc-fill { fill: rgba(31, 200, 255, .15); }
.battery.st-sell .soc-edge { fill: rgba(31, 200, 255, .45); }

/* Carga: la ruta y el relleno recorren la gama rojo → naranja → amarillo → verde */
.battery.st-charge .m-route { stroke: url(#heroGrad); filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); }
.battery.st-charge .soc-fill { fill: url(#heroGrad); fill-opacity: .24; }
.battery.st-charge .soc-edge { fill: #fff; fill-opacity: .35; }

/* ============ Editorial: filetes y columnas en lugar de tarjetas ============ */
.eyebrow, .tag { font-family: var(--sans); font-size: .92rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.eyebrow { color: var(--accent); }
.cards { gap: 8px 44px; }
.card { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 20px 0 12px; gap: 8px; }
a.card:hover, a.card.reveal.in:hover { background: none; transform: none; border-top-color: var(--accent); }
a.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.card h3 { font-size: 1.2rem; margin: 0; }
.card.feature img { margin: 0 0 8px; }
.more { font-weight: 600; font-size: .95rem; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Grupos de enlaces: se leen como un índice, no como una fila de cajas */
.cards:has(> a.tile) { display: block; border-bottom: 1px solid var(--line); }
.cards > a.tile { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.cards > a.tile:first-child { border-top: 0; }
.cards > a.tile .tag { flex: 0 0 100%; color: var(--muted); font-weight: 500; }
.cards > a.tile h3 { flex: 1 1 16rem; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.cards > a.tile p { flex: 2 1 22rem; }
.cards > a.tile .more { margin: 0 0 0 auto; padding: 0; }

.checks { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0 0; }
.modules { background: none; border: 0; border-radius: 0; gap: 0 44px; }
.mod { background: none; border-top: 1px solid var(--line); padding: 20px 0 26px; }
.faq details { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.panel-status { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0 0; }
.news { gap: 0; border-bottom: 1px solid var(--line); }
.news-item { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0; }
.callout { background: none; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 36px 0; }
.chip { font: 600 .85rem var(--sans); letter-spacing: 0; text-transform: none; border: 0; padding: 0; color: var(--muted); background: none; }
.chip.on { background: none; color: var(--accent); }
.li-card { padding: 24px 0; }
.reveal { opacity: 1; transform: none; transition: none; }
.markets { gap: 0 44px; }
.markets a { padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.markets a:hover, .markets .on a { background: none; border-top-color: var(--accent); }
.markets .on b { color: var(--accent); }

/* Venta: parte del verde de la batería llena y termina en rojo, con la misma gama que la carga */
.battery.st-sell .m-route { stroke: url(#heroGrad); filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); }
.battery.st-sell .soc-fill { fill: url(#heroGrad); fill-opacity: .24; }
.battery.st-sell .soc-edge { fill: #fff; fill-opacity: .35; }

/* El nivel de carga se ve siempre: con la batería llena el fondo sigue verde aunque el laberinto esté en rojo */
.hero .soc-fill { fill: url(#heroGrad); fill-opacity: .26; }
.hero .soc-edge { fill: #fff; fill-opacity: .3; }

/* Pausa a medias con un clic en la batería */
.hold-note { margin: 12px 0 0; font: .75rem var(--mono); color: var(--muted); min-height: 1.2em; }
.battery-wrap.clickable { cursor: default; }
.battery-wrap.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 16px; }
.battery-wrap.held .hold-note { color: var(--accent); }
.battery-wrap.held .m-head { opacity: .5; }

/* Las líneas de carga y de descarga son del lila de Maze; la gama rojo → verde queda solo en el relleno de la batería */
.battery.st-charge .m-route, .battery.st-sell .m-route { stroke: #a9b1ff; filter: drop-shadow(0 0 6px rgba(154, 163, 255, .85)); }

/* Marcador del gráfico arrastrable */
.mini-prices { cursor: default; touch-action: none; user-select: none; -webkit-user-select: none; }
.mini-prices:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 6px; }
.mp-grip { fill: #fff; stroke: rgba(154, 163, 255, .6); stroke-width: 3; transition: r .15s; }
.mini-prices:hover .mp-grip, .mini-prices.scrubbing .mp-grip { r: 6; }

.mini-prices { margin-top: 4px; }
.hold-note { display: none; }

/* ---------- Mapa de publicaciones ---------- */
.pub-toggle { all: unset; box-sizing: border-box; display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; padding: 8px 0 20px; border-bottom: 1px solid var(--line); }
.pub-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 6px; }
.pub-toggle h2 { margin: 4px 0 6px; }
.pub-toggle small { color: var(--muted); font-size: .95rem; }
.pub-plus { flex: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; transition: border-color .2s, background .2s; }
.pub-plus::before, .pub-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: var(--accent); transform: translate(-50%, -50%); transition: transform .25s; }
.pub-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.pub-toggle:hover .pub-plus { border-color: var(--accent); background: rgba(154, 163, 255, .1); }
.pub-map { padding-top: 22px; }
.pub-map[hidden] { display: none; }
.pub-map > .note { margin: 0 0 22px; }

/* Conocimiento: tres campos de color en la página (cada uno abre el pop-up). Esquinas rectas, alturas distintas */
.tiles { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 16px; align-items: end; }
.tile-open { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; cursor: pointer; color: #0b0a33; background: var(--c); padding: 30px 28px 28px; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.tile-open:nth-child(1) { min-height: 340px; }
.tile-open:nth-child(2) { min-height: 420px; }
.tile-open:nth-child(3) { min-height: 500px; }
.tile-open h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.02; margin: 0; color: #0b0a33; }
.tile-open p { margin: 0; max-width: 34ch; opacity: .82; color: #0b0a33; }
.tile-count { margin-top: auto; font-weight: 700; font-size: 1.05rem; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.tiles:hover .tile-open:not(:hover) { opacity: .65; }
.tile-open:hover { transform: translateY(-8px); }
.tile-open:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pop-card.is-lead { transform: translateY(-8px); }
@media (max-width: 960px) {
  .tiles { grid-template-columns: 1fr; align-items: stretch; }
  .tile-open:nth-child(n) { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .tile-open { transition: none; } }

/* ---- Tres áreas: tonos oscuros de la paleta de la web, texto claro ---- */
.t-academy { --c: #3a42b4; }
.t-analisis { --c: #0e6f6c; }
.t-webinar { --c: #8c2d58; }
.tile-open, .tile-open h3, .tile-open p { color: #fff; }
.tile-open p { opacity: .88; }
.tile-open:focus-visible { outline-color: var(--accent); }
.tile-count { color: #fff; }

/* ---- Pop-up: solo el contenido del área abierta, con el título grande ---- */
html.no-scroll { overflow: hidden; }
.pub-dialog { box-sizing: border-box; width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 0; border: 0; border-radius: 0; background: var(--c, var(--surface)); color: #fff; overflow: auto; }
.pub-dialog::backdrop { background: rgba(5, 4, 28, .84); }
.pub-dialog[open] { animation: popIn .6s cubic-bezier(.2, 1.15, .35, 1) both; }
.pub-dialog[open]::backdrop { animation: fadeIn .3s ease both; }
.pub-dialog.closing { animation: dlgOut .2s ease both; }
.pub-dialog.closing::backdrop { animation: fadeOut .2s ease both; }
@keyframes popIn { from { opacity: 0; transform: translate(var(--tx, 0), var(--ty, 70px)) scale(.3); } }
@keyframes dlgOut { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.pub-dialog-inner { padding: 60px 52px 56px; }
.pub-close { position: absolute; top: 22px; right: 22px; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); cursor: pointer; transition: background .2s, transform .25s; }
.pub-close:hover { background: rgba(255, 255, 255, .3); transform: rotate(90deg); }
.pub-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pub-close span::before, .pub-close span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: #fff; transform: translate(-50%, -50%) rotate(45deg); }
.pub-close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.pop-card[hidden] { display: none; }
.pop-title { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -.03em; margin: 0 0 20px; max-width: 14ch; color: #fff; }
.pop-desc { max-width: 54ch; font-size: 1.15rem; opacity: .9; margin: 0 0 40px; }
.pop-group + .pop-group { margin-top: 36px; }
.pop-group h3 { font-size: 1.3rem; margin: 0 0 14px; color: #fff; }
.pop-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pop-card .pub-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; padding: 16px 18px 18px; background: rgba(255, 255, 255, .1); border-radius: 0; animation: itemIn .5s ease both; animation-delay: calc(var(--k, 0) * 55ms + 260ms); }
@keyframes itemIn { from { opacity: 0; transform: translateY(18px); } }
.pop-card .pub-item b { font-size: 1.05rem; color: #fff; }
.pop-card .pub-item .st { font-size: .8rem; font-weight: 700; color: #fff; opacity: .6; }
.pop-card .pub-item .st.on { opacity: 1; }
.pop-card .pub-item p { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: #fff; opacity: .85; }
.pop-card .pub-item .dl { grid-column: 1 / -1; width: fit-content; margin-top: 6px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pop-card .blt { grid-column: 1 / -1; list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 5px; font-size: .9rem; }
.pop-card .blt b { font-size: .9rem; margin-right: 8px; }
.pop-card .pub-item.flash { animation: flashP 1.8s ease; }
@keyframes flashP { 0%, 55% { background: rgba(255, 255, 255, .34); } }
@media (max-width: 960px) { .pub-dialog-inner { padding: 64px 20px 32px; } .pop-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .pub-dialog[open], .pub-dialog.closing, .pub-dialog[open]::backdrop, .pop-card .pub-item, .pop-card .pub-item.flash { animation: none; }
  .pub-close { transition: none; }
}

/* Publicaciones del pop-up: se ven clicables (manita) y crecen un poco al pasar por encima */
.pop-card .pub-item, .pop-card .pub-item * { cursor: pointer; }
.pop-card .pub-item { user-select: none; -webkit-user-select: none; transition: transform .2s cubic-bezier(.2, .8, .2, 1), background .2s, outline-color .2s; outline: 2px solid transparent; outline-offset: -2px; }
.pop-card .pub-item:hover { transform: scale(1.035); background: rgba(255, 255, 255, .18); position: relative; z-index: 1; }
.pop-card .pub-item:focus-visible { outline-color: #fff; }
.pop-card .pub-item.is-selected { background: rgba(255, 255, 255, .26); outline-color: #fff; }
@media (prefers-reduced-motion: reduce) { .pop-card .pub-item { transition: none; } .pop-card .pub-item:hover { transform: none; } }

/* ---------- Proceso interactivo ---------- */
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.st-steps > li { position: relative; padding: 0 8px; text-align: center; }
/* tramo de línea hasta el paso siguiente: base apagada + capa iluminada que se dibuja con retardo escalonado */
.st-steps > li:not(:last-child)::before, .st-steps > li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 50%; width: 100%; height: 3px; border-radius: 2px; }
.st-steps > li::before { background: var(--line); }
.st-steps > li::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s linear; }
.st-steps > li.lit::after { transform: scaleX(1); transition-delay: var(--d); }
.st-node { all: unset; box-sizing: border-box; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; cursor: pointer; }
.st-node:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 8px; }
.st-dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem var(--sans); color: var(--muted); background: var(--bg); border: 2px solid var(--line);
  transition: background .2s, border-color .2s, color .2s, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.st-dot.on { background: var(--accent); border-color: var(--accent); color: #0b0a33; transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s), 0s, 0s; }
.st-node:hover .st-dot { border-color: var(--accent); transform: scale(1.1); }
.st-node[aria-expanded="true"] .st-dot { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(154, 163, 255, .25); }
.st-node b { font-size: 1.05rem; line-height: 1.2; }
.st-text { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1), visibility 0s .4s; }
.st-text > div { overflow: hidden; min-height: 0; }
.st-text p { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }
.st-steps > li.open .st-text { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
@media (max-width: 960px) {
  .st-steps { grid-template-columns: 1fr; }
  .st-steps > li { text-align: left; padding: 0 0 12px; }
  .st-steps > li:not(:last-child)::before, .st-steps > li:not(:last-child)::after { top: 23px; left: 21px; width: 3px; height: 100%; }
  .st-steps > li::after { transform: scaleY(0); transform-origin: top; }
  .st-steps > li.lit::after { transform: scaleY(1); }
  .st-node { flex-direction: row; gap: 16px; }
  .st-text { margin-left: 62px; }
  .st-text p { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .st-dot, .st-text, .st-steps > li::after { transition: none !important; } }

/* ---------- "Qué incluye": tarjeta pequeña desplegable ---------- */
.inc { background: #3a42b4; color: #fff; max-width: 820px; transition: background .2s; }
.inc-head { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 20px; width: 100%; padding: 22px 26px; cursor: pointer; }
.inc-head:hover { background: rgba(255, 255, 255, .07); }
.inc-head:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.inc-head b { font-size: 1.4rem; line-height: 1.1; }
.inc-plus { flex: none; position: relative; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .16); transition: background .2s, transform .3s; }
.inc-plus::before, .inc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: #fff; transform: translate(-50%, -50%); transition: transform .3s; }
.inc-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.inc.open .inc-plus::after { transform: translate(-50%, -50%) rotate(0); }
.inc-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1), visibility 0s .4s; }
.inc.open .inc-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.inc-body > div { overflow: hidden; min-height: 0; }
.inc-list { list-style: none; margin: 0; padding: 4px 26px 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.inc-list li { position: relative; display: flex; align-items: center; min-height: 54px; padding: 14px 16px 14px 46px; background: rgba(255, 255, 255, .13); }
.inc-list li::before { content: "✓"; position: absolute; left: 17px; top: 50%; transform: translateY(-50%); font-weight: 700; }
.inc.open .inc-list li { animation: incPop .5s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--k) * 110ms + 180ms); }
@keyframes incPop { from { opacity: 0; transform: scale(.7) translateY(20px); } }
@media (max-width: 960px) { .inc-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .inc-body, .inc-plus, .inc-plus::before, .inc-plus::after { transition: none; } .inc.open .inc-list li { animation: none; } }

/* ---------- Cifras clave: fichas cuadradas y clicables ---------- */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi { all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 250px; padding: 24px 26px 28px; color: #fff; cursor: pointer;
  background: #3a42b4; transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .25s; }
.kpi.k1 { background: #2f3a96; }
.kpi.k2 { background: #4650c0; }
.kpi:hover { transform: scale(1.045); z-index: 1; }
.kpi:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.kpi.open { background: #5660e0; }
.kpi-plus { align-self: flex-end; position: relative; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.kpi-plus::before, .kpi-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: #fff; transform: translate(-50%, -50%); transition: transform .3s; }
.kpi-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.kpi.open .kpi-plus::after { transform: translate(-50%, -50%) rotate(0); }
.kpi b { display: block; font-size: clamp(1.8rem, 3.1vw, 2.7rem); line-height: 1.04; letter-spacing: -.02em; }
.kpi-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1); }
.kpi-more > span { overflow: hidden; min-height: 0; opacity: 0; transition: opacity .3s; font-size: 1rem; }
.kpi.open .kpi-more { grid-template-rows: 1fr; }
.kpi.open .kpi-more > span { opacity: .92; margin-top: 12px; transition-delay: .15s; }
@media (max-width: 960px) { .kpis { grid-template-columns: 1fr; } .kpi { min-height: 0; gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .kpi, .kpi-more, .kpi-more > span, .kpi-plus::before, .kpi-plus::after { transition: none; } .kpi:hover { transform: none; } }

/* "Qué incluye": ocupa todo el ancho y los puntos van en 3 columnas × 2 filas */
.inc { max-width: none; }
.inc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .inc-list { grid-template-columns: 1fr; } }

/* Cifras: las tres fichas miden siempre lo mismo, estén abiertas o cerradas */
.kpis { align-items: stretch; }
.kpi { height: 280px; min-height: 0; }
.kpi b { font-size: clamp(1.6rem, 2.7vw, 2.3rem); }
.kpi:hover { transform: scale(1.03); }
@media (max-width: 960px) { .kpi { height: auto; min-height: 200px; } }

.inc-note { padding: 4px 26px 28px; display: grid; gap: 18px; justify-items: start; }
.inc-note p { margin: 0; opacity: .92; }
.inc-note .btn { background: #fff; color: #0b0a33; }
.inc-note .btn:hover { background: #eef; box-shadow: none; }

/* ---------- Migas de pan: burbujas azul claro, arriba a la izquierda, siempre en el mismo sitio ---------- */
.crumbbar { max-width: var(--maxw); margin: 0 auto; padding: 22px 16px 0; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font: inherit; color: inherit; }
.crumb i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3ff; opacity: .55; flex: none; }
.crumb .bubble { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 13px; border-radius: 999px; font: 600 .92rem var(--sans); text-decoration: none; color: #dfe3ff;
  background: rgba(154, 163, 255, .13); border: 1px solid rgba(154, 163, 255, .45); transition: background .2s, color .2s, transform .2s; }
.crumb .bubble::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa3ff; flex: none; }
.crumb a.bubble:hover { background: #9aa3ff; color: #0b0a33; transform: translateY(-2px); }
.crumb a.bubble:hover::before { background: #0b0a33; }
.crumb a.bubble:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.crumb .bubble.now { background: #9aa3ff; color: #0b0a33; border-color: #9aa3ff; }
.crumb .bubble.now::before { background: #0b0a33; }
.page-head, .page-hero { padding-top: 28px; }
@media (prefers-reduced-motion: reduce) { .crumb .bubble { transition: none; } .crumb a.bubble:hover { transform: none; } }

/* Menú principal: nunca parte el texto en dos líneas; se compacta en pantallas medias */
.nav-btn { white-space: nowrap; }
@media (max-width: 1260px) and (min-width: 1241px) {
  .nav { gap: 12px; }
  .menu { gap: 5px; }
  .nav-btn { font-size: .86rem; padding: 8px 11px; gap: 6px; }
  .nav-right { gap: 10px; }
}

/* ---------- Páginas índice: solo titulares, fichas grandes y fáciles de pulsar ---------- */
.idx { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.idx-tile { display: flex; align-items: flex-end; min-height: 190px; padding: 24px 26px; color: #fff; text-decoration: none; background: #3a42b4; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.idx-tile:nth-child(3n+2) { background: #2f3a96; }
.idx-tile:nth-child(3n) { background: #4650c0; }
.idx-tile span { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
.idx-tile:hover { transform: scale(1.03); }
.idx-tile:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .idx-tile { transition: none; } .idx-tile:hover { transform: none; } }

/* Idiomas: siempre en una sola línea, detrás uno de otro */
.lang { white-space: nowrap; flex: none; display: inline-flex; gap: 4px; align-items: center; }
.nav-right { flex: none; }

/* ---------- Portada con más punch: titular gigante, batería grande que se asoma al borde y banda de precios a todo el ancho ---------- */
.hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px; padding-top: 40px; }
.hero h1 { font-size: clamp(2.6rem, 4.9vw, 4.6rem); line-height: .96; letter-spacing: -.035em; margin-bottom: 22px; }
.hero .lead { font-size: 1.2rem; max-width: 40ch; }
.hero .battery-wrap { max-width: 700px; margin-right: clamp(-420px, calc((var(--maxw) - 100vw) / 2), 0px); }
.hero-ticker { grid-column: 1 / -1; margin-top: 8px; }
.hero-ticker .mini-prices { margin: 0; }
.mini-prices .mp-label { font-size: 12px; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero .battery-wrap { margin-right: auto; max-width: 440px; }
}

/* Titulares que se revelan palabra a palabra */
.rv .rv-w { display: inline-block; opacity: 0; transform: translateY(.55em); }
.rv.rv-in .rv-w { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--w) * 70ms); }
@media (prefers-reduced-motion: reduce) { .rv .rv-w { opacity: 1; transform: none; } }

/* ---------- Portada: las tres fichas de servicio crecen y un círculo se ilumina alrededor del icono ---------- */
.card.feature { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
a.card.feature:hover, a.card.feature.reveal.in:hover { transform: scale(1.04); }
.card.feature .ico { position: relative; display: grid; place-items: center; width: 116px; height: 116px; margin: 0 0 6px -8px; }
.card.feature .ico img { position: relative; width: 78px; height: auto; margin: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.card.feature .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.card.feature .ring circle { fill: none; stroke: #9aa3ff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s cubic-bezier(.4, 0, .2, 1); filter: drop-shadow(0 0 5px rgba(154, 163, 255, .85)); }
a.card.feature:hover .ring circle, a.card.feature:focus-visible .ring circle { stroke-dashoffset: 0; }
a.card.feature:hover .ico img { transform: scale(1.12); }
a.card.feature:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) { .card.feature, .card.feature .ico img, .card.feature .ring circle { transition: none; } a.card.feature:hover { transform: none; } }

/* Batería centrada en su columna y logotipo grande encima */
.hero .battery-wrap { margin-inline: auto; max-width: 640px; }
.hero-logo { display: block; width: min(100%, 400px); height: auto; margin: 0 auto 26px; }
@media (max-width: 960px) { .hero-logo { width: min(100%, 300px); } }

/* ---------- Portada: titular y marca arriba; debajo, un único escenario (batería + precios + datos) a todo el ancho ---------- */
.hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; row-gap: 26px; padding-top: 32px; }
.hero h1 { font-size: clamp(2.4rem, 4.3vw, 4.1rem); margin-bottom: 0; }
.hero-side { align-self: end; padding-bottom: 6px; }
.hero-side .hero-logo { width: min(100%, 340px); margin: 0 0 16px; }
.hero-side .lead { margin: 0; font-size: 1.1rem; max-width: 36ch; }
.hero .stage { grid-column: 1 / -1; width: 100%; max-width: none; margin: 0; }
.hero .battery-wrap { transition: none; }
.hero .battery-wrap:hover { transform: none; }
.hero .battery-wrap:hover .battery { filter: none; }
.hero .battery { transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s; transform-origin: 50% 50%; }
.hero .battery:hover { transform: scale(1.015); filter: drop-shadow(0 0 22px rgba(86, 96, 224, .4)); }
.hero .stage .mini-prices { margin: 14px 0 0; }
.hero .stage .hud { justify-content: space-between; margin-top: 16px; padding: 0 8px; }
.hero-ticker { display: none; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-side .hero-logo { width: min(100%, 260px); }
}
@media (max-width: 700px) { .mini-prices .mp-label { display: none; } }

@media (min-width: 961px) {
  .st-steps { grid-template-columns: repeat(var(--n, 5), 1fr); }
  .kpis { grid-template-columns: repeat(var(--cols, 3), 1fr); }
  .kpis.sm .kpi { height: 210px; padding: 20px 22px 22px; }
  .kpis.sm .kpi b { font-size: clamp(1.3rem, 2vw, 1.8rem); }
}
@media (min-width: 961px) {
  .kpis.four .kpi { height: 370px; }
  .kpis.four .kpi b { font-size: clamp(1.5rem, 2.3vw, 2.1rem); }
}

/* ---------- Navegación: pestañas hermanas bajo las migas, títulos del menú enlazados ---------- */
.crumbbar { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sibnav { display: flex; flex-wrap: wrap; gap: 6px; }
.sibnav a { padding: 7px 15px; border-radius: 999px; font: 500 .88rem var(--sans); text-decoration: none; color: var(--muted); border: 1px solid var(--line); transition: color .15s, border-color .15s, background .15s; }
.sibnav a:hover { color: #fff; border-color: var(--accent); }
.sibnav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sibnav a[aria-current] { background: var(--accent); border-color: var(--accent); color: #0b0a33; font-weight: 700; }
@media (max-width: 760px) { .sibnav { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; } .sibnav a { white-space: nowrap; } }
.col h2 a { text-decoration: none; color: inherit; }
.col h2 a:hover { color: var(--accent); }
#p-sol { grid-template-columns: repeat(3, 1fr); }
.idx.compact { grid-template-columns: repeat(4, 1fr); }
.idx.compact .idx-tile { min-height: 130px; padding: 18px 20px; }
@media (max-width: 960px) { .idx.compact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .idx.compact { grid-template-columns: 1fr; } }

/* ---------- Una sola navegación: el menú es el recorrido (Inicio › sección › página) y cada burbuja se abre hacia delante ---------- */
.nav { gap: 16px; }
#mainnav { flex: 1 1 auto; min-width: 0; }
.trail { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.trail .sep { width: 6px; height: 6px; border-radius: 50%; background: #9aa3ff; opacity: .55; flex: none; }
.ti { position: static; display: inline-flex; align-items: stretch; border-radius: 999px; border: 1px solid rgba(154, 163, 255, .45); background: rgba(154, 163, 255, .12); transition: background .2s; flex: none; }
.ti:has(.panel-sm) { position: relative; }
.ti:hover { background: rgba(154, 163, 255, .24); }
.ti .bubble { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 13px; font: 600 .9rem var(--sans); color: #dfe3ff; text-decoration: none; white-space: nowrap; border-radius: 999px; }
.ti .bubble::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa3ff; flex: none; }
.ti.has-panel .bubble { border-radius: 999px 0 0 999px; padding-right: 10px; }
.ti-more { all: unset; box-sizing: border-box; cursor: pointer; width: 30px; display: grid; place-items: center; border-left: 1px solid rgba(154, 163, 255, .3); border-radius: 0 999px 999px 0; }
.ti-more::after { content: ""; width: 6px; height: 6px; border: solid #dfe3ff; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.ti-more[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.ti-more:focus-visible, .ti .bubble:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ti.now { background: #9aa3ff; border-color: #9aa3ff; }
.ti.now .bubble { color: #0b0a33; }
.ti.now .bubble::before { background: #0b0a33; }
.ti.now .ti-more { border-left-color: rgba(11, 10, 51, .25); }
.ti.now .ti-more::after { border-color: #0b0a33; }
.trail > li:has(.panel-sm) .panel-sm { left: 0; top: calc(100% + 8px); }
.trail > li:has(.panel-right) .panel-right { left: auto; right: 0; }
.col li a[aria-current] { background: var(--accent); color: #0b0a33; }
.crumbbar { display: none; }
@media (min-width: 1241px) {
  .ti .bubble { font-size: .84rem; padding: 7px 11px 7px 10px; gap: 7px; }
  .ti-more { width: 26px; }
  .nav { gap: 10px; }
}
@media (max-width: 1240px) {
  .trail { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 8px; }
  .ti { display: flex; }
  .ti .bubble { flex: 1; }
  .trail .sep { display: none; }
}

/* Portada: titular, logo y frase más grandes; batería más pequeña */
.hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.hero h1 { font-size: clamp(2.8rem, 5.1vw, 4.9rem); }
.hero-side .hero-logo { width: min(100%, 470px); margin-bottom: 18px; }
.hero-side .lead { font-size: 1.3rem; max-width: 34ch; }
.hero .stage { max-width: 800px; margin-inline: auto; }
@media (max-width: 960px) { .hero-side .hero-logo { width: min(100%, 320px); } .hero-side .lead { font-size: 1.15rem; } }
@media (min-width: 1241px) {
  .ti .bubble { font-size: .82rem; padding: 7px 10px; gap: 0; }
  .ti .bubble::before { display: none; }
  .ti-more { width: 24px; }
}

/* ---------- Menú: piezas de esquinas suaves con brillo de burbuja, sin puntos; menú completo siempre visible ---------- */
.trail { gap: 8px; }
.ti { border-radius: 12px; border: 1px solid rgba(154, 163, 255, .42); overflow: visible;
  background: linear-gradient(180deg, rgba(160, 220, 255, .26), rgba(154, 163, 255, .08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -10px 14px -12px rgba(154, 163, 255, .45); }
.ti:hover { background: linear-gradient(180deg, rgba(170, 225, 255, .38), rgba(154, 163, 255, .16)); }
.ti .bubble { padding: 8px 14px; border-radius: 11px; gap: 0; color: #e8eaff; }
.ti .bubble::before { display: none; }
.ti.has-panel .bubble { border-radius: 11px 0 0 11px; padding-right: 10px; }
.ti-more { border-left: 1px solid rgba(154, 163, 255, .28); border-radius: 0 11px 11px 0; width: 28px; }
.ti.on { background: linear-gradient(180deg, #c9ceff, #9aa3ff); border-color: #9aa3ff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.ti.on .bubble { color: #0b0a33; }
.ti.on .ti-more { border-left-color: rgba(11, 10, 51, .22); }
.ti.on .ti-more::after { border-color: #0b0a33; }
.ti-page { display: inline-flex; align-items: center; max-width: clamp(110px, 12vw, 190px); padding: 0 12px 0 10px; margin: 3px 3px 3px 0; border-radius: 9px; background: rgba(11, 10, 51, .14); color: #0b0a33; font: 700 .86rem var(--sans); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-page::before { content: "\203A"; margin-right: 7px; font-size: 1.1rem; line-height: 1; opacity: .7; }
.ti.on:not(.has-panel) .bubble { border-radius: 11px 0 0 11px; }
.ti-page:hover { background: rgba(11, 10, 51, .24); }
@media (min-width: 1241px) {
  .ti .bubble { font-size: .82rem; padding: 7px 11px; }
  .ti-more { width: 24px; }
  .ti-page { font-size: .8rem; max-width: clamp(100px, 10vw, 150px); }
}
@media (max-width: 1240px) { .ti-page { max-width: none; flex: 1; } }
@media (min-width: 1241px) {
  .nav { gap: 10px; }
  .trail { gap: 5px; }
  .ti .bubble { font-size: .8rem; padding: 7px 9px; }
  .ti-more { width: 22px; }
  .ti-page { font-size: .78rem; max-width: 112px; padding: 0 9px 0 7px; }
  .nav-right { gap: 8px; }
  .nav-right .btn-sm { padding: 7px 14px; font-size: .86rem; }
}

/* ---------- Portada, estructura 60/40 con un único eje a la izquierda ---------- */
.hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 64px; row-gap: 40px; align-items: center; padding: 56px 16px 24px; }
.hero-copy { grid-column: 1; display: flex; flex-direction: column; align-items: flex-start; }
.hero-copy .hero-logo { width: min(100%, 400px); margin: 0 0 32px; }
.hero-copy h1 { font-size: clamp(2.6rem, 4.7vw, 4.4rem); line-height: .98; letter-spacing: -.035em; margin: 0 0 24px; max-width: 14ch; }
.hero-copy .lead { font-size: 1.2rem; max-width: 40ch; margin: 0 0 32px; }
.hero-copy .cta-row { margin: 0 0 32px; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; }
.proof li { position: relative; padding-left: 16px; }
.proof li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); opacity: .7; }
.hero .stage { grid-column: 2; max-width: 520px; width: 100%; margin: 0 0 0 auto; }
.hero .stage .hud { margin-top: 18px; padding: 0 4px; gap: 8px 20px; justify-content: space-between; }
.hero-ticker { display: block; grid-column: 1 / -1; }
.hero-ticker .mini-prices { margin: 0; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; row-gap: 32px; padding-top: 32px; }
  .hero .stage { grid-column: 1; max-width: 460px; margin: 0 auto; }
  .hero-copy .hero-logo { width: min(100%, 300px); }
}

/* ---------- Menú: más grande, con menos espacio y piezas rectas (esquinas casi rectas, mismo brillo de burbuja) ---------- */
.nav { padding: 14px max(16px, calc((100vw - 1400px) / 2)); gap: 18px; }
.trail { gap: 4px; }
.ti { border-radius: 6px; }
.ti .bubble { border-radius: 5px; font-size: .95rem; padding: 10px 15px; }
.ti.has-panel .bubble { border-radius: 5px 0 0 5px; padding-right: 11px; }
.ti.on:not(.has-panel) .bubble { border-radius: 5px 0 0 5px; }
.ti-more { width: 30px; border-radius: 0 5px 5px 0; }
.ti-page { border-radius: 3px; font-size: .88rem; max-width: 150px; margin: 4px 4px 4px 0; }
@media (max-width: 1499px) and (min-width: 1241px) {
  .ti .bubble { font-size: .9rem; padding: 9px 12px; }
  .ti-more { width: 28px; }
  .ti-page { font-size: .84rem; max-width: 130px; }
}
@media (max-width: 1339px) and (min-width: 1241px) {
  .nav { gap: 10px; }
  .ti .bubble { font-size: .82rem; padding: 8px 10px; }
  .ti-more { width: 24px; }
  .ti-page { font-size: .78rem; max-width: 112px; }
}

/* Cómo funciona: el contenido empieza arriba, sin hueco vacío */
.story-sticky { align-items: start; padding-top: 28px; }

/* Precios justo bajo la batería, con su mismo ancho */
.hero .stage .mini-prices { display: block; margin: 14px 0 0; }
.hero .stage .mini-prices .mp-label { font-size: 11px; }
.hero .stage .hud { margin-top: 12px; }
.hero-ticker { display: none; }

/* Cabecera con los mismos márgenes que el contenido y menú centrado entre el logo y los idiomas */
.nav { padding: 14px max(16px, calc((100vw - var(--maxw)) / 2)); }
#mainnav .trail { justify-content: center; }
/* Portada: la batería queda centrada en vertical entre el logo y el botón */
@media (min-width: 961px) { .hero .stage { margin-top: 90px; } }

/* El menú nunca se mete debajo del logo; la pieza activa y el hover son lila oscuro, a juego con la marca */
#mainnav .trail { justify-content: flex-start; }
#mainnav .trail > li:first-child { margin-left: auto; }
#mainnav .trail > li:last-child { margin-right: auto; }
.ti.on { background: linear-gradient(180deg, #5a63d6, #3a42b4); border-color: #7f89f0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28); }
.ti.on .bubble { color: #fff; }
.ti.on .ti-more { border-left-color: rgba(255, 255, 255, .28); }
.ti.on .ti-more::after { border-color: #fff; }
.ti-page { background: rgba(11, 10, 51, .35); color: #fff; }
.ti-page:hover { background: rgba(11, 10, 51, .55); }
.ti:hover { background: linear-gradient(180deg, rgba(120, 130, 240, .38), rgba(90, 99, 214, .2)); }
.ti.on:hover { background: linear-gradient(180deg, #6770e0, #444cc0); }
.col li a[aria-current] { background: #3a42b4; color: #fff; }
@media (min-width: 1241px) {
  #mainnav { overflow: visible; }
  .nav { gap: 10px; }
  .trail { gap: 3px; }
  .ti .bubble { font-size: .8rem; padding: 8px 9px; }
  .ti-more { width: 22px; }
  .ti-page { font-size: .76rem; max-width: 104px; padding: 0 8px 0 6px; }
  .nav-right { gap: 8px; }
  .nav-right .btn-sm { padding: 7px 14px; font-size: .86rem; }
}

.grp + .grp { margin-top: 40px; }
.grp h2 { font-size: 1.3rem; margin-bottom: 14px; }
.grp h2 a { text-decoration: none; }
.grp h2 a:hover { color: var(--accent); }

/* Iconos en las fichas de Soluciones */
.idx-tile { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; }
.idx-tile .ic { width: 46px; height: 46px; color: #fff; opacity: .95; flex: none; }
.idx-tile .ic.flag { width: 58px; height: 39px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.idx.compact .idx-tile { min-height: 150px; }
.idx-tile .ic:not(.flag) { width: 64px; height: 64px; }
.idx-tile .ic.flag { width: 72px; height: 48px; }
.idx.compact .idx-tile { min-height: 175px; }

button.bubble { background: none; border: 0; cursor: pointer; }
.col li a { display: flex; align-items: center; gap: 12px; }
.col li a .ic { width: 28px; height: 28px; flex: none; color: var(--accent); }
.col li a .ic.flag { width: 36px; height: 24px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.col li a[aria-current] .ic { color: #fff; }

.hero-fig { display: flex; flex-direction: column; gap: 8px; }
.credit { font-size: .72rem; color: var(--muted); text-decoration: none; opacity: .75; }
.credit:hover { opacity: 1; text-decoration: underline; }

/* ---------- Ilustraciones isométricas de los activos (estilo cómic) ---------- */
.page-hero:has(+ .section .scene) { grid-template-columns: 1fr; padding-bottom: 8px; }
.scene { position: relative; margin: 0; border-radius: 22px; background: #f4efe2; overflow: hidden; aspect-ratio: 960 / 500;
  background-image: linear-gradient(rgba(20, 16, 74, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 16, 74, .06) 1px, transparent 1px); background-size: 32px 32px; }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene polygon, .scene ellipse, .scene rect, .scene path:not(.flow) { stroke: #14104a; stroke-width: 2.4; stroke-linejoin: round; }
.scene line, .scene polyline { stroke: #14104a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.scene .pylon line { stroke-width: 2.8; }
.scene .pvl { stroke: #8f9bf0; stroke-width: 1.2; }
.scene .leg { stroke-width: 2; }
.scene .sun circle { fill: #ffb400; stroke: #14104a; stroke-width: 2.4; }
.scene .sun line { stroke: #14104a; stroke-width: 3; transform-origin: center; }
.scene .sun { animation: sunPulse 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sunPulse { 50% { transform: scale(1.06); } }
.scene .rotor { animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene .s-flow polyline { stroke: #14104a; stroke-width: 7; }
.scene .s-flow polyline::after { content: none; }
.scene .s-flow polyline.flow { stroke: #ffb400; stroke-width: 4; stroke-dasharray: 1 13; animation: flowDash 1.4s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -28; } }
.scene .lead-line { stroke: #14104a; stroke-width: 1.6; stroke-dasharray: 5 5; }
.scene .hs-dot { fill: #19b3a0; stroke: #fff; stroke-width: 2.5; }
.scene .hs-pulse { fill: none; stroke: #19b3a0; stroke-width: 2; animation: hsPulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hsPulse { from { transform: scale(.8); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
.co { position: absolute; width: 27%; background: #fbf8ef; border: 1.5px solid #14104a; border-radius: 12px; padding: 12px 16px 14px; color: #14104a; box-shadow: 3px 3px 0 rgba(20, 16, 74, .85); transition: transform .2s; }
.co:hover { transform: translate(-2px, -2px); }
.co b { display: block; font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 4px; }
.co span { display: block; font-size: .86rem; line-height: 1.35; color: #3b3a6e; }
.scene .co:nth-of-type(2) { left: auto; right: 2.3%; }
@media (max-width: 860px) {
  .scene { aspect-ratio: auto; display: flex; flex-direction: column; padding-bottom: 14px; }
  .scene svg { position: static; aspect-ratio: 960 / 500; height: auto; }
  .scene .lead-line, .scene .hs { display: none; }
  .co { position: static; width: auto; margin: 10px 14px 0; }
}
@media (prefers-reduced-motion: reduce) { .scene .rotor, .scene .sun, .scene .flow, .scene .hs-pulse { animation: none; } }

/* Ilustración de activo a la derecha del texto, en la paleta de la web */
.page-hero:has(.scene) { grid-template-columns: 1fr 1fr; padding-bottom: 24px; }
.scene { background: #12104f; background-image: linear-gradient(rgba(143, 155, 240, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 155, 240, .08) 1px, transparent 1px); background-size: 28px 28px; border: 1px solid var(--line); aspect-ratio: 960 / 500; }
.scene .slab polygon, .scene .slab { stroke: #5b66d8; }
.scene polygon, .scene ellipse, .scene rect { stroke: #0b0a33; }
.scene .s-flow polyline:not(.flow) { stroke: #0b0a33; }
.scene .pylon line, .scene polyline { stroke: #aab3f2; }
.scene .s-flow polyline.flow { stroke: #ffb400; }
.scene .sun line { stroke: #ffb400; }
.scene .pvl { stroke: #aab3f2; }
.scene .hs-dot { fill: #5660e0; stroke: #fff; stroke-width: 2; }
.scene .hs-pulse { stroke: #9aa3ff; }
.scene .hs text { fill: #fff; font: 700 18px var(--sans); stroke: none; }
.pts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.pts li { display: flex; gap: 14px; align-items: flex-start; }
.pts i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #5660e0; color: #fff; display: grid; place-items: center; font: 700 .85rem var(--sans); font-style: normal; margin-top: 2px; }
.pts b { display: block; font-size: 1rem; }
.pts span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; }
@media (max-width: 960px) { .page-hero:has(.scene) { grid-template-columns: 1fr; } }

/* Trazo más fino y sobrio */
.scene polygon, .scene ellipse, .scene rect, .scene line, .scene polyline { stroke-width: 1.5; }
.scene .pylon line { stroke-width: 1.8; }
.scene .s-flow polyline { stroke-width: 5; }
.scene .s-flow polyline.flow { stroke-width: 3; }
.scene .sun circle { stroke-width: 1.5; }
.scene .sun line { stroke-width: 2; }

.page-hero:has(.scene) { align-items: center; }
.scene { width: 100%; justify-self: stretch; overflow: hidden; }
.scene svg { overflow: hidden; }

/* La ilustración empieza a la altura del párrafo de apoyo */
@media (min-width: 961px) {
  .page-hero:has(.scene) { align-items: start; row-gap: 0; }
  .page-hero:has(.scene) > div { display: contents; }
  .page-hero:has(.scene) > div > * { grid-column: 1; }
  .page-hero:has(.scene) .scene { grid-column: 2; grid-row: 3 / span 2; align-self: start; margin-top: 16px; }
  .page-hero:has(.scene) .lead { margin-top: 12px; }
}


.scene .hs { pointer-events: none; }

.pts li { padding-left: 16px; border-left: 2px solid #5660e0; }

/* Ilustración en la misma posición en todas las páginas de activos, sin depender del largo del titular */
@media (min-width: 961px) {
  .page-hero:has(.scene) .scene { grid-row: 1 / span 4; align-self: start; margin-top: 44px; }
}

/* La ilustración ocupa toda la altura del texto, de arriba abajo */
@media (min-width: 961px) {
  .page-hero:has(.scene) { align-items: stretch; }
  .page-hero:has(.scene) .scene { grid-row: 1 / span 4; align-self: stretch; margin-top: 0; aspect-ratio: auto; min-height: 420px; }
  .page-hero:has(.scene) .scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
}

/* ---------- Estilo plano técnico: líneas finas, sin colores, cotas de arquitecto ---------- */
.scene { background-color: #0a0932; background-image: linear-gradient(rgba(143, 155, 240, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 155, 240, .07) 1px, transparent 1px); background-size: 24px 24px; border-color: rgba(143, 155, 240, .3); border-radius: 6px; }
.scene polygon, .scene ellipse, .scene rect, .scene circle:not(.hs-dot) { fill: #0d0c3d; stroke: #9aa5f5; stroke-width: 1; }
.scene .s-body polygon:nth-child(odd) { fill: #100f48; }
.scene .pv polygon { fill: #0f0e44; }
.scene .pvl, .scene .leg, .scene .pylon line { stroke: #7f8bdf; stroke-width: .9; }
.scene .sun circle { fill: none; stroke: #c9d0ff; stroke-width: 1; }
.scene .sun line { stroke: #c9d0ff; stroke-width: 1; }
.scene .slab polygon { fill: #0b0a38; stroke: #7f8bdf; }
.scene .tur path { fill: #0d0c3d; stroke: #c9d0ff; stroke-width: .9; }
.scene .tur polygon, .scene .tur rect { stroke: #c9d0ff; }
.scene .s-body line, .scene .s-body polyline { stroke: #9aa5f5; stroke-width: 1; }
.scene .s-flow polyline:not(.flow) { stroke: none; }
.scene .s-flow polyline.flow { stroke: #e4e8ff; stroke-width: 1.6; stroke-dasharray: 2 9; }
.scene .s-dim line { stroke: #8f9bf0; stroke-width: .8; opacity: .8; }
.scene .s-title { fill: #8f9bf0; font: 10px var(--mono); letter-spacing: .14em; opacity: .85; }

/* El cuadro empieza a la altura del titular (no de la etiqueta) y termina con el último texto */
@media (min-width: 961px) {
  .page-hero:has(.scene) .scene { grid-row: 2 / span 3; }
}

/* "Qué incluye" como tarjetas sin fondo */
.cc-title { font-size: 1.3rem; margin: 0 0 16px; }
.cc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cc { all: unset; box-sizing: border-box; display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); cursor: pointer; line-height: 1.4;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .2s, color .2s; }
.cc-tick { flex: none; width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid var(--accent); border-radius: 50%; position: relative; transition: background .2s; }
.cc-tick::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #0b0a33; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.cc:hover { transform: scale(1.04); border-color: var(--accent); color: var(--text); }
.cc[aria-pressed="true"] { transform: scale(1.04); border-color: var(--accent); color: #fff; }
.cc[aria-pressed="true"] .cc-tick { background: var(--accent); }
.cc[aria-pressed="true"] .cc-tick::after { opacity: 1; }
.cc:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 960px) { .cc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cc-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cc { transition: none; } .cc:hover, .cc[aria-pressed="true"] { transform: none; } }

/* El check solo aparece al pasar el ratón (o al enfocar con teclado) */
.cc[aria-pressed="true"] { transform: none; border-color: var(--line); color: var(--muted); }
.cc[aria-pressed="true"] .cc-tick, .cc[aria-pressed="true"] .cc-tick::after { background: none; opacity: 1; }
.cc .cc-tick { background: none; }
.cc .cc-tick::after { opacity: 0; transition: opacity .15s; }
.cc:hover .cc-tick, .cc:focus-visible .cc-tick { background: var(--accent); }
.cc:hover .cc-tick::after, .cc:focus-visible .cc-tick::after { opacity: 1; }
.cc, .cc:hover { cursor: default; }

/* En los desplegables solo se ilumina la opción bajo el ratón (o con el foco), no la página actual */
.col li a[aria-current], .col li a[aria-current] .ic { background: rgba(255, 255, 255, .08); color: inherit; }
.col li a[aria-current] .ic:not(.flag) { color: var(--accent); }
.col li a:hover, .col li a:focus-visible { background: var(--brand); }
.col li a:hover .ic:not(.flag), .col li a:focus-visible .ic:not(.flag) { color: #fff; }

/* Puntos con texto desplegable (mismo formato en todas las páginas de soluciones) */
.pts.acc { display: grid; gap: 4px; margin: 22px 0 0; max-width: 560px; }
.pts.acc li { display: block; padding: 0; border-left: 2px solid #5660e0; transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .2s, background .2s; }
.pts.acc li:hover { transform: translateX(6px); border-left-color: var(--accent); background: rgba(86, 96, 224, .12); }
.pts.acc li.open { border-left-color: #fff; background: rgba(86, 96, 224, .18); }
.ac-head { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; cursor: pointer; }
.ac-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ac-head b { font-size: 1.12rem; color: #fff; }
.ac-ch { flex: none; width: 9px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
.pts.acc li.open .ac-ch { transform: rotate(-135deg) translateY(-2px); }
.ac-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1), visibility 0s .35s; }
.pts.acc li.open .ac-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.ac-body > div { overflow: hidden; min-height: 0; }
.ac-body p { margin: 0; padding: 0 16px 16px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .pts.acc li, .ac-body, .ac-ch { transition: none; } .pts.acc li:hover { transform: none; } }

/* "Qué incluye": checks siempre visibles, sin efectos al pasar el ratón; se animan solo al cargarse */
.cc, .cc:hover, .cc:focus-visible, .cc[aria-pressed] { transform: none; border-color: var(--line); color: var(--muted); cursor: default; transition: none; }
.cc .cc-tick, .cc:hover .cc-tick { background: var(--accent); border-color: var(--accent); }
.cc .cc-tick::after, .cc:hover .cc-tick::after { opacity: 1; }

/* Al pasar el ratón: la tarjeta crece un poco y el borde se ilumina */
.cc { transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .2s, box-shadow .25s; }
.cc:hover { transform: scale(1.04); border-color: var(--accent); box-shadow: 0 0 0 1px rgba(154, 163, 255, .45), 0 0 18px rgba(154, 163, 255, .35); color: var(--text); }
@media (prefers-reduced-motion: reduce) { .cc { transition: none; } .cc:hover { transform: none; } }

.scene .dash { fill: none; stroke: #9aa5f5; stroke-dasharray: 5 5; }
.scene .trend { stroke: #e4e8ff; stroke-width: 1.6; stroke-dasharray: 6 5; fill: none; }

/* Mapas de países */
.scene .s-map path.land { fill: #0f0e48; stroke: #c9d0ff; stroke-width: 1.4; stroke-linejoin: round; }
.scene .s-map .grat line { stroke: #6671bf; stroke-width: .7; opacity: .35; stroke-dasharray: 2 6; }
.scene .s-map .xs line { stroke: #8f9bf0; stroke-width: .8; opacity: .55; stroke-dasharray: 4 5; }
.scene .s-map .cap { fill: #c9d0ff; stroke: none; }
.scene .s-map .cap2 { fill: none; stroke: #c9d0ff; stroke-width: 1; opacity: .7; }
.scene .s-map .s-dim line { stroke: #8f9bf0; stroke-width: .8; opacity: .8; }

/* Etiqueta de estado en las páginas de países: tamaño de texto, sin estirarse */
.page-hero:has(.scene) .status { align-self: start; justify-self: start; width: fit-content; height: fit-content; margin: 8px 0 0; }
@media (min-width: 961px) { .page-hero:has(.status):has(.scene) .scene { grid-row: 2 / span 4; } }

/* Monigote en primer plano */
.scene .pers line, .scene .pers polyline, .scene .pers path { stroke: #e4e8ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.scene .pers .fillp { fill: #0d0c3d; stroke: #e4e8ff; stroke-width: 1.5; }
.scene .pers circle.dot { fill: #e4e8ff; stroke: none; }
.scene .pers .shadow { fill: rgba(143, 155, 240, .18); stroke: none; }

/* Servicios: cabecera solo de texto */
.page-hero.hx-solo { grid-template-columns: 1fr; padding-bottom: 8px; }
.page-hero.hx-solo .lead { max-width: 60ch; }

/* Figura humana de frente (estilo plano de arquitectura) */
.scene .pers path, .scene .pers rect, .scene .pers ellipse:not(.shadow) { stroke: #e4e8ff; stroke-width: 1.4; stroke-linejoin: round; }
.scene .pers .fp { fill: #0d0c3d; }
.scene .pers line, .scene .pers polyline { stroke: #e4e8ff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.scene .pers .shadow { fill: rgba(143, 155, 240, .16); stroke: none; }

.scene .fig-corner { position: absolute; left: 14px; bottom: 12px; top: auto; inset: auto auto 12px 14px; width: auto; height: 36%; }
.scene svg.fig-corner, .page-hero:has(.scene) .scene svg.fig-corner { position: absolute; inset: auto auto 10px 12px; left: 12px; bottom: 10px; top: auto; right: auto; width: auto; height: 34%; overflow: visible; pointer-events: none; }

/* ---------- Cómo funciona · un bloque por mercado ---------- */
.pts.mk .ac-head { display: grid; grid-template-columns: 34px 1fr auto 24px; align-items: baseline; gap: 14px; }
.pts.mk .ac-head em { font-style: normal; font: 500 .82rem var(--sans); color: var(--muted); }
.mk-n { font: 700 .85rem monospace; color: var(--accent); }
.mk-d { margin: 0; }
.mk-d dt { font: 700 .72rem var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-top: 12px; }
.mk-d dt:first-child { margin-top: 0; }
.mk-d dd { margin: 4px 0 0; color: var(--muted); line-height: 1.55; max-width: 70ch; }
@media (max-width: 640px) { .pts.mk .ac-head { grid-template-columns: 28px 1fr 20px; } .pts.mk .ac-head em { display: none; } }

/* mercados: a todo el ancho, con los tres bloques en columnas */
.pts.acc.mk { max-width: none; }
.pts.mk .ac-head { padding: 18px 22px; }
.pts.mk .ac-head b { font-size: 1.15rem; }
.mk-d { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; padding: 4px 22px 24px 70px; }
.mk-d dt { grid-row: 1; margin: 0 0 8px; }
.mk-d dd { grid-row: 2; margin: 0; max-width: none; font-size: .98rem; }
.mk-d dt:nth-of-type(1), .mk-d dd:nth-of-type(1) { grid-column: 1; }
.mk-d dt:nth-of-type(2), .mk-d dd:nth-of-type(2) { grid-column: 2; }
.mk-d dt:nth-of-type(3), .mk-d dd:nth-of-type(3) { grid-column: 3; }
@media (max-width: 900px) {
  .mk-d { grid-template-columns: 1fr; padding-left: 22px; }
  .mk-d dt, .mk-d dd { grid-row: auto !important; grid-column: 1 !important; }
  .mk-d dt { margin-top: 14px; }
}

/* ---------- Sticker de batería (juego) y pantalla del juego ---------- */
.ti-game { list-style: none; display: flex; align-items: center; margin-left: 4px; flex: none; }
.game-sticker { all: unset; cursor: pointer; display: block; width: 46px; padding: 5px; border-radius: 12px; background: #fff; transform: rotate(-7deg); box-shadow: 0 3px 10px rgba(0, 0, 0, .35); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.game-sticker svg { display: block; width: 100%; height: auto; }
.game-sticker rect { fill: #fff; stroke: #0b0a33; stroke-width: 4; }
.game-sticker .nub { fill: #0b0a33; }
.game-sticker .bolt { fill: #ffd23f; stroke: #0b0a33; stroke-width: 2.5; stroke-linejoin: round; }
.game-sticker:hover, .game-sticker:focus-visible { transform: rotate(5deg) scale(1.12); }
.game-sticker:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.game-dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: #fff; }
.game-dialog::backdrop { background: rgba(5, 4, 28, .82); backdrop-filter: blur(4px); }
.game-dialog[open] { display: grid; place-items: center; }
.game-wrap { position: relative; width: min(94vw, calc(92vh * 2 / 3), 480px); aspect-ratio: 2 / 3; border-radius: 22px; overflow: hidden; border: 1px solid rgba(154, 163, 255, .4); box-shadow: 0 20px 80px rgba(0, 0, 0, .6); touch-action: none; }
.game-wrap canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.game-panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 28px 30px; gap: 10px; background: rgba(8, 7, 38, .88); }
.game-panel[hidden] { display: none; }
.game-panel h2 { margin: 0; font-size: 2.4rem; letter-spacing: -.03em; }
.game-panel h3 { margin: 14px 0 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.game-panel p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .98rem; }
.game-panel p b { color: #fff; }
.g-sub { font-size: 1.1rem !important; color: #fff !important; }
.g-big { font: 700 3.4rem var(--sans) !important; color: #7dffb0 !important; letter-spacing: -.03em; line-height: 1.1; }
.g-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 0; width: 100%; }
.g-stats div { padding: 10px 6px; border-radius: 12px; background: rgba(154, 163, 255, .12); }
.g-stats dt { font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.g-stats dd { margin: 4px 0 0; font-weight: 700; font-size: .95rem; }
.g-rank { list-style: none; margin: 8px 0 0; padding: 0; width: 70%; display: grid; gap: 4px; }
.g-rank li { display: flex; justify-content: space-between; padding: 6px 14px; border-radius: 8px; background: rgba(154, 163, 255, .08); font-size: .95rem; }
.g-rank li.me { background: rgba(125, 255, 176, .18); color: #7dffb0; }
.g-note { font-size: .75rem !important; opacity: .7; }
.g-btns { display: flex; gap: 10px; margin-top: 16px; }
.game-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); cursor: pointer; transition: background .2s, transform .25s; }
.game-close:hover { background: rgba(255, 255, 255, .3); transform: rotate(90deg); }
.game-close::before, .game-close::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: #fff; transform: rotate(45deg); }
.game-close::after { transform: rotate(-45deg); }
@media (max-width: 1060px) { .ti-game { margin: 6px 0 0; } .game-sticker { width: 52px; } }

/* ---------- Botón redondo de batería junto al idioma ---------- */
.game-btn { all: unset; cursor: pointer; position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(154, 163, 255, .14); border: 1px solid rgba(154, 163, 255, .45); transition: transform .2s cubic-bezier(.2, .8, .2, 1), background .2s; flex: none; }
.game-btn svg { width: 24px; height: auto; position: relative; z-index: 1; }
.game-btn rect { fill: none; stroke: #dfe3ff; stroke-width: 4; }
.game-btn .nub { fill: #dfe3ff; stroke: none; }
.game-btn .bolt { fill: #ffd23f; stroke: #0b0a33; stroke-width: 2; stroke-linejoin: round; }
.game-btn:hover, .game-btn:focus-visible { transform: scale(1.1) rotate(-6deg); background: rgba(154, 163, 255, .28); }
.game-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.game-ring { position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; opacity: 0; }
.game-btn.lit .game-ring { animation: gring .75s ease-out; }
@keyframes gring {
  0% { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 10px 2px #9aa3ff, 0 0 0 0 rgba(154, 163, 255, .8); }
  60% { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 26px 8px #9aa3ff, 0 0 0 14px rgba(154, 163, 255, .25); }
  100% { opacity: 0; box-shadow: 0 0 0 2px #fff, 0 0 34px 12px #9aa3ff, 0 0 0 26px rgba(154, 163, 255, 0); }
}
@media (prefers-reduced-motion: reduce) { .game-btn.lit .game-ring { animation: none; opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 18px 6px #9aa3ff; } }
.nav-right { gap: 12px; }
.g-save { display: flex; gap: 8px; margin-top: 12px; width: 100%; }
.g-save input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(154, 163, 255, .45); background: rgba(154, 163, 255, .1); color: #fff; font: 500 .95rem var(--sans); }
.g-rank li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-rank { width: 80%; }

/* botón del juego: solo verde fluor, halo al acercar el ratón */
.game-btn { background: none; border: 1.5px solid rgba(57, 255, 136, .5); transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s; }
.game-btn rect { stroke: #39ff88; stroke-width: 4; fill: none; }
.game-btn .nub { fill: #39ff88; stroke: none; }
.game-btn .maze { fill: none; stroke: #39ff88; stroke-width: 2.4; stroke-linejoin: round; opacity: .6; }
.game-btn .bolt { fill: #39ff88; stroke: none; }
.game-btn:hover, .game-btn:focus-visible { background: none; transform: scale(1.08); border-color: #39ff88; box-shadow: 0 0 0 3px rgba(57, 255, 136, .22), 0 0 22px 4px rgba(57, 255, 136, .55); }
@keyframes gring {
  0% { opacity: 1; box-shadow: 0 0 0 2px #39ff88, 0 0 10px 2px #39ff88; }
  60% { opacity: 1; box-shadow: 0 0 0 2px #39ff88, 0 0 26px 8px #39ff88, 0 0 0 14px rgba(57, 255, 136, .25); }
  100% { opacity: 0; box-shadow: 0 0 0 2px #39ff88, 0 0 34px 12px #39ff88, 0 0 0 26px rgba(57, 255, 136, 0); }
}

/* ================= Datos y gráficos (OMIE) ================= */
:root { --cy: #9aa3ff; --chg: #39ff88; --dis: #ffb454; --rose: #ff9bb0; }
.num, .val { font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(29, 26, 116, .55), rgba(20, 17, 90, .3)); overflow: hidden; isolation: isolate; transition: border-color .25s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.stat::before, .card.feature::before, .calc::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none; transition: opacity .25s; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(154, 163, 255, .17), transparent 70%); }
.stat:hover::before, .card.feature:hover::before, .calc:hover::before { opacity: 1; }
.stat:hover { border-color: rgba(154, 163, 255, .55); transform: translateY(-3px); }
.s-l { font-size: .86rem; color: var(--muted); }
.s-n { display: flex; align-items: baseline; gap: 6px; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -.03em; font-weight: 600; }
.s-n small { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.s-d { font: 500 .74rem var(--mono); color: var(--muted); font-style: normal; }
.s-d.up { color: var(--cy); } .s-d.down { color: var(--rose); }
.spark { width: 120px; height: 32px; margin-top: 4px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--cy); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.spark circle { fill: var(--cy); }
.stat.fig { gap: 8px; min-height: 120px; justify-content: space-between; }
.card.feature { position: relative; isolation: isolate; }

/* primera pantalla */
.hero-copy h1 { max-width: 16ch; }
.hero-copy .cta-row { margin-bottom: 26px; }
.hero-live { margin: 0 0 8px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 34px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); justify-content: start; }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.hero-stats dt { font-size: .82rem; color: var(--muted); }
.hero-stats dd { margin: 0; display: flex; align-items: baseline; gap: 5px; font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.hero-stats small { font-size: .74rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.hero-src { font: .72rem var(--mono); color: var(--muted); margin: 10px 0 0; letter-spacing: .04em; }

/* botón con luz que recorre el borde */
@property --na { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn-neon { position: relative; border: 2px solid transparent; color: #fff;
  background: linear-gradient(var(--brand), var(--brand)) padding-box, conic-gradient(from var(--na), rgba(154, 163, 255, 0) 0 55%, var(--cy) 82%, #fff 92%, rgba(154, 163, 255, 0) 100%) border-box;
  animation: na 3.4s linear infinite; box-shadow: 0 0 22px rgba(154, 163, 255, .22); }
.btn-neon:hover { box-shadow: 0 0 30px rgba(154, 163, 255, .5), 0 8px 28px rgba(86, 96, 224, .5); }
@keyframes na { to { --na: 360deg; } }

/* gráfico del día */
.ac { border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 8px; background: rgba(20, 17, 90, .3); }
.ac-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ac-tabs { position: relative; display: inline-flex; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; }
.ac-tabs button { position: relative; z-index: 1; font: 500 .86rem var(--sans); color: var(--muted); background: none; border: 0; padding: 7px 15px; border-radius: 999px; cursor: pointer; transition: color .25s; }
.ac-tabs button[aria-pressed="true"] { color: #0b0a33; }
.ac-tabs .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 999px; background: var(--cy); transition: left .4s cubic-bezier(.3, 1.35, .5, 1), width .4s cubic-bezier(.3, 1.35, .5, 1); }
.ac-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }
.lg.c::before { background: var(--chg); } .lg.d::before { background: var(--dis); }
.ac-stage { position: relative; }
.ac-stage svg { display: block; width: 100%; height: auto; touch-action: pan-y; overflow: visible; }
.ac-grid line { stroke: rgba(141, 151, 255, .16); }
.ac-grid text { fill: var(--muted); font: 11px var(--mono); }
.ac-line { fill: none; stroke: var(--cy); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(154, 163, 255, .55)); }
.ac.drawn .ac-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.4, 0, .2, 1); }
.ac-area { opacity: 0; } .ac.drawn .ac-area { opacity: 1; transition: opacity 1s .5s; }
.band.c { fill: rgba(57, 255, 136, .13); } .band.d { fill: rgba(255, 180, 84, .13); }
.ac-cur line { stroke: rgba(255, 255, 255, .55); stroke-dasharray: 3 3; }
.ac-cur circle { fill: #fff; stroke: var(--cy); stroke-width: 2.5; }
.ac-tip { position: absolute; z-index: 2; transform: translateX(-50%); pointer-events: none; opacity: 0; white-space: nowrap; padding: 7px 11px; border-radius: 10px; background: #0b0a33; border: 1px solid var(--line); font: 500 .82rem var(--mono); transition: opacity .12s; }
.ac-tip.on { opacity: 1; }
.ac-tip b { color: var(--cy); margin-right: 4px; }
.ac-tip em { font-style: normal; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: .7rem; }
.ac-tip em.c { background: rgba(57, 255, 136, .18); color: var(--chg); } .ac-tip em.d { background: rgba(255, 180, 84, .18); color: var(--dis); }

/* calculadora */
.calc { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 34px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(29, 26, 116, .5), rgba(20, 17, 90, .28)); }
.c-in { display: grid; gap: 26px; align-content: start; }
.c-in label { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: baseline; font-size: .95rem; color: var(--muted); }
.c-in output { font: 600 1.6rem var(--sans); color: #fff; letter-spacing: -.02em; }
.c-in input[type=range] { grid-column: 1 / -1; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; outline-offset: 6px; cursor: pointer;
  background: linear-gradient(90deg, var(--cy) var(--p, 25%), rgba(141, 151, 255, .25) var(--p, 25%)); }
.c-in input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--cy); box-shadow: 0 0 14px rgba(154, 163, 255, .7); transition: transform .15s; }
.c-in input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--cy); box-shadow: 0 0 14px rgba(154, 163, 255, .7); }
.c-in input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); }
.c-eff { margin: 0; font: .8rem var(--mono); color: var(--muted); }
.c-out { display: grid; gap: 14px; align-content: start; }
.c-o { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.c-o span { color: var(--muted); font-size: .92rem; }
.c-o b { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.c-o b small { font-size: .78rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.c-o.year b { font-size: clamp(1.9rem, 3.2vw, 2.7rem); color: var(--cy); }
.c-out .btn { justify-self: start; margin-top: 6px; }

/* barras de precios */
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: minmax(180px, 17rem) minmax(0, 1fr) auto; align-items: center; gap: 6px 18px; }
.bar .b-l { font-size: .95rem; }
.bar .b-t { height: 16px; border-radius: 99px; background: rgba(141, 151, 255, .14); overflow: hidden; }
.bar .b-t i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 99px; background: linear-gradient(90deg, #5660e0, var(--cy)); transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.bars.in .bar .b-t i { transform: none; }
.bars.in .bar:nth-child(2) .b-t i { transition-delay: .12s; } .bars.in .bar:nth-child(3) .b-t i { transition-delay: .24s; } .bars.in .bar:nth-child(4) .b-t i { transition-delay: .36s; }
.bar.b1 .b-t i { background: linear-gradient(90deg, #b8791f, var(--dis)); }
.bar.b2 .b-t i { background: linear-gradient(90deg, #b8791f, var(--dis)); }
.bar.b3 .b-t i { background: linear-gradient(90deg, #14a85a, var(--chg)); }
.bar .b-n { font-size: 1.15rem; font-weight: 600; white-space: nowrap; min-width: 8.5rem; text-align: right; }
.bar .b-n small { font-size: .74rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.bar .s-d { grid-column: 2 / -1; }
.bars-sum { margin: 18px 0 8px; color: var(--muted); } .bars-sum b { color: var(--chg); font-size: 1.15rem; }

/* mapa de calor */
.heat { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 8px; }
.heat-y { display: grid; grid-template-rows: repeat(24, 1fr); font: .66rem var(--mono); color: var(--muted); text-align: right; }
.heat-y span { display: flex; align-items: center; justify-content: flex-end; }
.heat-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-rows: clamp(9px, 1.5vw, 15px); gap: 2px; }
.heat-grid i { border-radius: 3px; transition: transform .12s, filter .12s; cursor: crosshair; }
.heat-grid i:hover { transform: scale(1.6); filter: brightness(1.25); position: relative; z-index: 2; }
.heat-x { grid-column: 2; display: grid; grid-template-columns: repeat(var(--cols), 1fr); font: .62rem var(--mono); color: var(--muted); }
.heat-x span { white-space: nowrap; overflow: visible; }
.heat-key { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px 44px; font: .74rem var(--mono); color: var(--muted); }
.heat-key i { flex: 0 1 260px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, rgb(29, 26, 116), rgb(86, 96, 224), rgb(191, 232, 255)); }
.tip { position: fixed; z-index: 90; pointer-events: none; transform: translate(-50%, -135%); opacity: 0; padding: 6px 10px; border-radius: 8px; background: #0b0a33; border: 1px solid var(--line); font: 500 .78rem var(--mono); white-space: nowrap; transition: opacity .1s; }
.tip.on { opacity: 1; }

/* línea de tiempo del día */
.tl { --p: 0; list-style: none; position: relative; margin: 0; padding: 0; }
.tl::before, .tl::after { content: ""; position: absolute; left: 11px; top: 14px; width: 2px; border-radius: 2px; }
.tl::before { bottom: 14px; background: var(--line); }
.tl::after { height: calc((100% - 28px) * var(--p)); background: linear-gradient(var(--cy), var(--chg)); box-shadow: 0 0 12px rgba(154, 163, 255, .6); }
.tl li { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 18px; padding: 16px 0 16px 48px; opacity: .45; transition: opacity .4s; }
.tl li.on { opacity: 1; }
.tl-dot { position: absolute; left: 3px; top: 22px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); transition: background .3s, border-color .3s, box-shadow .3s, transform .3s; }
.tl li.on .tl-dot { background: var(--cy); border-color: var(--cy); transform: scale(1.1); box-shadow: 0 0 0 6px rgba(154, 163, 255, .16), 0 0 16px rgba(154, 163, 255, .75); }
.tl time { font: 500 .84rem var(--mono); color: var(--accent); padding-top: 6px; }
.tl li > div { display: grid; gap: 4px; }
.tl li b { font-size: clamp(1.15rem, 1.8vw, 1.4rem); letter-spacing: -.01em; }
.tl-c { color: var(--muted); }

/* navegación flotante por secciones */
.sp { position: fixed; right: 18px; top: 50%; z-index: 40; transform: translate(14px, -50%); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.sp.on { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.sp ul { list-style: none; margin: 0; padding: 12px 8px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11, 10, 51, .78); backdrop-filter: blur(10px); }
.sp button { position: relative; display: block; width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(176, 179, 221, .45); cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.sp button:hover, .sp button.act { background: var(--cy); transform: scale(1.35); }
.sp button.act { box-shadow: 0 0 10px rgba(154, 163, 255, .8); }
.sp button span { position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; padding: 6px 11px; border-radius: 8px; background: #0b0a33; border: 1px solid var(--line); font: 500 .8rem var(--sans); color: #fff; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.sp button:hover span, .sp button:focus-visible span { opacity: 1; transform: translate(0, -50%); }

/* botón de enviar que cambia de forma */
.btn-morph { display: inline-flex; align-items: center; justify-content: center; gap: 0; min-width: 11rem; transition: gap .35s, background .3s, transform .15s, box-shadow .2s; }
.btn-morph .bm-i { width: 0; height: 22px; overflow: hidden; opacity: 0; transition: width .35s cubic-bezier(.3, 1.4, .5, 1), opacity .25s; }
.btn-morph[data-state]:not([data-state="idle"]) { gap: 10px; }
.btn-morph[data-state]:not([data-state="idle"]) .bm-i { width: 22px; opacity: 1; }
.bm-i svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bm-i svg > * { display: none; }
.btn-morph[data-state="loading"] .bm-spin { display: block; stroke-dasharray: 38 20; transform-origin: 12px 12px; animation: bmspin .8s linear infinite; }
.btn-morph[data-state="success"] .bm-ok { display: block; stroke-dasharray: 1; stroke-dashoffset: 1; animation: bmdraw .45s .1s ease-out forwards; }
.btn-morph[data-state="error"] .bm-err { display: block; }
.btn-morph[data-state="success"] { background: #14a85a; } .btn-morph[data-state="error"] { background: #d14a6a; animation: bmshake .4s; }
.btn-morph:disabled { cursor: progress; opacity: .9; }
@keyframes bmspin { to { transform: rotate(360deg); } }
@keyframes bmdraw { to { stroke-dashoffset: 0; } }
@keyframes bmshake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

@media (max-width: 1000px) {
  .stats, .stats.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .bar { grid-template-columns: minmax(0, 1fr) auto; } .bar .b-t { grid-column: 1 / -1; order: 3; } .bar .s-d { grid-column: 1 / -1; order: 4; }
  .tl li { grid-template-columns: 1fr; padding-left: 44px; } .tl time { padding-top: 0; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(3, auto); gap: 8px 18px; } .hero-stats dd { font-size: 1.45rem; }
  .stats { gap: 10px; } .stat { padding: 14px 14px 12px; } .s-n { font-size: 1.9rem; }
  .heat { grid-template-columns: 28px minmax(0, 1fr); } .heat-key { margin-left: 36px; flex-wrap: wrap; }
  .c-o { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-neon { animation: none; }
  .ac-line, .ac.drawn .ac-line { stroke-dashoffset: 0; transition: none; } .ac-area { opacity: 1; }
  .bar .b-t i { transform: none; transition: none; }
  .tl li, .tl-dot { transition: none; }
}

/* evidencia pública: cifras con fuente enlazada */
.stats.ev .stat { gap: 12px; padding-bottom: 16px; }
.stats.ev .s-n { font-size: clamp(1.9rem, 2.8vw, 2.5rem); flex-wrap: wrap; }
.stats.ev .s-l { color: var(--text); font-size: .92rem; line-height: 1.45; flex: 1; }
.s-src { align-self: flex-start; font: 500 .74rem var(--mono); color: var(--cy); text-decoration: none; border-bottom: 1px solid rgba(154, 163, 255, .35); padding-bottom: 1px; transition: border-color .2s; }
.s-src:hover { border-bottom-color: var(--cy); }
.hero-stats dd { white-space: nowrap; }

/* arbitraje TB1/TB2/TB4 */
.tb-ctl { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.tb-range { margin-left: auto; font: .78rem var(--mono); color: var(--muted); }
.tb-stage { border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 6px; background: rgba(20, 17, 90, .3); }
.tb-bar { fill: var(--cy); opacity: .88; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .15s; }
.go .tb-bar { transform: none; }
.tb-bar:hover { opacity: 1; }
.tb-avg { stroke: var(--chg); stroke-width: 1.5; stroke-dasharray: 5 4; }
.tb-mark { stroke: rgba(255, 255, 255, .5); stroke-dasharray: 3 3; pointer-events: none; }
.tb-best { margin: 10px 0 0; font: .8rem var(--mono); color: var(--muted); min-height: 1.2em; }
@media (prefers-reduced-motion: reduce) { .tb-bar { transform: none; transition: none; } }

.tbx + .note { margin-top: 18px; }
.tb-best { margin-bottom: 4px; }

/* interruptor de neto de pérdidas y gráfico de horas de carga y descarga */
.tb-sw { position: relative; font: 500 .86rem var(--sans); color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px 9px 40px; cursor: pointer; transition: color .2s, border-color .2s; }
.tb-sw::before { content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid var(--line); transition: background .25s, border-color .25s, box-shadow .25s; }
.tb-sw:hover { border-color: var(--accent); }
.tb-sw[aria-pressed="true"] { color: #fff; border-color: var(--cy); }
.tb-sw[aria-pressed="true"]::before { background: var(--cy); border-color: var(--cy); box-shadow: 0 0 10px rgba(154, 163, 255, .75); }
.tb-hours { margin-top: 30px; }
.tb-hours h3 { font-size: 1.2rem; margin: 0 0 6px; }
.tb-cap { margin: 0 0 12px; color: var(--muted); font-size: .92rem; max-width: 70ch; }
.tb-hours .ac-legend { margin-bottom: 8px; }
.tb-hstage { border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 6px; background: rgba(20, 17, 90, .3); }
.tb-hbar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.tb-hbar.c { fill: var(--chg); } .tb-hbar.d { fill: var(--dis); }
.go .tb-hbar { transform: none; }
@media (prefers-reduced-motion: reduce) { .tb-hbar { transform: none; transition: none; } }

/* portada a pantalla completa; el resto aparece al hacer scroll */
.hero { min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); padding-top: 24px; padding-bottom: 48px; }
.js .hero ~ section { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .hero ~ section.sx-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .hero ~ section { opacity: 1; transform: none; transition: none; } }

/* ---------- Portada grande: titular a todo el ancho; debajo, texto a la izquierda y batería a la derecha ---------- */
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "t t" "c s"; column-gap: clamp(32px, 5vw, 80px); row-gap: clamp(20px, 3vh, 40px); align-items: center; align-content: center; padding: 20px 16px 64px; }
.hero-title { grid-area: t; }
.hero-copy { grid-area: c; }
.hero .stage { grid-area: s; grid-column: auto; max-width: 640px; width: 100%; margin: 0 0 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(154, 163, 255, .07); font: 500 .8rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cy); }
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--chg); box-shadow: 0 0 10px var(--chg); animation: hbpulse 2s ease-in-out infinite; }
@keyframes hbpulse { 50% { opacity: .35; } }
.hero-title h1 { font-size: clamp(2.8rem, 7.2vw, 6.6rem); line-height: .96; letter-spacing: -.045em; margin: 0; max-width: none; }
.hero-title h1 .hl { background: linear-gradient(95deg, #fff 8%, #9aa3ff 60%, #7e88ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .lead { font-size: clamp(1.15rem, 1.7vw, 1.45rem); max-width: 34ch; margin: 0 0 28px; }
.hero-copy .cta-row { margin: 0 0 22px; }
.hero-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; font-size: .9rem; color: var(--muted); }
.hero-who span { margin-right: 4px; }
.hero-who a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); transition: border-color .2s, background .2s, transform .2s; }
.hero-who a:hover { border-color: var(--cy); background: rgba(154, 163, 255, .1); transform: translateY(-2px); }
.hero-stats { grid-template-columns: repeat(3, auto); gap: 10px clamp(20px, 3vw, 44px); padding-top: 20px; }
.hero-stats dd { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
.hero-stats dt { font-size: .86rem; max-width: 18ch; }
.hero-down { position: absolute; left: 50%; bottom: 14px; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--cy); background: rgba(11, 10, 51, .35); transition: border-color .2s, background .2s; }
.hero-down:hover { border-color: var(--cy); background: rgba(154, 163, 255, .12); }
.hero-down svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: hdbob 1.8s ease-in-out infinite; }
@keyframes hdbob { 50% { transform: translateY(4px); } }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "t" "c" "s"; padding-bottom: 72px; }
  .hero .stage { max-width: 520px; margin: 0 auto; }
  .hero-down { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-badge::before, .hero-down svg { animation: none; } }

.hero-copy, .hero .stage { align-self: start; }
.hero-title h1 { font-size: clamp(2.8rem, min(7.2vw, 11.5vh), 6.6rem); }
.hero .stage { max-width: min(640px, 78vh); }
.hero { row-gap: clamp(14px, 2.4vh, 32px); }

/* ---------- Portada: texto a la izquierda y batería a media altura del bloque de texto, más grande ---------- */
.hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "t s" "c s"; column-gap: clamp(24px, 3vw, 56px); row-gap: 0; align-content: center; padding: clamp(20px, 3.5vh, 44px) 16px clamp(56px, 8vh, 80px); }
.hero-title { align-self: end; }
.hero-copy { align-self: start; }
.hero .stage { grid-area: s; align-self: center; width: 100%; max-width: min(740px, 88vh); margin: 0 clamp(-110px, calc((var(--maxw) - 100vw) / 2 + 16px), 0px) 0 auto; }
.hero-title h1 { font-size: clamp(2.7rem, min(5.4vw, 10vh), 5.3rem); margin-bottom: 22px; }
.hero-copy .lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); margin-bottom: 26px; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "t" "c" "s"; }
  .hero .stage { margin: 24px auto 0; max-width: 520px; }
}

/* ajuste: columna de texto más ancha para que el titular no se parta, y batería que sale un poco del contenedor */
.hero { --bleed: clamp(0px, calc((100vw - var(--maxw)) / 2 - 24px), 170px); grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.hero-title h1 { font-size: clamp(2.6rem, min(5.4vw, 10vh), 4.9rem); }
.hero .stage { width: calc(100% + var(--bleed)); max-width: min(760px, 90vh); margin: 0 calc(-1 * var(--bleed)) 0 auto; }
@media (max-width: 960px) { .hero { --bleed: 0px; } .hero .stage { width: 100%; margin: 24px auto 0; } }

.hero { min-height: min(calc(100svh - 70px), 820px); }

/* ---------- Portada: correcciones de la auditoría ---------- */
/* titular de un solo color */
.hero-title h1 .hl { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; -webkit-text-fill-color: currentColor; }
/* insignia: frase normal, sin píldora, sin mayúsculas ni punto parpadeante */
.hero-badge { display: block; margin: 0 0 16px; padding: 0; border: 0; border-radius: 0; background: none; font: 500 1.05rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.hero-badge::before { display: none; }
/* cifras: mismo formato, centradas y con las etiquetas en la misma línea */
.hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(12px, 2vw, 32px); justify-items: center; align-items: start; text-align: center; }
.hero-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: center; gap: 12px; width: 100%; }
.hero-stats dd { margin: 0; height: 1em; display: flex; align-items: flex-end; justify-content: center; font-size: clamp(2.4rem, 3.8vw, 3.6rem); line-height: 1; }
.hero-stats dt { max-width: 20ch; min-height: 2.7em; font-size: .9rem; line-height: 1.35; color: var(--muted); text-align: center; }
/* simulación: texto de 12 px mínimo, leyenda y nota */
.hero .stage .mini-prices .mp-label { font-size: var(--mp-fs, 12px); }
.hero .stage .hud span { font-size: .75rem; letter-spacing: .1em; }
.hero .stage .hud b { font-size: 1.05rem; }
.hx-legend { display: flex; gap: 22px; margin: 16px 0 0; font-size: .875rem; color: var(--muted); }
.hx-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 2px; vertical-align: -1px; }
.hx-legend .c::before { background: #39ff88; }
.hx-legend .s::before { background: #1fc8ff; }
.hx-note { margin: 8px 0 0; max-width: 56ch; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 640px) { .mp-scrub { display: none; } .hero-stats dd { font-size: 2.2rem; } }

.mp-scrub { display: none; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } .hero-stats div:nth-child(3) { grid-column: 1 / -1; } .hero-stats dt { min-height: 0; } }

/* solar: servicios de ajuste a bajar */
.hy-fq { margin: 26px 0 8px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 78ch; }
.hy-fq h3 { margin: 0 0 8px; font-size: 1.2rem; }
.hy-fq p { margin: 0; color: var(--muted); }
.hyb .bar .s-d { grid-column: 2 / -1; }

/* ---------- Portada a pantalla completa: dibujo de fondo, texto, batería y flecha ocupan toda la primera pantalla ---------- */
.hero { min-height: calc(100vh - var(--nav-h, 70px)); min-height: calc(100svh - var(--nav-h, 70px)); padding-bottom: clamp(56px, 9vh, 88px); }
.hero::before { opacity: .6; mask-image: linear-gradient(#000 84%, transparent); -webkit-mask-image: linear-gradient(#000 84%, transparent); }
.hero-down { bottom: clamp(10px, 2.2vh, 24px); }
/* todo alineado con la rejilla del menú: la batería termina donde termina el botón Contacto */
.hero { --bleed: 0px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.hero .stage { width: 100%; max-width: min(760px, 98vh); margin: 0 0 0 auto; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } .hero .stage { margin: 24px auto 0; } }   /* en móvil, una sola columna */
/* el texto crece con la altura de la ventana */
.hero-title h1 { font-size: clamp(2.6rem, min(5.4vw, 9vh), 4.5rem); margin-bottom: clamp(14px, 2.8vh, 28px); }
.hero-badge { margin-bottom: clamp(10px, 2.2vh, 20px); }
.hero-copy .lead { font-size: clamp(1.1rem, 2.4vh, 1.45rem); margin-bottom: clamp(18px, 3.4vh, 34px); }
.hero-copy .cta-row { margin-bottom: clamp(14px, 2.8vh, 28px); }
.hero-who { margin-bottom: clamp(18px, 3.4vh, 34px); }
.hero-stats { padding-top: clamp(16px, 3vh, 30px); }
.hero-stats dd { font-size: clamp(2.4rem, 5.2vh, 3.8rem); }
@media (max-width: 960px) { .hero { min-height: 0; } .hero .stage { max-width: 520px; margin: 24px auto 0; } }

/* alineación fina: el borne de la batería termina en el borde derecho de la rejilla (donde termina "Contacto") */
@media (min-width: 1240px) { .hero .stage { width: 106.5%; margin: 0 -6.5% 0 auto; } }
/* en pantallas grandes la rejilla común (menú, portada y secciones) es algo más ancha para que el texto llene más */
@media (min-width: 1600px) {
  :root { --maxw: 1360px; }
  .hero-title h1 { font-size: clamp(2.6rem, min(4.6vw, 9vh), 5.2rem); }
  .hero-copy .lead { font-size: clamp(1.1rem, 2.5vh, 1.6rem); }
  .hero-stats dd { font-size: clamp(2.4rem, 5.4vh, 4.2rem); }
}

/* el menú usa la misma rejilla que el contenido: logo alineado con el texto y Contacto con el borde derecho */
.nav { padding: 14px max(16px, calc((100vw - var(--maxw)) / 2 + 16px)); }
/* la portada cabe siempre en la primera pantalla, también en ventanas bajas; la flecha queda en el borde inferior */
.hero { padding-top: clamp(16px, 3vh, 36px); padding-bottom: clamp(60px, 8vh, 84px); }
.hero .stage { max-width: min(760px, calc((100svh - var(--nav-h, 70px) - 100px) / 1.05)); }
@media (max-width: 960px) { .hero .stage { max-width: 520px; } }

/* cuatro cifras en la portada */
.hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-stats dt { max-width: 15ch; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-stats div:nth-child(3) { grid-column: auto; } }

/* ---------- Menú: tamaño en proporción al resto del texto (con 5 enlaces hay sitio de sobra) ---------- */
@media (min-width: 1241px) {
  .ti .bubble { font-size: clamp(.95rem, .55vw + .62rem, 1.12rem); padding: 11px clamp(14px, 1.1vw, 20px); }
  .ti.has-panel .bubble { padding-right: 12px; }
  .ti-more { width: 32px; }
  .trail { gap: 8px; }
  .nav { gap: 22px; }
  .nav .btn-sm { font-size: clamp(.95rem, .5vw + .65rem, 1.08rem); padding: 11px 24px; }
  .lang { font-size: clamp(.9rem, .4vw + .66rem, 1.02rem); }
  .brand img { height: clamp(34px, 2.1vw, 42px); }
  .game-btn { width: 44px; height: 44px; }
}

/* ajuste: el menú crece con la pantalla sin pisar el bloque de la derecha */
@media (min-width: 1241px) {
  .ti .bubble { font-size: clamp(.95rem, .65rem + .375vw, 1.15rem); padding: 10px clamp(10px, .55vw + 4px, 15px); }
  .ti.has-panel .bubble { padding-right: 9px; }
  .ti-more { width: 26px; }
  .trail { gap: 4px; }
  .nav { gap: 16px; }
  #mainnav { flex: 1 1 auto; min-width: 0; }
  .nav-right { flex: none; gap: 14px; }
  .brand { flex: none; }
  .brand img { height: clamp(32px, 1.9vw, 40px); }
  .game-btn { width: 40px; height: 40px; }
  .nav .btn-sm { padding: 10px 20px; }
}

/* menú: punto intermedio entre el tamaño original y el ampliado */
@media (min-width: 1241px) {
  .ti .bubble { font-size: clamp(.875rem, .735rem + .18vw, .96rem); padding: 8.5px clamp(9px, .4vw + 4px, 12px); }
  .ti.has-panel .bubble { padding-right: 9px; }
  .ti-more { width: 25px; }
  .nav { gap: 14px; }
  .nav-right { gap: 12px; }
  .nav .btn-sm { font-size: clamp(.9rem, .75rem + .2vw, 1rem); padding: 9px 19px; }
  .lang { font-size: clamp(.86rem, .74rem + .15vw, .96rem); }
  .brand img { height: clamp(31px, 1.7vw, 37px); }
  .game-btn { width: 38px; height: 38px; }
}

/* logo de Maze en la portada, encima del titular */
.hero-title .hero-logo { width: auto; height: clamp(44px, 8.5vh, 84px); margin: 0 0 clamp(14px, 2.6vh, 26px); }
@media (max-width: 960px) { .hero-title .hero-logo { height: 52px; } }

/* batería más abajo: su última línea (Carga / Venta) queda a la altura de las etiquetas de las cifras de la izquierda */
@media (min-width: 961px) { .hero .stage { align-self: end; } }

/* la batería empieza a la altura de "¿Tienes baterías?" y termina a la altura de las cifras; logo e insignia quedan encima, solo a la izquierda */
.hero-brand { grid-area: b; }
.hero-brand .hero-logo { width: auto; height: clamp(44px, 8.5vh, 84px); margin: 0 0 clamp(14px, 2.6vh, 26px); }
.hero-title .hero-logo { height: auto; }
@media (min-width: 961px) {
  .hero { grid-template-areas: "b b" "t s" "c s"; grid-template-rows: auto auto auto; }
  .hero-title { align-self: start; }
  .hero-copy { align-self: end; }
  .hero .stage { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; margin-top: 0; }
}
@media (max-width: 960px) { .hero { grid-template-areas: "b" "t" "c" "s"; } .hero-brand .hero-logo { height: 52px; } }

/* Carga / Venta sube 7 px: su texto queda en la misma línea que las etiquetas de las cifras de la izquierda */
@media (min-width: 961px) { .hero .stage { padding-bottom: 7px; } }

/* batería centrada en vertical entre la parte alta del logo y la parte baja de las cifras */
@media (min-width: 961px) {
  .hero { grid-template-areas: "b s" "t s" "c s"; }
  .hero .stage { align-self: center; justify-content: flex-start; padding-bottom: 0; gap: 0; }
}

/* laberinto sin rojo: paredes en su azul de siempre, carga de ámbar a verde, buscadores en azul claro */
.battery.st-wait .m-wall { stroke: #4a4fc0; opacity: .85; animation: none; }
.seeker-trail { stroke: #9fb2ff; opacity: .5; }
.seeker-dot { fill: #c8d6ff; filter: drop-shadow(0 0 4px rgba(159, 178, 255, .9)); }
/* batería centrada: 5 px de ajuste fino */
@media (min-width: 961px) { .hero .stage { margin-bottom: 10px; } }

.hero .soc-fill { fill-opacity: .34; }

.hero .soc-fill { fill-opacity: .46; }

.hero .soc-fill { fill-opacity: .58; }

/* batería otra vez como estaba: empieza a la altura de "¿Tienes baterías?" y termina a la altura de las cifras */
@media (min-width: 961px) {
  .hero { grid-template-areas: "b b" "t s" "c s"; }
  .hero .stage { align-self: stretch; justify-content: space-between; padding-bottom: 7px; margin-bottom: 0; gap: normal; }
}

/* preguntas frecuentes: ocupan todo el ancho del contenido, igual que el resto de secciones */
.faq { max-width: none; }
.faq details p { max-width: 78ch; }

/* cifras en burbujas que desfilan en bucle (efecto "orb marquee") */
.orb-marquee { overflow: hidden; padding: 20px 0 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.orb-track { display: flex; gap: 28px; width: max-content; margin: 0; padding: 0; list-style: none; animation: orbscroll 38s linear infinite; }
.orb-marquee:hover .orb-track, .orb-marquee:focus-within .orb-track { animation-play-state: paused; }
@keyframes orbscroll { to { transform: translateX(calc(-50% - 14px)); } }
.orb { flex: none; width: 250px; height: 250px; border-radius: 50%; display: grid; place-content: center; gap: 8px; padding: 30px; text-align: center;
  background: radial-gradient(circle at 30% 24%, rgba(154, 163, 255, .26), rgba(29, 26, 116, .6) 62%); border: 1px solid rgba(154, 163, 255, .38);
  box-shadow: inset 0 0 44px rgba(154, 163, 255, .08), 0 0 32px rgba(86, 96, 224, .2); }
.orb b { display: block; font-size: 3.3rem; line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.orb b.t { font-size: 1.6rem; line-height: 1.1; letter-spacing: -.01em; }
.orb span { font-size: .82rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 600px) { .orb { width: 210px; height: 210px; padding: 24px; } .orb b { font-size: 2.7rem; } .orb b.t { font-size: 1.35rem; } .orb span { font-size: .76rem; } }
@media (prefers-reduced-motion: reduce) {
  .orb-marquee { -webkit-mask-image: none; mask-image: none; }
  .orb-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .orb[aria-hidden="true"] { display: none; }
}

/* burbujas: siempre 4 a la vez (2 en móvil), a todo el ancho, y sin pausa al pasar el ratón */
.orb-marquee { container-type: inline-size; }
.orb-marquee:hover .orb-track, .orb-marquee:focus-within .orb-track { animation-play-state: running; }
.orb-track { gap: 28px; }
.orb { --w: calc((100cqw - 3 * 28px) / 4); width: var(--w); height: var(--w); padding: calc(var(--w) * .11); container-type: inline-size; }
.orb b { font-size: 22cqw; }
.orb b.t { font-size: 10.5cqw; }
.orb span { font-size: max(.72rem, 5cqw); }
@keyframes orbscroll { to { transform: translateX(calc(-50% - 14px)); } }
@media (max-width: 700px) {
  .orb { --w: calc((100cqw - 28px) / 2); }
}
@media (prefers-reduced-motion: reduce) { .orb-track { gap: 16px; } .orb { --w: min(250px, 100cqw); } }

/* preguntas frecuentes: las respuestas también llenan el ancho */
.faq details p { max-width: none; }

/* Conocimiento: número de cada serie, fecha en las noticias e informe mensual en su propio espacio */
.pop-card .pub-item .pn { display: inline-block; min-width: 1.9em; margin-right: 8px; font: 700 .8rem var(--mono); font-style: normal; letter-spacing: .06em; opacity: .65; }
.pop-card .pub-item .pd { grid-column: 1 / -1; margin-top: 2px; font: 600 .78rem var(--mono); letter-spacing: .04em; opacity: .75; }
.pop-card .pub-item.wide { grid-column: 1 / -1; padding: 24px 28px 26px; }
.pop-card .pub-item.wide b { font-size: 1.4rem; }
.pop-card .pub-item.wide p { font-size: 1.02rem; max-width: 80ch; }

/* burbujas: texto explicativo algo mayor */
.orb span { font-size: max(.9rem, 6.4cqw); line-height: 1.38; color: #c9d0f3; }
.orb b.t { font-size: 11cqw; }

/* ---------- Efectos de interfaz (anime.js) ---------- */
/* la portada espera a su entrada animada sin parpadear; fx.js lo libera (o lo libera la red de seguridad) */
html.fx:not(.fx-done) :is(.hero-logo, .hero-badge, .hero-title h1, .hero-copy .lead, .hero-copy .cta-row, .hero-who, .hero-stats > div, .hero .stage, .hero-down) { opacity: 0; }
/* menú que se compacta al bajar */
.nav { transition: padding .3s cubic-bezier(.2, .8, .2, 1), background .3s, box-shadow .3s; }
.nav .brand img { transition: height .3s cubic-bezier(.2, .8, .2, 1); }
.nav.nav-scrolled { padding-top: 7px; padding-bottom: 7px; background: rgba(11, 10, 51, .96); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
@media (min-width: 1241px) { .nav.nav-scrolled .brand img { height: clamp(26px, 1.5vw, 31px); } }
.ti .bubble { transition: transform .2s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s; }
.ti:hover .bubble { transform: translateY(-1px); }
/* tarjetas: la inclinación la pone fx.js; necesitan su propia capa 3D */
.card.feature, .stat, .kpi, .tile-open, .mod, .hx-cols > a { transform-style: preserve-3d; will-change: transform; }

/* ---------- A) botón principal único + enlace de texto ---------- */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; text-decoration: none; padding: 6px 2px; border-bottom: 1px solid rgba(154, 163, 255, .35); transition: border-color .2s, gap .2s; }
.link-arrow::after { content: "→"; color: var(--cy, #9aa3ff); transition: transform .2s; }
.link-arrow:hover { border-bottom-color: var(--cy, #9aa3ff); }
.link-arrow:hover::after { transform: translateX(4px); }
.hero-copy .cta-row { align-items: center; gap: 14px 30px; }

/* ---------- B) franja de confianza bajo la portada ---------- */
.trust-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(11, 10, 51, .55); }
.trust-band ul { max-width: var(--maxw); margin: 0 auto; padding: 18px 16px; list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
.trust-band li { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; color: #dfe2ff; }
.trust-band li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--chg, #39ff88); box-shadow: 0 0 8px rgba(57, 255, 136, .6); flex: none; }
@media (max-width: 700px) { .trust-band ul { justify-content: flex-start; } }

/* ---------- C) menú sin cajas: texto plano, activo con barra y panel limpio ---------- */
.trail { gap: 2px; }
.ti, .ti:hover, .ti.on { background: none; border: 0; box-shadow: none; border-radius: 8px; position: relative; }
.ti .bubble, .ti.on .bubble, .ti.has-panel .bubble, .ti.on:not(.has-panel) .bubble { background: none; border: 0; box-shadow: none; color: #c9cff0; font-weight: 500; border-radius: 8px 0 0 8px; }
.ti:not(.has-panel) .bubble { border-radius: 8px; }
.ti:hover { background: rgba(255, 255, 255, .06); }
.ti:hover .bubble, .ti.on .bubble { color: #fff; }
.ti.on .bubble { font-weight: 600; }
.ti-more, .ti.on .ti-more { border: 0; border-radius: 0 8px 8px 0; opacity: .75; }
.ti:hover .ti-more { opacity: 1; }
.ti-more::after, .ti.on .ti-more::after { border-color: #c9cff0; width: 5px; height: 5px; }
.ti.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--cy, #9aa3ff); }
.ti-page, .ti.on .ti-page { background: none; color: #9aa3ff; font-weight: 500; }
.ti-page:hover { background: none; color: #fff; }
.panel { border-radius: 14px; border: 1px solid rgba(154, 163, 255, .22); background: rgba(14, 13, 62, .97); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.panel a { border-radius: 8px; }
.panel a:hover { background: rgba(255, 255, 255, .07); }
@media (max-width: 1240px) { .ti.on::after { display: none; } }

@media (min-width: 1241px) { .ti.has-panel .bubble { padding-right: 4px; } .ti-more { width: 18px; } .ti-more::after { margin-right: 2px; } .ti:not(.has-panel) .bubble { padding-right: 12px; } }

/* arreglo: el panel desplegable se ancla a la cabecera (el ítem no debe ser su referencia) y la barra activa va en el propio enlace */
.ti, .ti:hover, .ti.on { position: static; }
.ti.on::after { content: none; }
.ti.on .bubble { position: relative; }
.ti.on .bubble::after { content: ""; position: absolute; left: 12px; right: 4px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--cy, #9aa3ff); }
.ti.on:not(.has-panel) .bubble::after { right: 12px; }
.panel { background: rgba(14, 13, 62, .985); }
@media (max-width: 1240px) { .ti.on .bubble::after { display: none; } }
/* la página nunca se desplaza hacia los lados */
html, body { overflow-x: clip; }

.panel { background: #0e0d3e !important; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* arreglo: los desplegables pequeños (Servicios, Sobre nosotros) se anclan a su enlace */
.ti.has-panel:has(.panel-sm), .ti.has-panel:has(.panel-sm):hover, .ti.on.has-panel:has(.panel-sm) { position: relative; }

/* ---------- Ajustes de aspecto (1, 2, 3, 5): fondo más suave, titular más ligero, texto secundario con tinte, entrada más rápida ---------- */
:root { --text: #eef0ff; --muted: #b4b9e6; }
/* 1) la red de nodos y la imagen de la portada se atenúan, y se apagan detrás de la columna de texto */
.bg-net { opacity: .34; -webkit-mask-image: radial-gradient(ellipse 52% 80% at 24% 48%, transparent 0 35%, #000 100%); mask-image: radial-gradient(ellipse 52% 80% at 24% 48%, transparent 0 35%, #000 100%); }
.hero::before { opacity: .36; }
/* 2) titular más ligero y subtítulo más discreto */
.hero-title h1 { font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.hero-copy .lead { font-size: clamp(1.05rem, 2.1vh, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 34rem; font-weight: 400; }
.hero-copy .cta-row { margin-top: clamp(20px, 3.4vh, 38px); }
@media (max-width: 960px) { .bg-net { -webkit-mask-image: none; mask-image: none; } }

/* "Sobre nosotros": el desplegable se alinea con su enlace, como el de Servicios */
.trail > li:has(.panel-right) .panel-right, .ti.has-panel:has(.panel-right) .panel-right { left: 0; right: auto; }
.ti.has-panel:has(.panel-right), .ti.has-panel:has(.panel-right):hover, .ti.on.has-panel:has(.panel-right) { position: relative; }

@media (min-width: 1241px) { .panel:not(.panel-sm) { top: calc(100% - 9px); } }

/* ---------- Fondo: nodos como al principio, con una sombra suave detrás del texto para que se lea ---------- */
.bg-net { opacity: .6; -webkit-mask-image: none; mask-image: none; }
.hero::before { opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0 -50vw; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 42% 62% at 27% 52%, rgba(11, 10, 51, .62), rgba(11, 10, 51, .3) 55%, transparent 78%); }
@media (max-width: 960px) { .hero::after { background: linear-gradient(rgba(11, 10, 51, .45), transparent 70%); } }

/* ---------- Tarjetas más sobrias: borde fino, luz arriba, radio de 12 px y sin sombras de color ---------- */
.stat, .calc, .ac, .tb-stage, .tb-hstage, .hx-case { border: 1px solid rgba(154, 163, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.stat:hover { border-color: rgba(154, 163, 255, .38); }
.orb { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 24px rgba(86, 96, 224, .12); }

/* ====== Switzer + los cinco ajustes de aspecto ====== */
@font-face { font-family: "Switzer"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/switzer-400.woff2") format("woff2"); }
@font-face { font-family: "Switzer"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/switzer-500.woff2") format("woff2"); }
@font-face { font-family: "Switzer"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/switzer-600.woff2") format("woff2"); }
@font-face { font-family: "Switzer"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/switzer-700.woff2") format("woff2"); }
:root { --sans: "Switzer", "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; --cy: #9aa3ff; }
body { font-feature-settings: "ss01" 0; }
.hero-title h1 { letter-spacing: -.035em; font-weight: 600; }

/* (1) desplegables con una línea descriptiva por enlace */
.panel a { align-items: flex-start; }
.panel a > span { display: grid; gap: 2px; line-height: 1.25; }
.panel a > span small { font-size: .8rem; font-weight: 400; color: var(--muted); line-height: 1.35; }
.panel a:hover > span small { color: #d6dbff; }

/* (2) más aire entre secciones y titulares de sección más grandes */
.section.tight { padding-top: 44px; padding-bottom: 56px; }
.head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.06; letter-spacing: -.03em; }
.head { margin-bottom: 34px; }
.head .eyebrow { margin-bottom: 14px; }
.head .lead { font-size: 1.15rem; max-width: 62ch; }

/* (3) cifras con más presencia */
.s-n { font-size: clamp(2.5rem, 4.4vw, 3.9rem); }
.stat { padding: 22px 22px 18px; }
.hero-stats dd { font-size: clamp(2.5rem, 5.6vh, 4.2rem); }
.orb b { font-size: 26cqw; }
.orb b.t { font-size: 11.5cqw; }
.trust-band ul { padding: 24px 16px; }
.trust-band li { font-size: 1.05rem; font-weight: 500; }
.trust-band li::before { width: 8px; height: 8px; }

/* (5) barra de progreso de lectura y entrada de secciones más suave */
.fx-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #5660e0, #9aa3ff); pointer-events: none; }
.js .hero ~ section { transition: opacity 1s cubic-bezier(.23, 1, .32, 1), transform 1s cubic-bezier(.23, 1, .32, 1); }
@media (prefers-reduced-motion: reduce) { .fx-progress { display: none; } }

/* Switzer es más compacta que Space Grotesk: menos espaciado negativo */
h1, h2, h3 { letter-spacing: -.012em; }
.hero-title h1 { letter-spacing: -.022em; }
.head h2 { letter-spacing: -.018em; }
.card h3, .hx-cols h3 { letter-spacing: -.005em; }
.orb b, .s-n, .hero-stats dd { letter-spacing: -.015em; }

/* ---------- Prueba: Geist Serif (variable, OFL) en el titular y los títulos de sección ---------- */
@font-face { font-family: "Geist Serif"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/assets/fonts/geist-serif-vf.woff2") format("woff2"); }
/* Tipografía de titulares: Geist Serif Regular (un solo grosor, puntos redondos). Para volver a Switzer, cambia --display. */
@font-face { font-family: "Geist Serif Regular"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/geist-serif-regular.woff2") format("woff2"); }
:root { --display: "Geist Serif Regular", Georgia, serif; }
/* Sin negrita falsa en ningún titular; también en el título de Cómo funciona y en Contacto */
.hero-title h1, .head h2, .head h1, .page-hero h1, .page-head h1, #storyTitle { font-family: var(--display); font-weight: 400; font-synthesis: none; letter-spacing: -.012em; }
.hero-title h1 { letter-spacing: -.022em; }
/* Hero: la serifa fina pierde presencia frente a Switzer 600. Se agranda vía su altura de x (Geist ≈ .53 → .575, ≈ +8 % en todas las
   resoluciones, sin tocar cada clamp) y se pasa a blanco puro con un leve halo sobre el fondo oscuro. */
.hero-title h1 { font-size-adjust: ex-height .575; color: #fff; text-shadow: 0 0 28px rgba(154, 163, 255, .28); }
.hero-title h1 { line-height: 1.02; }

/* ---------- Sin temblor: el menú no cambia de altura al bajar (solo fondo y sombra) ---------- */
.nav.nav-scrolled { padding-top: 14px; padding-bottom: 14px; }
@media (min-width: 1241px) { .nav.nav-scrolled .brand img { height: clamp(31px, 1.7vw, 37px); } }

/* ---------- Franja de confianza pegada al borde inferior de la primera pantalla ---------- */
.js .hero ~ .trust-band { opacity: 1; transform: none; }
.trust-band ul { min-height: 62px; padding: 0 16px; align-items: center; }
@media (min-width: 961px) {
  .hero { min-height: calc(100svh - var(--nav-h, 70px) - 64px); padding-top: clamp(10px, 2vh, 26px); padding-bottom: clamp(40px, 5.5vh, 60px); }
  .hero-brand .hero-logo { height: clamp(40px, 7vh, 72px); margin-bottom: clamp(8px, 1.6vh, 20px); }
  .hero-badge { margin-bottom: clamp(8px, 1.8vh, 16px); }
}

/* ventanas de menos de ~920 px de alto: la portada se compacta para que la franja de confianza quepa en la primera pantalla */
@media (min-width: 961px) and (max-height: 920px) {
  .hero-who { display: none; }
  .hero-brand .hero-logo { height: clamp(34px, 5.6vh, 56px); margin-bottom: clamp(6px, 1.2vh, 14px); }
  .hero-title h1 { font-size: clamp(2.5rem, min(4.8vw, 7.8vh), 4.1rem); margin-bottom: clamp(10px, 2vh, 20px); }
  .hero-copy .lead { margin-bottom: clamp(14px, 2.4vh, 24px); }
  .hero-copy .cta-row { margin-top: clamp(14px, 2.4vh, 26px); margin-bottom: clamp(12px, 2vh, 22px); }
  .hero-stats dd { font-size: clamp(2.2rem, 5vh, 3.4rem); }
  .hero-stats { padding-top: clamp(10px, 2vh, 20px); }
}

/* portátiles de poca altura (viewport de menos de ~790 px): se quita la insignia (la franja de debajo ya dice lo mismo) y se compacta algo más */
@media (min-width: 961px) and (max-height: 790px) {
  .hero-badge { display: none; }
  .hero-brand .hero-logo { height: clamp(30px, 5vh, 44px); margin-bottom: 4px; }
  .hero-title h1 { font-size: clamp(2.2rem, min(4.2vw, 7.4vh), 3.5rem); line-height: 1; margin-bottom: 8px; }
  .hero-copy .lead { font-size: 1rem; margin-bottom: 10px; }
  .hero-copy .cta-row { margin-top: 12px; margin-bottom: 10px; }
  .hero-copy .btn-lg { padding: 11px 24px; font-size: .98rem; }
  .hero-stats { padding-top: 8px; }
  .hero-stats dd { font-size: clamp(1.9rem, 4.6vh, 2.6rem); }
  .hero-stats dt { font-size: .8rem; }
  .hero { padding-top: 8px; padding-bottom: 36px; }
}

/* ===== Prototipos de portada (solo en /prototipos/) ===== */
.proto-sw { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(11, 10, 51, .92); border: 1px solid var(--line); font-size: .85rem; backdrop-filter: blur(10px); }
.proto-sw span { padding: 0 10px 0 12px; color: var(--muted); }
.proto-sw a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: #dfe2ff; }
.proto-sw a:hover { background: rgba(255, 255, 255, .08); }
.proto-sw a[aria-current] { background: var(--brand); color: #fff; }

/* A · Producto: sin insignia ni chips, 2 cifras, simulación más grande y sin hora ni SOC */
@media (min-width: 961px) {
  .hv-a { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .hv-a .stage { max-width: min(860px, calc((100svh - var(--nav-h, 70px) - 120px) * 1.45)); }
  .hv-a .hud > div:nth-child(2), .hv-a .hud > div:nth-child(4) { display: none; }
  .hv-a .hero-stats { grid-template-columns: repeat(2, minmax(0, 190px)); justify-content: start; text-align: left; justify-items: start; }
  .hv-a .hero-stats div { align-items: flex-start; }
  .hv-a .hero-stats dt { text-align: left; min-height: 0; }
  .hv-a .hero-title h1 { font-size: clamp(2.5rem, min(4.6vw, 8.4vh), 4.4rem); }
}

/* B · Marca: el laberinto manda; sin gráfico de precios, lecturas ni leyenda */
@media (min-width: 961px) {
  .hv-b { grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); }
  .hv-b .stage { max-width: none; width: calc(100% + clamp(0px, calc((100vw - var(--maxw)) / 2), 220px)); margin-right: calc(-1 * clamp(0px, calc((100vw - var(--maxw)) / 2), 220px)); align-self: center; justify-content: center; }
  .hv-b .stage .mini-prices, .hv-b .stage .hud, .hv-b .stage .hx-legend { display: none; }
  .hv-b .hero-title h1 { font-size: clamp(2.4rem, min(4.4vw, 8vh), 4.2rem); line-height: 1.04; }
  .hv-b .hero-copy .lead { font-size: clamp(1.1rem, 2.3vh, 1.35rem); }
}
.hv-line { margin: clamp(10px, 2.4vh, 26px) 0 0; font-size: 1rem; color: var(--muted); letter-spacing: .01em; }
.hv-line b { color: #fff; font-weight: 600; }
@media (max-width: 960px) { .hv-b .stage .mini-prices, .hv-b .stage .hud { display: none; } }

/* prototipos: columna de texto más ancha para que el titular quede en 2 líneas y la portada quepa en la primera pantalla */
@media (min-width: 961px) {
  .hv-a { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hv-a .hero-title h1 { font-size: clamp(2.3rem, min(4.1vw, 7.8vh), 3.9rem); max-width: none; }
  .hv-a .hero-copy .lead { max-width: 30rem; }
  .hv-a .stage { max-width: min(700px, calc((100svh - var(--nav-h, 70px) - 150px) * 1.4)); }
  .hv-a .hero-copy .cta-row { gap: 10px 26px; }
  .hv-b { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .hv-b .hero-title h1 { font-size: clamp(2.3rem, min(3.9vw, 7.6vh), 3.7rem); max-width: none; }
  .hv-b .hero-copy .lead { max-width: 28rem; }
}

@media (min-width: 961px) { .hv-a .hero-title { align-self: end; } .hv-a .hero-copy { align-self: start; } .hv-b .hero-title { align-self: end; } .hv-b .hero-copy { align-self: start; } }
.proto-sw { bottom: 84px; }

/* portada final: titular en 2 líneas ("Tu batería, / siempre en la salida correcta.") */
@media (min-width: 961px) {
  .hv-a { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
  .hv-a .hero-title h1 { font-size: clamp(2.1rem, min(3.45vw, 7vh), 3.5rem); line-height: 1.05; white-space: nowrap; }
  .hv-a .hero-copy .lead { max-width: 31rem; }
}
@media (min-width: 961px) and (max-width: 1150px) { .hv-a .hero-title h1 { white-space: normal; } }
@media (min-width: 961px) { .hv-a .hero-title h1 { font-size: clamp(1.9rem, min(2.95vw, 6.6vh), 3.2rem); } }

/* tres cifras (100 MW, 17 activos, 5 años) y titular más compacto, lejos del laberinto */
@media (min-width: 961px) {
  .hv-a .hero-stats { grid-template-columns: repeat(3, minmax(0, 150px)); gap: 0 18px; }
  .hv-a .hero-title h1 { font-size: clamp(1.8rem, min(2.55vw, 6vh), 2.9rem); line-height: 1.08; letter-spacing: -.02em; }
  .hv-a .hero-copy .lead { max-width: 27rem; }
}

/* batería centrada en vertical entre la parte alta del logo y la parte baja de las cifras (mismo margen arriba y abajo) */
@media (min-width: 961px) {
  .hv-a { grid-template-areas: "b s" "t s" "c s"; }
  .hv-a .stage { align-self: center; justify-content: flex-start; gap: 0; padding-bottom: 0; margin-bottom: 0; margin-top: 0; }
}

@media (min-width: 961px) { .hv-a .stage { translate: 0 var(--dy, 0px); } }

/* sin franja de credenciales: la portada vuelve a ocupar toda la primera pantalla */
@media (min-width: 961px) { .hero { min-height: calc(100svh - var(--nav-h, 70px)); padding-bottom: clamp(48px, 7vh, 72px); } }

/* ====== Rodillo de cifras, comparador y cursor del gráfico de precios ====== */
.num .rd { display: inline-block; height: 1.1em; line-height: 1.1; overflow: hidden; vertical-align: top; font-variant-numeric: tabular-nums; }
.num .rs { display: inline-block; height: 1.1em; line-height: 1.1; vertical-align: top; }
.num .rc { display: flex; flex-direction: column; transform: translateY(0); }
.num .rc i { display: block; height: 1.1em; line-height: 1.1; font-style: normal; text-align: center; }
.num.go .rc { transform: translateY(calc(var(--d) * -1.1em)); transition: transform 1.25s cubic-bezier(.16, 1, .3, 1) var(--dl, 0s); }
@media (prefers-reduced-motion: reduce) { .num .rc { transition: none !important; } }

.ac-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.ac-stage svg { cursor: crosshair; }
.ac-stage .hl { fill: rgba(154, 163, 255, .10); pointer-events: none; }
.ac-tip .vs { margin-left: 6px; color: var(--muted); font-size: .76rem; }

.cmpx { position: relative; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #0e0d3e; --pos: 50%; user-select: none; -webkit-user-select: none; }
.cmpx-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px 0; }
.cmpx-day { font: 500 .86rem var(--mono); color: var(--muted); }
.cmpx-view { position: relative; aspect-ratio: 1000 / 320; margin: 6px 0 0; }
.cmpx-layer { position: absolute; inset: 0; }
.cmpx-layer svg { display: block; width: 100%; height: 100%; }
.cmpx-opt { background: #0e0d3e; clip-path: inset(0 0 0 var(--pos)); }
.cmpx-line { fill: none; stroke-width: 2.4; stroke-linejoin: round; }
.cmpx-area { stroke: none; }
.cmpx-fix .cmpx-line { stroke: #8b90b8; } .cmpx-fix .cmpx-area { fill: rgba(139, 144, 184, .12); }
.cmpx-opt .cmpx-line { stroke: var(--cy); filter: drop-shadow(0 0 6px rgba(154, 163, 255, .5)); } .cmpx-opt .cmpx-area { fill: rgba(154, 163, 255, .18); }
.cmpx-tag { position: absolute; top: 10px; z-index: 2; padding: 5px 12px; border-radius: 99px; font: 600 .78rem var(--sans); background: rgba(11, 10, 51, .88); border: 1px solid var(--line); pointer-events: none; }
.cmpx-tag.l { left: 62px; color: #c4c8e8; } .cmpx-tag.r { right: 14px; color: var(--cy); }
.cmpx-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.cmpx-grip { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: #0b0a33; display: grid; place-items: center; font: 700 .95rem var(--sans); letter-spacing: -.1em; box-shadow: 0 6px 22px rgba(0, 0, 0, .45); }
.cmpx-range { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cmpx:has(.cmpx-range:focus-visible) .cmpx-grip { outline: 2px solid var(--accent); outline-offset: 3px; }
.cmpx-res { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.cmpx-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: rgba(20, 17, 90, .3); }
.cmpx-card h3 { margin: 0 0 4px; font-size: 1.1rem; color: #fff; }
.cmpx-card.opt h3 { color: var(--cy); }
.cmpx-sub { margin: 0 0 12px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.cmpx-when { margin: 0 0 14px; font: 500 .9rem var(--mono); line-height: 1.8; color: #dfe2ff; }
.cmpx-when .lg { margin-right: 6px; }
.cmpx-n { margin: 0; font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 600; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.cmpx-n small { font-size: .9rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.cmpx-cap { margin: 16px 0 0; font-size: 1.05rem; color: #dfe2ff; }
@media (max-width: 640px) { .cmpx-res { grid-template-columns: 1fr; } .cmpx-tag.l { left: 44px; } .cmpx-grip { width: 38px; height: 38px; } }
.ac-hint { margin: 6px 4px 6px; font-size: .82rem; color: var(--muted); }

/* ====== Comparador: dos unidades (venta / compra), sin y con gestión activa ====== */
.cmpx-stage { position: relative; padding: 0 0 6px; }
.cmpx-heads { display: flex; justify-content: space-between; padding: 6px 18px 0; font: 600 .8rem var(--sans); letter-spacing: .02em; color: #c4c8e8; }
.cmpx-heads .r { color: var(--cy); }
.cmpx-lane { margin-top: 2px; }
.cmpx-lane + .cmpx-lane { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.cmpx-lane .mk-lh { padding: 0 18px; margin: 4px 0 0; }
.cmpx-lane .cmpx-view { aspect-ratio: 1000 / 170; margin: 0; }
.mk-lh { display: flex; align-items: baseline; gap: 12px; }
.mk-lh h3 { margin: 0; font-size: 1rem; color: #fff; }
.mk-lh span { font-size: .85rem; color: var(--muted); }
.mk-legend { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.mk-lg i, .cmpx-ln i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; background: var(--c); vertical-align: -1px; }
.cmpx-fix .ac-grid line, .cmpx-opt .ac-grid line { stroke: rgba(141, 151, 255, .16); }
.cmpx-res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr); gap: 14px; margin-top: 14px; }
.cmpx-ln { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 7px; }
.cmpx-ln li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; color: #dfe2ff; }
.cmpx-ln b { font: 600 .92rem var(--mono); color: #fff; font-variant-numeric: tabular-nums; }
.mk-up { display: grid; place-content: center; text-align: center; padding: 20px; border-radius: 16px; background: var(--brand); }
.mk-upn { margin: 0; font-size: clamp(2.6rem, 4.4vw, 3.8rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; color: #fff; }
.mk-upl { margin: 8px 0 0; color: #e4e6ff; font-size: 1rem; }
.mk-why { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mk-why li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.mk-why b { display: block; margin-bottom: 4px; color: #fff; font-size: 1rem; }
@media (max-width: 860px) { .cmpx-res, .mk-why { grid-template-columns: 1fr; } }


/* barras plegadas que se despliegan (inspirado en los bloques de plegado de bencho.dev) */
.mk-crease { pointer-events: none; }
.mk-b { transform-box: fill-box; transform-origin: 50% 100%; }
.lane-c .mk-b { transform-origin: 50% 0; }
.js .cmpx:not(.in) .mk-b { transform: scaleY(0); }
.js .cmpx .mk-b { transition: transform .95s cubic-bezier(.34, 1.45, .55, 1) calc(var(--i) * 55ms), filter .2s; }
.mk-b:hover { filter: brightness(1.25); }
@media (prefers-reduced-motion: reduce) { .js .cmpx .mk-b { transition: none; } .js .cmpx:not(.in) .mk-b { transform: none; } }

/* ====== Tarjeta de contacto con física de tela (contacto) ====== */
.bill3d { position: relative; margin: 26px 0 0; width: 100%; max-width: 460px; aspect-ratio: 340 / 240; }
.bill3d-stage { position: absolute; inset: 0; cursor: default; touch-action: none; user-select: none; -webkit-user-select: none; }
.bill3d-stage[data-over="true"] { cursor: grab; }
.bill3d-stage[data-held="true"] { cursor: grabbing; }
.bill3d-gl { position: absolute; width: 200%; height: 200%; left: -50%; top: -50%; pointer-events: none; display: block; }
.bill3d-hint { margin: 0; font-size: .85rem; color: var(--muted); }
.contact:not(.has-card) .bill3d, .contact:not(.has-card) .bill3d-hint { display: none; }
.contact.has-card .contact-lines { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 960px) { .bill3d { max-width: 380px; } }

/* ====== Países: pila de tarjetas con el contorno de cada país (Card swap) ====== */
.cswrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.markets-v { grid-template-columns: 1fr; }
.markets-v a { display: block; }
.markets-v a:hover b, .markets-v a:focus-visible b { color: var(--accent); }
.csw { position: relative; display: grid; place-items: center; min-height: 460px; }
.csw-stage { position: relative; width: 300px; height: 330px; perspective: 1000px; margin: 0 80px 40px 0; }
.csw-card { position: absolute; inset: 0; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, #1a1990, #0f0e48 70%); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); transform: var(--t); transition: transform 600ms cubic-bezier(.22, 1, .36, 1); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.csw-card[data-front="true"] { cursor: grab; }
.csw-card[data-front="true"]:active { cursor: grabbing; }
.csw-map { position: absolute; inset: 0; pointer-events: none; }
.csw-map svg { width: 100%; height: 100%; display: block; }
.cs-map .land { fill: rgba(154, 163, 255, .14); stroke: #c9d0ff; stroke-width: 1.5; stroke-linejoin: round; }
.cs-map .grat line { stroke: #6671bf; stroke-width: .7; opacity: .35; stroke-dasharray: 2 6; }
.cs-map .cap { fill: var(--cy, #9aa3ff); } .cs-map .cap-ring { fill: none; stroke: var(--cy, #9aa3ff); stroke-width: 1; opacity: .6; }
.csw-tag { position: absolute; left: 14px; bottom: 14px; display: grid; gap: 1px; padding: 9px 15px 10px; border-radius: 16px; background: rgba(11, 10, 51, .86); border: 1px solid var(--line); backdrop-filter: blur(6px); pointer-events: none; }
.csw-tag b { font-size: 1.05rem; color: #fff; } .csw-tag span { font-size: .8rem; color: var(--muted); }
.csw-go { position: absolute; right: 14px; bottom: 14px; padding: 9px 14px; border-radius: 99px; background: var(--cy, #9aa3ff); color: #0b0a33; font: 600 .85rem var(--sans); text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .2s; }
.csw-card[data-front="true"] .csw-go { opacity: 1; pointer-events: auto; }
@media (max-width: 860px) { .cswrap { grid-template-columns: 1fr; } .csw { min-height: 420px; } .csw-stage { margin: 0 60px 30px 0; } }
@media (prefers-reduced-motion: reduce) { .csw-card { transition: none; } }

/* tarjetas algo más alargadas, en la columna de la derecha; nombre, estado y botón en una franja propia bajo el contorno */
.csw { justify-items: start; }
.csw-stage { width: calc(100% - 12px); height: 336px; margin: 0 0 40px 0; }   /* llega hasta el borde derecho del contenido, como el bloque ¿Hablamos de tu proyecto? */
.csw-card { display: flex; flex-direction: column; }
.csw-map { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; }
.csw-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.csw-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(11, 10, 51, .6); }
.csw-foot b { display: block; font-size: 1.12rem; color: #fff; line-height: 1.2; }
.csw-foot span { font-size: .84rem; color: var(--muted); }
.csw-go { position: static; margin: 0; flex: none; }
@media (max-width: 860px) { .csw-stage { width: calc(100% - 64px); } }

/* calor bajo el puntero sobre el mapa de calor de precios */
.heat-grid { position: relative; touch-action: pan-y; }
.heat-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

/* etiqueta del mapa de calor: más pequeña y con el color de la celda */
.tip { padding: 3px 8px 3px 6px; border-radius: 6px; font-size: .7rem; transform: translate(-50%, -190%); }
.tip i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; border: 1px solid rgba(255, 255, 255, .6); }

/* Batería del hero con plasma WebGL (main.js, batteryPlasma): el SVG queda encima con el laberinto, la ruta y los buscadores */
.battery-rig { position: relative; width: 100%; align-self: stretch; transform-style: preserve-3d; transform: perspective(1500px) rotateY(calc(-9deg + var(--ry, 0deg))) rotateX(calc(3deg + var(--rx, 0deg))); }
.battery-plasma, .bat-slice, .bat-shadow { position: absolute; pointer-events: none; }
.battery-plasma { transform: translateZ(0); }
.bat-slice { background: linear-gradient(180deg, #2c2e63 0%, #6d72b8 45%, #2c2e63 100%); }
.bat-shadow { background: rgba(2, 2, 18, .55); filter: blur(24px); }
.plasma-on .battery { position: relative; transform: translateZ(1px); }
.plasma-on .battery:hover { transform: translateZ(1px); filter: none; }
@media (max-width: 760px) { .battery-rig { transform: perspective(900px) rotateY(-6deg) rotateX(2deg); } }
.plasma-on .m-body, .plasma-on .m-nub, .plasma-on .soc { opacity: 0; }
.plasma-on .battery .m-wall { stroke: #6f77e8; stroke-width: 1.8; opacity: .8; transition: stroke .5s, opacity .5s; }
.plasma-on .battery.st-charge .m-wall, .plasma-on .battery.st-sell .m-wall { stroke: #4449b8; stroke-width: 2.2; opacity: .95; }
.plasma-on .battery .m-route-base { opacity: 0; }
.plasma-on .battery.st-charge .m-route, .plasma-on .battery.st-sell .m-route { stroke: #fff; stroke-width: 4; filter: drop-shadow(0 0 1.5px #0b0a33) drop-shadow(0 0 1.5px #0b0a33) drop-shadow(0 0 6px rgba(255, 255, 255, .8)); }
.plasma-on .battery .m-head { stroke: #fff; stroke-width: 7; }
.plasma-on .seeker-trail { stroke: #c8d6ff; opacity: .7; }
.plasma-on .seeker-dot { fill: #fff; }

/* ====== Palanca y lados: sin gestión activa (apagado, borroso, sin color) frente a con gestión activa (vivo y nítido) ====== */
.cmpx-heads { gap: 12px; padding: 10px 14px 4px; align-items: stretch; }
.cmpx-heads .side { display: grid; gap: 2px; padding: 9px 16px 10px; border-radius: 14px; border: 1px solid var(--line); transition: opacity .3s, transform .3s, background .3s; max-width: 48%; }
.cmpx-heads .side b { display: inline-flex; align-items: center; gap: 8px; font: 700 1rem var(--sans); letter-spacing: .01em; }
.cmpx-heads .side small { font: 400 .78rem var(--sans); color: inherit; opacity: .8; line-height: 1.3; }
.cmpx-heads .side i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.cmpx-heads .side.act { text-align: right; justify-items: end; }
.cmpx-heads .pas { background: rgba(139, 144, 184, .1); color: #aeb3d6; border-style: dashed; }
.cmpx-heads .pas i { background: #8b90b8; opacity: .7; }
.cmpx-heads .act { background: rgba(154, 163, 255, .16); color: #fff; border-color: rgba(154, 163, 255, .6); box-shadow: 0 0 22px rgba(154, 163, 255, .18); }
.cmpx-heads .act b { color: var(--cy); } .cmpx-heads .act i { background: var(--cy); box-shadow: 0 0 10px var(--cy); }
.cmpx[data-side="act"] .side.pas { opacity: .45; transform: scale(.97); }
.cmpx[data-side="pas"] .side.act { opacity: .45; transform: scale(.97); box-shadow: none; }
/* lado apagado: sin color, algo borroso y con una trama que recuerda a "inactivo" */
.cmpx-fix { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 11px), linear-gradient(#0e0d38, #0c0b32); }
.cmpx-fix .mk-b { filter: saturate(.3) brightness(.85) blur(1.4px); opacity: .85; }
.cmpx-fix .band { opacity: .4; }
.cmpx-fix .ac-grid text { opacity: .6; }
/* lado activo: nítido, con un resplandor de fondo y barras con halo */
.cmpx-opt { background: radial-gradient(110% 90% at 85% 0%, rgba(86, 96, 224, .3), transparent 62%), radial-gradient(70% 80% at 10% 100%, rgba(76, 201, 176, .08), transparent 70%), #0e0d3e; }
.cmpx-opt .mk-b { filter: drop-shadow(0 0 7px rgba(154, 163, 255, .45)); }
.cmpx-opt .mk-b:hover { filter: drop-shadow(0 0 9px rgba(154, 163, 255, .6)) brightness(1.2); }
/* la palanca: línea con resplandor y un interruptor OFF / ON */
.cmpx-handle { width: 3px; margin-left: -1.5px; background: linear-gradient(#fff, #cfd4ff); box-shadow: 0 0 14px rgba(154, 163, 255, .9), 0 0 2px #fff; }
.cmpx-grip { width: auto; height: 46px; padding: 0 12px; gap: 8px; display: inline-flex; align-items: center; border-radius: 99px; background: #fff; letter-spacing: 0; box-shadow: 0 8px 26px rgba(0, 0, 0, .5); }
.cmpx-grip em { font: 800 .72rem var(--sans); font-style: normal; letter-spacing: .06em; color: #8b90b8; }
.cmpx-grip em:last-child { color: #3b42c9; }
.cmpx[data-side="act"] .cmpx-grip em:last-child, .cmpx[data-side="pas"] .cmpx-grip em:first-child { opacity: 1; }
.cmpx[data-side="act"] .cmpx-grip em:first-child, .cmpx[data-side="pas"] .cmpx-grip em:last-child { opacity: .35; }
.cmpx-grip u { text-decoration: none; font: 700 1.05rem var(--sans); color: #0b0a33; }
.cmpx:not(.touched) .cmpx-grip::after { content: ""; position: absolute; inset: -7px; border-radius: 99px; border: 2px solid rgba(255, 255, 255, .7); animation: cmpx-pulse 1.6s ease-out infinite; }
@keyframes cmpx-pulse { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.22, 1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cmpx:not(.touched) .cmpx-grip::after { animation: none; opacity: .5; } }
@media (max-width: 640px) { .cmpx-heads .side { max-width: 49%; padding: 7px 10px 8px; } .cmpx-heads .side small { display: none; } .cmpx-grip { height: 40px; padding: 0 9px; } .cmpx-grip em { font-size: .64rem; } }

/* sin OFF/ON: palanca redonda; "sin gestión activa" en azul y "con gestión activa" rodeada de verde */
.cmpx-grip { width: 46px; height: 46px; padding: 0; gap: 0; justify-content: center; font: 700 1rem var(--sans); letter-spacing: -.1em; color: #0b0a33; }
.cmpx-grip::after { border-radius: 50%; }
.cmpx-heads .pas { background: rgba(86, 96, 224, .2); border: 1px solid rgba(154, 163, 255, .6); color: #c9ceff; }
.cmpx-heads .pas b { color: #dfe3ff; } .cmpx-heads .pas i { background: #8f98ff; opacity: 1; box-shadow: 0 0 8px rgba(143, 152, 255, .8); }
.cmpx-heads .act { background: rgba(57, 255, 136, .08); border: 1px solid rgba(57, 255, 136, .75); color: #fff; box-shadow: 0 0 0 3px rgba(57, 255, 136, .12), 0 0 26px rgba(57, 255, 136, .3); }
.cmpx-heads .act b { color: #7dffb4; } .cmpx-heads .act i { background: #39ff88; box-shadow: 0 0 10px #39ff88; }
.cmpx[data-side="pas"] .side.act { box-shadow: 0 0 0 3px rgba(57, 255, 136, .06); }
.cmpx-opt { background: radial-gradient(110% 90% at 85% 0%, rgba(57, 255, 136, .13), transparent 62%), radial-gradient(90% 80% at 10% 100%, rgba(86, 96, 224, .22), transparent 70%), #0e0d3e; box-shadow: inset 0 0 0 1px rgba(57, 255, 136, .18); }
.cmpx-fix { background: repeating-linear-gradient(135deg, rgba(154, 163, 255, .05) 0 2px, transparent 2px 11px), linear-gradient(#10104a, #0d0d3d); }
/* el lado que no domina se atenúa menos (la etiqueta azul se sigue viendo azul) y la tarjeta de resultados también va en verde */
.cmpx[data-side="act"] .side.pas, .cmpx[data-side="pas"] .side.act { opacity: .78; }
.cmpx-card.opt { border-color: rgba(57, 255, 136, .6); box-shadow: 0 0 0 3px rgba(57, 255, 136, .08), 0 0 24px rgba(57, 255, 136, .14); }
.cmpx-card.opt h3 { color: #7dffb4; }
.cmpx-card.fix { border-color: rgba(154, 163, 255, .5); } .cmpx-card.fix h3 { color: #c9ceff; }

/* pasarela de Baterías al comparador */
.teaser { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; background: linear-gradient(120deg, rgba(86, 96, 224, .18), rgba(57, 255, 136, .05)); transition: border-color .2s, transform .2s; }
.teaser:hover { border-color: var(--accent); transform: translateY(-2px); }
.teaser h3 { margin: 6px 0 6px; font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: #fff; letter-spacing: -.02em; }
.teaser p { margin: 0; color: var(--muted); max-width: 60ch; } .teaser .eyebrow { margin: 0; }
.teaser .btn { flex: none; }
@media (max-width: 760px) { .teaser { flex-direction: column; align-items: flex-start; } }
/* Conocimiento: datos de mercado */
.datalinks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.datalinks a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; background: rgba(20, 17, 90, .3); transition: border-color .2s, transform .2s; }
.datalinks a:hover { border-color: var(--accent); transform: translateY(-2px); }
.datalinks b { color: #fff; font-size: 1.05rem; line-height: 1.25; } .datalinks span { color: var(--muted); font-size: .92rem; line-height: 1.45; flex: 1; }
.datalinks i { font-style: normal; font-weight: 600; font-size: .88rem; color: var(--cy); }
@media (max-width: 960px) { .datalinks { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .datalinks { grid-template-columns: 1fr; } }
/* la palanca y el marco cambian de color con lo que enseña el slider: verde = con gestión activa, azul = sin gestión activa */
.cmpx { transition: border-color .35s, box-shadow .35s; border-color: rgba(154, 163, 255, .45); }
.cmpx[data-side="act"] { border-color: rgba(57, 255, 136, .6); box-shadow: 0 0 0 1px rgba(57, 255, 136, .16), 0 0 44px rgba(57, 255, 136, .14); }
.cmpx-handle, .cmpx-grip { transition: background .3s, box-shadow .3s, color .3s; }
.cmpx[data-side="pas"] .cmpx-handle { background: linear-gradient(#fff, #aeb6ff); box-shadow: 0 0 14px rgba(143, 152, 255, .95), 0 0 2px #fff; }
.cmpx[data-side="pas"] .cmpx-grip { background: #c9ceff; color: #1b1a6e; box-shadow: 0 0 0 4px rgba(143, 152, 255, .25), 0 8px 26px rgba(0, 0, 0, .5); }
.cmpx[data-side="act"] .cmpx-handle { background: linear-gradient(#d4ffe5, #39ff88); box-shadow: 0 0 16px rgba(57, 255, 136, .95), 0 0 3px #fff; }
.cmpx[data-side="act"] .cmpx-grip { background: #39ff88; color: #03210f; box-shadow: 0 0 0 4px rgba(57, 255, 136, .28), 0 8px 28px rgba(57, 255, 136, .45); }
.cmpx[data-side="act"] .cmpx-grip::after { border-color: rgba(57, 255, 136, .8); }
.cmpx[data-side="act"] .side.act { opacity: 1; box-shadow: 0 0 0 3px rgba(57, 255, 136, .18), 0 0 30px rgba(57, 255, 136, .4); }
/* contacto: la base de la tarjeta y la del formulario (botón) quedan a la misma altura */
.contact { align-items: stretch; }
.contact > .head { display: flex; flex-direction: column; }
.contact .bill3d { margin-top: auto; margin-bottom: -92px; }   /* la tarjeta ocupa ~60 % del alto de su caja y va centrada: se compensa el hueco de abajo */
@media (max-width: 960px) { .contact .bill3d { margin-bottom: -76px; } }
.contact form { position: relative; }
.contact form .form-msg { position: absolute; left: 0; top: 100%; margin: 10px 0 0; min-height: 0; }

/* texto nunca por debajo de 12 px y controles de 44 px en pantallas táctiles */
.mp-label { font-size: 12px; }
.hero .stage .mini-prices .mp-label { font-size: 12px; }
.ac-grid text { font-size: 12px; }
.hud span { font-size: .75rem; }
@media (pointer: coarse) {
  .ac-tabs button { min-height: 44px; padding: 0 18px; }
  .tb-sw, .cmpx-ctl button, .csw-tabs a { min-height: 44px; }
  .cmpx-grip { width: 46px; height: 46px; }
}

/* Móvil: nada sobresale del ancho de pantalla (pie a dos columnas; brillos del hero y lienzo de la tarjeta 3D recortados al borde) */
@media (max-width: 960px) {
  .hero, .head:has(.bill3d) { overflow-x: clip; }
}
@media (max-width: 640px) {
  .footer { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer > div:first-child { grid-column: 1 / -1; }
  .footer a { overflow-wrap: anywhere; }
}

/* Tarjetas de países (ui.js): pila escalonada sin inclinación; al pulsar, la de delante sale volando */
.csw-scroll .csw-stage { perspective: none; }
.csw-scroll .csw-card { transition: none; transform-origin: 50% 0; will-change: transform; cursor: pointer; }
.csw-scroll .csw-card[data-front="true"] { cursor: pointer; }
.csw-scroll .csw-card[data-front="true"]:active { cursor: pointer; }
.csw-scroll .csw-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.markets-v .on b { color: var(--accent); }

/* ---------- Intro de la portada (ui.js): el símbolo se construye como un plano técnico y vuela al logo ---------- */
html.mz-intro::after { content: ""; position: fixed; inset: 0; z-index: 200; background: #0b0a33; animation: mzi-safe 0s 4.5s forwards; }
html.mz-intro.mz-intro-on::after { display: none; }
html.mz-intro .hero-logo { opacity: 0; animation: mzi-safe-logo 0s 4.5s forwards; }
@keyframes mzi-safe { to { visibility: hidden; } }
@keyframes mzi-safe-logo { to { opacity: 1; } }
.hero-logo.mz-reveal { clip-path: inset(0 78.6% 0 0); }
.hero-logo.mz-reveal.mz-reveal-go { clip-path: inset(0 0 0 0); transition: clip-path .7s cubic-bezier(.65, 0, .35, 1); }
.mz-intro-ov { position: fixed; inset: 0; z-index: 201; display: grid; place-items: center; background: #0b0a33; transition: background-color .8s cubic-bezier(.65, 0, .35, 1); pointer-events: none; }
.mz-intro-ov.mzi-fly, .mz-intro-ov.mzi-skip { background-color: rgba(11, 10, 51, 0); }
.mzi-svg { width: min(78vw, 46vh, 400px); height: auto; overflow: visible; transform-origin: 0 0; transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.mzi-skip .mzi-svg { opacity: 0; transition: opacity .25s; }
/* líneas de construcción */
.mzi-ln { stroke: #9aa3ff; stroke-width: .7; opacity: .45; stroke-dasharray: 1; stroke-dashoffset: 1; animation: mzi-draw .6s cubic-bezier(.65, 0, .35, 1) forwards; animation-delay: calc(var(--i) * 18ms); }
.mzi-hexline { fill: none; stroke: #fff; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: mzi-draw .95s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
.mzi-pline { fill: none; stroke: #fff; stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: mzi-draw .6s cubic-bezier(.65, 0, .35, 1) forwards; animation-delay: calc(1s + var(--i) * 120ms); }
.mzi-h polyline { fill: none; stroke: #7b80ff; stroke-width: 1; }
.mzi-h circle { fill: #0b0a33; stroke: #fff; stroke-width: 1.2; }
.mzi-h rect { fill: #7b80ff; }
.mzi-h { opacity: 0; animation: mzi-in .3s ease-out forwards; animation-delay: calc(.7s + var(--i) * 50ms); }
.mzi-t { font: 500 14px var(--mono); fill: #c8ccff; letter-spacing: .02em; opacity: 0; animation: mzi-in .35s ease-out forwards; animation-delay: calc(.85s + var(--i) * 90ms); }
/* relleno */
.mzi-hexfill { fill: #5660E0; opacity: 0; animation: mzi-in .45s ease-out 1.6s forwards; }
.mzi-pfill { fill: #F2F2F2; opacity: 0; animation: mzi-in .35s ease-out forwards; animation-delay: calc(1.8s + var(--i) * 60ms); }
/* las guías y los contornos se apagan antes del vuelo */
.mzi-grid, .mzi-handles, .mzi-labels { animation: mzi-out .3s ease-in 2.05s forwards; }
.mzi-hexline { animation: mzi-draw .95s cubic-bezier(.65, 0, .35, 1) .15s forwards, mzi-out .3s ease-in 2.05s forwards; }
.mzi-pline { animation: mzi-draw .6s cubic-bezier(.65, 0, .35, 1) calc(1s + var(--i) * 120ms) forwards, mzi-out .3s ease-in 2.05s forwards; }
@keyframes mzi-draw { to { stroke-dashoffset: 0; } }
@keyframes mzi-in { to { opacity: 1; } }
@keyframes mzi-out { to { opacity: 0; } }

/* Menú de Servicios a dos columnas: En el mercado / Riesgo y control (en móvil, una sola columna) */
@media (min-width: 1241px) { .panel-sm.panel-2 { grid-template-columns: 1fr 1fr; width: 640px; } }

/* aviso bajo la pila de países */
.csw.csw-scroll { align-content: center; row-gap: 16px; }
.csw-scroll .csw-stage { margin-bottom: 0; }
.csw-hint { all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; margin: -10px 0 0; font: .78rem var(--mono); letter-spacing: .04em; color: var(--muted); }
.csw-hint::before { content: "↻ "; color: var(--accent); }
.csw-hint:hover, .csw-hint:focus-visible { color: var(--text); }
.csw-hint:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.table-wrap + .note { margin-top: 14px; }
.csw-hint::before { margin-right: .5em; }

/* ---------- Formatos de los servicios (formats.mjs): cada bloque con su propio aspecto ---------- */
.fx-n { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(154, 163, 255, .16); color: var(--accent); font: 600 .78rem var(--mono); }
.fx-k { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.fx-k::before { content: ""; width: 20px; border-top: 2px solid currentColor; }
.fx-po-tabs, .fx-seg-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 24px; }
.fx-po-tabs button, .fx-seg-tabs button { all: unset; box-sizing: border-box; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s; }
.fx-po-tabs button:hover, .fx-seg-tabs button:hover { color: var(--text); }
.fx-po-tabs button[aria-selected="true"], .fx-seg-tabs button[aria-selected="true"] { background: var(--accent); color: #0b0a33; }
.fx-po-tabs button:focus-visible, .fx-seg-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* lista editorial */
.fx-ed { list-style: none; margin: 0; padding: 0; }
.fx-ed li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 32px; align-items: center; padding: 30px 0; border-top: 1px solid var(--line); }
.fx-ed li:last-child { border-bottom: 1px solid var(--line); }
.fx-ed-n { font: 400 clamp(3rem, 6vw, 4.6rem)/1 var(--display); color: var(--accent); letter-spacing: -.02em; }
.fx-ed h3 { font-size: 1.35rem; margin: 0 0 6px; }
.fx-ed p { margin: 0; color: var(--muted); max-width: 60ch; }

/* línea de tiempo a escala */
.fx-ts { position: relative; height: 330px; margin: 0 8px; }
.fx-ts-axis { position: absolute; left: 0; right: 0; top: 150px; height: 2px; background: var(--line); }
.fx-ts-axis i { position: absolute; left: var(--x); top: -4px; width: 1px; height: 10px; background: rgba(154, 163, 255, .35); }
.fx-ts-axis::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), #5660E0); transform-origin: 0 50%; }
.js .fx-ts-axis::after { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.65, 0, .35, 1); }
.js .fx-ts.in .fx-ts-axis::after { transform: none; }
.fx-ts ol { list-style: none; margin: 0; padding: 0; }
.fx-ts li { position: absolute; left: var(--x); top: 150px; width: 0; }
.fx-ts-dot { position: absolute; left: -8px; top: -7px; width: 16px; height: 16px; border-radius: 50%; background: #0b0a33; border: 2px solid var(--accent); box-shadow: 0 0 14px rgba(154, 163, 255, .45); }
.fx-ts-txt { position: absolute; top: 26px; left: 0; width: 200px; transform: translateX(-50%); text-align: center; display: grid; gap: 3px; }
.fx-ts li:nth-child(even) .fx-ts-txt { top: auto; bottom: 26px; }
.fx-ts li:first-child .fx-ts-txt { transform: none; text-align: left; }
.fx-ts li:last-child .fx-ts-txt { transform: translateX(-100%); text-align: right; }
.fx-ts-tag { font: 400 1.6rem/1 var(--display); color: #fff; }
.fx-ts-h { font: .75rem var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.fx-ts-p { font-size: .9rem; color: var(--muted); }
.fx-ts .note { position: absolute; left: 0; bottom: 0; margin: 0; }

/* factura anotada */
.fx-inv { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.fx-inv-doc { background: #f4f3ff; color: #14123d; border-radius: 14px; padding: 26px 28px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transform: rotate(-1deg); }
.fx-inv-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid #14123d; padding-bottom: 12px; margin-bottom: 6px; }
.fx-inv-top b { font-size: 1.1rem; }
.fx-inv-top span { font: .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #5660E0; }
.fx-inv-lines { list-style: none; margin: 0; padding: 0; }
.fx-inv-lines li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px dashed rgba(20, 18, 61, .2); }
.fx-inv-doc .fx-n { background: #5660E0; color: #fff; }
.fx-inv-c { font-size: .95rem; }
.fx-inv-a { font: 500 .9rem var(--mono); white-space: nowrap; }
.fx-inv-a.neg { color: #b8322a; }
.fx-inv-total { display: flex; justify-content: space-between; padding-top: 14px; font-weight: 700; }
.fx-inv-total b { font: 700 1.05rem var(--mono); }
.fx-inv-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.fx-inv-notes li { display: flex; gap: 12px; align-items: flex-start; }
.fx-inv-notes p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

/* previsión frente a medida */
.fx-fc, .fx-po-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.fx-fc-chart, .fx-po figure { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .03); }
.fx-fc svg, .fx-po svg { width: 100%; height: auto; overflow: visible; display: block; }
.fx-fc svg text, .fx-po svg text { font: 12px var(--mono); fill: var(--muted); }
.fx-grid { stroke: rgba(154, 163, 255, .14); stroke-dasharray: 3 5; }
.fx-base { stroke: var(--line); }
.fx-fc-me { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(200, 204, 255, .5)); }
.fx-fc-pr { fill: none; stroke: #7b80ff; stroke-width: 2.2; stroke-linejoin: round; }
.js .fx-fc-me, .js .fx-fc-pr { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.65, 0, .35, 1); }
.js .fx-fc-pr { transition-delay: .35s; }
.js .fx-fc.in .fx-fc-me, .js .fx-fc.in .fx-fc-pr { stroke-dashoffset: 0; }
.fx-fc figcaption, .fx-po figcaption { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 14px; }
.fx-fc figcaption .note, .fx-po figcaption .note { margin: 0 0 0 auto; }
.fx-k.pr { color: #9aa0ff; } .fx-k.me { color: #fff; }
.fx-fc-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.fx-fc-keys li { display: flex; gap: 14px; }
.fx-fc-keys h3, .fx-po-txt h3 { margin: 0 0 4px; }
.fx-fc-keys h3 { font-size: 1.1rem; }
.fx-fc-keys p, .fx-po-txt p { margin: 0; color: var(--muted); }

/* matriz de puntos */
.fx-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(154, 163, 255, .45); vertical-align: middle; }
.fx-dot.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px rgba(154, 163, 255, .55); }
.fx-na { color: var(--muted); }
.fx-dots th:not(:first-child), .fx-dots td:not(:first-child) { text-align: center; }
.fx-legend { display: flex; flex-wrap: wrap; gap: 22px; margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.fx-legend > span { display: inline-flex; align-items: center; gap: 8px; }

/* coberturas: gráfico interactivo */
.fx-po figure { padding-left: 16px; }
.fx-po svg .fx-ax { fill: #c8ccff; }
.fx-po-ref { fill: none; stroke: rgba(200, 204, 255, .5); stroke-width: 1.6; stroke-dasharray: 6 6; }
.fx-po-l { fill: none; stroke: var(--accent); stroke-width: 3.4; stroke-linejoin: round; opacity: 0; transition: opacity .35s; filter: drop-shadow(0 0 6px rgba(154, 163, 255, .6)); }
.fx-po[data-sel="swap"] .fx-po-l[data-id="swap"], .fx-po[data-sel="floor"] .fx-po-l[data-id="floor"], .fx-po[data-sel="collar"] .fx-po-l[data-id="collar"] { opacity: 1; }
.fx-k.ref { color: rgba(200, 204, 255, .7); } .fx-k.ref::before { border-top-style: dashed; } .fx-k.sel { color: var(--accent); }
.fx-po-txt h3 { font-size: 1.7rem; margin-bottom: 8px; }

/* dos opciones enfrentadas */
.fx-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: stretch; }
.fx-vs-card { padding: 30px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(154, 163, 255, .1), rgba(255, 255, 255, .02)); }
.fx-vs-card.alt { background: linear-gradient(200deg, rgba(86, 96, 224, .24), rgba(255, 255, 255, .02)); }
.fx-vs-card h3 { font-size: 1.5rem; margin: 0 0 16px; }
.fx-vs-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fx-vs-card li { position: relative; padding-left: 26px; }
.fx-vs-card li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); }
.fx-vs-card.alt li::before { background: var(--accent); }
.fx-vs-mid { align-self: center; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: #0b0a33; font: 500 .9rem var(--mono); color: var(--accent); }

/* flujo con pulso */
.fx-flow { position: relative; }
.fx-flow ol { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 22px; }
.fx-flow-line { position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--line); overflow: hidden; }
.fx-flow-line i { position: absolute; top: -1px; left: -30%; width: 30%; height: 4px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.fx-flow.in .fx-flow-line i { animation: fx-pulse 3s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes fx-pulse { to { left: 100%; } }
.fx-flow-i { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #0b0a33; border: 2px solid var(--accent); font: 600 .85rem var(--mono); color: var(--accent); margin-bottom: 18px; }
.fx-flow h3 { font-size: 1.05rem; margin: 0 0 6px; }
.fx-flow p { margin: 0; color: var(--muted); font-size: .92rem; }

/* selector de país */
.fx-seg-panel { border-top: 1px solid var(--line); }
.fx-seg-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fx-seg-row > b { color: #fff; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chips span { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(154, 163, 255, .35); background: rgba(154, 163, 255, .08); font-size: .9rem; }
.fx-seg .note { margin-top: 14px; }

/* bento */
.fx-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 14px; grid-template-areas: "a a b b" "a a c d" "e e f f"; }
.fx-b0 { grid-area: a; } .fx-b1 { grid-area: b; } .fx-b2 { grid-area: c; } .fx-b3 { grid-area: d; } .fx-b4 { grid-area: e; } .fx-b5 { grid-area: f; }
.fx-b { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); overflow: hidden; }
.fx-b0 { background: linear-gradient(150deg, #3b3fb8, #1d1a7a); border-color: transparent; }
.fx-b1 { background: linear-gradient(150deg, rgba(86, 96, 224, .35), rgba(255, 255, 255, .03)); }
.fx-b-n { position: absolute; top: 18px; left: 22px; font: .78rem var(--mono); color: var(--accent); }
.fx-b0 .fx-b-n { color: #c8ccff; }
.fx-b h3 { font-size: 1.15rem; margin: 0 0 6px; }
.fx-b0 h3 { font-size: 2rem; }
.fx-b p { margin: 0; color: var(--muted); font-size: .92rem; }
.fx-b0 p { color: #dfe1ff; font-size: 1rem; }

/* métricas */
.fx-met { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.fx-m { display: grid; gap: 8px; padding: 24px; background: #0b0a33; }
.fx-m-h { font: .75rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.fx-m-v { font: 400 2.2rem/1 var(--display); color: #fff; }
.fx-m-s { width: 100%; height: 34px; }
.fx-m-s polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.fx-m p { margin: 0; color: var(--muted); font-size: .88rem; }
.fx-met + .note { margin-top: 12px; }

/* feed de alertas */
.fx-feed { max-width: 780px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .03); overflow: hidden; }
.fx-feed-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.fx-feed-head .note { margin: 0 0 0 auto; }
.fx-live { width: 9px; height: 9px; border-radius: 50%; background: #39ff88; animation: fx-live 1.8s infinite; }
@keyframes fx-live { 0% { box-shadow: 0 0 0 0 rgba(57, 255, 136, .55); } 100% { box-shadow: 0 0 0 10px rgba(57, 255, 136, 0); } }
.fx-feed ol { list-style: none; margin: 0; padding: 4px 0; }
.fx-feed li { display: grid; grid-template-columns: 52px 92px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 20px; border-bottom: 1px solid rgba(154, 163, 255, .1); }
.fx-feed li:last-child { border-bottom: 0; }
.js .fx-feed li { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; transition-delay: calc(var(--i) * 280ms); }
.js .fx-feed.in li { opacity: 1; transform: none; }
.fx-feed time { font: .82rem var(--mono); color: var(--muted); padding-top: 2px; }
.fx-tag { justify-self: start; font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; background: rgba(154, 163, 255, .14); color: var(--accent); }
.fx-feed li b { display: block; color: #fff; font-size: .95rem; }
.fx-feed li p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }

/* móvil */
@media (max-width: 860px) {
  .fx-inv, .fx-fc, .fx-po-body { grid-template-columns: 1fr; gap: 28px; }
  .fx-inv-doc { transform: none; }
  .fx-vs { grid-template-columns: 1fr; }
  .fx-vs-mid { justify-self: center; margin: -8px 0; }
  .fx-flow ol { grid-template-columns: 1fr; gap: 24px; }
  .fx-flow li { position: relative; padding-left: 64px; }
  .fx-flow-i { position: absolute; left: 0; top: -6px; margin: 0; }
  .fx-flow-line { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .fx-flow-line i { display: none; }
  .fx-met { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b b" "c d" "e f"; }
}
@media (max-width: 760px) {
  .fx-ts { height: auto; margin: 0; padding-left: 4px; }
  .fx-ts-axis { top: 8px; bottom: 30px; left: 11px; right: auto; width: 2px; height: auto; }
  .fx-ts-axis i { display: none; }
  .fx-ts-axis::after { width: 2px; height: 100%; transform-origin: 50% 0; }
  .js .fx-ts-axis::after { transform: scaleY(0); }
  .fx-ts li { position: relative; left: 0; top: 0; width: auto; padding: 0 0 22px 40px; }
  .fx-ts-dot { left: 0; top: 2px; }
  .fx-ts-txt, .fx-ts li:nth-child(even) .fx-ts-txt, .fx-ts li:first-child .fx-ts-txt, .fx-ts li:last-child .fx-ts-txt { position: static; transform: none; width: auto; text-align: left; }
  .fx-ts .note { position: static; }
}
@media (max-width: 640px) {
  .fx-ed li { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .fx-seg-row { grid-template-columns: 1fr; gap: 10px; }
  .fx-met { grid-template-columns: 1fr; }
  .fx-feed li { grid-template-columns: auto auto 1fr; }
  .fx-feed li > div { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .fx-feed li { opacity: 1; transform: none; transition: none; }
  .js .fx-fc-me, .js .fx-fc-pr { stroke-dashoffset: 0; transition: none; }
  .js .fx-ts-axis::after { transform: none; transition: none; }
  .fx-flow.in .fx-flow-line i, .fx-live { animation: none; }
}

/* Alineación: las notas al pie siempre separadas del bloque que explican; en rejillas de tarjetas de cuatro,
   los títulos comparten altura para que los textos empiecen a la misma altura aunque un título ocupe dos líneas */
:where(ul, ol, dl, div, figure, table) + .note { margin-top: 14px; }
@supports (grid-template-rows: subgrid) {
  .cards.four { grid-auto-rows: auto; }
  .cards.four > .card { display: grid; grid-template-rows: subgrid; grid-row: span 2; align-content: start; }
  .cards.four > .card > h3 { align-self: end; }
}
/* Conocimiento: en cada fila de tarjetas los títulos comparten altura y las descripciones empiezan a la misma línea */
@supports (grid-template-rows: subgrid) {
  .pop-list { grid-auto-rows: auto; }
  /* solo tarjetas simples: título, estado, descripción y enlace opcional (las de noticias llevan más piezas) */
  .pop-card .pub-item:not(:has(> :not(b, .st, p, .dl))) { grid-template-rows: subgrid; grid-row: span 3; row-gap: 4px; align-content: start; }
  .pop-card .pub-item:not(:has(> :not(b, .st, p, .dl))) > :is(b, .st) { align-self: end; }
}
.pop-card .pub-item { align-content: start; }   /* el contenido arriba aunque la tarjeta se estire con su fila */

/* ---------- Embudo de decisión ("Sin cajas negras"): señales → optimizador → control de riesgo → decisión ---------- */
.fn { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(48px, .55fr) auto minmax(24px, .3fr) auto minmax(24px, .3fr) minmax(0, 1fr); align-items: center; }
.fn-in { grid-row: 1; grid-column: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(var(--n), 1fr); }
.fn-in li { margin: 6px 0; padding: 12px 16px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: rgba(20, 17, 90, .55); }
.fn-in b { font-size: .98rem; font-weight: 600; }
.fn-in span { font-size: .84rem; color: var(--muted); line-height: 1.4; }
.fn-wires { grid-row: 1; grid-column: 2; align-self: stretch; position: relative; }
.fn-wires svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fn-w { fill: none; stroke: var(--line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.fn-p { fill: none; stroke: #c3c8ff; stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: .07 .93; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 4px rgba(154, 163, 255, .9)); }
html.fx .fn.on .fn-p { opacity: 1; animation: fnflow 2.6s linear infinite; animation-delay: calc(var(--i) * -.65s); }
@keyframes fnflow { to { stroke-dashoffset: 0; } }
.fn-core { grid-row: 1; grid-column: 3; position: relative; width: 150px; aspect-ratio: 1; padding: 0 14px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 50% 38%, rgba(154, 163, 255, .3), rgba(86, 96, 224, .12) 58%, transparent 72%), var(--surface);
  border: 1px solid rgba(154, 163, 255, .5); box-shadow: 0 0 44px rgba(86, 96, 224, .38); }
.fn-core b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.fn-core > span:not(.fn-ring) { margin-top: 4px; font: .68rem var(--mono); letter-spacing: .06em; color: var(--muted); }
.fn-ring { position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed rgba(154, 163, 255, .5); }
html.fx .fn.on .fn-ring { animation: fnspin 22s linear infinite; }
@keyframes fnspin { to { transform: rotate(360deg); } }
.fn-link { grid-row: 1; position: relative; height: 2px; overflow: hidden; background: var(--line); }
.fn-link:nth-of-type(1) { grid-column: 4; } .fn-link:nth-of-type(2) { grid-column: 6; }
.fn-link i { position: absolute; top: -1px; left: 0; width: 30%; height: 4px; border-radius: 2px; background: linear-gradient(90deg, transparent, #c3c8ff); opacity: 0; }
html.fx .fn.on .fn-link i { opacity: 1; animation: fnlink 1.3s linear infinite; }
@keyframes fnlink { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@keyframes fnlinkv { from { transform: translateY(-100%); } to { transform: translateY(300%); } }
.fn-gate { grid-row: 1; grid-column: 5; max-width: 150px; padding: 14px 12px; display: grid; justify-items: center; gap: 4px; text-align: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.fn-gate svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fn-gate b { font-size: .9rem; font-weight: 600; }
.fn-gate span { font-size: .76rem; line-height: 1.35; color: var(--muted); }
.fn.pass .fn-gate { animation: fngate .8s ease-out; }
@keyframes fngate { 0% { border-color: #39ff88; box-shadow: 0 0 0 0 rgba(57, 255, 136, .5); } 100% { border-color: var(--line); box-shadow: 0 0 0 14px rgba(57, 255, 136, 0); } }
.fn-out { grid-row: 1; grid-column: 7; display: grid; justify-items: start; gap: 12px; padding-left: 4px; }
.fn-out > p:not(.sr) { margin: 0; max-width: 26ch; font-size: .86rem; color: var(--muted); }
.fn-pill, .hx-pill { display: inline-flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; border-radius: 999px; perspective: 400px;
  transition: width .38s cubic-bezier(.3, 1.3, .5, 1), border-color .3s, background-color .3s; }
.fn-pill { padding: 10px 18px 10px 14px; font: 500 .9rem var(--mono); background: rgba(154, 163, 255, .12); border: 1px solid rgba(154, 163, 255, .5); }
.fn-dot, .hx-pill-d { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; color: var(--accent); transition: color .3s; }
.fn-pill[data-k="c"] .fn-dot { color: #39ff88; } .fn-pill[data-k="d"] .fn-dot { color: #1fc8ff; } .fn-pill[data-k="w"] .fn-dot { color: var(--warn); }
.fn-t, .hx-pill-t { display: inline-block; transition: transform .2s ease-in, opacity .2s; }
.fn-pill.flip .fn-t, .hx-pill.flip .hx-pill-t { transform: rotateX(90deg); opacity: 0; }
.fn-team { grid-row: 2; grid-column: 3 / -1; margin: 24px 0 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) {
  .fn { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .fn > * { grid-column: 1 !important; grid-row: auto !important; max-width: 100%; }
  .fn-in { width: 100%; grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 10px; }
  .fn-in li { margin: 0; }
  .fn-wires { display: none; }
  .fn-core { margin-top: 44px; }
  .fn-core::before { content: ""; position: absolute; bottom: calc(100% + 9px); left: 50%; width: 2px; height: 26px; background: var(--line); }
  .fn-link { width: 2px; height: 30px; }
  .fn-link i { top: 0; left: -1px; width: 4px; height: 34%; background: linear-gradient(180deg, transparent, #c3c8ff); }
  html.fx .fn.on .fn-link i { animation-name: fnlinkv; }
  .fn-gate { max-width: 240px; }
  .fn-out { justify-items: center; text-align: center; padding: 0; }
  .fn-team { justify-self: stretch; text-align: left; }
}
@media (max-width: 520px) { .fn-in { grid-template-columns: 1fr; } }

/* ---------- Red de mercados: un hilo por mercado; el elegido se tensa y lo recorre la energía ---------- */
.fw { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 40px; align-items: center; }
.fw-stage { position: relative; aspect-ratio: 16 / 11; }
.fw-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fw-ring { fill: none; stroke: rgba(141, 151, 255, .14); stroke-width: 1; }
.fw-th { fill: none; stroke: rgba(141, 151, 255, .38); stroke-width: 1.2; transition: stroke .3s; }
.fw-th.on { stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(154, 163, 255, .8)); }
.fw-dot { fill: #fff; filter: drop-shadow(0 0 5px #9aa3ff); }
.fw-center { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); width: clamp(100px, 21%, 136px); aspect-ratio: 1; padding: 8px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; border: 1px solid rgba(154, 163, 255, .5); box-shadow: 0 0 36px rgba(86, 96, 224, .42);
  background: radial-gradient(circle at 50% 38%, rgba(154, 163, 255, .3), rgba(86, 96, 224, .12) 58%, transparent 72%), var(--surface); }
.fw-center b { font-family: var(--display); font-weight: 400; font-size: 1.05rem; }
.fw-center span { margin-top: 2px; font-size: .7rem; line-height: 1.3; color: var(--muted); }
.fw-node { position: absolute; left: var(--x); top: var(--y); z-index: 2; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; padding: 9px 14px;
  font: inherit; color: var(--text); text-align: center; white-space: nowrap; cursor: pointer; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .25s, background-color .25s, box-shadow .25s, transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.fw-node b { font-size: .92rem; font-weight: 600; }
.fw-node span { font: .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fw-node:hover { border-color: var(--accent); }
.fw-node[aria-pressed="true"] { border-color: var(--accent); background: var(--surface-2); transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 4px rgba(154, 163, 255, .12), 0 0 26px rgba(86, 96, 224, .45); }
.fw-node[aria-pressed="true"] span { color: var(--accent); }
.fw-panel { padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); }
html.fx .fw-panel { animation: fwin .35s ease-out; }
@keyframes fwin { from { opacity: 0; transform: translateY(8px); } }
.fw-n { display: block; margin-bottom: 10px; font: .75rem var(--mono); color: var(--muted); }
.fw-panel h3 { margin: 8px 0 10px; font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.fw-panel p { margin: 0; color: var(--muted); }
.fw-hint { margin: 20px 0 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) {
  .fw { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fw-stage { aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; }
  .fw-node { left: clamp(17%, var(--x), 83%); padding: 7px 10px; max-width: 34%; white-space: normal; }
  .fw-node b { font-size: .8rem; line-height: 1.2; }
  .fw-node span { font-size: .58rem; }
}

/* ---------- Píldora de estado sobre la batería del hero ---------- */
.hx-pill { position: absolute; top: 0; left: 50%; z-index: 3; transform: translate(-50%, -55%); padding: 7px 15px 7px 12px; pointer-events: none;
  font: 500 .8rem var(--mono); color: var(--text); background: rgba(11, 10, 51, .85); border: 1px solid rgba(154, 163, 255, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hx-pill:not([data-st]) { visibility: hidden; }
.hx-pill-d { width: 7px; height: 7px; color: var(--muted); }
.hx-pill[data-st="charge"] { border-color: rgba(57, 255, 136, .55); } .hx-pill[data-st="charge"] .hx-pill-d { color: #39ff88; }
.hx-pill[data-st="sell"] { border-color: rgba(31, 200, 255, .55); } .hx-pill[data-st="sell"] .hx-pill-d { color: #1fc8ff; }

/* ---------- Gráfico del día: diferencia máx.–mín. de la curva elegida, que rueda al cambiar de pestaña ---------- */
.ac-read { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: .8rem; color: var(--muted); }
.ac-read b { font: 600 1rem var(--mono); font-variant-numeric: tabular-nums; color: var(--text); transition: color .4s; }
.ac-read b.up { color: var(--cy); } .ac-read b.down { color: var(--rose); }

/* ---------- VALORA TU ACTIVO (banda final: describe el activo, sin cifras) ---------- */
.cta-val { align-items: flex-start; gap: 32px 48px; }
.cta-val .cv-copy { flex: 1 1 280px; max-width: 30rem; }
.cta-val .cv-copy p { margin-top: 8px; }
.cv-form { flex: 1 1 460px; display: grid; gap: 14px; min-width: 0; }
.cv-g { border: 0; margin: 0; padding: 0; min-width: 0; }
.cv-g legend { font: .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #c9cdff; margin-bottom: 8px; padding: 0; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-chip { display: inline-flex; position: relative; cursor: pointer; color: #fff; font-size: .9rem; }
.cv-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cv-chip span { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); transition: background .2s, color .2s, border-color .2s, transform .15s; }
.cv-chip:hover span { border-color: rgba(255,255,255,.6); }
.cv-chip input:checked + span { background: #fff; color: var(--navy); border-color: #fff; font-weight: 600; }
.cv-chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.cv-chip:active span { transform: scale(.96); }
.cv-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 4px; }
.cv-mw { display: inline-flex; align-items: center; gap: 8px; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 0 16px 0 14px; height: 46px; font-size: .9rem; }
.cv-mw > span { font: .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #c9cdff; }
.cv-mw input { width: 5.5rem; background: transparent; border: 0; padding: 0; color: #fff; font-weight: 600; text-align: right; -moz-appearance: textfield; }
.cv-mw input::-webkit-outer-spin-button, .cv-mw input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cv-mw input::placeholder { color: rgba(255,255,255,.4); }
.cv-mw:focus-within { border-color: #fff; }
.cta-val .cv-go { flex: 1 1 auto; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; transition: background .2s, transform .15s, box-shadow .3s; }
.cv-t { display: inline-block; transition: opacity .14s, transform .14s; }
.cv-t.cv-out { opacity: 0; transform: translateY(4px); }
.cta-val.cv-ready .cv-go { box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.bm-t { transition: opacity .14s, transform .14s; }
.bm-t.cv-out { opacity: 0; transform: translateY(4px); }
@media (max-width: 520px) {
  .cta-val { padding: 28px 20px; }
  .cta-val .cv-go { white-space: normal; text-align: center; height: auto; min-height: 46px; padding-block: 10px; }
  .cv-mw { flex: 1 1 100%; justify-content: space-between; }
}
#contactForm .btn-morph { grid-column: 1 / -1; justify-self: start; white-space: nowrap; }
@media (max-width: 520px) { #contactForm .btn-morph { white-space: normal; justify-self: stretch; } }

/* ---------- Previsión frente a medida: día en directo ---------- */
.fc-stage { position: relative; transition: opacity .45s; }
.fc-stage.fc-out { opacity: 0; }
.fc-gap { fill: rgba(255, 120, 150, .22); stroke: none; }
.fx-k.gap { color: #ff8aa6; } .fx-k.gap::before { border-top-width: 8px; opacity: .55; }
.fx-fc:not(.fc-live) .fc-now, .fx-fc:not(.fc-live) .fc-clock, .fx-fc:not(.fc-live) .fc-cloud, .fx-fc:not(.fc-live) .fc-msg, .fx-fc:not(.fc-live) .fx-k.gap { display: none; }
.fc-live .fx-fc-me, .fc-live .fx-fc-pr { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; transition: none !important; }
.fc-now line { stroke: rgba(255, 255, 255, .35); stroke-width: 1; stroke-dasharray: 3 4; }
.fc-dot { fill: #fff; filter: drop-shadow(0 0 6px rgba(200, 204, 255, .9)); }
.fc-clock { position: absolute; top: -8px; transform: translate(-50%, -100%); font: 600 .72rem var(--mono); color: #fff; background: rgba(123, 128, 255, .25); border: 1px solid rgba(154, 160, 255, .45); padding: 2px 7px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.fc-cloud { position: absolute; top: 4%; width: 44px; transform: translate(-50%, -6px) scale(.8); opacity: 0; transition: opacity .5s, transform 2.2s cubic-bezier(.3, .7, .3, 1), left 1.6s ease-in-out; pointer-events: none; }
.fc-cloud.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.fc-cloud svg { width: 100%; display: block; fill: rgba(220, 224, 255, .85); filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.fc-msg { position: absolute; top: 30%; transform: translate(-50%, 6px); opacity: 0; max-width: 62%; text-align: center; font-size: .8rem; line-height: 1.3; color: #fff; background: rgba(12, 10, 50, .88); border: 1px solid rgba(154, 160, 255, .45); padding: 6px 12px; border-radius: 10px; transition: opacity .3s, transform .3s; pointer-events: none; }
.fc-msg.on { opacity: 1; transform: translate(-50%, 0); }
.fc-live .fx-fc-keys li { opacity: .42; transition: opacity .4s; }
.fc-live .fx-fc-keys li.on { opacity: 1; }
.fc-live .fx-fc-keys li.on .fx-n { background: var(--accent); color: var(--navy); transition: background .4s, color .4s; }
.fc-msg.top { top: 4%; max-width: 80%; }

/* ---------- Portada en móvil: título → batería → texto; batería plana y legible, píldora debajo, datos en una fila ---------- */
@media (max-width: 760px) {
  .hero { grid-template-areas: "t" "s" "c"; min-height: 0; row-gap: 22px; padding-bottom: 48px; }
  .hero .hero-brand, .hero-down { display: none; }
  .hero .stage { display: flex; flex-direction: column; align-items: center; margin: 4px 0 0; max-width: none; }
  .hero .stage .battery-rig { order: 0; transform: none; }
  .hero .stage .hx-pill { order: 1; position: relative; top: auto; left: auto; transform: none; margin-top: 16px; }
  .hero .stage .mini-prices, .hero .stage .hx-legend { display: none; }
  .hero .stage .hud { order: 2; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 14px; padding: 12px 0 0; border-top: 1px solid var(--line); text-align: center; }
  .hero .stage .hud > div:first-child { display: none; }
  .hero .stage .hud span { font-size: .68rem; } .hero .stage .hud b { font-size: .98rem; }
  .hero-copy .lead { margin-bottom: 20px; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; }
  .hero-stats div:nth-child(3) { grid-column: auto; }
  .hero-stats dd { font-size: 1.9rem; } .hero-stats dt { font-size: .78rem; min-height: 0; }
}

/* ---------- "Ver país": más grande y con una luz que recorre el borde ---------- */
@property --ga { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.csw-go { position: relative; isolation: isolate; padding: 11px 20px; font-size: .98rem; transition: opacity .2s, transform .2s, box-shadow .2s; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 6px 22px rgba(154, 163, 255, .45); }
.csw-go::before { content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: inherit; padding: 3px; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9));
  background: conic-gradient(from var(--ga), transparent 0 62%, rgba(255, 255, 255, .95) 78%, #9aa3ff 86%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: csw-go-spin 2.4s linear infinite; }
.csw-go:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 8px 28px rgba(154, 163, 255, .65); }
@keyframes csw-go-spin { to { --ga: 360deg; } }
@media (prefers-reduced-motion: reduce) { .csw-go::before { animation: none; } }

/* ---------- El día de los mercados en 3D (Cómo funciona): plataforma inclinada D-1 → D, OMIE delante y REE detrás ---------- */
.d3 { --tilt: 50deg; --omie: #4cc9b0; --ree: #7aa2ff; margin: 8px 0 40px; }
.d3-scene { position: relative; height: clamp(280px, 28vw, 350px); perspective: 1300px; perspective-origin: 50% 0%; }
.d3-plane { position: absolute; left: 4%; right: 3%; bottom: 10%; height: 66%; transform-style: preserve-3d; transform: rotateX(var(--tilt)); transform-origin: 50% 100%;
  border-radius: 18px; border: 1px solid rgba(154, 163, 255, .35);
  background: linear-gradient(90deg, rgba(30, 28, 110, .85) 0 58%, rgba(14, 13, 60, .9) 58% 100%),
              repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3%);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 60px rgba(154, 163, 255, .08); }
.d3-day { position: absolute; top: -34px; font: 600 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transform: rotateX(calc(-1 * var(--tilt))); transform-origin: 0 100%; }
.d3-day.d1 { left: 1%; } .d3-day.d2 { left: 59%; }
.d3-short { display: none; }
.d3-lane { position: absolute; left: 0; right: 0; height: 34%; border-top: 1px dashed rgba(255, 255, 255, .12); }
.d3-lane.ree { top: 14%; } .d3-lane.omie { top: 58%; }
.d3-lane em { position: absolute; left: -2px; top: 50%; transform: translate(-100%, -50%); padding-right: 10px; font: 700 .8rem var(--mono); font-style: normal; letter-spacing: .1em; }
.d3-lane.ree em { color: var(--ree); } .d3-lane.omie em { color: var(--omie); }
.d3-tick { position: absolute; left: var(--x); bottom: 4px; transform: translateX(-50%); font: .68rem var(--mono); color: rgba(220, 224, 255, .55); }
.d3-tick::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: 300px; border-left: 1px solid rgba(255, 255, 255, .05); }
.d3-tick.mid { color: #fff; font-weight: 700; }
.d3-tick.mid::before { border-left: 2px dashed rgba(255, 255, 255, .45); }

/* bandas: tramos de tiempo encendidos sobre el carril */
.d3-band { position: absolute; left: var(--x); width: var(--w); height: 22%; border-radius: 6px; transition: box-shadow .4s, opacity .4s, background .4s; opacity: .45; }
.d3-band.ree { top: calc(14% + 6%); background: rgba(122, 162, 255, .35); border: 1px solid var(--ree); }
.d3-band.ree.a { top: 16%; height: 13%; } .d3-band.ree.b { top: 31%; height: 13%; background: rgba(183, 156, 255, .3); border-color: #b79cff; }
.d3-band.on.ree.b { box-shadow: 0 0 24px #b79cff, inset 0 0 18px rgba(255, 255, 255, .25); background: rgba(183, 156, 255, .55); }
.d3-band.omie { top: calc(58% + 6%); background: rgba(76, 201, 176, .3); border: 1px solid var(--omie); }
.d3-band.on, .d3-band.done { opacity: 1; }
.d3-band.on.ree { box-shadow: 0 0 24px var(--ree), inset 0 0 18px rgba(255, 255, 255, .25); background: rgba(122, 162, 255, .6); }
.d3-band.on.omie { box-shadow: 0 0 24px var(--omie), inset 0 0 18px rgba(255, 255, 255, .25); background: rgba(76, 201, 176, .55); }
.d3-blab { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font: 600 .85rem var(--sans); color: #fff; white-space: nowrap; }
.d3-band:not(.wide) .d3-blab { display: none; }

/* hitos: un mástil que se levanta de la plataforma, con su bandera siempre de cara */
.d3-pin { position: absolute; left: var(--x); width: 0; height: 0; transform-style: preserve-3d; }
.d3-pin.ree { top: 31%; } .d3-pin.omie { top: 75%; }
.d3-up { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 100%; transform: translateX(-50%) rotateX(calc(-1 * var(--tilt))); }
.d3-stem { width: 2px; height: 44px; background: linear-gradient(transparent, currentColor); }
.d3-pin.tall .d3-stem { height: 92px; }
.d3-pin::after { content: ""; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: currentColor; box-shadow: 0 0 14px currentColor; opacity: .5; transition: opacity .3s, transform .3s; }
.d3-pin.ree { color: var(--ree); } .d3-pin.omie { color: var(--omie); }
.d3-flag { display: grid; justify-items: center; gap: 1px; padding: 6px 10px; border-radius: 10px; white-space: nowrap; background: rgba(12, 10, 50, .92); border: 1px solid currentColor; transition: box-shadow .3s, background .3s, transform .3s; }
.d3-flag b { font: 700 .92rem var(--sans); color: #fff; } .d3-flag small { font: .74rem var(--mono); color: currentColor; }
/* la opacidad va en .d3-up: en .d3-pin aplanaría el 3D (la bandera quedaría tumbada) */
.d3-up { opacity: .6; transition: opacity .4s; }
.d3-pin.on .d3-up, .d3-pin.done .d3-up { opacity: 1; }
.d3-pin.on::after { opacity: 1; transform: scale(1.5); }
.d3-pin.on .d3-flag { background: currentColor; box-shadow: 0 0 26px currentColor; }
.d3-pin.on .d3-flag b, .d3-pin.on .d3-flag small { color: #0b0a33; }

/* la luz que recorre el día */
.d3-now { position: absolute; top: 0; bottom: 0; left: var(--p, 0%); width: 0; transform-style: preserve-3d; }
.d3-now::before { content: ""; position: absolute; top: 0; bottom: 0; left: -2px; width: 4px; border-radius: 4px; background: #fff; box-shadow: 0 0 18px #fff, 0 0 40px rgba(154, 163, 255, .9); }
.d3-now i { position: absolute; left: -1px; bottom: 0; width: 2px; height: 150px; transform-origin: 50% 100%; transform: rotateX(calc(-1 * var(--tilt))); background: linear-gradient(transparent, rgba(255, 255, 255, .8)); }
.d3-clock { position: absolute; right: 3%; top: 0; font: 700 1rem var(--mono); color: #fff; padding: 6px 12px; border-radius: 999px; background: rgba(154, 163, 255, .14); border: 1px solid rgba(154, 163, 255, .45); }
.d3-cap { min-height: 2.6em; margin: 6px auto 0; max-width: 60ch; text-align: center; font-size: 1.05rem; color: #fff; transition: opacity .25s, transform .25s; }
.d3-cap.out { opacity: 0; transform: translateY(4px); }
.d3:not(.d3-live) .d3-now, .d3:not(.d3-live) .d3-clock { display: none; }
.d3:not(.d3-live) .d3-up, .d3:not(.d3-live) .d3-band { opacity: 1; }

@media (max-width: 760px) {
  .d3 { --tilt: 46deg; }
  .d3-scene { height: 260px; perspective: 800px; }
  .d3-plane { left: 13%; right: 2%; height: 56%; }
  .d3-day { font-size: .72rem; top: -24px; } .d3-day > span:first-child { display: none; } .d3-short { display: inline; color: #fff; }
  .d3-flag { padding: 4px 6px; } .d3-flag b { font-size: .64rem; } .d3-flag small { display: none; }
  .d3-stem { height: 26px; } .d3-pin.tall .d3-stem { height: 58px; }
  .d3-blab { display: none; }
  .d3-tick { font-size: .56rem; } .d3-tick:nth-of-type(odd):not(.mid) { visibility: hidden; }
  .d3-lane em { font-size: .6rem; }
  .d3-clock { font-size: .82rem; top: -4px; }
  .d3-cap { font-size: .95rem; }
}

/* proceso de programación (P.O. 3.1): grupos D-1 / D / cuenta atrás y la entrega destacada */
.tl-title { margin: 8px 0 18px; font-size: 1.2rem; }
.tl-prog li.tl-g { display: block; padding: 26px 0 6px 48px; opacity: 1; }
.tl-prog li.tl-g span { font: 700 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tl-prog li { padding-top: 12px; padding-bottom: 12px; grid-template-columns: 110px minmax(0, 1fr); }
.tl-prog li.tl-now b { color: #39ff88; }
.tl-prog li.tl-now.on .tl-dot { background: #39ff88; border-color: #39ff88; box-shadow: 0 0 0 6px rgba(57, 255, 136, .16), 0 0 16px rgba(57, 255, 136, .75); }
@media (max-width: 640px) { .tl-prog li { grid-template-columns: 1fr; } }

/* ---------- Cuenta atrás de cada cuarto de hora (bajo el 3D): MIC, terciaria y secundaria ---------- */
.qh { max-width: 860px; margin: 26px auto 0; padding: 18px 22px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.qh-t { margin: 0 0 12px; font: 700 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.qh-track { position: relative; margin: 0 8px 0 4px; }
.qh-row { position: relative; height: 40px; }
.qh-ev, .qh-seg { position: absolute; top: 4px; left: var(--x); display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font-size: .82rem; transition: opacity .3s; opacity: .55; }
.qh-ev b, .qh-seg b { color: #fff; font-size: .86rem; } .qh-ev small, .qh-seg small { color: var(--muted); }
.qh-ev { padding-left: 14px; } .qh-ev::before { content: ""; position: absolute; left: 0; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--omie, #4cc9b0); box-shadow: 0 0 10px #4cc9b0; }
.qh-seg { right: 0; padding: 6px 10px; margin-top: -6px; border-radius: 8px; justify-content: flex-end; }
.qh-seg.ter { background: rgba(183, 156, 255, .16); border: 1px solid rgba(183, 156, 255, .6); }
.qh-seg.sec { background: rgba(122, 162, 255, .16); border: 1px solid rgba(122, 162, 255, .6); }
.qh-ev.on, .qh-seg.on { opacity: 1; }
.qh-seg.ter.on { box-shadow: 0 0 18px rgba(183, 156, 255, .55); } .qh-seg.sec.on { box-shadow: 0 0 18px rgba(122, 162, 255, .55); }
.qh-axis { position: relative; height: 26px; margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .2); }
.qh-tick { position: absolute; left: var(--x); top: 6px; transform: translateX(-50%); font: .68rem var(--mono); color: var(--muted); white-space: nowrap; }
.qh-tick:first-child { transform: none; } .qh-tick.end { transform: translateX(-100%); color: #39ff88; font-weight: 700; }
.qh-tick::before { content: ""; position: absolute; left: 50%; top: -10px; height: 7px; border-left: 1px solid rgba(255, 255, 255, .35); }
.qh-tick:first-child::before { left: 0; } .qh-tick.end::before { left: 100%; }
.qh-dot { position: absolute; top: -5px; left: var(--p, 0%); width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; }
.qh:not(.qh-live) .qh-ev, .qh:not(.qh-live) .qh-seg { opacity: 1; } .qh:not(.qh-live) .qh-dot { display: none; }
@media (max-width: 640px) {
  .qh { padding: 14px 12px 10px; }
  .qh-row { height: auto; min-height: 44px; padding: 4px 0; }
  .qh-ev, .qh-seg { flex-direction: column; gap: 0; white-space: normal; align-items: flex-start; }
  .qh-ev { position: relative; top: 0; left: auto; }
  .qh-seg { position: relative; top: 0; left: auto; right: auto; margin: 0 0 0 min(var(--x), calc(100% - 170px)); align-items: flex-end; text-align: right; }
  .qh-ev small, .qh-seg small { font-size: .72rem; }
  .qh-tick { font-size: .58rem; }
}

/* ---------- Datos de mercado: ilustración pequeña en cada tarjeta, se anima al pasar el ratón ---------- */
.dl-vis { display: block; width: 100%; height: auto; aspect-ratio: 184 / 64; margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: rgba(154, 163, 255, .06); border: 1px solid rgba(154, 163, 255, .14); box-sizing: border-box; overflow: visible; transition: background .3s, border-color .3s; }
.datalinks a:hover .dl-vis, .datalinks a:focus-visible .dl-vis { background: rgba(154, 163, 255, .12); border-color: rgba(154, 163, 255, .35); }
.datalinks a:hover i, .datalinks a:focus-visible i { text-decoration: underline; text-underline-offset: 3px; }
.dl-curve .dl-line { fill: none; stroke: #9aa3ff; stroke-width: 2; stroke-linejoin: round; }
.dl-curve .dl-area { fill: rgba(154, 163, 255, .14); }
.dl-curve .dl-cur line { stroke: #fff; stroke-opacity: .5; stroke-dasharray: 2 3; } .dl-curve .dl-cur circle { fill: #fff; }
.dl-curve .dl-cur { transform: translateX(132px); }
/* al pasar el ratón, el cursor recorre la curva de un lado a otro, ida y vuelta */
.datalinks a:hover .dl-curve .dl-cur, .datalinks a:focus-visible .dl-curve .dl-cur { animation: dlscan 2.6s ease-in-out infinite alternate; }
@keyframes dlscan { from { transform: translateX(8px); } to { transform: translateX(174px); } }
.dl-heat rect { fill: #9aa3ff; opacity: calc(.12 + var(--k) * .55); transition: opacity .4s, fill .4s; }
.datalinks a:hover .dl-heat rect { fill: #ff8aa6; opacity: calc(.15 + var(--k) * .85); transition-delay: var(--d); }
.dl-tl .dl-rail { stroke: rgba(255, 255, 255, .22); stroke-width: 2; }
.dl-tl .dl-pt { fill: #0b0a33; stroke: #9aa3ff; stroke-width: 2; transition: fill .3s; }
.dl-tl .dl-run { fill: #fff; filter: drop-shadow(0 0 4px #fff); opacity: 0; }
.datalinks a:hover .dl-tl .dl-pt { fill: #9aa3ff; transition-delay: var(--d); }
.datalinks a:hover .dl-tl .dl-run { opacity: 1; animation: dlrun 1.4s ease-in-out infinite; }
@keyframes dlrun { from { transform: translateX(0); } to { transform: translateX(172px); } }
@media (prefers-reduced-motion: reduce) { .datalinks a:hover .dl-curve .dl-cur { animation: none; } .datalinks a:hover .dl-tl .dl-run { animation: none; } }
@media (max-width: 960px) { .datalinks { grid-template-columns: 1fr; } }

/* ---------- Zoom al cuarto de hora: la cuenta atrás surge como un zoom desde un cuadrado al entrar en el día D ---------- */
.d3 { position: relative; }
.d3-zoomable { transition: padding-bottom .45s cubic-bezier(.3, 1, .4, 1); }
.d3-zoomable.zoom-room { padding-bottom: var(--room, 190px); }
.d3-zoomable .qh { position: absolute; z-index: 5; left: 50%; top: auto; bottom: 14px; width: min(600px, 94%); margin: 0; padding: 12px 18px 8px; transform: translateX(-50%) scale(.03); opacity: 0; pointer-events: none;
  background: rgba(12, 10, 50, .96); border-color: rgba(154, 163, 255, .55); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(154, 163, 255, .15), 0 0 40px rgba(154, 163, 255, .25);
  transition: transform .55s cubic-bezier(.2, .9, .25, 1), opacity .25s; }
.d3-zoomable.zoomed .qh { transform: translateX(-50%) scale(1); opacity: 1; pointer-events: auto; }
.d3-zoomable .d3-scene, .d3-zoomable .d3-cap { transition: filter .45s, opacity .45s; }
.d3-zoomsq { position: absolute; z-index: 4; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2px solid #fff; border-radius: 4px; pointer-events: none;
  box-shadow: 0 0 16px #fff, inset 0 0 10px rgba(154, 163, 255, .6); opacity: 0; transform: scale(.2); transition: opacity .25s, transform .35s cubic-bezier(.2, .9, .25, 1); }
.d3-zoomable.zoom-sq .d3-zoomsq { opacity: 1; transform: scale(1); }
.d3-zoomable.zoomed .d3-zoomsq { opacity: 0; transform: scale(2.4); }

/* ---------- Ranking del juego: puesto, tu partida destacada y versión corta en la pantalla de inicio ---------- */
.g-rank li { gap: 10px; align-items: baseline; }
.g-rank li i { flex: none; width: 1.6em; font: 700 .8rem var(--mono); font-style: normal; color: var(--accent); text-align: right; }
.g-rank li span { flex: 1; }
.g-rank li:nth-child(1) i { color: #ffd166; } .g-rank li:nth-child(2) i { color: #d9dcff; } .g-rank li:nth-child(3) i { color: #e0a96d; }
.g-rank li.g-gap { justify-content: center; background: none; padding: 0; opacity: .6; }
.g-rank li.g-empty { justify-content: center; font-size: .85rem; opacity: .8; }
.g-rank-sm { width: 80%; margin-top: 6px; } .g-rank-sm li { padding: 4px 12px; font-size: .85rem; }

/* resultado del juego: rojo si pierdes, dorado si eres el as del mercado */
.g-big.bad { color: #ff6b81; } .g-big.ace { color: #ffd166; text-shadow: 0 0 24px rgba(255, 209, 102, .55); }

/* ---------- Menú "morph": un único fondo se desplaza y cambia de tamaño entre paneles (escritorio con ratón) ---------- */
.morph-nav .panel { background: transparent !important; border-color: transparent !important; box-shadow: none !important; z-index: 2;
  transition: opacity .22s ease, transform .34s cubic-bezier(.3, 1, .4, 1); }
.morph-nav .panel.leaving { pointer-events: none; }
.nav-morph { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; border-radius: 14px; border: 1px solid rgba(154, 163, 255, .22);
  background: #0e0d3e; box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .04); opacity: 0; transform-origin: 0 0;
  transition: transform .4s cubic-bezier(.3, 1.05, .4, 1), width .4s cubic-bezier(.3, 1.05, .4, 1), height .4s cubic-bezier(.3, 1.05, .4, 1), opacity .2s; }
.nav-morph.on { opacity: 1; }
.nav-morph.snap { transition: opacity .2s; }

/* zoom compacto: panel pequeño debajo del 3D, que sigue viéndose entero */
.d3-zoomable .qh-t { margin-bottom: 6px; font-size: .66rem; }
.d3-zoomable .qh-row { height: 30px; }
.d3-zoomable .qh-ev, .d3-zoomable .qh-seg { font-size: .74rem; } .d3-zoomable .qh-ev b, .d3-zoomable .qh-seg b { font-size: .78rem; }
.d3-zoomable .qh-seg { padding: 4px 8px; margin-top: -4px; }
.d3-zoomable .qh-axis { height: 22px; margin-top: 2px; } .d3-zoomable .qh-tick { font-size: .62rem; }

/* pausa del 3D */
.d3-play { position: absolute; left: 3%; top: 0; z-index: 6; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(154, 163, 255, .45); background: rgba(154, 163, 255, .14); cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.d3-play:hover { background: rgba(154, 163, 255, .28); border-color: #fff; }
.d3-play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.d3-play::before { content: ""; width: 12px; height: 13px; background: linear-gradient(90deg, #fff 0 4px, transparent 4px 8px, #fff 8px 12px); }
.d3-play[aria-pressed="true"]::before { width: 0; height: 0; background: none; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.d3.is-paused .d3-now::before { animation: d3blink 1.2s ease-in-out infinite; }
@keyframes d3blink { 50% { opacity: .35; } }

/* lista de mercados: el que está iluminando el 3D lleva un anillo que late y la etiqueta "ahora" */
.tl li.now3d .tl-dot { box-shadow: 0 0 0 6px rgba(154, 163, 255, .16), 0 0 18px rgba(154, 163, 255, .9); animation: tlnow 1.4s ease-in-out infinite; }
.tl li.now3d b::after { content: "● ahora"; margin-left: 10px; font: 700 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #39ff88; vertical-align: middle; }
html[lang="en"] .tl li.now3d b::after { content: "● now"; } html[lang="it"] .tl li.now3d b::after { content: "● ora"; }
@keyframes tlnow { 50% { box-shadow: 0 0 0 10px rgba(154, 163, 255, .06), 0 0 24px rgba(154, 163, 255, 1); } }
@media (prefers-reduced-motion: reduce) { .tl li.now3d .tl-dot, .d3.is-paused .d3-now::before { animation: none; } }
.tl li.now3d { opacity: .9; }

/* ---------- Conocimiento: carpetas (fondo con pestaña, hojas que asoman y frontal que se inclina al abrir) ---------- */
.folders .folder { position: relative; display: flex; flex-direction: column; perspective: 1200px; padding-top: 58px; }
.folders .folder:nth-child(1) { min-height: 340px; } .folders .folder:nth-child(2) { min-height: 420px; } .folders .folder:nth-child(3) { min-height: 500px; }
.fd-back { position: absolute; inset: 22px 0 0 0; background: var(--c); filter: brightness(.62); border-radius: 0 14px 6px 6px; }
.fd-back::before { content: ""; position: absolute; left: 0; bottom: 100%; width: 42%; height: 22px; background: inherit; border-radius: 10px 14px 0 0; clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%); }
.fd-sheets { position: absolute; left: 7%; right: 7%; top: 30px; height: 150px; z-index: 1; }
.fd-sheet { all: unset; box-sizing: border-box; position: absolute; left: 17%; width: 66%; top: 0; height: 150px; transform-origin: 50% 120%; padding: 12px 14px; cursor: pointer; border-radius: 8px;
  background: linear-gradient(180deg, #f4f5ff, #e2e5ff); color: #0b0a33; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 4px;
  transform: translateY(calc(var(--i) * 7px)) rotate(calc((var(--i) - 1) * 1.2deg)); transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), box-shadow .3s; }
.fd-sheet small { font: 700 .62rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #5a61c8; }
.fd-sheet b { font-size: .9rem; line-height: 1.2; color: #0b0a33; }
.fd-sheet:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.folders .fd-front { position: relative; z-index: 2; flex: 1; min-height: 0 !important; border-radius: 6px; transform-origin: 50% 100%;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, .18); transition: transform .45s cubic-bezier(.3, 1.2, .5, 1), opacity .3s; }
.folders .folder:hover .fd-front, .folders .folder:has(:focus-visible) .fd-front { transform: rotateX(-14deg) translateY(4px); }
.folders .folder:hover .fd-sheet, .folders .folder:has(:focus-visible) .fd-sheet { transform: translate(calc((var(--i) - 1) * 46%), calc(-70px + (var(--i) - 1) * (var(--i) - 1) * 14px)) rotate(calc((var(--i) - 1) * 12deg)); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.folders .folder .fd-sheet:hover { z-index: 3; transform: translate(calc((var(--i) - 1) * 46%), -96px) rotate(calc((var(--i) - 1) * 4deg)) scale(1.05); }
.folders .folder:hover .fd-front { transform: rotateX(-14deg) translateY(4px); }
.tiles.folders:hover .folder:not(:hover) { opacity: .65; } .tiles.folders .folder { transition: opacity .3s; }
.tiles.folders:hover .tile-open:not(:hover) { opacity: 1; } .folders .tile-open:hover { transform: none; }
.folders .folder:hover .tile-open:hover { transform: rotateX(-14deg) translateY(4px); }
@media (max-width: 960px) { .folders .folder:nth-child(n) { min-height: 300px; } .fd-sheet { height: 120px; } }
@media (prefers-reduced-motion: reduce) { .fd-sheet, .folders .fd-front { transition: none; } }

/* ---------- Portátiles (p. ej. 1920 px con escala de Windows al 125-150 % → ~1280-1536 × 720-864) ----------
   El bloque fijo de Cómo funciona ocupa una pantalla de alto: el título se ajusta al ancho y al alto de la ventana
   (en 1920 × 1080 queda igual que antes) y los pasos se compactan en pantallas bajas. */
@media (min-width: 961px) {
  #storyTitle { font-size: clamp(2.1rem, min(3.4vw, 5.8vh), 3.6rem); line-height: 1.04; }
  .steps { margin-top: clamp(12px, 2.4vh, 24px); }
  .steps li { padding-top: clamp(6px, 1.25vh, 12px); padding-bottom: clamp(6px, 1.25vh, 12px); }
}

/* ---------- Escala compacta para portátiles (≤ 1600 px de ancho o ≤ 820 px de alto en escritorio) ----------
   Con Windows al 125-150 % el navegador trabaja con ~1260-1540 × 700-860 px y la web se veía enorme.
   Base al 87,5 %, titulares según ancho y alto, menos aire entre secciones y carpetas más bajas.
   En monitores grandes no cambia nada. */
@media (min-width: 961px) and (max-width: 1600px), (min-width: 961px) and (max-height: 820px) {
  html { font-size: 14px; scroll-padding-top: 76px; }
  h1, .page-head h1, .page-hero h1 { font-size: clamp(1.9rem, min(3.5vw, 6.4vh), 3.2rem); line-height: 1.06; }
  .head h2 { font-size: clamp(1.6rem, min(2.9vw, 5.2vh), 2.5rem); }
  .head { margin-bottom: 24px; }
  .page-head { padding-top: 36px; padding-bottom: 16px; }
  .page-head .lead, .page-hero .lead { font-size: 1.05rem; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .section.tight { padding-top: 32px; padding-bottom: 40px; }
  .folders .folder:nth-child(1) { min-height: 260px; } .folders .folder:nth-child(2) { min-height: 310px; } .folders .folder:nth-child(3) { min-height: 360px; }
  .tile-open { padding: 22px 22px 20px; }
  .tile-open h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
  .cta-band { margin-top: 28px; margin-bottom: 48px; padding: 28px 32px; }
}

/* Intro del logo: el logotipo de la portada no se ve hasta el barrido final (antes asomaba durante el vuelo del hexágono) */
html.mz-intro .hero .hero-logo:not(.mz-reveal) { visibility: hidden; }

/* ---------- Gradación de color "Noche": navy más profundo y menos violeta, con brillos suaves ----------
   Escala de superficies oscuras (menos saturadas que antes) y fondo con luz índigo arriba a la izquierda, un toque
   de teal a la derecha y el pie algo más oscuro. La imagen del hero se atenúa para que no salte frente al resto. */
:root { --bg: #070a1f; --surface: #10143a; --surface-2: #171c4a; --navy: #141a52; --line: rgba(150, 165, 255, .16); }
body { background:
  radial-gradient(1200px 700px at 12% -10%, rgba(86, 96, 224, .22), transparent 60%),
  radial-gradient(1000px 800px at 105% 30%, rgba(76, 201, 176, .08), transparent 60%),
  radial-gradient(900px 600px at 50% 120%, rgba(154, 163, 255, .10), transparent 65%),
  linear-gradient(180deg, #080b24 0%, #060819 100%);
  background-attachment: fixed; }
.nav { background: rgba(7, 10, 31, .86); }
.nav.nav-scrolled { background: rgba(7, 10, 31, .96); }
.hero::before { opacity: .34; filter: saturate(.72) brightness(.85); }
.panel { background: #0c0f2e !important; }
.nav-morph { background: #0c0f2e; }

/* Aurora: brillos índigo, teal y lila que derivan muy despacio (40 s), detrás de todo el contenido */
body::before { content: ""; position: fixed; inset: -10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 14% 6%, rgba(98, 108, 240, .38), transparent 62%),
    radial-gradient(800px 700px at 92% 38%, rgba(76, 201, 176, .16), transparent 62%),
    radial-gradient(1000px 700px at 40% 108%, rgba(154, 163, 255, .18), transparent 64%),
    linear-gradient(115deg, transparent 30%, rgba(122, 132, 255, .07) 45%, transparent 60%);
  animation: aurora 40s ease-in-out infinite alternate; }
@keyframes aurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(3%, -2%, 0) scale(1.05); } 100% { transform: translate3d(-3%, 2%, 0) scale(1.02); } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* ---------- Carpetas: al abrir, las hojas suben en fila (sin pisarse ni salirse de su carpeta) ---------- */
.fd-sheet { transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), left .45s cubic-bezier(.3, 1.1, .5, 1), width .45s cubic-bezier(.3, 1.1, .5, 1), box-shadow .3s; }
.folders .folder:hover .fd-sheet, .folders .folder:has(:focus-visible) .fd-sheet {
  left: calc(var(--i) * 34%); width: 32%; padding: 10px 10px; transform: translateY(-74px) rotate(calc((var(--i) - 1) * 2deg)); }
.folders .folder .fd-sheet:hover, .folders .folder .fd-sheet:focus-visible { z-index: 3; transform: translateY(-92px) rotate(0deg) scale(1.04); box-shadow: 0 18px 34px rgba(0, 0, 0, .4); }
.folders .folder:hover .fd-sheet b, .folders .folder:has(:focus-visible) .fd-sheet b { font-size: .8rem; }
.folders .folder:hover .fd-sheet small, .folders .folder:has(:focus-visible) .fd-sheet small { font-size: .56rem; }

/* ---------- Pop-up: cada publicación es una hoja (papel claro, esquina doblada) que entra repartida ---------- */
.pop-card .pub-item { position: relative; background: linear-gradient(180deg, #f6f7ff, #e2e5ff) !important; color: #0b0a33; border-radius: 6px 20px 6px 6px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28); padding: 18px 20px 20px; animation: dealIn .55s cubic-bezier(.3, 1.25, .5, 1) both; animation-delay: calc(var(--k, 0) * 70ms + 120ms); }
.pop-card .pub-item::after { content: ""; position: absolute; top: 0; right: 0; width: 22px; height: 22px; border-radius: 0 6px 0 6px;
  background: linear-gradient(225deg, rgba(11, 10, 51, .0) 50%, #c3c8f2 50%); box-shadow: -2px 2px 4px rgba(11, 10, 51, .15); }
.pop-card .pub-item b { color: #0b0a33; }
.pop-card .pub-item p, .pop-card .pub-item .blt, .pop-card .pub-item .blt b { color: #2b2f63; opacity: 1; }
.pop-card .pub-item .pd { color: #5a61c8; opacity: 1; }
.pop-card .pub-item .pn { color: #5a61c8; opacity: 1; }
.pop-card .pub-item .dl { color: #3a42b4; }
.pop-card .pub-item .st { padding: 2px 9px; border-radius: 999px; font-size: .7rem; letter-spacing: .02em; color: #555b99; background: rgba(90, 97, 200, .12); opacity: 1; margin-right: 10px; }
.pop-card .pub-item .st.on { color: #0b6b48; background: rgba(57, 200, 136, .2); }
.pop-card .pub-item:hover { transform: translateY(-6px) rotate(-.6deg); background: linear-gradient(180deg, #fff, #e9ebff) !important; box-shadow: 0 18px 34px rgba(0, 0, 0, .35); }
.pop-card .pub-item.is-selected { outline: 3px solid #fff; outline-offset: 3px; transform: translateY(-4px); background: linear-gradient(180deg, #fff, #eef0ff) !important; }
@keyframes dealIn { from { opacity: 0; transform: translateY(34px) rotate(-5deg) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pop-card .pub-item { animation: none; } .pop-card .pub-item:hover { transform: none; } }

/* ---------- Hojas de las carpetas con aspecto de fichero: papel, esquina doblada y renglones de texto ---------- */
.fd-sheet { height: 168px; border-radius: 3px 14px 3px 3px; overflow: hidden;
  background: linear-gradient(180deg, #fbfbff 0%, #eef0fb 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 8px 20px rgba(0, 0, 0, .28); }
/* esquina doblada arriba a la derecha */
.fd-sheet::after { content: ""; position: absolute; top: 0; right: 0; width: 18px; height: 18px; border-radius: 0 0 0 4px;
  background: linear-gradient(225deg, #0b0a33 0 50%, #cfd3f1 50%); opacity: .9; box-shadow: -1px 1px 3px rgba(11, 10, 51, .2); }
.folders .fd-sheet::after { background: linear-gradient(225deg, transparent 0 50%, #cfd3f1 50%); }
/* renglones grises como texto del documento, debajo del título */
.fd-sheet::before { content: ""; position: absolute; left: 10px; right: 16px; top: 70px; height: 40px; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(90, 97, 160, .2) 0 3px, transparent 3px 10px);
  -webkit-mask-image: linear-gradient(90deg, #000 70%, rgba(0, 0, 0, .35)); mask-image: linear-gradient(90deg, #000 70%, rgba(0, 0, 0, .35)); }
.fd-sheet small { position: relative; z-index: 1; } .fd-sheet b { position: relative; z-index: 1; }

/* ---------- Carrusel en arco (Sobre nosotros) ---------- */
.arc { position: relative; user-select: none; }
.arc-stage { position: relative; height: clamp(300px, 34vw, 400px); overflow-x: clip; overflow-y: visible; touch-action: pan-y; cursor: grab; }
.arc-drag .arc-stage { cursor: grabbing; }
.arc-card { all: unset; box-sizing: border-box; position: absolute; left: 50%; top: 22%; width: clamp(104px, 11vw, 150px); aspect-ratio: 3 / 4; border-radius: 18px; cursor: pointer;
  background: radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, .28), transparent 55%), linear-gradient(155deg, var(--c2), var(--c1));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25); display: grid; place-items: center; transform-origin: 50% 100%;
  transition: transform .72s cubic-bezier(.3, 1.05, .4, 1), opacity .5s, box-shadow .4s; }
.arc-drag .arc-card { transition: opacity .3s; }
.arc-card svg { width: 46%; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.arc-n { position: absolute; left: 12px; top: 10px; font: 700 .7rem var(--mono); color: rgba(255, 255, 255, .8); letter-spacing: .08em; }
.arc-card.on { box-shadow: 0 26px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .35), 0 0 46px color-mix(in srgb, var(--c2) 55%, transparent); }
.arc-card:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.arc-text { display: grid; grid-template-columns: auto minmax(0, 560px) auto; justify-content: center; align-items: center; gap: 18px; margin-top: -8px; }
.arc-prev, .arc-next { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; color: #fff;
  border: 1px solid rgba(154, 163, 255, .4); background: rgba(154, 163, 255, .1); transition: background .2s, border-color .2s; }
.arc-prev:hover, .arc-next:hover { background: rgba(154, 163, 255, .25); border-color: #fff; }
.arc-prev:focus-visible, .arc-next:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.arc-copy { display: grid; text-align: center; min-height: 7.5em; }
.arc-item { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; pointer-events: none; }
.arc-item.on { opacity: 1; transform: none; pointer-events: auto; }
.arc-item h3 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-family: var(--display); font-weight: 400; }
.arc-item p { margin: 0; color: var(--muted); }
.arc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.arc-dots button { all: unset; cursor: pointer; width: 8px; height: 8px; border-radius: 99px; background: rgba(154, 163, 255, .35); transition: width .3s, background .3s; }
.arc-dots button[aria-current="true"] { width: 26px; background: #fff; }
.arc-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* sin JS: las cuatro tarjetas en fila y todos los textos visibles */
.arc:not(.arc-live) .arc-stage { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; overflow: visible; }
.arc:not(.arc-live) .arc-card { position: static; }
.arc:not(.arc-live) .arc-card[aria-hidden="true"], .arc:not(.arc-live) .arc-prev, .arc:not(.arc-live) .arc-next, .arc:not(.arc-live) .arc-dots { display: none; }
.arc:not(.arc-live) .arc-copy { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; text-align: left; }
.arc:not(.arc-live) .arc-item { grid-area: auto; opacity: 1; transform: none; }
@media (max-width: 640px) { .arc-text { grid-template-columns: auto 1fr auto; gap: 10px; } .arc-prev, .arc-next { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .arc-card, .arc-item { transition: none; } }
@media (max-width: 640px) { .arc-stage { height: 320px; } .arc-card { top: 26%; width: 96px; } }

/* ---------- Nada pisa el menú: todo el contenido de la página va en una capa propia por debajo de la barra (z-index 50).
   Los pop-ups (<dialog>) y el juego van en la capa superior del navegador y no se ven afectados. Regla fija para cualquier
   componente nuevo: no hace falta (ni sirve) subir su z-index por encima del menú. */
main { position: relative; z-index: 0; isolation: isolate; }
/* el carrusel en arco no se sale por arriba (sobre su título); por abajo sí puede asomar */
.arc-stage { clip-path: inset(-12px -100vw -420px -100vw); }

/* ---------- Abanico de 4 (sustituye al carrusel en arco): más pequeño y las cuatro tarjetas a la vista ---------- */
.arc-stage { height: clamp(190px, 17vw, 230px); cursor: default; overflow: visible; clip-path: none; }
.arc-card { top: 14%; width: clamp(88px, 7.6vw, 112px); border-radius: 14px; transition: transform .5s cubic-bezier(.3, 1.2, .5, 1), box-shadow .3s, opacity .3s; }
.arc-card:not(.on) { opacity: .78; }
.arc-card svg { width: 44%; }
.arc-text { margin-top: 4px; }
.arc-copy { min-height: 5.6em; }
.arc-item h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); }
@media (max-width: 640px) { .arc-stage { height: 180px; } .arc-card { top: 14%; width: 74px; } }


/* ---------- Abanico centrado a todo el ancho: las 4 tarjetas repartidas en el ancho, texto debajo ---------- */
.arc-stage { height: clamp(220px, 21vw, 290px); }
.arc-card { top: 12%; width: clamp(110px, 11vw, 168px); }
.arc-text { grid-template-columns: auto minmax(0, 620px) auto; margin-top: 6px; }
/* el texto saliente se va antes de que entre el nuevo (no se pisan) */
.arc-item { transition: opacity .18s ease, transform .18s ease; }
.arc-item.on { transition: opacity .3s ease .16s, transform .3s ease .16s; }

/* ---------- Seis mercados: la lista y, a su lado y centrado con ella, el botón con la miniatura del 3D ---------- */
.mk-row { display: grid; grid-template-columns: auto minmax(320px, 1fr); gap: clamp(24px, 2.5vw, 40px); align-items: center; }
.mk-row > .tl { width: max-content; max-width: min(720px, 100%); }
@media (min-width: 901px) { .d3-open { margin-inline: auto; } }
.d3-open { all: unset; box-sizing: border-box; cursor: pointer; justify-self: center; width: 100%; max-width: 500px; display: grid; justify-items: center; text-align: center; gap: 8px;
  padding: 14px 14px 24px; border-radius: 24px; border: 1px solid rgba(154, 163, 255, .35); color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, rgba(76, 201, 176, .18), transparent 60%), linear-gradient(160deg, rgba(60, 50, 170, .5), rgba(20, 16, 70, .7));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35); transition: transform .3s, box-shadow .3s, border-color .3s; }
.d3-open:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .6); box-shadow: 0 26px 64px rgba(0, 0, 0, .45), 0 0 44px rgba(154, 163, 255, .35); }
.d3-open:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.d3-open b { font-size: 1.3rem; margin-top: 6px; }
.d3-open small { color: var(--muted); font-size: .95rem; line-height: 1.4; max-width: 34ch; }
/* la miniatura: la plataforma real dibujada a 1000 px y escalada al ancho del botón (--s lo pone ui.js) */
.d3-open-viz { position: relative; width: 100%; aspect-ratio: 1000 / 360; overflow: hidden; border-radius: 16px;
  background: radial-gradient(70% 90% at 50% 100%, rgba(120, 90, 255, .28), transparent 70%), rgba(8, 6, 40, .55); }
.d3-open-viz .d3-mini { position: absolute; left: 50%; top: 50%; width: 1000px; margin: 0; transform: translate(-50%, -50%) scale(var(--s, .4)); transform-origin: 50% 50%; pointer-events: none; }
.d3-mini .d3-scene { height: 340px; }
.d3.d3-mini .d3-now { display: block; animation: d3MiniRun 7s linear infinite; }
@keyframes d3MiniRun { from { left: 0%; } to { left: 100%; } }
.d3-open-ic { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: #1d1670; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: d3OpenPulse 2.4s ease-out infinite; transition: transform .3s; }
.d3-open:hover .d3-open-ic { transform: scale(1.1); }
.d3-open-ic svg { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }
@keyframes d3OpenPulse { 0% { box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 0 rgba(255, 255, 255, .5); } 70%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 20px rgba(255, 255, 255, 0); } }
@media (max-width: 900px) { .mk-row { grid-template-columns: 1fr; gap: 28px; } .d3-open { order: -1; max-width: 520px; } }
html.d3-lock { overflow: hidden; }
.d3-dlg { box-sizing: border-box; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: #fff; overflow: auto;
  background: radial-gradient(80% 60% at 80% 0%, rgba(76, 201, 176, .14), transparent 60%), radial-gradient(70% 70% at 10% 100%, rgba(120, 90, 255, .2), transparent 60%), var(--bg); }
.d3-dlg[open] { display: grid; place-items: center; animation: fadeIn .3s ease both; }
.d3-dlg::backdrop { background: rgba(5, 4, 28, .9); }
.d3-dlg-in { width: min(1500px, calc(100vw - 48px)); padding: 40px 0 24px; }
.d3-dlg-in { text-align: center; }
.d3-dlg-in > .eyebrow { margin: 0; }
.d3-dlg-in h2 { margin: 4px 0 8px; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.4rem); letter-spacing: -.01em; }
.d3-dlg .d3 { margin: 0; }
.d3-dlg .d3-scene { height: clamp(300px, min(34vw, 52vh), 560px); }
.d3-dlg .d3-cap { font-size: clamp(1rem, 1.4vw, 1.25rem); }
.d3-close { all: unset; position: fixed; top: 18px; right: 22px; z-index: 5; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  font-size: 1.8rem; line-height: 1; color: #fff; border: 1px solid rgba(154, 163, 255, .45); background: rgba(154, 163, 255, .12); transition: background .2s, border-color .2s; }
.d3-close:hover { background: rgba(154, 163, 255, .3); border-color: #fff; }
.d3-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 760px) { .d3-dlg-in { width: calc(100vw - 32px); padding-top: 72px; } }
@media (prefers-reduced-motion: reduce) { .d3-open-ic, .d3-dlg[open], .d3.d3-mini .d3-now { animation: none; } .d3-open { transition: none; } }

/* ---------- Newsletter (Conocimiento) ---------- */
.nl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: clamp(24px, 4vw, 44px);
  border-radius: 24px; border: 1px solid rgba(154, 163, 255, .3); background: radial-gradient(90% 120% at 0% 0%, rgba(120, 90, 255, .22), transparent 60%), rgba(20, 16, 70, .5); }
.nl-copy h2 { margin: 6px 0 10px; }
.nl-copy p:last-child { margin: 0; color: var(--muted); }
.nl-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 12px; }
.nl-form .btn { white-space: nowrap; }
.nl-ok { grid-column: 1 / -1; align-items: flex-start; font-size: .85rem; }
.nl-ok input { margin-top: 2px; }
.nl-ok a { color: var(--text); }
@media (max-width: 860px) { .nl { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 480px) { .nl-form { grid-template-columns: 1fr; } }
.nl-copy h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }

/* ---------- Portada (escritorio): orden final y único. Texto a la izquierda centrado en vertical como un bloque;
   batería + precios a la derecha, centrada en su columna y a media altura. El tamaño de la batería se limita por la
   altura de la ventana (≈ 0,9 de alto por cada 1 de ancho, más la etiqueta de estado que asoma por arriba), así nunca
   se mete bajo el menú ni con pantallas bajas o zoom del navegador. ---------- */
@media (min-width: 961px) {
  .hero.hv-a { --hero-h: calc(100svh - var(--nav-h, 70px));
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas: ". s" "b s" "t s" "c s" ". s";
    column-gap: clamp(32px, 4vw, 72px); row-gap: 0; align-items: center; align-content: stretch;
    min-height: var(--hero-h); padding: clamp(28px, 4vh, 48px) 16px clamp(64px, 9vh, 92px); }
  .hero.hv-a .hero-brand { grid-area: b; margin-bottom: clamp(16px, 3vh, 36px); }
  .hero.hv-a .hero-title { grid-area: t; }
  .hero.hv-a .hero-copy { grid-area: c; }
  .hero.hv-a .stage { grid-area: s; align-self: center; justify-self: center; width: 100%; margin: 0 auto; padding: 22px 0 0;
    max-width: min(640px, calc((var(--hero-h) - clamp(28px, 4vh, 48px) - clamp(64px, 9vh, 92px) - 64px) / 0.92)); }
}

/* ---------- Carreras: ofertas abiertas (se crean desde el modo edición) ---------- */
.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: clamp(18px, 3vw, 28px); border-radius: 18px;
  border: 1px solid rgba(154, 163, 255, .3); background: rgba(20, 16, 70, .45); }
.job h2 { margin: 0 0 4px; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.job .job-meta { margin: 0 0 8px; color: var(--accent); font: .85rem var(--mono); }
.job p:last-child { margin: 0; color: var(--muted); white-space: pre-line; }
@media (max-width: 700px) { .job { grid-template-columns: 1fr; } }

/* ---------- Contacto: la tarjeta va justo debajo del texto, alineada con el título (no al fondo de la columna).
   El dibujo de la tarjeta ocupa el ancho de su caja y el 60 % central de su alto: se compensa el 20 % de arriba y de abajo
   (alto de la caja = 0,706 × ancho → 20 % = 0,141 × ancho; ancho = min(460px, columna)). ---------- */
.contact { align-items: start; }
.contact .bill3d { margin-top: calc(32px - 0.141 * min(460px, 100%)); margin-bottom: calc(-0.141 * min(460px, 100%)); }
@media (max-width: 960px) { .contact .bill3d { margin-top: calc(24px - 0.141 * min(380px, 100%)); margin-bottom: calc(-0.141 * min(380px, 100%)); } }

/* ---------- Pop-up de Conocimiento: todas las fichas del mismo tamaño (misma anchura y misma altura dentro de cada
   grupo) y el contenido siempre arriba: número + título, estado a la derecha, fecha, texto y enlace. ---------- */
.pop-card .pop-list { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; }
.pop-card .pop-list .pub-item, .pop-card .pop-list .pub-item:not(:has(> :not(b, .st, p, .dl))) { grid-template-rows: none; grid-row: auto; align-content: start; align-items: start; }
.pop-card .pop-list .pub-item > :is(b, .st), .pop-card .pop-list .pub-item:not(:has(> :not(b, .st, p, .dl))) > :is(b, .st) { align-self: start; }
.pop-card .pop-list .pub-item.wide { grid-column: 1 / -1; }
@media (max-width: 1100px) { .pop-card .pop-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pop-card .pop-list { grid-template-columns: 1fr; grid-auto-rows: auto; } }

/* ---------- Noticias de Maze: panel digital con la paleta de la marca (entra con un barrido de luz) ---------- */
.np-dlg { border: 0; padding: 16px; margin: 0; background: transparent; width: 100vw; max-width: none; height: 100dvh; max-height: none; overflow: hidden; box-sizing: border-box; }
.np-dlg[open] { display: grid; place-items: center; }
.np-dlg::backdrop { background: rgba(5, 4, 28, .78); backdrop-filter: blur(6px); }
.np-paper { position: relative; box-sizing: border-box; width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 0 0 36px;
  color: var(--text); font-family: var(--sans); border-radius: 22px; border: 1px solid rgba(154, 163, 255, .35);
  background: radial-gradient(120% 70% at 0% 0%, rgba(86, 96, 224, .35), transparent 60%), radial-gradient(90% 60% at 100% 100%, rgba(40, 200, 170, .12), transparent 60%), linear-gradient(180deg, #17135c, #0d0b3a);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 60px rgba(86, 96, 224, .25); }
.np-paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: .5;   /* retícula, como el fondo de la web */
  background-image: linear-gradient(rgba(154, 163, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(154, 163, 255, .07) 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: radial-gradient(90% 70% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(90% 70% at 50% 0%, #000, transparent 75%); }
.np-paper > * { position: relative; }
.np-close { all: unset; position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  font: 400 1.5rem/1 var(--sans); color: var(--text); border: 1px solid rgba(154, 163, 255, .35); background: rgba(11, 10, 51, .6); z-index: 2; transition: border-color .2s, background .2s; }
.np-close:hover { border-color: var(--accent); background: rgba(86, 96, 224, .25); }
.np-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.np-mast { display: flex; align-items: center; gap: 12px; padding: 18px 64px 16px 28px; border-bottom: 1px solid rgba(154, 163, 255, .2);
  font: 500 .72rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.np-mast span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #28e0a8; box-shadow: 0 0 10px #28e0a8; vertical-align: 1px; }
.np-mast b { font: 600 .72rem/1 var(--mono); letter-spacing: .12em; color: #fff; padding: 5px 10px; border-radius: 999px; background: var(--brand); }
.np-mast time { margin-left: auto; }
.np-in { padding: 26px clamp(22px, 5vw, 44px) 0; }
.np-kick { margin: 0 0 10px; font: 600 .74rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.np-h { margin: 0 0 16px; font: 400 clamp(1.8rem, 4.2vw, 2.6rem)/1.12 var(--display); letter-spacing: -.01em; color: #fff; }
.np-lead { margin: 0 0 22px; padding: 2px 0 2px 16px; border-left: 3px solid var(--brand); font-size: 1.12rem; line-height: 1.55; color: #e6e7ff; }
.np-cols { font-size: 1rem; line-height: 1.7; color: var(--muted); }
.np-cols p { margin: 0 0 1em; }
.np-cols p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .np-mast { padding-left: 20px; gap: 8px; } .np-mast span { display: none; } }
/* entrada: sube y se enfoca; una línea de luz recorre el panel de arriba abajo */
.np-dlg.np-anim .np-paper { animation: npIn .55s cubic-bezier(.2, .8, .2, 1) both; }
.np-dlg.np-anim .np-paper::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, transparent, rgba(154, 163, 255, .18), transparent); animation: npScan 1s ease-out .15s both; }
.np-dlg.np-anim .np-in > * { animation: npUp .5s ease both; }
.np-dlg.np-anim .np-in > :nth-child(2) { animation-delay: .1s; }
.np-dlg.np-anim .np-in > :nth-child(3) { animation-delay: .18s; }
.np-dlg.np-anim .np-in > :nth-child(4) { animation-delay: .26s; }
.np-dlg.np-anim::backdrop { animation: fadeIn .3s ease both; }
@keyframes npIn { from { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes npScan { from { transform: translateY(-120px); opacity: 1; } to { transform: translateY(700px); opacity: 0; } }
@keyframes npUp { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .np-dlg.np-anim .np-paper, .np-dlg.np-anim .np-paper::after, .np-dlg.np-anim .np-in > * { animation: none; } }
.pop-card .pub-item .np-open { all: unset; grid-column: 1 / -1; width: fit-content; margin-top: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: inherit; }

/* ---------- Carreras: oferta con su formulario de candidatura (se despliega al pulsar) ---------- */
.job { grid-template-columns: 1fr; align-items: start; }
.apply summary { list-style: none; width: fit-content; cursor: pointer; }
.apply summary::-webkit-details-marker { display: none; }
.apply[open] summary { display: none; }
.apply-form { margin-top: 18px; grid-template-columns: 1fr 1fr; }
.apply-form .btn { justify-self: start; }
.apply-form input[type=file] { padding: 10px; }
@media (max-width: 700px) { .apply-form { grid-template-columns: 1fr; } }

/* ---------- Carreras: descripción completa de la oferta (desplegable) ---------- */
.job .job-txt > p { margin: 0 0 8px; color: var(--muted); }
.job-more { margin: 6px 0 4px; }
.job-more summary { width: fit-content; cursor: pointer; font-weight: 700; color: var(--accent); }
.job-more[open] summary { margin-bottom: 4px; }
.job-more h3 { margin: 18px 0 6px; font-size: 1.05rem; }
.job-more p, .job-more li { color: var(--muted); line-height: 1.6; }
.job-more p { margin: 0 0 8px; }
.job-more ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.job-more { max-width: 80ch; }

/* ---------- Carreras: plegar de nuevo la oferta y el formulario ---------- */
.job-more .hd, .job-more[open] .sh { display: none; }
.job-more[open] .hd { display: inline; }
.apply-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; grid-column: 1 / -1; }

/* ---------- Acceso discreto al portal privado (derecha del menú) ---------- */
.nav-portal { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; color: var(--muted); text-decoration: none;
  font: 500 .82rem var(--sans); border: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav-portal svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.nav-portal:hover, .nav-portal:focus-visible { color: var(--text); border-color: var(--line); }
@media (max-width: 1100px) { .nav-portal span { display: none; } .nav-portal { padding: 6px; } }
@media (max-width: 760px) { .nav-portal { display: none; } }

/* ---------- Síguenos en LinkedIn: mismo formato que la newsletter, logo en su cuadrado ---------- */
.li-row { margin-top: 0; }
.li-box { margin-top: 0; }
.li-follow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px; border-radius: 18px;
  border: 1px solid rgba(154, 163, 255, .3); background: rgba(11, 10, 51, .45); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.li-follow:hover { border-color: rgba(154, 163, 255, .65); transform: translateY(-1px); }
.li-sq { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 18px; background: #0a66c2; box-shadow: 0 10px 30px rgba(10, 102, 194, .35); }
.li-sq svg { width: 44px; height: 44px; fill: #fff; }
.li-who { display: grid; gap: 2px; min-width: 0; }
.li-who b { font-size: 1.1rem; }
.li-who span { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.li-follow .btn { white-space: nowrap; }
@media (max-width: 480px) { .li-follow { grid-template-columns: auto minmax(0, 1fr); } .li-follow .btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; } .li-sq { width: 64px; height: 64px; border-radius: 14px; } .li-sq svg { width: 34px; height: 34px; } }

/* ---------- Carreras: «← Volver» arriba a la izquierda de la oferta abierta ---------- */
.job-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 -6px; padding: 6px 12px 6px 8px; border: 1px solid var(--line);
  border-radius: 999px; background: transparent; color: var(--muted); font: 500 .85rem var(--sans); cursor: pointer; transition: color .2s, border-color .2s; }
.job-back span { font-size: 1.05rem; line-height: 1; }
.job-back:hover, .job-back:focus-visible { color: var(--text); border-color: var(--accent); }

/* ---------- Conocimiento: newsletter y LinkedIn, mismo tamaño ---------- */
.nl-pair { display: grid; grid-auto-rows: 1fr; gap: 20px; }
.nl-pair .li-box { margin-top: 0; }
@media (max-width: 860px) { .nl-pair { grid-auto-rows: auto; } }
.job-back[hidden] { display: none; }
.np-kick { display: none; }   /* la etiqueta ya va en la cabecera del panel */

/* ---------- Revisión: en móvil, la línea de tiempo y la animación 3D de Cómo funciona no desbordan ---------- */
@media (max-width: 900px) { .mk-row { grid-template-columns: minmax(0, 1fr); } .mk-row > * { min-width: 0; } }
@media (max-width: 560px) { .tl li { grid-template-columns: minmax(0, 1fr); gap: 2px; } .tl time { padding-top: 0; } }

/* ---------- Noticias de Maze: versión clara, mismo tono que las fichas (blanco con toque lavanda), estilo digital ---------- */
.np-paper { color: #1a1747; border-color: rgba(86, 96, 224, .28);
  background: radial-gradient(110% 70% at 0% 0%, rgba(86, 96, 224, .14), transparent 60%), radial-gradient(80% 60% at 100% 100%, rgba(57, 200, 136, .08), transparent 60%), linear-gradient(180deg, #ffffff, #eceeff);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 0 60px rgba(86, 96, 224, .25); }
.np-paper::before { opacity: .9; background-image: linear-gradient(rgba(86, 96, 224, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(86, 96, 224, .07) 1px, transparent 1px); }
.np-close { color: #1a1747; border-color: rgba(86, 96, 224, .3); background: rgba(255, 255, 255, .8); }
.np-close:hover { border-color: var(--brand); background: #fff; }
.np-close:focus-visible { outline-color: var(--brand); }
.np-mast { color: #555b99; border-bottom-color: rgba(86, 96, 224, .18); }
.np-mast span::before { background: #19b37e; box-shadow: 0 0 8px rgba(25, 179, 126, .7); }
.np-h { color: #12104a; }
.np-lead { color: #2b2866; border-left-color: var(--brand); }
.np-cols { color: #45436b; }
.np-dlg.np-anim .np-paper::after { background: linear-gradient(180deg, transparent, rgba(86, 96, 224, .14), transparent); }
