/* =========================================================
   Lectura Biónica — styles.css
   Base + components + section layouts (desktop-first)
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Tipografía */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  /* Paleta cálida, baja saturación */
  --bg: #FAF6F0;
  --bg-elev: #FFFCF7;
  --bg-tint: #F2ECE1;
  --bg-warm: #F5EEDF;
  --ink: #1F1B16;
  --ink-soft: #4A463F;
  --ink-mute: #7A746A;
  --line: #E6DFD1;

  /* Primario índigo suave */
  --primary: #5B5BD6;
  --primary-soft: #ECECFB;
  --primary-deep: #2E2E8A;

  /* Acento azul celeste */
  --accent: #0EA5E9;
  --accent-soft: #E0F2FE;
  --accent-deep: #0369A1;

  /* Verde menta */
  --mint: #6FBF9B;
  --mint-soft: #E1F1E8;

  /* Amarillo suave (acento extra para bento) */
  --sun: #F2C94C;
  --sun-soft: #FBEDC2;

  /* Radios y sombras */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(31,27,22,.04), 0 8px 24px -12px rgba(31,27,22,.10);
  --shadow-card: 0 1px 2px rgba(31,27,22,.05), 0 14px 40px -18px rgba(31,27,22,.15);
  --shadow-lift: 0 2px 4px rgba(31,27,22,.06), 0 24px 60px -22px rgba(91,91,214,.30);

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grano y aura de fondo sutil */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
  background-image:
          radial-gradient(circle at 12% 8%, rgba(91,91,214,.07), transparent 38%),
          radial-gradient(circle at 92% 92%, rgba(14,165,233,.05), transparent 42%);
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.1; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p  { color: var(--ink-soft); text-wrap: pretty; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  color: var(--primary-deep);
  background: var(--primary-soft);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
}

.serif-em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--primary-deep); }

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0; }
.section { padding: 30px 0; position: relative; }
.section-tight { position: relative; }

/* Section background variations */
.section-warm {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 50%, var(--bg) 100%);
}
.section-tint-band {
  background:
          radial-gradient(60% 80% at 50% 40%, var(--bg-tint) 0%, transparent 70%),
          var(--bg);
}
.section-dark {
  background: var(--ink);
  color: #FAF6F0;
}
.section-dark::before {
  content: "";
  position: absolute; inset: 0;
  background:
          radial-gradient(40% 50% at 15% 20%, rgba(91,91,214,.18), transparent 70%),
          radial-gradient(40% 50% at 85% 80%, rgba(14,165,233,.14), transparent 70%);
  pointer-events: none;
}
.section-dark > * { position: relative; }
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: #FFF; }
.section-dark p,
.section-dark .lead { color: rgba(255,253,247,.7); }
.section-dark .eyebrow {
  background: rgba(255,255,255,.08);
  color: var(--accent);
}
.section-dark .eyebrow::before { background: var(--accent); }
.section-dark .serif-em { color: var(--accent); }

/* Subtle dotted texture for the concept section */
.section-dots {
  background-image:
          radial-gradient(circle at 1px 1px, rgba(31,27,22,.08) 1px, transparent 0);
  background-size: 28px 28px;
  background-position: 0 0;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 246, 240, 0.85);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
  height: 76px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.04em;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: ""; position: absolute; right: 4px; bottom: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.logo b { color: var(--primary); }

/* Isla flotante */
.nav {
  display: flex; align-items: center; gap: 4px;
  position: absolute; left: 50%; transform: translateX(-50%);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 8px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .3s var(--ease);
}
.header.scrolled .nav { box-shadow: var(--shadow-card); }

.nav a {
  color: var(--ink-mute);
  text-decoration: none;
  font-size: 16px; font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  position: relative;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav a:hover {
  color: var(--ink);
  background: rgba(31,27,22,.05);
}
.nav a.active {
  color: var(--ink);
  font-weight: 600;
}
/* Dot indicador de página activa */
.nav a::before {
  content: "";
  position: absolute;
  bottom: 3px; left: 50%;
  transform: translateX(-50%) scale(0);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav a.active::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
/* Eliminar subrayado deslizante anterior */
.nav a::after { display: none; }

.nav-cta--mobile { display: none; }
.nav-cta--desktop { display: inline-flex; }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: var(--r-sm); width: 42px; height: 42px;
  cursor: pointer;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  margin: 4px auto;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  transition: transform .15s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 1px 2px rgba(3,105,161,.25), 0 12px 28px -12px rgba(14,165,233,.55);
}
.btn-primary:hover { background: #075985; box-shadow: 0 1px 2px rgba(3,105,161,.30), 0 18px 36px -14px rgba(14,165,233,.65); border-color: #075985; }
.btn-secondary {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink-mute); background: #fff; color: var(--ink-dark, #111); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-tint); }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  padding-top: 80px;
  padding-bottom: 60px;
  position: relative;
}
.hero h1 .accent-word {
  position: relative;
  color: var(--primary);
  white-space: nowrap;
}
.hero h1 .accent-word::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 14px;
  background: var(--accent-soft);
  z-index: -1;
  border-radius: 4px;
}
.hero-meta {
  display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-mute);
}
.hero-meta div { display: flex; align-items: center; gap: 8px; }
.dot-mint { width: 8px; height: 8px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 4px var(--mint-soft); }

.hero-ctas { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1.05;
  margin-left: auto;
  justify-self: end;
}
.hero-card {
  position: absolute;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.hero-card .label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.hero-card.normal {
  top: 0; left: 0; width: 78%;
  transform: rotate(-2.5deg);
}
.hero-card.bionic {
  bottom: 0; right: 0; width: 80%;
  transform: rotate(2deg);
  background: #fff;
  border-color: var(--primary-soft);
  box-shadow: 0 1px 2px rgba(91,91,214,.08), 0 24px 50px -20px rgba(91,91,214,.35);
}
.hero-card.bionic .label { color: var(--primary); }
.hero-card.bionic strong { color: var(--ink); font-weight: 700; }
.hero-arrow {
  position: absolute;
  top: 47%; left: 50%;
  transform: translate(-50%, -50%) rotate(15deg);
  width: 64px; height: 64px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 28px;
  box-shadow: 0 12px 30px -10px rgba(14,165,233,.6);
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}
@keyframes float {
  0%,100% { transform: translate(-50%,-50%) rotate(15deg) translateY(0); }
  50%     { transform: translate(-50%,-50%) rotate(15deg) translateY(-8px); }
}

/* ---------- Reveal anim ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Section heads ---------- */
.section-head {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head.center {
  text-align: center;
  margin: 0 auto 56px;
  align-items: center;
}

/* =========================================================
   CONCEPT CARDS — 3 tarjetas "¿Qué es?"
   Editorial, cada una con un micro-demo del concepto
   ========================================================= */
.concept-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.concept-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -22px rgba(31,27,22,.18);
  border-color: transparent;
}
.concept-stage {
  height: 220px;
  position: relative;
  overflow: hidden;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.concept-card.c1 .concept-stage { background: linear-gradient(135deg, #ECECFB 0%, #DAD9F6 100%); }
.concept-card.c2 .concept-stage { background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%); }
.concept-card.c3 .concept-stage { background: linear-gradient(135deg, #E1F1E8 0%, #C7E6D3 100%); }

.concept-num {
  position: absolute; top: 18px; left: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31,27,22,.45);
}
.concept-tag {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.7);
  color: var(--ink-soft);
  backdrop-filter: blur(4px);
}
.concept-body {
  padding: 26px 28px 30px;
}
.concept-body h3 {
  font-size: 1.32rem;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}
.concept-body p {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* Demo 1 — fixation dots */
.demo-fix {
  display: flex; flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.demo-fix .w {
  position: relative;
  color: var(--ink);
}
.demo-fix .w strong {
  color: var(--primary);
  font-weight: 800;
}
.demo-fix .w::before {
  content: ""; position: absolute;
  top: -14px;
  left: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(91,91,214,.5);
  opacity: 0;
  animation: fix-dot 3.6s ease-in-out infinite;
}
.demo-fix .w:nth-child(1)::before { animation-delay: 0s; }
.demo-fix .w:nth-child(2)::before { animation-delay: 1.2s; }
.demo-fix .w:nth-child(3)::before { animation-delay: 2.4s; }
@keyframes fix-dot {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  8%, 25% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 6px rgba(91,91,214,.18); }
  33% { opacity: 0; transform: scale(0.9); }
}

/* Demo 2 — attention path */
.demo-attn {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 8px;
}
.demo-attn svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.demo-attn .attn-path {
  stroke: var(--accent-deep);
  stroke-width: 2;
  stroke-dasharray: 5 5;
  fill: none;
  stroke-linecap: round;
  stroke-dashoffset: 0;
  animation: attn-dash 4s linear infinite;
}
@keyframes attn-dash { to { stroke-dashoffset: -200; } }
.demo-attn .attn-base {
  position: absolute;
  bottom: 30px; left: 24px; right: 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.demo-attn .attn-base strong { color: var(--accent-deep); font-weight: 800; }
.demo-attn .attn-eye {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(14,165,233,.2);
  animation: attn-eye 4s ease-in-out infinite;
  top: 30px;
}
@keyframes attn-eye {
  0%   { left: 8%;  top: 80px; opacity: .3; }
  25%  { left: 35%; top: 30px; opacity: 1; }
  50%  { left: 65%; top: 50px; opacity: 1; }
  75%  { left: 88%; top: 80px; opacity: .3; }
  100% { left: 50%; top: 130px; opacity: 1; }
}

/* Demo 3 — completion */
.demo-comp {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  text-align: center;
}
.demo-comp .filled { color: var(--ink); }
.demo-comp .ghost {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(31,27,22,.45);
}
.demo-comp .completion-mark {
  display: inline-block;
  margin-left: 10px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #2F7C57;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
  vertical-align: 4px;
  text-align: center;
  -webkit-text-stroke: 0;
}

/* =========================================================
   COMPARE block
   ========================================================= */
.compare {
  margin-top: 64px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  overflow: hidden;
}
.compare-col { padding: 0 28px; }
.compare-col + .compare-col { border-left: 1px dashed var(--line); }
.compare-label {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.compare-label .swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--ink-mute); }
.compare-col.bio .compare-label { color: var(--primary); }
.compare-col.bio .compare-label .swatch { background: var(--primary); }
.compare-text { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.compare-text strong { color: var(--ink); font-weight: 700; }

/* =========================================================
   HERRAMIENTA
   ========================================================= */
.tool-card {
  background: var(--bg-elev);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift);
  padding: 8px;
  border: 1px solid var(--line);
}
.tool-inner {
  background: #fff;
  border-radius: 26px;
  padding: 36px;
}
.tool-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 24px;
}
.tool-head h3 {
  font-size: 1.4rem;
  display: flex; align-items: center; gap: 12px;
}
.tool-head h3 .pill {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mint);
  background: var(--mint-soft);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.tool-controls {
  display: flex; align-items: center; gap: 20px;
  font-size: 13px; color: var(--ink-mute);
}
.tool-controls label { display: flex; align-items: center; gap: 8px; }
.tool-controls input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 110px; height: 4px;
  background: var(--bg-tint);
  border-radius: 4px;
  outline: none;
}
.tool-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--primary);
}
.tool-controls input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--primary);
}
.tool-controls .val {
  font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums;
  min-width: 32px; text-align: right;
}
.tool-pane h4 {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.tool-pane.output h4 { color: var(--primary); }
.tool-input, .tool-output {
  width: 100%;
  min-height: 280px;
  padding: 20px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  resize: vertical;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.tool-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.tool-output {
  background: var(--primary-soft);
  border-color: transparent;
  border-style: solid;
  white-space: pre-wrap;
  overflow-y: auto;
}
.tool-output strong { color: var(--primary-deep); font-weight: 700; }
.tool-output:empty::before {
  content: "Tu texto en Lectura Biónica aparecerá aquí…";
  color: var(--ink-mute);
  font-style: italic;
}

.tool-actions {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  margin-top: 22px;
}
.tool-actions .left { display: flex; gap: 10px; flex-wrap: wrap; }
.tool-inner .btn-secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}
.tool-inner .btn-secondary:hover {
  background: var(--bg-tint);
  color: var(--ink);
  border-color: var(--ink-mute);
}
.tool-inner .btn-ghost {
  color: var(--ink-soft);
  border-color: var(--line);
}
.tool-inner .btn-ghost:hover {
  background: var(--bg-tint);
  color: var(--ink);
  border-color: var(--ink-mute);
}
.tool-meta { font-size: 13px; color: var(--ink-mute); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tool-meta .count { font-weight: 600; color: var(--ink); }

.tool-notice {
  margin-top: 22px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--ink-soft);
}
.tool-notice .ico {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}
.tool-notice a { color: var(--accent-deep); text-decoration: none; font-weight: 600; }
.tool-notice a:hover { text-decoration: underline; }

/* =========================================================
   PLANES
   ========================================================= */
.plan {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 38px 34px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .3s var(--ease);
}
.plan:hover { transform: translateY(-4px); }
.plan.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.plan .tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.plan.featured .tag {
  color: var(--accent);
  background: rgba(14,165,233,.14);
  padding: 5px 12px;
  border-radius: var(--r-pill);
}
.plan h3 { font-size: 1.6rem; margin-bottom: 8px; }
.plan.featured h3 { color: #fff; }
.plan .price {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 20px 0 4px;
}
.plan .price small {
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 500;
  color: var(--ink-mute);
}
.plan.featured .price small { color: rgba(255,255,255,.6); }
.plan .price-note { font-size: 13px; color: var(--ink-mute); margin-bottom: 28px; }
.plan.featured .price-note { color: rgba(255,255,255,.6); }
.plan ul {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}
.plan.featured ul { color: rgba(255,255,255,.85); }
.plan li { display: flex; align-items: flex-start; gap: 10px; }
.plan li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B5BD6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/12px no-repeat;
  flex-shrink: 0; margin-top: 2px;
}
.plan.featured li::before {
  background: rgba(255,255,255,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230EA5E9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/12px no-repeat;
}
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }
.plan.featured .btn-secondary {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.plan.featured .btn-secondary:hover { background: rgba(255,255,255,.14); }

/* =========================================================
   BENEFICIOS — Bento sobre fondo oscuro
   ========================================================= */
.bento {
  border-radius: var(--r-xl);
  padding: 32px 30px;
  display: flex; flex-direction: column;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  border: 1px solid transparent;
}
.bento:hover { transform: translateY(-5px); }

/* Card 1 — indigo, primary stat */
.bento.b1 {
  background: linear-gradient(160deg, #6E6EE0 0%, #4747C4 100%);
  color: #fff;
  box-shadow: 0 30px 50px -25px rgba(91,91,214,.5);
}
/* Card 2 — celeste */
.bento.b2 {
  background: linear-gradient(160deg, #38BDF8 0%, #0284C7 100%);
  color: #fff;
  box-shadow: 0 30px 50px -25px rgba(14,165,233,.45);
}
/* Card 3 — cream contrast */
.bento.b3 {
  background: #F8EFD9;
  color: var(--ink);
}
/* Card 4 — mint */
.bento.b4 {
  background: linear-gradient(160deg, #87CCAB 0%, #58A480 100%);
  color: #fff;
  box-shadow: 0 30px 50px -25px rgba(111,191,155,.4);
}

.bento-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: rgba(255,255,255,.16);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.bento.b3 .bento-icon {
  background: rgba(31,27,22,.08);
  color: var(--ink);
}

.bento-stat {
  font-family: var(--font-display);
  font-size: clamp(56px, 6.2vw, 88px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.bento-stat .op {
  font-size: 0.55em;
  font-weight: 700;
  opacity: .8;
  align-self: center;
  margin-right: 4px;
}
.bento-stat .unit {
  font-size: 0.45em;
  font-weight: 700;
  margin-left: 2px;
  opacity: .85;
}
.bento-label {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.bento p {
  font-size: 14.5px;
  line-height: 1.55;
  color: inherit;
  opacity: .85;
  margin: 0;
}
.bento.b3 p { color: var(--ink-soft); opacity: 1; }

/* decorative giant initial in bento corner */
.bento-deco {
  position: absolute;
  bottom: -32px; right: -16px;
  font-family: var(--font-display);
  font-size: 200px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,.07);
  pointer-events: none;
}
.bento.b3 .bento-deco { color: rgba(31,27,22,.05); }

/* =========================================================
   CONTACTO + FAQ
   ========================================================= */
.contact-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 38px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
  font-size: 13px; font-weight: 600;
  color: var(--ink-soft);
  font-family: var(--font-body);
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.contact-email { margin-top: 18px; font-size: 14px; color: var(--ink-mute); }
.contact-email a { color: var(--primary); text-decoration: none; font-weight: 600; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  transition: background .2s var(--ease);
}
.faq-item summary:hover { background: var(--bg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--primary);
  font-size: 1.4rem;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

.contact-intro h2 { margin-bottom: 16px; }

/* Contact page specific */
.contact-hero {
  padding-top: 80px;
  padding-bottom: 30px;
}
.contact-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  margin: 22px 0 18px;
}
.contact-channels { margin-top: 32px; }
.channel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.channel .ico-wrap {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 8px;
}
.channel .ch-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
}
.channel .ch-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.channel a { color: inherit; text-decoration: none; }
.channel:hover { border-color: var(--primary); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  margin-top: 60px;
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer-links { display: flex; gap: 28px; font-size: 14px; }
.footer-links a { color: var(--ink-mute); text-decoration: none; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--ink-mute); font-size: 14px; }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
  z-index: 100;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast .check {
  display: inline-block; width: 16px; height: 16px;
  border-radius: 50%; background: var(--mint);
  margin-right: 8px; vertical-align: -3px;
}


/* Cookies */

.gdprcookie {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 780px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-lift);
  z-index: 9999;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
}

.gdprcookie-intro,
.gdprcookie-types {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.gdprcookie h6 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bg);
  margin: 0 0 .4rem;
  letter-spacing: -0.02em;
}

.gdprcookie h5 {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(250,246,240,.65);
  margin: 0 0 1.25rem;
}

.gdprcookie p {
  font-size: 0.9rem;
  color: rgba(250,246,240,.7);
  margin: 0 0 1.25rem;
}

.gdprcookie h2 {
  font-size: 1rem;
  color: var(--bg);
}

.gdprcookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .25rem;
}

.gdprcookie-buttons button {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: .5rem 1.25rem;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(250,246,240,.25);
  background: transparent;
  color: var(--bg);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  margin: 0;
}

.gdprcookie-buttons button:first-child {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.gdprcookie-buttons button:first-child:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
}

.gdprcookie-buttons button:not(:first-child):hover {
  background: rgba(250,246,240,.12);
  border-color: rgba(250,246,240,.5);
}

.gdprcookie-buttons button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.gdprcookie-types {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(250,246,240,.15);
  border-radius: var(--r-md);
  background: rgba(250,246,240,.05);
}

.gdprcookie-types input[type=checkbox] {
  transform: scale(1.3);
  margin: 8px !important;
  accent-color: var(--primary);
  transition: .2s;
}

.gdprcookie-types ul {
  overflow: hidden;
  padding: 0;
  margin: .5rem 0 0;
}

.gdprcookie-types li {
  padding: 0;
  margin: 0;
  width: 33%;
  display: block;
  list-style: none;
  float: left;
  color: var(--bg);
}

.gdprcookie-types li label {
  font-size: 0.875rem;
  color: rgba(250,246,240,.8);
}

.btn-cookies {
  background: var(--bg-elev);
  border: 1.5px solid var(--primary);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--r-pill);
  transition: background .2s var(--ease), color .2s var(--ease);
}

.btn-cookies:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =========================================================
   v2 (2026-05-24) — Blog editorial, contacto v2, home v2,
   ayudas TDAH (lectura biónica, enfoque, progreso)
   ========================================================= */

/* ---------- Utilidades comunes ---------- */
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-tint);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}
.meta-pill svg { width: 14px; height: 14px; }
.meta-pill.is-fast { background: var(--mint-soft); color: #2d6a4f; }
.meta-pill.is-medium { background: var(--sun-soft); color: #92671a; }
.meta-pill.is-deep { background: var(--primary-soft); color: var(--primary-deep); }

/* ---------- Home v2: previa de blog + CTA final ---------- */
.home-blog-preview { margin-top: 12px; }
.home-blog-preview .section-head { margin-bottom: 32px; }

.home-blog-list {
  display: grid;
  gap: 14px;
}
.home-blog-card {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.home-blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
}
.home-blog-card .thumb {
  width: 140px; height: 96px;
  border-radius: var(--r-md);
  background: var(--bg-tint) center/cover no-repeat;
  flex-shrink: 0;
}
.home-blog-card .body h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.home-blog-card .body p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-blog-card .go {
  font-size: 22px;
  color: var(--primary);
  transition: transform .25s var(--ease);
}
.home-blog-card:hover .go { transform: translateX(4px); }

.cta-final-card {
  margin-top: 80px;
  padding: 56px 48px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-warm) 100%);
  border-radius: var(--r-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(91,91,214,.08), transparent 60%);
  pointer-events: none;
}
.cta-final-card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.cta-final-card p { max-width: 52ch; margin: 0 auto 24px; font-size: 1.1rem; }
.cta-final-card .ctas {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.cta-final-card .btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: rgba(0,0,0,.12);
}
.cta-final-card .btn-secondary:hover {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink-mute);
}
.cta-final-card .btn-ghost {
  color: var(--ink);
  border-color: rgba(0,0,0,.15);
}
.cta-final-card .btn-ghost:hover {
  background: rgba(255,255,255,.7);
  border-color: var(--ink-mute);
}

.tool-focus-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-tint);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.tool-focus-toggle:hover { border-color: var(--primary); color: var(--primary); }
.tool-focus-toggle.is-active { background: var(--primary); color: white; border-color: var(--primary); }
.tool-focus-toggle .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-mute);
}
.tool-focus-toggle.is-active .dot { background: white; }

.tool-card.is-focus-mode .tool-pane.input { opacity: 0.4; }
.tool-card.is-focus-mode .tool-pane.output { transform: scale(1.02); transition: transform .3s var(--ease); }

/* ---------- Contacto v2 ---------- */
.contact-v2-hero {
  padding: 80px 0 60px;
  text-align: center;
}
.contact-v2-hero .eyebrow { margin-bottom: 18px; }
.contact-v2-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  max-width: 18ch;
  margin: 0 auto 28px;
}
.contact-mega-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: all .25s var(--ease);
  box-shadow: var(--shadow-soft);
}
.contact-mega-email:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-card);
}
.contact-mega-email svg { width: 22px; height: 22px; }
.contact-hero-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
  flex-wrap: wrap;
  color: var(--ink-mute);
  font-size: 14px;
}
.contact-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.contact-hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

.contact-v2-dual {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 56px;
  align-items: start;
}
.contact-v2-left h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 18px;
}
.contact-v2-left .lead { margin-bottom: 28px; }
.contact-v2-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.contact-v2-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
}
.contact-v2-list .ico {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.contact-v2-list .ico svg { width: 16px; height: 16px; }
.contact-v2-list strong { display: block; font-size: 14px; }
.contact-v2-list span { color: var(--ink-mute); font-size: 14px; }

.contact-form-v2 {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.form-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 600;
}
.form-step-indicator .step {
  display: inline-block;
  width: 24px; height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background .25s var(--ease);
}
.form-step-indicator .step.is-done { background: var(--primary); }
.form-step-indicator .step.is-current { background: var(--accent); }
.contact-form-v2 .field { margin-bottom: 18px; }
.contact-form-v2 .field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.contact-form-v2 .field input,
.contact-form-v2 .field select,
.contact-form-v2 .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-form-v2 .field input:focus,
.contact-form-v2 .field select:focus,
.contact-form-v2 .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.contact-form-v2 .field textarea { min-height: 140px; resize: vertical; }

.faq-v2 { margin-top: 88px; }
.faq-v2-head { text-align: center; margin-bottom: 36px; }
.faq-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}
.faq-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.faq-chip:hover { border-color: var(--primary); color: var(--primary); }
.faq-chip.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.faq-list-v2 { max-width: 760px; margin: 0 auto; }
.faq-list-v2 .faq-item { transition: opacity .25s var(--ease); }
.faq-list-v2 .faq-item.is-hidden { display: none; }

/* ---------- Blog index ---------- */
.blog-hero {
  padding: 64px 0 40px;
  text-align: center;
}
.blog-hero .breadcrumb-v2 {
  display: inline-flex;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.blog-hero .breadcrumb-v2 a { color: var(--ink-mute); text-decoration: none; }
.blog-hero .breadcrumb-v2 a:hover { color: var(--primary); }
.blog-hero h1 { margin-bottom: 14px; }
.blog-hero .lead { margin: 0 auto 28px; }

.blog-search {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.blog-search input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg-elev);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.blog-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.blog-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-mute);
}

.blog-list {
  max-width: 920px;
  margin: 48px auto 0;
  display: grid;
  gap: 24px;
}

.article-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
}
.article-card .article-thumb {
  width: 200px; height: 140px;
  border-radius: var(--r-md);
  background: var(--bg-tint) center/cover no-repeat;
}
.article-card .article-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.article-card .eyebrow { color: var(--primary); }
.article-card h2,
.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.article-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.article-card--featured {
  grid-template-columns: 1fr 1fr;
  padding: 28px;
  background: linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-warm) 100%);
  gap: 40px;
}
.article-card--featured .article-thumb { width: 100%; height: 260px; }
.article-card--featured h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.article-card--featured p {
  -webkit-line-clamp: 3;
  font-size: 1.05rem;
}
.article-card--featured .featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.blog-newsletter-inline {
  margin: 8px 0;
  padding: 32px;
  background: var(--bg-tint);
  border-radius: var(--r-lg);
  text-align: center;
}
.blog-newsletter-inline h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 8px;
}
.blog-newsletter-inline p { margin: 0 0 18px; color: var(--ink-soft); }

.blog-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 920px;
  margin: 56px auto 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.blog-pagination a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-pagination a:hover { color: var(--primary-deep); }
.blog-pagination .position { color: var(--ink-mute); }
.blog-pagination .disabled { color: var(--ink-mute); cursor: default; pointer-events: none; }

.blog-empty {
  max-width: 520px;
  margin: 80px auto;
  text-align: center;
}
.blog-empty .icon {
  font-family: var(--font-serif);
  font-size: 64px;
  color: var(--primary);
  margin-bottom: 16px;
  font-style: italic;
}
.blog-empty h2 { margin-bottom: 12px; }
.blog-empty p { margin: 0 auto 24px; max-width: 40ch; }

/* ---------- Blog post ---------- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.read-progress .bar {
  height: 100%;
  width: 100%;
  background: var(--primary);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform .08s linear;
}

.post-hero {
  padding: 56px 0 32px;
}
.post-hero .breadcrumb-v2 {
  display: inline-flex;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.post-hero .breadcrumb-v2 a { color: var(--ink-mute); text-decoration: none; }
.post-hero .breadcrumb-v2 a:hover { color: var(--primary); }
.post-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}
.post-hero .lead { margin-bottom: 24px; }
.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.post-image {
  max-width: 920px;
  margin: 32px auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.post-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.tldr-box {
  max-width: 760px;
  margin: 32px auto;
  padding: 24px 28px;
  background: var(--bg-tint);
  border-left: 4px solid var(--primary);
  border-radius: var(--r-md);
}
.tldr-box .label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.tldr-box ul { margin: 0; padding: 0 0 0 18px; }
.tldr-box li {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.tldr-box li:last-child { margin-bottom: 0; }

.post-body {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 1.18rem;
  line-height: 1.78;
  color: var(--ink-soft);
}
.post-body p,
.post-body ul,
.post-body ol { margin: 0 0 1.4em; }
.post-body p { color: var(--ink-soft); }
.post-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: 1em 0 0.6em;
  color: var(--ink);
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 1.6em 0 0.5em;
  color: var(--ink);
}
.post-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary-soft);
  text-underline-offset: 3px;
}
.post-body a:hover { text-decoration-color: var(--primary); }
.post-body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25em;
  color: var(--ink);
}
.post-body img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 1.2em 0; }
.post-body code {
  background: var(--bg-tint);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.callout {
  margin: 1.8em 0;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: var(--bg-tint);
  border-left: 4px solid var(--ink-mute);
}
.callout--note { background: var(--primary-soft); border-color: var(--primary); }
.callout--warn { background: #FEF6E7; border-color: #E0A521; }

.post-toolbar {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-card);
  z-index: 50;
}
.post-toolbar-btn {
  appearance: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .2s var(--ease);
  position: relative;
}
.post-toolbar-btn svg { width: 18px; height: 18px; }
.post-toolbar-btn:hover { background: var(--bg-tint); color: var(--primary); }
.post-toolbar-btn.is-active { background: var(--primary); color: white; }
.post-toolbar-btn .tip {
  position: absolute;
  left: 56px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s var(--ease);
}
.post-toolbar-btn:hover .tip { opacity: 1; }

body.focus-mode .post-body p,
body.focus-mode .post-body li {
  opacity: 0.32;
  transition: opacity .35s var(--ease);
}
body.focus-mode .post-body p.is-active,
body.focus-mode .post-body li.is-active { opacity: 1; }

.post-body.bionic-active strong { font-weight: 800; color: var(--ink); }

.post-body.text-larger { font-size: 1.32rem; line-height: 1.82; }

.readable-content.bionic-active strong { font-weight: 800; color: var(--ink); }
.readable-content.text-larger p,
.readable-content.text-larger li { font-size: 1.32rem; line-height: 1.82; }

.related-section {
  max-width: 920px;
  margin: 80px auto 0;
}
.related-section h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  font-family: var(--font-display);
}
.related-grid {
  display: grid;
  gap: 16px;
}

/* ---------- Responsive (mobile) ---------- */
@media (max-width: 900px) {
  .contact-v2-dual {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-card,
  .article-card--featured {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .article-card .article-thumb { width: 100%; height: 180px; }
  .article-card--featured { padding: 20px; }
  .home-blog-card {
    grid-template-columns: 100px 1fr;
  }
  .home-blog-card .thumb { width: 100px; height: 72px; }
  .home-blog-card .go { display: none; }
  .post-toolbar {
    left: 50%;
    top: auto;
    bottom: 16px;
    transform: translateX(-50%);
    flex-direction: row;
    border-radius: var(--r-pill);
  }
  .post-toolbar-btn .tip { display: none; }
  .post-body { font-size: 1.08rem; line-height: 1.72; }
  .cta-final-card { padding: 36px 24px; }
}

/* ---------- HEADER AUTH STATE ---------- */
.header-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-auth-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-auth-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  color: var(--ink-mute);
  text-decoration: none;
  transition: color .2s var(--ease), background .2s var(--ease);
}

.header-auth-logout:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.header-auth-logout svg {
  width: 18px;
  height: 18px;
}

.header-auth-login {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  transition:
    color .2s var(--ease),
    border-color .2s var(--ease),
    background .2s var(--ease);
}

.header-auth-login:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}

@media (max-width: 640px) {
  .header-auth-name {
    display: none;
  }

  .header-auth-login {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* =========================================================
   SECCIÓN PRIVADA "MI CUENTA" (Mis Datos y Mi Consumo)
   ========================================================= */

/* ---------- ACCENTUATING ELEMENTS ---------- */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- PRIVATE SECTION COMMON CONTAINER ---------- */
.account-section {
  min-height: calc(100vh - 280px);
  padding: 64px 20px;
  max-width: 1040px;
  margin: 0 auto;
  animation: slideUp .45s var(--ease) both;
}

.account-header {
  margin-bottom: 40px;
  text-align: left;
}

.account-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.account-subtitle {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- ACCOUNT SUB-NAVIGATION (TABS) ---------- */
.account-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  padding-bottom: 1px;
}

.account-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: var(--r-md) var(--r-md) 0 0;
  transition: color .2s var(--ease), background .2s var(--ease);
  position: relative;
}

.account-nav-item svg {
  width: 18px;
  height: 18px;
  opacity: .7;
  transition: opacity .2s var(--ease);
}

.account-nav-item:hover {
  color: var(--ink);
  background: rgba(31, 27, 22, .03);
}

.account-nav-item:hover svg {
  opacity: 1;
}

.account-nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

.account-nav-item.active svg {
  color: var(--primary);
  opacity: 1;
}

.account-nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---------- CARD LAYOUT ---------- */
.account-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

/* ---------- METRICS DASHBOARD (CONSUMO) ---------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.metric-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: background .25s var(--ease);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #cfc8ba;
}

.metric-card:hover::before {
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.metric-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.metric-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.metric-card:hover .metric-icon-wrap {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: rgba(91, 91, 214, 0.15);
}

.metric-val {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.metric-desc {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
}

/* ---------- SVG NATIVE INTERACTIVE CHART ---------- */
.chart-card {
  margin-top: 32px;
}

.chart-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.chart-container-inner {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: visible;
}

/* SVG Chart styling */
.chart-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-gridline {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.chart-bar-rect {
  transition: fill .25s var(--ease), filter .25s var(--ease);
  cursor: pointer;
}

.chart-bar-rect:hover {
  fill: var(--accent);
  filter: drop-shadow(0 4px 10px rgba(14, 165, 233, 0.35));
}

.chart-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  fill: var(--ink-mute);
}

.chart-axis-line {
  stroke: var(--line);
  stroke-width: 1.5;
}

/* Custom CSS native tooltips for SVG */
.chart-group {
  position: relative;
}

.chart-group .tooltip-trigger {
  cursor: pointer;
}

.chart-tooltip-box {
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), visibility .2s var(--ease), transform .2s var(--ease);
  pointer-events: none;
  transform: translateY(4px);
}

.chart-group:hover .chart-tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chart-tooltip-bg {
  fill: var(--ink);
  rx: 6px;
}

.chart-tooltip-txt {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  fill: var(--bg);
}

/* ---------- DATOS FORM LAYOUT ---------- */
.datos-form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.datos-form-col {
  display: flex;
  flex-direction: column;
}

.datos-col-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.datos-field {
  margin-bottom: 20px;
}

/* Form layout actions */
.datos-actions {
  grid-column: span 2;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 12px;
}

.datos-btn-submit {
  min-width: 180px;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- GENERAL ALERTS / MESSAGES ---------- */
.auth-alert {
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.auth-alert--error {
  background: #FEF2F2;
  color: #B42318;
  border: 1px solid rgba(180, 35, 24, .2);
}

.auth-alert--success {
  background: var(--mint-soft);
  color: #2d7a5a;
  border: 1px solid rgba(111, 191, 155, .2);
}

/* ---------- NEWSLETTER MODAL STYLES ---------- */
#newsletterModal .modal-content.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
#newsletterModal .modal-header {
  padding: 24px 24px 8px 24px;
}
#newsletterModal .modal-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1e293b;
}
#newsletterModal .text-accent {
  color: var(--accent-primary, #6366f1);
}
#newsletterModal .modal-body {
  padding: 8px 24px 28px 24px;
}
#newsletterModal .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 6px;
  text-align: left;
  display: block;
}
#newsletterModal .form-control {
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
#newsletterModal .form-control:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  outline: none;
}
#newsletterModal .cta-button {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
#newsletterModal .cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}