/* Carnetín — Landing v2 (clean, confident, educational) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,900&family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0A0A0B;
  --bg-2: #111113;
  --bg-3: #1A1A1D;
  --line: rgba(255,255,255,0.08);
  --line-hi: rgba(255,255,255,0.18);
  --text: #F5EFE4;
  --text-2: rgba(245,239,228,0.65);
  --text-3: rgba(245,239,228,0.4);
  --cyan: #06B6D4;
  --cyan-soft: rgba(6,182,212,0.12);
  --yellow: #FFE66A;
  --coral: #FF6A5C;
  --green: #4ADE80;

  --f-display: 'Fraunces', Georgia, serif;
  --f-sans: 'Inter', -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(.2,.7,.2,1);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html { overflow-x: clip; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--f-sans);
  letter-spacing: -0.011em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Ambient gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(6,182,212,0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(255,230,106,0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Layout */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: clamp(48px, 6vw, 80px) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-soft);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .brand {
  display: inline-flex; align-items: baseline;
  font-family: var(--f-display);
  font-weight: 900; font-size: 22px;
  letter-spacing: -0.04em;
  font-style: italic;
}
.nav .brand::after { content: '.'; color: var(--cyan); font-style: normal; margin-left: 2px; }
.nav .links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav .links a { color: var(--text-2); transition: color .2s; }
.nav .links a:hover { color: var(--text); }
.nav .cta {
  background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  transition: transform .2s var(--ease);
}
.nav .cta:hover { transform: translateY(-1px); }
@media (max-width: 720px) { .nav .links { display: none; } }

/* Hero */
.hero { padding: clamp(48px, 5vw, 72px) 0 clamp(32px, 4vw, 56px); position: relative; }
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
}
.hero h1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  font-variation-settings: "opsz" 144;
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--cyan);
  display: inline-block;
}
.hero .lead {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  max-width: 48ch;
  color: var(--text-2);
  margin: 0 0 28px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(245,239,228,0.15); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-hi); }
.btn-ghost:hover { border-color: var(--text); background: var(--bg-2); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .bullet { color: var(--cyan); }

.phone-wrap { display: flex; justify-content: center; align-items: center; }
.phone {
  width: 100%; max-width: 260px;
  aspect-ratio: 9/19;
  background: var(--bg-2);
  border: 1px solid var(--line-hi);
  border-radius: 40px;
  padding: 14px;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.6),
    0 20px 40px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.phone::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #0A0A0B 0%, #111113 100%);
  border-radius: 28px;
  padding: 56px 20px 20px;
  overflow: hidden;
  position: relative;
}
.phone-hero-text {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.phone-hero-text em { font-style: italic; font-weight: 400; color: var(--cyan); }
.phone-sub { font-size: 11px; color: var(--text-2); margin-bottom: 20px; }
.phone-stats { display: flex; gap: 10px; margin-bottom: 18px; }
.phone-stat {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.phone-stat .v { font-family: var(--f-display); font-weight: 900; font-size: 18px; letter-spacing: -0.02em; }
.phone-stat .l { font-size: 9px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.phone-card {
  background: linear-gradient(135deg, var(--cyan) 0%, #0891B2 100%);
  border-radius: 14px;
  padding: 14px;
  color: #0A0A0B;
  margin-bottom: 12px;
}
.phone-card .tag { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.phone-card .tt { font-family: var(--f-display); font-weight: 900; font-size: 15px; margin-top: 2px; letter-spacing: -0.02em; }
.phone-card .ss { font-size: 10px; opacity: 0.8; margin-top: 2px; }
.phone-list { display: flex; flex-direction: column; gap: 8px; }
.phone-row {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
}
.phone-row .emoji { font-size: 14px; }
.phone-row .t { flex: 1; font-weight: 500; }
.phone-row .p {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--cyan);
}

.showcase-text .eyebrow { margin-bottom: 16px; }
.showcase-text h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}
.showcase-text h2 em { font-style: italic; font-weight: 400; color: var(--cyan); }
.showcase-text p { font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 44ch; margin: 0 0 16px; }

/* Marquee / stats strip */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip .cell {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.strip .cell:first-child { border-left: none; padding-left: 0; }
.strip .cell .n {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.strip .cell .l {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-top: 10px;
}
@media (max-width: 760px) {
  .strip { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .strip .cell:nth-child(3) { border-left: none; padding-left: 0; }
}

/* Section headers */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  align-items: end;
}
.sec-head h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 14ch;
}
.sec-head h2 em { font-style: italic; font-weight: 400; color: var(--cyan); }
.sec-head p { font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 44ch; margin: 0; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; gap: 24px; } }

/* Feature grid — bento-ish */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.bento .box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.bento .box:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.bento .box h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.bento .box p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 40ch;
  margin: 0;
}
.bento .tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
  display: block;
}
.bento .b-wide { grid-column: span 4; }
.bento .b-tall { grid-column: span 2; grid-row: span 2; }
.bento .b-half { grid-column: span 3; }
.bento .b-third { grid-column: span 2; }
.bento .b-full { grid-column: span 6; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento .box { grid-column: span 2 !important; grid-row: auto !important; min-height: 200px; }
}

/* Visual accents inside bento boxes */
.viz-coach {
  position: absolute;
  right: -20px; bottom: -20px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-soft) 0%, transparent 70%);
}
.viz-chat {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
}
.viz-chat .bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  line-height: 1.4;
}
.viz-chat .q { background: var(--bg-3); align-self: flex-end; }
.viz-chat .a { background: var(--cyan-soft); color: var(--text); border: 1px solid rgba(6,182,212,0.3); }

.viz-progress {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.viz-progress .line {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px;
}
.viz-progress .name { flex: 0 0 80px; color: var(--text-2); }
.viz-progress .bar {
  flex: 1;
  height: 6px;
  background: var(--bg-3);
  border-radius: 999px;
  overflow: hidden;
}
.viz-progress .bar .fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 999px;
}
.viz-progress .pct { color: var(--cyan); font-weight: 700; min-width: 32px; text-align: right; }

.viz-streak {
  position: absolute;
  top: 28px; right: 28px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 80px;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--yellow);
  opacity: 0.9;
}
.viz-streak small { font-size: 14px; font-family: var(--f-mono); display: block; color: var(--text-2); margin-top: 6px; letter-spacing: 0.06em; text-transform: uppercase; }

.viz-exam {
  margin-top: 16px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.viz-exam .cell {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--bg-3);
  border: 1px solid var(--line);
}
.viz-exam .cell.ok { background: var(--cyan); border-color: var(--cyan); }
.viz-exam .cell.bad { background: var(--coral); border-color: var(--coral); opacity: 0.7; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.steps .step {
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.steps .step .n {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 16px;
}
.steps .step h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  max-width: 14ch;
}
.steps .step p {
  font-size: 13.5px; color: var(--text-2);
  line-height: 1.5; margin: 0;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* Pricing */
.price {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--line-hi);
  border-radius: clamp(18px, 2vw, 24px);
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.price::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, var(--cyan-soft), transparent 50%);
  pointer-events: none;
}
.price > * { position: relative; z-index: 1; }
.price .badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 14px;
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 999px;
  margin-bottom: 28px;
}
.price .big {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.price .big em {
  font-style: italic;
  font-weight: 400;
  color: var(--cyan);
  font-size: 0.6em;
}
.price .detail {
  font-size: 14.5px;
  color: var(--text-2);
  margin: 16px auto 0;
  max-width: 54ch;
  line-height: 1.5;
}
.price .after {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-3);
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
}
.price .after b { color: var(--text); font-family: var(--f-sans); font-size: 15px; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--f-mono);
  font-size: 24px; font-weight: 300;
  color: var(--text-3);
  transition: transform .3s var(--ease);
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--cyan); }
.faq summary:hover { color: var(--cyan); }
.faq details p {
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 14.5px; line-height: 1.6;
  max-width: 62ch;
}

/* CTA block */
.cta-huge {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
}
.cta-huge h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  max-width: 16ch;
  margin-inline: auto;
}
.cta-huge h2 em { font-style: italic; font-weight: 400; color: var(--cyan); }
.cta-huge p {
  font-size: 15px; color: var(--text-2);
  margin: 0 auto 32px; max-width: 48ch;
  line-height: 1.5;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  font-size: 13px;
  color: var(--text-3);
}
.foot .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--text-3); transition: color .2s; }
.foot a:hover { color: var(--text); }
.foot .fine {
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  [data-reveal].is-in { opacity: 1; transform: none; }
}

/* Article pages (temas) */
.article-head { padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 60px); }
.article-head .breadcrumbs {
  font-family: var(--f-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-3); margin-bottom: 24px;
}
.article-head .breadcrumbs a { color: var(--text-3); }
.article-head .tid {
  font-family: var(--f-mono);
  font-size: 12px; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.article-head h1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 24px;
  max-width: 16ch;
}
.article-head .intro {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 60ch;
}
.q-example {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.q-example h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.q-answers { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: opt; }
.q-answers li {
  padding: 14px 0; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--text-2);
  display: flex; gap: 14px; align-items: flex-start;
}
.q-answers li:first-child { border-top: none; }
.q-answers li::before {
  content: counter(opt, upper-alpha) ".";
  counter-increment: opt;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text-3);
  min-width: 20px;
}
.q-answers li.correct { color: var(--text); font-weight: 500; }
.q-answers li.correct::before { color: var(--cyan); }
.q-answers li.correct::after {
  content: "✓";
  margin-left: auto;
  color: var(--cyan);
  font-weight: 700;
}
.q-explain {
  font-size: 14.5px; color: var(--text-2);
  line-height: 1.6; margin: 0;
  padding: 18px; border-left: 2px solid var(--cyan);
  background: var(--bg-2); border-radius: 0 10px 10px 0;
}

.mono { font-family: var(--f-mono); }
.display { font-family: var(--f-display); }
.dim { color: var(--text-2); }

/* Topic grid (temas index + related) */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 1080px) { .topic-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .topic-grid { grid-template-columns: 1fr; } }
.topic-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex; flex-direction: column;
  min-height: 128px;
  position: relative;
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s;
}
.topic-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  background: var(--bg-3);
}
.topic-card .tid {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.topic-card .tname {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: auto;
  padding-top: 16px;
  color: var(--text);
  max-width: 16ch;
}
.topic-card .tarrow {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--text-3);
  transition: transform .25s var(--ease), color .25s;
}
.topic-card:hover .tarrow { color: var(--cyan); transform: translateX(3px); }
