/* ============================================================
   Modo Simple — modosimple.chiprout.com
   Dirección: "el periódico de domingo". Papel cálido, tinta
   oscura, un solo azul (el de la extensión). El sitio practica
   lo que predica: texto grande, contraste alto, botones grandes.
   Tipografías: Source Serif 4 (títulos, editorial) y Atkinson
   Hyperlegible (cuerpo, diseñada para baja visión).
   ============================================================ */

:root {
  --paper: #fbf7ef;
  --paper-2: #ffffff;
  --ink: #1f2733;
  --ink-soft: #4a5365;
  --line: #e3dccd;
  --line-2: #d4ccba;
  --blue: #1d4ed8;
  --blue-dark: #1a3fae;
  --blue-soft: #eef3fe;
  --good: #1a7f4e;
  --radius: 16px;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Verdana, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -200px, #fff8e9 0%, transparent 70%),
    var(--paper);
}

img { max-width: 100%; height: auto; }

::selection { background: var(--blue); color: #fff; }

/* Foco de teclado MUY visible: requisito, no adorno. */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.18; letter-spacing: -0.01em; }

/* ----------------------------- Botones ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 62px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--blue-dark);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { background: var(--blue-dark); color: #fff; transform: translateY(1px); box-shadow: 0 2px 0 var(--blue-dark); }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  box-shadow: none;
  border: 2px solid var(--blue);
}
.btn-ghost:hover { background: var(--blue-soft); color: var(--blue-dark); transform: none; box-shadow: none; }
.btn-sm { min-height: 52px; font-size: 18px; padding: 10px 22px; }

/* ----------------------------- Topbar ----------------------------- */
.topbar {
  background: var(--paper-2);
  border-bottom: 2px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; }
.topnav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.topnav a { font-size: 19px; font-weight: 700; color: var(--ink-soft); text-decoration: none; padding: 8px 2px; }
.topnav a:hover { color: var(--blue); text-decoration: underline; }

/* ----------------------------- Hero ----------------------------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 58px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: 23px; color: var(--ink-soft); margin: 22px 0 30px; max-width: 30ch; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 17px; color: var(--ink-soft); margin-top: 14px; }

/* La captura del panel, enmarcada como ventana real */
.shot {
  background: var(--paper-2);
  border: 2px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -28px rgba(31, 39, 51, 0.35);
  overflow: hidden;
}
.shot img { display: block; width: 100%; }

/* Las tres promesas, como sellos de periódico */
.promise { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); background: var(--paper-2); }
.promise .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 22px;
  padding-bottom: 22px;
  text-align: center;
}
.promise strong { display: block; font-size: 22px; }
.promise span { color: var(--ink-soft); font-size: 17px; }

/* ----------------------------- Secciones ----------------------------- */
section.block { padding: 76px 0; }
.kicker {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.block h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 14px; }
.block .sub { font-size: 21px; color: var(--ink-soft); max-width: 60ch; }

/* Tarjetas de funciones */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.fcard {
  background: var(--paper-2);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.fcard .ficon { font-size: 34px; line-height: 1; display: block; margin-bottom: 14px; }
.fcard h3 { font-size: 23px; margin-bottom: 8px; }
.fcard p { font-size: 18px; color: var(--ink-soft); }

/* Capturas con explicación (lupa / leer en voz alta) */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 64px; }
.demo:first-of-type { margin-top: 48px; }
.demo h3 { font-size: 28px; margin-bottom: 12px; }
.demo p { font-size: 20px; color: var(--ink-soft); }
.demo .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 21px; font-weight: 700; margin-bottom: 16px;
}
.demo.flip > :first-child { order: 2; }

/* Pasos para quien ayuda */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; counter-reset: paso; }
.step {
  background: var(--paper-2);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  counter-increment: paso;
}
.step::before {
  content: counter(paso);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue);
  border: 2px solid var(--blue);
  font-size: 21px; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { font-size: 18px; color: var(--ink-soft); }

/* ----------------------------- FAQ ----------------------------- */
.faq { max-width: 820px; margin: 42px auto 0; }
.faq details {
  background: var(--paper-2);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  padding: 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 21px;
  font-weight: 700;
  padding: 20px 56px 20px 24px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 30px; color: var(--blue); font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 22px; font-size: 19px; color: var(--ink-soft); }

/* ----------------------------- CTA final ----------------------------- */
.final {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  margin: 0 24px;
}
.final h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.final p { font-size: 21px; color: #cdd4e0; max-width: 52ch; margin: 0 auto 30px; }
.final .btn { box-shadow: none; }

/* ----------------------------- Footer ----------------------------- */
footer { padding: 64px 0 48px; }
.foot-top { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 22px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.foot-links a { font-size: 18px; color: var(--ink-soft); }
.foot-legal { font-size: 17px; color: var(--ink-soft); max-width: 75ch; }

/* ----------------------------- Toast ----------------------------- */
#toast {
  position: fixed;
  left: 50%; bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  padding: 16px 26px;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: min(92vw, 560px);
  text-align: center;
  z-index: 100;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ----------------------------- Guías ----------------------------- */
.gd { max-width: 780px; margin: 0 auto; padding: 56px 24px 72px; }
.gd-crumbs { font-size: 17px; color: var(--ink-soft); margin-bottom: 18px; }
.gd h1 { font-size: clamp(32px, 4.6vw, 46px); margin-bottom: 10px; }
.gd-meta { font-size: 18px; color: var(--ink-soft); margin-bottom: 26px; }
.gd h2 { font-size: 29px; margin: 44px 0 14px; }
.gd p, .gd li { font-size: 20px; }
.gd p { margin-bottom: 18px; }
.gd ul, .gd ol { margin: 0 0 18px 26px; }
.gd li { margin-bottom: 10px; }
.gd table { width: 100%; border-collapse: collapse; margin: 10px 0 24px; background: var(--paper-2); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gd th, .gd td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 18px; }
.gd th { background: var(--blue-soft); font-size: 17px; }
.gd tr:last-child td { border-bottom: none; }
.gd figure { margin: 26px 0; }
.gd figure img { display: block; border: 2px solid var(--line-2); border-radius: var(--radius); background: #fff; }
.gd figcaption { font-size: 17px; color: var(--ink-soft); margin-top: 10px; }
.gd-tip {
  background: var(--blue-soft);
  border-left: 6px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 19px;
}
.gd-cta {
  background: var(--paper-2);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 30px 28px;
  margin: 44px 0;
}
.gd-cta h3 { font-size: 26px; margin-bottom: 10px; }
.gd-cta p { font-size: 19px; color: var(--ink-soft); }
.gd-cta img { display: block; border: 2px solid var(--line); border-radius: 12px; margin: 4px auto 22px; cursor: pointer; }
.gd-next { margin-top: 52px; padding-top: 28px; border-top: 2px solid var(--line); }
.gd-next h2 { margin-top: 0; }

.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 38px; }
.gcard {
  display: block;
  background: var(--paper-2);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.gcard:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--ink); }
.gtag {
  display: inline-block;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 8px;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.gcard h3 { font-size: 23px; margin-bottom: 8px; }
.gcard p { font-size: 18px; color: var(--ink-soft); }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 900px) {
  .hero .wrap, .demo { grid-template-columns: 1fr; gap: 32px; }
  .demo.flip > :first-child { order: 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .promise .wrap { grid-template-columns: 1fr; gap: 18px; }
  .guide-grid { grid-template-columns: 1fr; }
  .topnav { gap: 14px; }
}
