/* ============================================================
   Hormiga Financiera — sitio
   Papel crema + tinta café (el mismo contorno de las hormigas)
   + sombras duras desplazadas y colores sacados del rig.
   ============================================================ */

@font-face {
  font-family: 'Lilita One';
  src: url('../fonts/LilitaOne-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: light;
  /* papel */
  --paper: #fdf8f4;
  --paper-2: #f8efe5;
  --card: #fffdfa;
  /* tinta */
  --ink: #2b1708;
  --ink-2: #5b3b24;
  --muted: #86664d;
  --line: #4a250f;            /* contorno de las hormigas */
  --hair: rgba(74, 37, 15, .16);
  /* colores del rig */
  --orange: #f38a26;
  --orange-d: #d66f17;
  --orange-soft: #ffe2c2;
  --blue: #6b7fc2;
  --blue-d: #56699f;
  --blue-soft: #dfe5f7;
  --yellow: #f7cd3a;
  --yellow-soft: #fff1b8;
  --green: #4e9a4e;
  --green-soft: #dbefd5;
  --teal: #3fa7a0;
  --red: #e5533d;
  --yt: #e8382b;
  /* datos (validado: CVD ΔE 25+) */
  --data-a: #5b6fb8;
  --data-b: #e08a2a;
  /* forma */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
  --shadow: 4px 4px 0 var(--line);
  --shadow-lg: 6px 6px 0 var(--line);
  --f-display: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* textura de papel: ruido muy fino + fibras + calidez en bordes */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .4 0 0 0 0 .25 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.06'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .6), transparent 60%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--yellow); border: 2.5px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 16px; font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

.ico { width: 20px; height: 20px; flex: none; }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: .01em; line-height: 1.04; color: var(--ink); }
.h2 { font-size: clamp(2rem, 4.2vw + .6rem, 3.3rem); }
.h3 { font-size: 1.45rem; line-height: 1.1; }
.body-lg { font-size: 1.12rem; color: var(--ink-2); }
.narrow { max-width: 600px; margin-left: auto; margin-right: auto; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 14px;
}
.kicker::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: var(--orange); border: 2.5px solid var(--line);
}

/* marcador tipo rotulador detrás de palabras */
.mark {
  display: inline-block; position: relative; padding: 0 .18em; margin: 0 .02em;
  z-index: 0; white-space: nowrap;
}
.mark::before {
  content: ""; position: absolute; inset: .06em -.02em .02em; z-index: -1;
  border: 3px solid var(--line); border-radius: 10px; transform: rotate(-1.6deg);
  box-shadow: 3px 3px 0 var(--line);
}
.mark-yellow::before { background: var(--yellow); }
.mark-orange { color: #fff; }
.mark-orange::before { background: var(--orange); transform: rotate(1.4deg); }
.mark-orange { text-shadow: 0 2px 0 var(--orange-d); }

/* ---------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  border: 3px solid var(--line); text-decoration: none;
  font-weight: 900; font-size: 1.02rem; line-height: 1.1;
  box-shadow: var(--shadow);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-yt { background: var(--yt); color: #fff; --yt-play: var(--yt); }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .92rem; box-shadow: 3px 3px 0 var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------------------------------------------- barra superior */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 244, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--hair);
}
.topbar-in { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-head {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--yellow-soft); border: 2.5px solid var(--line);
}
.brand-head svg { width: 100%; height: 100%; }
.brand-name { font-family: var(--f-display); font-size: 1.1rem; line-height: .95; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 800; font-size: .95rem; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--yellow-soft); color: var(--ink); }

/* ---------------------------------------------- hero */
.hero { padding: 40px 0 34px; overflow: hidden; }
.hero-grid {
  display: grid; gap: 22px 40px; align-items: center;
  grid-template-columns: 1.08fr .92fr;
  grid-template-areas: "copy stage" "actions stage";
}
.hero-copy { grid-area: copy; align-self: end; }
.hero-actions { grid-area: actions; align-self: start; }
.hero-stage { grid-area: stage; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw + .8rem, 4.9rem); margin-bottom: 18px; }
.hero h1 .mark { margin-top: .08em; }
.lead { font-size: clamp(1.08rem, .6vw + .95rem, 1.28rem); color: var(--ink-2); max-width: 540px; }
.lead em { font-style: normal; font-weight: 800; color: var(--ink); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-weight: 800; font-size: .92rem; padding: 7px 14px 7px 11px;
  background: var(--card); border: 2.5px solid var(--line); border-radius: 999px;
  transition: transform .15s var(--ease), background .15s;
}
.chip:hover { transform: translateY(-2px); background: var(--yellow-soft); }
.chip .ico { width: 18px; height: 18px; }
.is-soon { opacity: .55; }
.is-soon::after { content: "pronto"; font-size: .7em; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-left: 4px; color: var(--muted); }

.hero-stage {
  position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center;
}
.hero-stage::before { /* sol / plato de fondo */
  content: ""; position: absolute; left: 8%; right: 8%; top: 10%; bottom: 14%;
  border-radius: 50%; background: var(--yellow-soft); border: 3px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.hero-stage::after { /* rayitas del sol */
  content: ""; position: absolute; inset: 2% 0 6%;
  background: repeating-conic-gradient(from 0deg, rgba(247, 205, 58, .35) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%, #000 64%, transparent 66%);
  mask: radial-gradient(circle, transparent 46%, #000 47%, #000 64%, transparent 66%);
  z-index: -1; animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ant-hero { position: absolute; left: 22%; bottom: 3%; width: 64%; height: auto; z-index: 2; cursor: pointer; }
.ant-hero-side { position: absolute; right: -1%; bottom: 3%; width: 30%; height: auto; z-index: 1; }
.stage-floor {
  position: absolute; left: 4%; right: 4%; bottom: 3%; height: 3px; border-radius: 3px;
  background: var(--line); opacity: .8;
}
.bubble {
  position: absolute; left: 0; top: 4%; z-index: 3; max-width: 62%;
  background: var(--card); border: 3px solid var(--line); border-radius: 22px;
  padding: 12px 16px; font-weight: 900; font-size: clamp(.95rem, 1.2vw + .5rem, 1.15rem); line-height: 1.25;
  box-shadow: var(--shadow);
  transform-origin: 80% 100%;
}
.bubble::after {
  content: ""; position: absolute; right: 22%; bottom: -16px; width: 22px; height: 22px;
  background: var(--card); border-right: 3px solid var(--line); border-bottom: 3px solid var(--line);
  transform: skewX(30deg) rotate(45deg); border-bottom-right-radius: 4px;
}
.bubble.pop { animation: pop .42s var(--ease); }
@keyframes pop { 0% { transform: scale(.6) rotate(-4deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }

.coin {
  position: absolute; z-index: 1; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--line); box-shadow: inset -4px -4px 0 #e2b22a;
  font-family: var(--f-display); font-size: 1.4rem; color: var(--line);
  animation: float 4s ease-in-out infinite;
}
.coin.c1 { right: 6%; top: 18%; }
.coin.c2 { left: 6%; top: 48%; width: 36px; height: 36px; font-size: 1.1rem; animation-delay: -1.3s; }
.coin.c3 { right: 18%; top: 4%; width: 30px; height: 30px; font-size: .95rem; animation-delay: -2.4s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-12px) rotate(8deg); } }

/* ---------------------------------------------- cinta */
.ticker {
  background: var(--line); color: var(--paper); overflow: hidden;
  border-top: 3px solid var(--line); border-bottom: 3px solid var(--line);
  transform: rotate(-1.2deg); margin: 18px -10px; position: relative; z-index: 2;
}
.ticker-track {
  display: flex; gap: 22px; width: max-content; padding: 12px 0;
  animation: ticker 32s linear infinite;
  font-family: var(--f-display); font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.ticker-track b { color: var(--yellow); font-weight: 400; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------------------------------------- secciones */
.section { padding: 72px 0; }
.section-alt { background: rgba(248, 239, 229, .7); border-top: 2px dashed var(--hair); border-bottom: 2px dashed var(--hair); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .h2 { max-width: 760px; }
.section-head .body-lg { margin-top: 12px; }

/* redes */
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 860px; margin: 0 auto; }
.social-card {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: var(--card); border: 3px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: var(--shadow);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.social-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.social-card:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.social-ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; flex: none;
  border: 2.5px solid var(--line); color: #fff;
}
.social-ico svg { width: 30px; height: 30px; }
.s-yt .social-ico { background: var(--yt); --yt-play: var(--yt); }
.s-ig .social-ico { background: linear-gradient(135deg, #f9b33a, #e8476d 55%, #8a4fd1); }
.s-tt .social-ico { background: #1d1d1f; }
.s-fb .social-ico { background: #2f6fe0; }
.social-txt { display: flex; flex-direction: column; min-width: 0; }
.social-txt strong { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; line-height: 1.1; }
.social-txt small { font-size: .95rem; color: var(--muted); font-weight: 700; }
.social-card .go { margin-left: auto; color: var(--ink-2); }
.social-card.is-soon::after { display: none; }
.social-card.is-soon .go { display: none; }
.social-card.is-soon small::after { content: " · muy pronto"; font-weight: 900; }

/* fila de hormigas */
.ant-trail { position: relative; height: 92px; overflow: hidden; }
.ant-trail::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 12px;
  border-bottom: 3px dotted rgba(74, 37, 15, .35);
}
.ant-trail svg { position: absolute; bottom: 9px; left: 0; width: 64px; height: 64px; will-change: transform; }

/* ¿te suena? */
.why-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.pains { list-style: none; display: grid; gap: 14px; margin: 26px 0 28px; }
.pains li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 2.5px solid var(--line); border-radius: var(--r-md); padding: 16px 18px;
}
.pains .num {
  font-family: var(--f-display); font-size: 1.5rem; line-height: 1; color: #fff; flex: none;
  background: var(--orange); border: 2.5px solid var(--line); border-radius: 12px; padding: 8px 9px 6px;
  box-shadow: 2px 2px 0 var(--line);
}
.pains p { font-size: 1.06rem; font-weight: 600; }
.answer { font-family: var(--f-display); font-size: clamp(1.5rem, 2vw + 1rem, 2rem); margin-bottom: 14px; line-height: 1.25; }
.answer .mark { white-space: normal; }
.why-art { position: relative; max-width: 340px; justify-self: center; width: 100%; }
.think-bubble {
  position: absolute; top: 0; right: 0; z-index: 2;
  background: var(--card); border: 3px solid var(--line); border-radius: 50px; padding: 10px 16px;
  font-family: var(--f-display); font-size: 1.15rem; box-shadow: var(--shadow); transform: rotate(4deg);
}
.think-bubble::after, .think-bubble::before {
  content: ""; position: absolute; background: var(--card); border: 3px solid var(--line); border-radius: 50%;
}
.think-bubble::after { width: 16px; height: 16px; left: 22px; bottom: -22px; }
.think-bubble::before { width: 10px; height: 10px; left: 12px; bottom: -36px; }
.why-art svg { width: 100%; height: auto; margin-top: 28px; }

/* videos */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-card {
  display: flex; flex-direction: column; text-decoration: none; cursor: pointer;
  background: var(--card); border: 3px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.video-card:hover { transform: translate(-2px, -3px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.video-thumb {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .45), transparent 55%),
    var(--tone, var(--orange));
  border-bottom: 3px solid var(--line);
}
.vicon { width: 92px; height: 92px; filter: drop-shadow(4px 4px 0 rgba(74, 37, 15, .3)); transition: transform .25s var(--ease); }
.video-card:hover .vicon { transform: scale(1.12) rotate(-6deg); }
.vnum {
  position: absolute; left: 10px; top: 10px; font-family: var(--f-display); font-size: 1rem;
  background: var(--card); border: 2.5px solid var(--line); border-radius: 8px; padding: 2px 8px;
}
.play {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--card); border: 2.5px solid var(--line); border-radius: 50%; color: var(--yt);
}
.play svg { width: 24px; height: 24px; }
.video-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.video-body strong { font-family: var(--f-display); font-weight: 400; font-size: 1.28rem; line-height: 1.1; }
.video-body small { font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
/* videos reales (data/videos.json) */
.is-real .video-thumb { overflow: hidden; background: var(--line); }
.is-real .video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.is-real:hover .video-thumb img { transform: scale(1.05); }
.is-real .video-body strong {
  font-size: 1.12rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.is-real .video-body small { font-weight: 700; color: var(--muted); }
.vnew { background: var(--yellow); text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.vdur {
  position: absolute; left: 10px; bottom: 10px; padding: 1px 7px; border-radius: 6px;
  background: rgba(43, 23, 8, .86); color: #fff; font-weight: 800; font-size: .82rem; font-variant-numeric: tabular-nums;
}

/* herramientas */
.tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 26px; align-items: start; }
.tool {
  min-width: 0;
  background: var(--card); border: 3px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-lg);
}
.tool-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.tool-ant { width: 92px; height: 120px; flex: none; margin: -8px -6px -8px -10px; }
.tool-sub { color: var(--ink-2); font-size: .98rem; margin-top: 4px; }
.tag {
  display: inline-block; font-weight: 900; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  border: 2px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 6px;
}
.tag-green { background: var(--green-soft); }
.tag-orange { background: var(--orange-soft); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span:first-child { font-weight: 800; font-size: .95rem; }
.money {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 2.5px solid var(--line); border-radius: 12px; padding: 0 14px;
  transition: box-shadow .15s;
}
.money:focus-within { box-shadow: 0 0 0 4px var(--yellow); }
.money b { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; color: var(--muted); }
.money input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-weight: 900; font-size: 1.25rem; padding: 12px 0; font-variant-numeric: tabular-nums;
}
.money.suffix b { font-size: 1rem; }
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field { min-width: 0; }
.money input { width: 100%; }
.help { font-size: .88rem; color: var(--muted); margin-top: 4px; }

.range { width: 100%; margin: 14px 0 2px; accent-color: var(--orange); height: 28px; cursor: pointer; }

.result {
  container-type: inline-size;
  margin: 20px 0 14px; padding: 18px; border-radius: var(--r-md);
  background: var(--yellow-soft); border: 2.5px solid var(--line);
}
.result-label { font-weight: 800; font-size: .9rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.result-big {
  display: block; font-family: var(--f-display); font-size: clamp(1.7rem, 4vw + 1rem, 3.1rem); line-height: 1.05;
  font-size: clamp(1.5rem, 14cqi, 3.1rem);
  font-variant-numeric: tabular-nums; margin: 4px 0 6px; white-space: nowrap;
}
.result-big.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.05); } }
.result-formula { font-weight: 700; color: var(--ink-2); font-size: .98rem; }
.split { display: grid; gap: 4px; font-weight: 700; color: var(--ink-2); }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--line); vertical-align: -2px; margin-right: 8px; }
.sw-blue { background: var(--data-a); }
.sw-orange { background: var(--data-b); }
.tool-note { font-size: .9rem; color: var(--muted); margin-top: 12px; }
.tool-link {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 2px dashed var(--line);
  font-weight: 700; font-size: .96rem; color: var(--ink-2);
}
.tool-link:empty { display: none; }
.tool-link .ico { width: 18px; height: 18px; vertical-align: -3px; }

/* gastos hormiga */
.tool-wide { grid-column: 1 / -1; }
.tag-yellow { background: var(--yellow); }
.gh-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.gh-list { display: grid; gap: 10px; }
.gh-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 30px; align-items: center; gap: 4px 10px;
  grid-template-areas: "c n y d" "c nums nums nums";
  padding: 8px 10px; border: 2.5px solid var(--line); border-radius: 14px; background: #fff;
  transition: background .15s, opacity .15s;
}
.gh-row:not(.on) { background: var(--paper); opacity: .62; }
.gh-row:not(.on) .gh-year { text-decoration: line-through; }
.gh-check { position: relative; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.gh-check input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.gh-check .ico {
  width: 44px; height: 44px; padding: 9px; border-radius: 12px; border: 2.5px solid var(--line);
  background: var(--paper); color: var(--muted); transition: background .15s, color .15s, transform .15s;
}
.gh-row.on .gh-check .ico { background: var(--yellow); color: var(--line); box-shadow: 2px 2px 0 var(--line); }
.gh-check input:focus-visible + .ico { box-shadow: 0 0 0 4px var(--orange); }
.gh-check:active .ico { transform: scale(.92); }
.gh-name {
  min-width: 0; border: 0; border-bottom: 2px dashed transparent; background: transparent; outline: 0;
  font: inherit; font-weight: 800; font-size: .98rem; color: var(--ink); padding: 4px 0;
}
.gh-name:hover, .gh-name:focus { border-bottom-color: var(--hair); }
.gh-nums { grid-area: nums; display: flex; align-items: center; gap: 6px; }
.gh-check { grid-area: c; align-self: start; }
.gh-name { grid-area: n; }
.gh-year { grid-area: y; }
.gh-del { grid-area: d; }
.gh-price { padding: 0 8px; border-radius: 10px; width: 92px; }
.gh-price b { font-size: 1rem; }
.gh-price input { font-size: 1rem; padding: 7px 0; }
.gh-x { font-weight: 900; color: var(--muted); }
.gh-times, .gh-per {
  font: inherit; font-weight: 800; font-size: .95rem; color: var(--ink);
  border: 2.5px solid var(--line); border-radius: 10px; background: #fff; padding: 6px 6px; outline: 0;
}
.gh-times { width: 54px; text-align: center; }
.gh-per { cursor: pointer; }
.gh-times:focus, .gh-per:focus { box-shadow: 0 0 0 4px var(--yellow); }
.gh-year { font-weight: 900; font-size: .88rem; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gh-del {
  display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.gh-del:hover { background: var(--orange-soft); color: var(--ink); }
.gh-del .ico { width: 18px; height: 18px; }
.gh-add {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px;
  padding: 10px; border: 2.5px dashed var(--line); border-radius: 14px; background: transparent;
  font: inherit; font-weight: 900; color: var(--ink); cursor: pointer;
}
.gh-add:hover { background: var(--yellow-soft); border-style: solid; }
.gh-side { position: sticky; top: 92px; }
.gh-result { margin-top: 0; }
.gh-compare { padding: 16px; border: 2.5px solid var(--line); border-radius: var(--r-md); background: #fff; display: grid; gap: 12px; }
.gh-horizon { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 800; }
.gh-horizon label { position: relative; cursor: pointer; }
.gh-horizon input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gh-horizon label span {
  display: inline-block; padding: 4px 12px; border: 2px solid var(--line); border-radius: 999px;
  font-weight: 900; font-size: .88rem; background: var(--paper);
}
.gh-horizon input:checked + span { background: var(--line); color: var(--paper); }
.gh-horizon input:focus-visible + span { box-shadow: 0 0 0 3px var(--orange); }
.gh-bar-row p { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; color: var(--ink-2); font-size: .95rem; margin-bottom: 5px; }
.gh-bar-row strong { color: var(--ink); font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gh-bar { display: flex; gap: 2px; height: 16px; border-radius: 6px; background: var(--paper); overflow: hidden; }
.gh-bar .seg { display: block; height: 100%; transition: width .35s var(--ease); }
.gh-bar .seg:last-child { border-radius: 0 6px 6px 0; }
.seg-a { background: var(--data-a); }
.seg-b { background: var(--data-b); }
.gh-compare .chart-legend { margin: 0; }
.gh-say {
  position: relative; margin: 16px 0 12px; padding: 10px 14px; border: 2.5px solid var(--line); border-radius: 16px;
  background: var(--card); font-weight: 900; box-shadow: var(--shadow);
}
.gh-say:empty { display: none; }
.gh-share { width: 100%; justify-content: center; }
.gh-mini { display: none; }
[hidden] { display: none !important; }

/* artículos (páginas generadas por tools/generar_articulos.py) */
.brand-head img { display: block; width: 100%; height: 100%; }
.article { max-width: 760px; padding-top: 28px; padding-bottom: 64px; }
.art-crumbs { font-weight: 800; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.art-crumbs a { color: var(--ink-2); }
.art-head h1 { font-size: clamp(2rem, 4.5vw + .6rem, 3.1rem); margin-bottom: 12px; }
.art-desc { font-size: 1.15rem; color: var(--ink-2); font-weight: 600; }
.art-meta { margin-top: 10px; font-weight: 800; font-size: .9rem; color: var(--muted); }
.art-video {
  position: relative; aspect-ratio: 16 / 9; margin: 26px 0 8px; border: 3px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); background: var(--line);
}
.art-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.art-video { display: block; }
.art-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
a.art-video:hover img { transform: scale(1.03); }
.art-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center;
  width: 78px; height: 78px; border-radius: 50%; background: var(--yt); color: #fff; border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line); transition: transform .15s var(--ease);
}
.art-play svg { width: 34px; height: 34px; margin-left: 4px; }
a.art-video:hover .art-play { transform: translate(-50%, -50%) scale(1.08); }
.art-body { font-size: 1.1rem; line-height: 1.7; color: var(--ink); }
.art-body p { margin: 0 0 1.1em; }
.art-body h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; line-height: 1.1; margin: 1.6em 0 .5em; }
.art-body h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; margin: 1.3em 0 .4em; }
.art-body ul, .art-body ol { margin: 0 0 1.1em 1.3em; }
.art-body li { margin-bottom: .4em; }
.art-body strong { font-weight: 900; }
.art-body a { color: var(--ink); font-weight: 800; }
.art-tip {
  margin: 1.4em 0; padding: 14px 18px; border: 2.5px solid var(--line); border-radius: 14px;
  background: var(--yellow-soft); box-shadow: 3px 3px 0 var(--line); font-weight: 700;
}
.art-tip p { margin: 0; }
.art-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 34px; padding: 18px 20px; border: 3px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); box-shadow: var(--shadow-lg);
}
.art-cta p { flex: 1 1 240px; color: var(--ink-2); font-weight: 700; }
.art-cta strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; color: var(--ink); }
.art-list { display: grid; gap: 16px; margin-top: 26px; }
.art-card {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: center; text-decoration: none; color: var(--ink);
  padding: 12px; border: 3px solid var(--line); border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.art-card:hover { transform: translate(-2px, -3px); box-shadow: var(--shadow-lg); }
.art-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); }
.art-card-body { display: grid; gap: 6px; }
.art-card strong { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; line-height: 1.1; }
.art-card small { color: var(--ink-2); font-size: .95rem; }
.art-card em { font-style: normal; font-weight: 900; font-size: .88rem; }
@media (max-width: 600px) {
  .art-card { grid-template-columns: minmax(0, 1fr); }
  .art-body { font-size: 1.04rem; }
}
/* lo que recomiendo (afiliados) */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.rec-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden;
  background: var(--card); border: 3px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.rec-card:hover { transform: translate(-2px, -3px); box-shadow: var(--shadow-lg); }
.rec-art {
  display: grid; place-items: center; height: 170px; border-bottom: 3px solid var(--line);
  background: radial-gradient(rgba(74, 37, 15, .14) 1.4px, transparent 1.6px) 0 0 / 14px 14px, var(--yellow-soft);
}
.rec-art img { max-height: 150px; width: auto; border-radius: 6px; box-shadow: 4px 4px 0 rgba(74, 37, 15, .3); }
.rec-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.rec-body .soon-format { align-self: flex-start; margin-bottom: 4px; }
.rec-body strong { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; line-height: 1.1; }
.rec-body small { font-weight: 800; color: var(--muted); }
.rec-body p { font-size: .95rem; color: var(--ink-2); margin-top: 4px; }
.rec-body em { margin-top: auto; padding-top: 8px; font-style: normal; font-weight: 900; }
.rec-note { margin: 22px auto 0; max-width: 680px; text-align: center; font-size: .88rem; color: var(--muted); }

/* portada: bloque de artículos debajo de los videos */
.home-arts { margin-top: 34px; }
.home-arts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.home-arts-head h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; }
.home-arts-head a { font-weight: 900; color: var(--ink); }
.home-arts .art-list { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.home-arts .art-card { grid-template-columns: 120px minmax(0, 1fr); }
.home-arts .art-card small { display: none; }

/* quiz */
.quiz {
  margin-top: 40px; padding: 28px; border: 3px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); box-shadow: var(--shadow-lg); scroll-margin-top: 90px; min-height: 340px;
}
.quiz-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.quiz-intro-ants {
  display: flex; justify-content: center; align-items: flex-end; height: 260px; border-radius: var(--r-md);
  background: radial-gradient(rgba(74, 37, 15, .14) 1.4px, transparent 1.6px) 0 0 / 14px 14px, var(--yellow-soft);
  border: 2.5px solid var(--line); overflow: hidden;
}
.quiz-intro-ants svg { width: 30%; height: auto; margin: 0 -2% -4px; }
.quiz-intro-ants svg:nth-child(2) { width: 38%; }
.quiz-title { margin: 6px 0 10px; }
.quiz-intro .body-lg { margin-bottom: 18px; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.quiz-back, .quiz-again {
  font: inherit; font-weight: 800; font-size: .9rem; color: var(--ink-2); background: none; border: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0;
}
.quiz-num { font-weight: 900; font-size: .9rem; color: var(--ink-2); }
.quiz-progress { height: 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); overflow: hidden; }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .35s var(--ease); }
.quiz-text { font-size: clamp(1.4rem, 2.4vw + .6rem, 2rem); margin: 22px 0 18px; }
.quiz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quiz-opt {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 2.5px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 3px 3px 0 var(--line); transition: transform .12s var(--ease), background .12s, box-shadow .12s;
}
.quiz-opt:hover { background: var(--yellow-soft); transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--line); }
.quiz-opt:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--orange); }
.quiz-opt.picked { background: var(--yellow); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.quiz-opt:disabled { cursor: default; }
.quiz-letter {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--paper); font-family: var(--f-display); font-size: 1rem;
}
.quiz-res { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
.quiz-res-art {
  display: flex; justify-content: center; align-items: flex-end; height: 340px; border-radius: var(--r-md);
  background: radial-gradient(circle at 50% 60%, var(--yellow-soft) 0 55%, transparent 56%), var(--paper);
  border: 2.5px solid var(--line);
}
.quiz-res-art svg { width: 78%; max-width: 280px; height: auto; margin-bottom: -6px; }
.quiz-kicker { font-weight: 900; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.quiz-res .h2 { margin: 6px 0 4px; }
.quiz-res #resName:focus { outline: 0; }
.quiz-sub { font-size: 1.35rem; color: var(--ink-2); margin-bottom: 14px; }
.quiz-traits { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.quiz-traits li { display: grid; gap: 2px; font-weight: 700; color: var(--ink-2); }
.trait {
  justify-self: start; font-weight: 900; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  border: 2px solid var(--line); border-radius: 999px; padding: 1px 10px; color: var(--ink);
}
.trait-ok { background: var(--green-soft); }
.trait-reto { background: var(--orange-soft); }
.trait-tip { background: var(--blue-soft); }
.quiz-again { margin-top: 12px; }
@media (max-width: 860px) {
  .quiz { padding: 20px; }
  .quiz-intro, .quiz-res { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .quiz-intro-ants { height: 190px; }
  .quiz-res-art { height: 250px; }
  .quiz-opts { grid-template-columns: minmax(0, 1fr); }
  .quiz-res .btn-row .btn { flex: 1 1 100%; justify-content: center; }
}

/* más calculadoras (pestañas) */
.tag-blue { background: var(--blue-soft); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab {
  font: inherit; font-weight: 900; font-size: .95rem; color: var(--ink); cursor: pointer;
  padding: 9px 16px; border: 2.5px solid var(--line); border-radius: 999px; background: var(--paper);
  transition: background .15s, transform .15s;
}
.tab:hover { background: var(--yellow-soft); }
.tab[aria-selected="true"] { background: var(--line); color: var(--paper); box-shadow: 3px 3px 0 var(--orange); }
.tab:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--yellow); }
.mc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.mc-result { margin: 0; }
.mc-text {
  font: inherit; font-weight: 800; font-size: 1.05rem; color: var(--ink); min-width: 0;
  padding: 12px 14px; border: 2.5px solid var(--line); border-radius: 12px; background: #fff; outline: 0;
}
.mc-text:focus { box-shadow: 0 0 0 4px var(--yellow); }
.mc-tip:not(:empty) {
  margin-top: 12px; padding: 10px 12px; border: 2px dashed var(--line); border-radius: 12px;
  background: var(--card); font-weight: 700; font-size: .95rem; color: var(--ink-2);
}
.r5-bar { display: flex; gap: 2px; height: 22px; margin: 2px 0 14px; border-radius: 8px; overflow: hidden; }
.r5-bar i { display: block; height: 100%; }
.r5-n { flex: 50; background: #5b6fb8; }
.r5-g { flex: 30; background: #e08a2a; }
.r5-a { flex: 20; background: #2d6e3e; }
.r5-sw-n { background: #5b6fb8; }
.r5-sw-g { background: #e08a2a; }
.r5-sw-a { background: #2d6e3e; }
.r5-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.r5-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.r5-list .sw { margin: 4px 0 0; }
.r5-list strong { display: block; font-weight: 900; }
.r5-list small { display: block; font-size: .85rem; color: var(--ink-2); line-height: 1.35; }
.r5-list b { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 860px) {
  .mc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -4px 16px; padding: 0 4px 6px; }
  .tab { flex: none; font-size: .88rem; padding: 8px 13px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* boletín por correo */
.news {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 22px;
  margin-top: 34px; padding: 24px 26px; border: 3px solid var(--line); border-radius: var(--r-lg);
  background:
    radial-gradient(rgba(74, 37, 15, .14) 1.4px, transparent 1.6px) 0 0 / 14px 14px,
    var(--yellow-soft);
  box-shadow: var(--shadow-lg); scroll-margin-top: 100px;
}
.news-env { width: 110px; height: 110px; filter: drop-shadow(4px 4px 0 rgba(74, 37, 15, .28)); animation: float 5s ease-in-out infinite; }
.news-copy .h3 { margin-bottom: 6px; }
.news-copy p { color: var(--ink-2); font-size: .98rem; }
.news-row { display: flex; gap: 10px; }
.news-row input {
  flex: 1; min-width: 0; font: inherit; font-weight: 800; font-size: 1.05rem; color: var(--ink);
  padding: 12px 14px; border: 2.5px solid var(--line); border-radius: 12px; background: #fff; outline: 0;
}
.news-row input:focus { box-shadow: 0 0 0 4px var(--yellow); }
.news-row .btn { flex: none; }
.news-row .btn:disabled { opacity: .7; cursor: progress; }
.news-form.is-error input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 83, 61, .25); }
.news-msg { min-height: 1.4em; margin-top: 8px; font-weight: 800; font-size: .95rem; }
.news-form.is-error .news-msg { color: #b23a26; }
.news-form.is-ok .news-msg { color: #2f6e2f; }
.news-fine { font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 1020px) {
  .news { grid-template-columns: 90px minmax(0, 1fr); }
  .news-env { width: 84px; height: 84px; }
  .news-form { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .news { grid-template-columns: 1fr; text-align: center; padding: 20px 18px; }
  .news-art { display: flex; justify-content: center; }
  .news-row { flex-direction: column; }
  .news-row .btn { justify-content: center; }
}
.gh-share:disabled { opacity: .7; cursor: progress; }

/* vista previa de la imagen para compartir */
.share-dlg {
  margin: auto; inset: 0; position: fixed;
  border: 0; padding: 0; background: transparent; max-width: min(460px, calc(100vw - 24px)); width: 100%;
  max-height: calc(100dvh - 24px);
}
.share-dlg::backdrop { background: rgba(43, 23, 8, .55); }
.share-box {
  position: relative; background: var(--card); border: 3px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 20px; text-align: center;
}
.share-box img {
  display: block; width: 100%; max-height: 56dvh; object-fit: contain; margin: 12px 0 16px;
  border-radius: 14px; border: 2.5px solid var(--line); background: var(--paper);
}
.share-hint { color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.share-box .btn-row { justify-content: center; }
.share-box .btn { flex: 1 1 160px; justify-content: center; }
.share-box .btn[hidden] { display: none; }
.share-x {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px;
  border: 2px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; color: var(--ink);
}
.tool-link a { font-weight: 900; color: var(--ink); }

.chart { margin-top: 6px; }
.chart-title { font-family: var(--f-display); font-size: 1.15rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; font-weight: 700; color: var(--ink-2); margin: 4px 0 8px; }
.chart-box { position: relative; height: 230px; }
.chart-box svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-box .grid line { stroke: var(--hair); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-box .axis-lbl { position: absolute; font-size: .74rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.chart-box .hit { fill: transparent; cursor: crosshair; }
.chart-box .col.dim .bar { opacity: .45; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 170px;
  background: var(--card); border: 2.5px solid var(--line); border-radius: 12px; padding: 8px 12px;
  box-shadow: 3px 3px 0 var(--line); font-size: .86rem; font-weight: 700; color: var(--ink-2); line-height: 1.45;
}
.chart-tip strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.chart-tip .t-head { font-family: var(--f-display); font-weight: 400; font-size: 1rem; color: var(--ink); }
.table-view { margin-top: 12px; }
.table-view summary { cursor: pointer; font-weight: 800; font-size: .92rem; color: var(--ink-2); }
.table-wrap { max-height: 240px; overflow: auto; margin-top: 8px; border: 2px solid var(--hair); border-radius: 10px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.table-wrap th, .table-wrap td { padding: 6px 10px; text-align: right; border-bottom: 1px solid var(--hair); }
.table-wrap th:first-child, .table-wrap td:first-child { text-align: left; }
.table-wrap thead th { position: sticky; top: 0; background: var(--paper-2); }

/* colonia */
.cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cast-card {
  background: var(--card); border: 3px solid var(--line); border-radius: var(--r-lg);
  padding: 0 18px 22px; box-shadow: var(--shadow); text-align: center; outline-offset: 4px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cast-card:hover, .cast-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cast-art {
  margin: 0 -18px 14px; padding: 14px 10px 0; border-bottom: 3px solid var(--line);
  border-radius: 21px 21px 0 0;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 255, 255, .55) 0 40%, transparent 41%),
    color-mix(in srgb, var(--tone) 22%, #fff);
}
.cast-art svg { width: 100%; max-width: 210px; height: auto; margin: 0 auto; }
.cast-card .h3 { margin-bottom: 6px; }
.cast-card p { font-size: .98rem; color: var(--ink-2); }

/* próximamente */
.soon-head {
  display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: end; gap: 24px; margin-bottom: 30px;
}
.soon-intro .body-lg { max-width: 560px; }
.soon-ant { position: relative; height: 250px; }
.soon-ant svg { position: absolute; bottom: -8px; right: 0; width: 190px; height: auto; }
.bubble-sm {
  left: -10px; top: 0; max-width: 150px; padding: 8px 12px; font-size: .92rem; border-radius: 16px;
  animation: float 5s ease-in-out infinite;
}
.bubble-sm::after { right: 30%; bottom: -13px; width: 16px; height: 16px; }

.soon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.soon-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 3px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.soon-card:hover { transform: translate(-2px, -3px); box-shadow: var(--shadow-lg); }
.soon-art {
  position: relative; display: grid; place-items: center; height: 150px;
  background-color: var(--tone, var(--yellow-soft));
  background-image: radial-gradient(rgba(74, 37, 15, .16) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
  border-bottom: 3px solid var(--line);
}
.soon-icon {
  width: 96px; height: 96px; filter: drop-shadow(4px 4px 0 rgba(74, 37, 15, .28));
  transition: transform .3s var(--ease);
}
.soon-card:hover .soon-icon { transform: rotate(-7deg) scale(1.08); }
.soon-badge {
  position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); border: 2.5px solid var(--line); border-radius: 999px; padding: 3px 11px;
  font-weight: 900; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; box-shadow: 2px 2px 0 var(--line);
}
.soon-badge .ico { width: 14px; height: 14px; }
.soon-body { padding: 18px 20px 6px; flex: 1; }
.soon-format {
  display: inline-block; margin-bottom: 8px; padding: 2px 10px; border: 2px solid var(--line); border-radius: 8px;
  font-weight: 900; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; background: var(--paper);
}
.soon-card .h3 { margin-bottom: 6px; }
.soon-card p { color: var(--ink-2); font-size: .98rem; }
.soon-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.soon-list li { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem; }
.soon-list .ico {
  width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--green); color: #fff;
  border: 2px solid var(--line);
}
.soon-notify {
  display: flex; align-items: center; gap: 8px; margin: 14px 20px 18px; padding: 10px 14px;
  border: 2.5px dashed var(--line); border-radius: 12px; text-decoration: none; color: var(--ink);
  font-weight: 900; font-size: .95rem; transition: background .15s var(--ease);
}
.soon-notify .go { margin-left: auto; transition: transform .2s var(--ease); }
.soon-notify:hover { background: var(--yellow-soft); border-style: solid; }
.soon-notify:hover .go { transform: translateX(4px); }
.soon-notify.is-soon::after { display: none; }

.soon-strip {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 34px; padding: 16px 20px;
  background: var(--card); border: 3px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.soon-strip p { flex: 1 1 260px; margin: 0; font-size: 1.02rem; }
.soon-strip strong { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; margin-right: 4px; }
.soon-strip-ico {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--line); animation: ring 3s ease-in-out infinite;
}
.soon-strip-ico .ico { width: 24px; height: 24px; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 82% { transform: rotate(-12deg); } 89% { transform: rotate(8deg); } }
.ico-ant { width: 18px; height: 18px; vertical-align: -3px; color: var(--line); }

/* cta */
.cta {
  text-align: center; background: var(--orange-soft); border: 3px solid var(--line); border-radius: 32px;
  padding: 10px 24px 40px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(74, 37, 15, .18) 1.5px, transparent 1.6px); background-size: 22px 22px;
}
.cta > * { position: relative; z-index: 1; }
.cta-ants { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin-bottom: 4px; }
.cta-ants svg { width: 150px; height: auto; }
.cta-ants .cta-main { width: 190px; }
.cta .body-lg { max-width: 520px; margin: 10px auto 24px; }

/* pie */
.footer { padding: 34px 0 40px; border-top: 3px solid var(--line); background: var(--paper-2); }
.disclaimer {
  background: var(--card); border: 2.5px solid var(--line); border-radius: var(--r-md);
  padding: 14px 18px; font-size: .95rem; color: var(--ink-2); margin-bottom: 24px;
}
.disclaimer strong { color: var(--ink); }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand-name { font-size: 1.4rem; }
.footer-social { list-style: none; display: flex; gap: 10px; }
.footer-social a {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 2.5px solid var(--line); background: var(--card); transition: transform .15s var(--ease), background .15s;
}
.footer-social a:hover { transform: translateY(-3px); background: var(--yellow-soft); }
.footer-social .is-soon::after { display: none; }
.copy { margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* aparecer al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------- responsive */
@media (max-width: 1020px) {
  .nav { display: none; }
  .topbar-in { justify-content: space-between; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .cast { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .gh-grid { grid-template-columns: minmax(0, 1fr); }
  .gh-side { position: static; }
  .gh-mini {
    display: block; position: sticky; bottom: 12px; z-index: 5; width: max-content; margin: 12px auto 0;
    padding: 8px 16px; border: 2.5px solid var(--line); border-radius: 999px; background: var(--yellow);
    box-shadow: 3px 3px 0 var(--line); font-weight: 800;
  }
  .gh-mini strong { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; }
}
@media (max-width: 640px) {
  .gh-row {
    grid-template-columns: 44px minmax(0, 1fr) 30px; row-gap: 6px;
    grid-template-areas: "c n d" "c y y" "nums nums nums";
  }
  .gh-year { text-align: left; font-size: .82rem; margin-top: -6px; }
  .gh-price { flex: 1 1 auto; width: auto; min-width: 0; }
  .gh-per { flex: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 54px 0; }
  .hero { padding: 22px 0 18px; }
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "stage" "actions"; gap: 14px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin: 0 auto; }
  .hero-stage { max-width: 330px; }
  .hero h1 { margin-bottom: 12px; }
  .hero-actions { text-align: center; }
  .btn-row { justify-content: center; }
  .hero-actions .btn { flex: 1 1 100%; }
  .chips { justify-content: center; }
  .why-grid { grid-template-columns: 1fr; gap: 10px; }
  .why-art { max-width: 170px; order: -1; margin: 0 auto; }
  .social-grid { grid-template-columns: 1fr; gap: 14px; }
  .soon-grid { grid-template-columns: 1fr; gap: 20px; }
  .soon-head { grid-template-columns: 1fr; gap: 4px; }
  .soon-ant { order: -1; height: 132px; }
  .soon-ant svg { left: -6px; right: auto; bottom: -4px; width: 112px; }
  .bubble-sm { left: 112px; top: 34px; max-width: 190px; font-size: .9rem; animation: none; }
  .bubble-sm::after { right: auto; left: -11px; bottom: 12px; transform: rotate(135deg) skewX(-10deg); }
  .soon-strip .btn-row { width: 100%; }
  .soon-strip .btn { flex: 1 1 0; justify-content: center; }
  .section-head .btn { width: 100%; }
  .tool { padding: 18px; }
  .tool-ant { width: 72px; height: 96px; }
  .h3 { font-size: 1.3rem; }
  .cta { padding: 6px 16px 30px; border-radius: 24px; }
  .cta-ants svg { width: 96px; }
  .cta-ants .cta-main { width: 128px; }
  .cta .btn { flex: 1 1 100%; }
}
@media (max-width: 520px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-card { flex-direction: row; }
  .video-thumb { aspect-ratio: auto; width: 112px; flex: none; border-bottom: 0; border-right: 3px solid var(--line); }
  .vicon { width: 64px; height: 64px; }
  .play { display: none; }
  .vnum { left: 6px; top: 6px; font-size: .85rem; }
  .is-real .video-thumb { width: 132px; min-height: 80px; }
  .is-real .vnum { display: none; }
  .vdur { left: 6px; bottom: 6px; font-size: .75rem; }
  .is-real .video-body strong { font-size: 1.02rem; }
  .video-body { padding: 12px 14px; }
  .video-body strong { font-size: 1.15rem; }
  .video-body small { font-size: .9rem; }
  .cast { gap: 14px; }
  .cast-card { padding: 0 12px 16px; }
  .cast-art { margin: 0 -12px 10px; }
  .cast-card p { font-size: .9rem; }
  .field-grid { gap: 12px; }
  .money { padding: 0 10px; }
  .money input { font-size: 1.1rem; }
  .brand-name { font-size: 1rem; }
  .ticker-track { font-size: 1.05rem; }
}

/* ---------------------------------------------- la guía (producto de pago) */
.guia { background: linear-gradient(180deg, transparent, rgba(247, 205, 58, .12) 20%, rgba(247, 205, 58, .12) 80%, transparent); }
.guia-hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 44px; align-items: center; }
.guia-mock { position: relative; max-width: 360px; justify-self: center; transform: rotate(-3deg); }
.guia-cover { display: block; width: 100%; height: auto; border-radius: 14px; border: 3px solid var(--line); box-shadow: 10px 10px 0 var(--line); background: var(--yellow); }
.guia-sticker {
  position: absolute; right: -16px; top: -16px; display: grid; place-items: center; text-align: center;
  width: 86px; height: 86px; border-radius: 50%; background: var(--orange); color: #fff; border: 3px solid var(--line);
  font-family: var(--f-display); font-size: 1.25rem; line-height: 1; transform: rotate(10deg); box-shadow: 3px 3px 0 var(--line);
}
.guia-sticker small { font-size: .85rem; }
.guia-copy .h2 { margin: 4px 0 12px; }
.guia-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.guia-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 1.02rem; color: var(--ink-2); }
.guia-list .ico { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--green); color: #fff; border: 2px solid var(--line); }
.guia-list strong { color: var(--ink); }
.guia-buy {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px; border: 3px solid var(--line); border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow);
}
.guia-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.guia-price strong { font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: 1; }
.guia-price s { font-weight: 800; color: var(--muted); font-size: 1.1rem; }
.guia-price span { font-weight: 800; color: var(--ink-2); font-size: .9rem; }
.btn-lg { font-size: 1.12rem; padding: 14px 22px; }
.guia-trust { margin-top: 10px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.guia-peek { margin-top: 56px; }
.guia-peek .h3 { text-align: center; margin-bottom: 18px; }
.guia-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.guia-pages figure { margin: 0; text-align: center; }
.guia-pages img { display: block; width: 100%; height: auto; border-radius: 10px; border: 3px solid var(--line); box-shadow: var(--shadow); background: var(--paper); }
.guia-pages figure:nth-child(1) img { transform: rotate(-1.5deg); }
.guia-pages figure:nth-child(3) img { transform: rotate(1.5deg); }
.guia-pages figcaption { margin-top: 12px; font-weight: 900; font-size: .95rem; }
.guia-fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 44px; }
.fit { padding: 18px 20px; border: 3px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.fit-yes { background: var(--green-soft); }
.fit-no { background: var(--card); }
.fit .h3 { margin-bottom: 10px; }
.fit ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-weight: 600; }
.guia-free {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 30px;
  padding: 16px 20px; border: 3px dashed var(--line); border-radius: var(--r-md); background: var(--yellow-soft);
}
.guia-free-ico { width: 70px; height: 70px; }
.guia-free p { color: var(--ink-2); }
.guia-faq { margin-top: 40px; max-width: 760px; margin-left: auto; margin-right: auto; }
.guia-faq .h3 { text-align: center; margin-bottom: 14px; }
.guia-faq details { border: 2.5px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 10px; }
.guia-faq summary { cursor: pointer; padding: 12px 16px; font-weight: 900; list-style: none; position: relative; padding-right: 40px; }
.guia-faq summary::-webkit-details-marker { display: none; }
.guia-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--f-display); font-size: 1.4rem; }
.guia-faq details[open] summary::after { content: "–"; }
.guia-faq details p { padding: 0 16px 14px; color: var(--ink-2); }
@media (max-width: 860px) {
  .guia-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .guia-mock { max-width: 230px; }
  .guia-copy { text-align: left; }
  .guia-fit { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .guia-pages { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 14px; gap: 14px; }
  .guia-pages figure { scroll-snap-align: center; }
  .guia-buy { flex-direction: column; align-items: stretch; text-align: center; }
  .guia-price { justify-content: center; }
  .guia-buy .btn { justify-content: center; }
  .guia-free { grid-template-columns: 52px minmax(0, 1fr); }
  .guia-free-ico { width: 52px; height: 52px; }
  .guia-free .btn { grid-column: 1 / -1; justify-content: center; }
  .guia-sticker { width: 70px; height: 70px; font-size: 1.05rem; right: -10px; top: -10px; }
}

/* ---------------------------------------------- celular: acomodo y navegación */
.tool-picker, .mnav { display: none; }
@media (max-width: 760px) {
  /* inicio: título, botones y luego las hormigas (los botones se ven sin hacer scroll) */
  .hero-grid { grid-template-areas: "copy" "actions" "stage"; gap: 16px; }
  .hero h1 { font-size: clamp(2.15rem, 9.6vw, 2.9rem); }
  .hero .lead { font-size: 1rem; }
  .hero-stage { max-width: 270px; }
  .hero .chips { display: none; } /* las redes están justo abajo */
  /* calculadoras: una a la vez */
  .tool-picker {
    display: flex; gap: 8px; overflow-x: auto; margin: -8px -16px 18px; padding: 4px 16px 8px;
    scrollbar-width: none; position: sticky; top: 70px; z-index: 5; background: rgba(248, 239, 229, .96);
  }
  .tool-picker::-webkit-scrollbar { display: none; }
  .tool-picker button {
    flex: none; font: inherit; font-weight: 900; font-size: .88rem; color: var(--ink); cursor: pointer;
    padding: 8px 14px; border: 2.5px solid var(--line); border-radius: 999px; background: var(--card);
  }
  .tool-picker button[aria-pressed="true"] { background: var(--line); color: var(--paper); box-shadow: 2px 2px 0 var(--orange); }
  .tools.picker-on > .tool:not(.is-on) { display: none; }
  /* barra inferior */
  .mnav {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    padding: 5px; background: var(--card); border: 3px solid var(--line); border-radius: 18px; box-shadow: 3px 3px 0 var(--line);
  }
  .mnav a {
    display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px; border-radius: 12px;
    font-weight: 900; font-size: .72rem; color: var(--ink); text-decoration: none;
  }
  .mnav a:active { background: var(--yellow-soft); }
  .mnav a.is-guia { background: var(--yellow); }
  .mnav .ico { width: 22px; height: 22px; }
  body { padding-bottom: 86px; }
  .gh-mini { bottom: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* que los saltos de sección no queden tapados por la barra superior */
section[id], .quiz, #suscribete { scroll-margin-top: 78px; }
@media (max-width: 600px) { .guia-mock { max-width: 200px; } }

/* modo ligero (celulares y equipos modestos): sin animaciones decorativas */
.lite .ant-trail { display: none; }
.lite .coin, .lite .hero-stage::before, .lite .hero-stage::after,
.lite .bubble-sm, .lite .news-env, .lite .soon-strip-ico { animation: none !important; }
.lite .reveal { opacity: 1 !important; transform: none !important; }

/* compra y plantilla gratis (tienda propia) */
.guia-buy { flex-wrap: wrap; }
.guia-form { flex: 1 1 100%; display: grid; gap: 10px; }
.guia-form input, .free-form input[type="email"] {
  width: 100%; font: inherit; font-weight: 800; font-size: 1.02rem; color: var(--ink);
  padding: 12px 14px; border: 2.5px solid var(--line); border-radius: 12px; background: #fff; outline: 0;
}
.guia-form input:focus, .free-form input:focus { box-shadow: 0 0 0 4px var(--yellow); }
.pay-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.pay { justify-content: center; min-height: 50px; font-size: 1rem; padding: 0 14px; }
.pay[hidden] { display: none; }
.pay:disabled { opacity: .6; cursor: progress; }
.pay-stripe { background: #635bff; color: #fff; }
.pay-paypal { background: #ffc439; color: #003087; }
.pay-mp { background: #00b1ea; color: #fff; }
.guia-msg { min-height: 1.3em; font-weight: 800; font-size: .92rem; color: var(--ink-2); margin: 0; }
.free-form { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.free-form .guia-msg { grid-column: 1 / -1; }
.free-direct { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 861px) { .guia-free { grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.1fr); } .free-form { grid-column: auto; } }
@media (max-width: 600px) { .free-form { grid-template-columns: 1fr; } .free-form .btn { justify-content: center; } }
.gracias { text-align: center; padding: 60px 16px 80px; max-width: 620px; }
.gracias img { margin: 0 auto 14px; }
.gracias .btn-lg { margin: 10px 0; }

/* selector de idioma */
.langs { display: flex; gap: 2px; padding: 3px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); margin-left: 8px; }
.langs a { font-weight: 900; font-size: .78rem; color: var(--ink-2); text-decoration: none; padding: 4px 8px; border-radius: 999px; }
.langs a[aria-current="true"] { background: var(--line); color: var(--paper); }
@media (max-width: 1020px) { .langs { margin-left: auto; } }
@media (max-width: 420px) { .langs a { padding: 3px 6px; font-size: .72rem; } .topbar .btn-yt span { display: none; } }
