/* =========================================================
   Ahorra en la Luz — hoja de estilos principal
   Concepto: revista de lectura con una franja de tarifa
   (punta / llano / valle) como firma visual del sitio.
   Para cambiar colores, toca solo las variables de :root.
   ========================================================= */

:root {
  /* Color */
  --bg: #f5f7f6;          /* papel frío */
  --surface: #ffffff;
  --ink: #12262c;         /* texto principal */
  --ink-soft: #4a5f63;    /* texto secundario */
  --line: #d8e0de;
  --link: #1d4fd6;        /* enlaces y botones */
  --link-hover: #133a9e;
  --mark: #f3c63a;        /* subrayado de energía */
  --punta: #d64545;
  --llano: #e0a31a;
  --valle: #2f9e6a;
  --on-link: #ffffff;

  /* Tipografía */
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Literata", Georgia, "Times New Roman", serif;
  --f-ui: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Escala */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.375rem;
  --t-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --t-xxl: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);

  --radius: 10px;
  --wrap: 1180px;
  --measure: 68ch;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1517;
    --surface: #142024;
    --ink: #e4ecea;
    --ink-soft: #a3b4b2;
    --line: #26363a;
    --link: #8fb0ff;
    --link-hover: #b9ceff;
    --mark: #c9a12a;
    --punta: #ef6b6b;
    --llano: #e8b53b;
    --valle: #4cc28a;
    --on-link: #0d1517;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1517;
  --surface: #142024;
  --ink: #e4ecea;
  --ink-soft: #a3b4b2;
  --line: #26363a;
  --link: #8fb0ff;
  --link-hover: #b9ceff;
  --mark: #c9a12a;
  --punta: #ef6b6b;
  --llano: #e8b53b;
  --valle: #4cc28a;
  --on-link: #0d1517;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; letter-spacing: -0.01em; }
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--link); color: var(--on-link); padding: 8px 14px; border-radius: 6px;
}
.skip:focus { left: 16px; }
.eyebrow {
  font-family: var(--f-ui); font-size: var(--t-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft);
}
.num { font-family: var(--f-data); font-variant-numeric: tabular-nums; }

/* ---------- Cabecera ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 10;
  height: env(safe-area-inset-top, 0px); background: var(--surface);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 12px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 800; font-size: 1.25rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.logo svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; font-family: var(--f-ui); font-size: var(--t-sm); }
.nav a {
  color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { background: color-mix(in srgb, var(--link) 10%, transparent); color: var(--link); }
.menu-btn {
  display: none; font: 600 var(--t-sm) var(--f-ui); color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer;
}
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter-r) 16px var(--gutter-l);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- Franja de tarifa (firma del sitio) ---------- */
.tarifa {
  border-top: 1px solid var(--line);
  font-family: var(--f-ui); font-size: var(--t-xs);
}
.tarifa .wrap { display: flex; align-items: center; gap: 14px; padding-block: 8px; flex-wrap: wrap; }
.tarifa-estado { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.tarifa-estado b { font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.dot[data-p="punta"] { background: var(--punta); }
.dot[data-p="llano"] { background: var(--llano); }
.dot[data-p="valle"] { background: var(--valle); }
.tarifa-barra {
  display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px;
  flex: 1 1 220px; min-width: 0; height: 8px;
}
.tarifa-barra span { border-radius: 2px; opacity: 0.45; }
.tarifa-barra span[data-p="punta"] { background: var(--punta); }
.tarifa-barra span[data-p="llano"] { background: var(--llano); }
.tarifa-barra span[data-p="valle"] { background: var(--valle); }
.tarifa-barra span.now { opacity: 1; outline: 2px solid var(--ink); outline-offset: 1px; }
.tarifa-nota { color: var(--ink-soft); }

/* ---------- Portada ---------- */
.hero { padding-block: 48px 24px; }
.hero h1 { font-size: var(--t-xxl); margin: 8px 0 12px; max-width: 18ch; font-weight: 800; }
.hero h1 mark {
  background: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 92%, transparent 92%);
  color: inherit; padding: 0 2px;
}
.hero p { font-size: var(--t-lg); color: var(--ink-soft); max-width: 46ch; margin: 0; line-height: 1.5; }

.section { padding-block: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: var(--t-xl); margin: 0; }
.section-head a { font-family: var(--f-ui); font-size: var(--t-sm); font-weight: 600; text-decoration: none; }

.featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
}
.featured h2 { font-size: var(--t-xl); margin: 8px 0 12px; }
.featured h2 a { color: var(--ink); text-decoration: none; }
.featured h2 a:hover { color: var(--link); }
.featured p { color: var(--ink-soft); margin: 0 0 16px; }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; gap: 20px; padding: 16px; } }

/* Portadillas generadas (sin imágenes externas) */
.cover {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius);
  overflow: hidden; display: grid; place-items: center;
  background: var(--c1);
  background-image:
    radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--c2) 70%, transparent) 0 28%, transparent 29%),
    repeating-linear-gradient(90deg, transparent 0 22px, color-mix(in srgb, #fff 10%, transparent) 22px 23px);
}
.cover svg { width: 28%; height: auto; color: #fff; opacity: 0.95; }
.cover .cover-dato {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--f-data); font-size: var(--t-xs); color: #fff; opacity: 0.9;
}
.cat-factura-luz { --c1: #1b3f8f; --c2: #f3c63a; }
.cat-autoconsumo { --c1: #1f6b4f; --c2: #f3c63a; }
.cat-coche-electrico { --c1: #3a2f7a; --c2: #5fd1a3; }
.cat-ahorro-hogar { --c1: #8a3b1f; --c2: #f3c63a; }

/* Rejilla de tarjetas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { font-size: 1.2rem; margin: 4px 0 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--link); }
.card p { margin: 0; color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.6; }
.meta { font-family: var(--f-ui); font-size: var(--t-xs); color: var(--ink-soft); display: flex; gap: 10px; flex-wrap: wrap; }
.card .cover { transition: transform .35s ease; }
.card:hover .cover { transform: translateY(-3px); }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cat-tile {
  display: flex; flex-direction: column; gap: 6px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: border-color .2s ease;
}
.cat-tile:hover { border-color: var(--link); color: var(--ink); }
.cat-tile strong { font-family: var(--f-display); font-size: 1.15rem; }
.cat-tile span { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.5; }

/* ---------- Listados y paginación ---------- */
.page-head { padding-block: 40px 16px; }
.page-head h1 { font-size: var(--t-xxl); margin: 6px 0 10px; }
.page-head p { color: var(--ink-soft); max-width: 60ch; margin: 0; }

.pagination {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
  font-family: var(--f-ui); margin-top: 40px;
}
.pagination a, .pagination span {
  min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink);
  background: var(--surface);
}
.pagination a:hover { border-color: var(--link); color: var(--link); }
.pagination [aria-current="page"] { background: var(--link); color: var(--on-link); border-color: var(--link); }

/* ---------- Artículo ---------- */
.breadcrumbs { font-family: var(--f-ui); font-size: var(--t-xs); padding-top: 24px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); }

.article-layout {
  display: grid; grid-template-columns: minmax(0, var(--measure)) 300px; gap: 56px;
  justify-content: center; padding-block: 16px 48px;
}
@media (max-width: 1040px) { .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.article-header h1 { font-size: var(--t-xxl); margin: 10px 0 14px; font-weight: 800; }
.article-header .lead { font-size: var(--t-lg); color: var(--ink-soft); line-height: 1.5; margin: 0 0 18px; }
.article-header .meta { margin-bottom: 24px; }
.prose { min-width: 0; }
.prose h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 0.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { font-weight: 700; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--mark);
  font-style: italic; color: var(--ink-soft);
}
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--f-ui); font-size: var(--t-sm); min-width: 480px; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface); font-weight: 600; }
.prose td.n, .prose th.n { text-align: right; font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.prose tr:last-child td { border-bottom: 0; }

.callout {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin: 1.6em 0; font-size: var(--t-sm);
}
.callout p:last-child { margin-bottom: 0; }
.callout .eyebrow { display: block; margin-bottom: 6px; }
.formula {
  font-family: var(--f-data); background: var(--surface); border: 1px dashed var(--line);
  border-radius: 8px; padding: 12px 16px; margin: 1.2em 0; overflow-x: auto; font-size: var(--t-sm);
}

.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin: 0 0 32px; font-family: var(--f-ui); font-size: var(--t-sm);
}
.toc summary { cursor: pointer; font-weight: 600; }
.toc ol { margin: 10px 0 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { text-decoration: none; }

.faq { margin-top: 2.4em; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; }
.faq details p { margin: 10px 0 0; }

.author-box {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 40px;
  padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--t-sm);
}
.avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--link); color: var(--on-link); font: 700 1.2rem var(--f-display);
}
.author-box p { margin: 4px 0 0; color: var(--ink-soft); }
.disclaimer { font-family: var(--f-ui); font-size: var(--t-xs); color: var(--ink-soft); margin-top: 24px; }

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar .sticky { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 24px; }
.side-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  font-family: var(--f-ui); font-size: var(--t-sm);
}
.side-block h2 { font-size: 1rem; margin: 0 0 10px; }
.side-block ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.side-block a { text-decoration: none; line-height: 1.4; }

/* ---------- Anuncios ---------- */
.ad-slot { margin: 28px 0; text-align: center; min-height: 0; }
.ad-slot[data-activo="1"] { min-height: 280px; }   /* reserva espacio: evita saltos (CLS) */
.ad-slot .ad-label {
  display: block; font-family: var(--f-ui); font-size: 0.7rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px;
}
.ad-placeholder {
  display: grid; place-items: center; min-height: 120px; border: 1px dashed var(--line);
  border-radius: var(--radius); color: var(--ink-soft); font-family: var(--f-ui); font-size: var(--t-xs);
}

/* ---------- Formularios ---------- */
.form { display: grid; gap: 16px; max-width: 560px; font-family: var(--f-ui); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: var(--t-sm); }
.form input, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.form textarea { min-height: 160px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 var(--t-sm) var(--f-ui); padding: 12px 20px; border-radius: 8px; cursor: pointer;
  background: var(--link); color: var(--on-link); border: 1px solid var(--link); text-decoration: none;
}
.btn:hover { background: var(--link-hover); border-color: var(--link-hover); color: var(--on-link); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--ink-soft); }
.form-msg { font-size: var(--t-sm); color: var(--valle); }

/* ---------- Páginas de texto (legales, sobre nosotros) ---------- */
.text-page { max-width: var(--measure); padding-block: 32px 64px; }
.text-page h1 { font-size: var(--t-xxl); margin: 8px 0 20px; }
.text-page h2 { font-size: 1.4rem; margin-top: 2em; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 48px; font-family: var(--f-ui); font-size: var(--t-sm); }
.site-footer .wrap { padding-block: 40px calc(32px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h2 { font-size: 0.95rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--link); }
.site-footer p { color: var(--ink-soft); margin: 8px 0 0; max-width: 40ch; }
.linkbtn { font: inherit; color: var(--ink-soft); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.linkbtn:hover { color: var(--link); }
.copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; color: var(--ink-soft); font-size: var(--t-xs); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  padding: 16px var(--gutter-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12); font-family: var(--f-ui); font-size: var(--t-sm);
}
.cookie-banner .inner { max-width: var(--wrap); margin-inline: auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.cookie-banner p { margin: 0; max-width: 70ch; }
.cookie-banner .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: 80px; }
.notfound .num { font-size: 4rem; color: var(--link); }

/* ---------- Animaciones suaves ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .5s ease both; }
  .grid .card:nth-child(2) { animation-delay: .06s; }
  .grid .card:nth-child(3) { animation-delay: .12s; }
  .grid .card:nth-child(4) { animation-delay: .18s; }
  @keyframes rise { from { transform: translateY(8px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Rediseño: blog de texto + calculadoras
   ========================================================= */

/* Portada */
.home .hero { padding-block: 40px 8px; max-width: 46rem; }
.home .hero h1 { max-width: 20ch; }
.hero-links { font-family: var(--f-ui); font-size: var(--t-sm); color: var(--ink-soft); margin-top: 18px !important; }
.hero-links a { color: var(--ink); }
.start { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding-block: 22px; max-width: 46rem; }
.start-label { font-family: var(--f-ui); font-size: var(--t-sm); color: var(--ink-soft); margin: 0 0 6px; }
.start h2 { font-size: var(--t-xl); margin: 0 0 8px; }
.start h2 a { color: var(--ink); text-decoration-color: var(--mark); text-decoration-thickness: 3px; }
.start p { margin: 0; color: var(--ink-soft); }
.section-head a { color: var(--ink-soft); }

/* Lista de artículos tipo blog */
.posts { display: grid; max-width: 46rem; }
.post { padding-block: 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.post:first-child { padding-top: 4px; }
.post-meta { font-family: var(--f-ui); font-size: var(--t-xs); color: var(--ink-soft); }
.post-meta a { color: var(--ink-soft); text-decoration: none; }
.post-meta a:hover { color: var(--link); text-decoration: underline; }
.post h3 { font-size: 1.3rem; margin: 4px 0 6px; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; }
.post p { margin: 0; color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.6; max-width: 62ch; }
.page-head { max-width: 46rem; }

/* Tarjetas de calculadoras */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tool {
  display: grid; gap: 6px; align-content: start; padding: 16px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--valle);
  border-radius: 6px; transition: border-color .15s ease;
}
.tool:nth-child(2) { border-left-color: var(--llano); }
.tool:nth-child(3) { border-left-color: var(--punta); }
.tool:nth-child(4) { border-left-color: var(--mark); }
.tool:nth-child(5) { border-left-color: var(--link); }
.tool:hover { border-color: var(--ink-soft); color: var(--ink); }
.tool strong { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.25; }
.tool span { font-family: var(--f-ui); font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.45; }
.tools-list { max-width: 56rem; }

/* Enlace a calculadora dentro del artículo */
.calc-cta {
  font-family: var(--f-ui); font-size: var(--t-sm); background: color-mix(in srgb, var(--mark) 22%, var(--surface));
  border-radius: 6px; padding: 10px 14px; margin: 0 0 28px;
}
.calc-cta span { color: var(--ink-soft); }
.calc-cta a { font-weight: 600; }

/* Página de calculadora */
.tool-page { max-width: 52rem; padding-block: 12px 48px; }
.tool-head h1 { font-size: var(--t-xxl); margin: 10px 0 10px; font-weight: 800; }
.tool-head .lead { font-size: var(--t-lg); color: var(--ink-soft); line-height: 1.5; margin: 0 0 24px; }
.other-tools { margin-top: 32px; }

.calc { display: grid; gap: 16px; font-family: var(--f-ui); margin-bottom: 40px; }
.calc-group { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 14px 16px 16px; margin: 0; min-width: 0; }
.calc-group legend { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; padding: 0 6px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.calc label { display: grid; gap: 4px; font-size: var(--t-sm); font-weight: 600; color: var(--ink); align-content: start; }
.calc input[type="number"], .calc select, .calc input:not([type]), .offer-name {
  font: 400 var(--t-md) var(--f-ui); padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--ink); width: 100%; min-width: 0;
}
.calc input[type="number"] { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; accent-color: var(--link); }
.calc output { font-family: var(--f-data); font-weight: 400; color: var(--ink-soft); }
.offer-name { font-family: var(--f-display); font-weight: 600; width: auto; max-width: 14rem; padding: 4px 8px; }
.offers { display: grid; gap: 16px; }
.calc-hint { font-size: var(--t-xs); color: var(--ink-soft); margin: 10px 0 0; line-height: 1.5; }
.calc-warn { font-size: var(--t-sm); color: var(--punta); }
.calc-add { margin-bottom: 12px; max-width: 26rem; }
.calc-result { border-top: 3px solid var(--ink); padding-top: 14px; font-size: var(--t-md); }
.calc-result p { margin: 0 0 10px; }
.calc-big { font-size: 1.2rem; line-height: 1.45; }
.calc-big strong { background: linear-gradient(transparent 60%, var(--mark) 60%); }
.calc-table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); }
.calc-table th, .calc-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.calc-table th.n, .calc-table td.n { text-align: right; font-family: var(--f-data); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-table tr.best td { background: color-mix(in srgb, var(--valle) 12%, transparent); }
.calc-table input { padding: 6px 8px !important; font-size: var(--t-sm) !important; }
.calc-table .t-name { min-width: 9rem; }
.calc-table .t-w, .calc-table .t-h, .calc-table .t-d { width: 5.5rem !important; }
.t-del { font: 600 1.1rem var(--f-ui); width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.t-del:hover { color: var(--punta); border-color: var(--punta); }
.pill { display: inline-block; font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--valle); color: #fff; margin-left: 6px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; }
.chk { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px !important; font-weight: 400 !important; padding: 6px 0; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--link); flex: none; }
.chk span { margin-left: auto; font-family: var(--f-data); font-size: var(--t-xs); color: var(--ink-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Menos "plantilla": artículos y cajas más sobrios */
.toc, .callout, .side-block, .author-box { border-radius: 6px; }
.callout { border-left: 3px solid var(--mark); }
.callout .eyebrow { text-transform: none; letter-spacing: 0; font-size: var(--t-sm); color: var(--ink); }
.article-header h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); }
.author-box .avatar { border-radius: 50%; }
.article-header .eyebrow { text-transform: none; letter-spacing: 0; font-size: var(--t-sm); font-weight: 600; color: var(--link); text-decoration: none; }

/* =========================================================
   Versión blanca tipo revista: tarjetas con foto en cuadrícula
   ========================================================= */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft-bg: #f3f6f4;
  --line: #e2e8e5;
  --ink: #17252a;
  --ink-soft: #5b6b6f;
  --link: #0a7a50;
  --link-hover: #075c3c;
  --green: #0a7a50;
  --green-soft: #e6f4ed;
  --on-link: #ffffff;
  --mark: #ffd84d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --soft-bg: #18262a; --green: #4cc28a; --green-soft: #173329; --link: #5fd39d; --link-hover: #8ce3b9; }
}
:root[data-theme="dark"] { --soft-bg: #18262a; --green: #4cc28a; --green-soft: #173329; --link: #5fd39d; --link-hover: #8ce3b9; }

body { font-family: var(--f-ui); }
.prose, .article-header .lead { font-family: var(--f-body); }
.site-header { background: var(--surface); backdrop-filter: none; box-shadow: 0 1px 0 var(--line); border-bottom: 0; }
.nav a { font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--green-soft); color: var(--green); }
.tarifa { background: var(--soft-bg); border-top: 0; }

/* Fotos */
.ph { position: relative; overflow: hidden; background: var(--green-soft); border-radius: 10px; aspect-ratio: 16 / 10; max-width: 100%; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ph.noimg { background: linear-gradient(135deg, var(--green-soft), var(--soft-bg)); }
.article-photo { aspect-ratio: 16 / 9; margin-top: 8px; border-radius: 12px; }

/* Portada */
.home .hero { padding-block: 36px 20px; max-width: none; }
.home .hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); max-width: 22ch; margin: 0 0 8px; }
.home .hero p { font-size: var(--t-lg); color: var(--ink-soft); margin: 0; }
.top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.top-side { display: grid; gap: 24px; align-content: start; }
.top-side .card { grid-template-columns: 42% 1fr; display: grid; gap: 14px; align-items: start; }
.top-side .card .ph { aspect-ratio: 1 / 1; }
.top-side .card h3 { font-size: 1.05rem; }
@media (max-width: 900px) { .top { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .top-side .card { grid-template-columns: 1fr; } .top-side .card .ph { aspect-ratio: 16 / 10; } }

/* Tarjetas de artículo */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-img { display: block; border-radius: 10px; }
.card:hover .ph img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-cat { font-size: var(--t-xs); font-weight: 600; color: var(--green); text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.card h3 { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.3; margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--green); }
.card p { margin: 0; color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.55; }
.card-meta { font-size: var(--t-xs); color: var(--ink-soft); }
.card-big h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.card-big .ph { aspect-ratio: 16 / 9; }

/* Calculadoras con foto */
.tools { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.tool { padding: 0; border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 12px; overflow: hidden; gap: 0; background: var(--surface); }
.tool:nth-child(n) { border-left-color: var(--line); }
.tool:hover { border-color: var(--green); box-shadow: 0 6px 20px rgba(10, 60, 40, .08); }
.tool .ph { border-radius: 0; aspect-ratio: 16 / 9; }
.tool-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.tool strong { color: var(--ink); }

/* Temas */
.temas h2 { font-size: var(--t-xl); margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { padding: 10px 16px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 600; text-decoration: none; }
.chips a:hover { background: var(--green); color: var(--on-link); }

.section-head a { color: var(--green); font-weight: 600; }
.page-head { max-width: none; }
.btn { background: var(--green); border-color: var(--green); }
.btn:hover { background: var(--link-hover); border-color: var(--link-hover); }
.calc-cta { background: var(--green-soft); }
.calc-result { border-top-color: var(--green); }
.site-footer { background: var(--soft-bg); border-top: 0; }
.toc, .side-block, .author-box, .callout, .calc-group { background: var(--soft-bg); border-color: transparent; }
.calc input[type="number"], .calc select, .calc input:not([type]), .offer-name { background: var(--surface); border-color: var(--line); }
.avatar { background: var(--green); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft-bg); color: var(--ink); border-color: var(--ink-soft); }

/* =========================================================
   Estructura tipo portal: cabecera con botón, portada con pasos,
   ejemplos, temas, preguntas y pie en columnas
   ========================================================= */
.nav { align-items: center; }
.nav a.nav-cta { background: var(--green); color: var(--on-link); margin-left: 8px; padding: 9px 16px; }
.nav a.nav-cta:hover { background: var(--link-hover); color: var(--on-link); }
@media (max-width: 1120px) {
  .menu-btn { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter-r) 16px var(--gutter-l); box-shadow: 0 10px 20px rgba(0,0,0,.06);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

.btn-lg { padding: 14px 24px; font-size: 1rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: var(--t-sm); color: var(--ink-soft); }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.ticks-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }

/* Portada */
.hero2 { background: linear-gradient(180deg, var(--green-soft), var(--bg)); }
.hero2-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-block: 48px 40px; }
.hero2-eyebrow { font-size: var(--t-sm); font-weight: 600; color: var(--green); margin: 0 0 10px; }
.hero2 h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); font-weight: 800; margin: 0 0 14px; line-height: 1.08; }
.hero2 h1 mark { background: none; color: var(--green); }
.hero2-sub { font-size: var(--t-lg); color: var(--ink-soft); margin: 0 0 22px; line-height: 1.5; max-width: 34ch; }
.hero2-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero2-img .ph { aspect-ratio: 4 / 3; border-radius: 18px; box-shadow: 0 20px 40px rgba(10, 60, 40, .12); }
@media (max-width: 860px) { .hero2-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 32px 24px; } }

.home .section { padding-block: 40px 8px; }
.section-head h2, .steps-sec h2, .faq-home h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0; }

.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .topics { grid-template-columns: 1fr; } }
.topic { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--surface); transition: box-shadow .2s ease, border-color .2s ease; }
.topic:hover { border-color: var(--green); box-shadow: 0 8px 24px rgba(10, 60, 40, .08); color: var(--ink); }
.topic .ph { border-radius: 0; aspect-ratio: 16 / 10; }
.topic-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.topic-body strong { font-family: var(--f-display); font-size: 1.15rem; }
.topic-body span { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.5; }
.topic-body em { font-style: normal; font-weight: 600; color: var(--green); font-size: var(--t-sm); }

.steps-sec h2 { margin-bottom: 20px; }
.steps3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } }
.steps3 li { background: var(--soft-bg); border-radius: 14px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.step-n { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--on-link); display: grid; place-items: center; font: 800 1.1rem var(--f-display); }
.steps3 strong { font-family: var(--f-display); font-size: 1.15rem; }
.steps3 p { margin: 0; color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.55; }

.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .examples { grid-template-columns: 1fr; } }
.example { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 6px; }
.ex-label { font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft); }
.ex-num { font-family: var(--f-display); font-size: 2rem; color: var(--green); font-variant-numeric: tabular-nums; }
.example p { margin: 0; font-size: var(--t-sm); color: var(--ink-soft); }
.ex-note { font-size: var(--t-xs); color: var(--ink-soft); margin-top: 12px; }

.faq-home .faq { max-width: 52rem; margin-top: 12px; }
.faq-home summary { font-family: var(--f-display); }

/* Resumen arriba del artículo */
.quick { background: var(--green-soft); border-radius: 12px; padding: 16px 20px; margin: 0 0 24px; font-family: var(--f-ui); }
.quick strong { display: block; color: var(--green); margin-bottom: 4px; font-size: var(--t-sm); }
.quick p { margin: 0 !important; font-size: var(--t-md); line-height: 1.55; }

/* Llamada final y pie */
.pre-footer { background: var(--green); color: var(--on-link); margin-top: 56px; }
.pre-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 36px; }
.pre-footer h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0 0 6px; color: var(--on-link); }
.pre-footer p { margin: 0; opacity: .9; max-width: 50ch; }
.pre-footer-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pre-footer .btn { background: var(--on-link); color: var(--green); border-color: var(--on-link); }
.pre-footer .btn-ghost { background: transparent; color: var(--on-link); border-color: color-mix(in srgb, var(--on-link) 60%, transparent); }
.site-footer { margin-top: 0; }
.site-footer .wrap { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand p { margin: 10px 0 12px !important; }
.site-footer .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--line); padding-top: 18px; font-size: var(--t-xs); color: var(--ink-soft); }
.site-footer .legal .linkbtn { font-size: inherit; }

/* =========================================================
   Más ancho y más denso: columnas, barra lateral y carruseles
   ========================================================= */
:root { --wrap: 1280px; }
.with-rail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
@media (max-width: 1020px) { .with-rail { grid-template-columns: 1fr; } }
.rail { display: grid; gap: 18px; position: sticky; top: 130px; padding-top: 40px; }
@media (max-width: 1020px) { .rail { position: static; padding-top: 8px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.widget { background: var(--soft-bg); border-radius: 14px; padding: 18px; font-size: var(--t-sm); min-width: 0; }
.widget h2 { font-family: var(--f-display); font-size: 1.05rem; margin: 0 0 12px; }
.w-now { background: var(--ink); color: #fff; }
.w-now h2 { color: #fff; }
.now-big { display: flex; align-items: center; gap: 10px; font: 700 1.25rem var(--f-display); }
.now-big .dot { width: 14px; height: 14px; }
.now-sub { margin: 8px 0 12px; opacity: .85; line-height: 1.45; }
.rail-bar { height: 12px; flex: none; display: grid; }
.rail-bar span { opacity: .55; }
.rail-bar span.now { outline-color: #fff; }
.now-legend { display: flex; gap: 14px; margin-top: 10px; font-size: var(--t-xs); opacity: .85; }
.now-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.now-legend i[data-p="valle"] { background: var(--valle); }
.now-legend i[data-p="llano"] { background: var(--llano); }
.now-legend i[data-p="punta"] { background: var(--punta); }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-grid label { display: grid; gap: 4px; font-weight: 600; font-size: var(--t-xs); }
.mini-grid input { font: 400 var(--t-sm) var(--f-data); padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); width: 100%; min-width: 0; }
.mini-out { margin: 12px 0 8px; font-size: var(--t-md); }
.mini-out strong { font-family: var(--f-display); font-size: 1.4rem; color: var(--green); }
.mini-link { font-weight: 600; color: var(--green); text-decoration: none; }
.numbered { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.numbered li::marker { font-family: var(--f-display); font-weight: 800; color: var(--green); }
.numbered a, .plain a { color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; }
.numbered a:hover, .plain a:hover { color: var(--green); }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* Cuadrículas más densas */
.cards-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1200px) { .cards-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1020px) { .cards-main { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cards, .cards-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } }
@media (max-width: 380px) { .cards, .cards-main { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .card h3 { font-size: 1rem; }
  .card-cat { font-size: .68rem; }
  .card-meta { display: none; }
}
@media (max-width: 960px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 480px) {
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-body span { display: none; }
  .topic-body { padding: 12px; }
  .topic-body strong { font-size: 1rem; }
}

/* Calculadoras: carrusel horizontal en pantallas estrechas */
.tools { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .home .tools { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding-inline: var(--gutter-l) var(--gutter-r); }
  .home .tools .tool { flex: 0 0 min(250px, 70%); scroll-snap-align: start; }
}
.tools-list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Ejemplos y pasos en fila también en móvil */
@media (max-width: 760px) {
  .examples { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .example { padding: 12px; }
  .ex-num { font-size: 1.25rem; }
  .example p { font-size: var(--t-xs); }
}
@media (max-width: 760px) and (min-width: 520px) { .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .steps3 li { padding: 14px; } }

/* Preguntas y llamada en dos columnas */
.faq-home { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; }
.faq-home .faq { margin-top: 0; max-width: none; }
@media (max-width: 860px) { .faq-home { grid-template-columns: 1fr; gap: 12px; } }

/* =========================================================
   Cabecera de color y portada centrada sobre foto
   ========================================================= */
.site-header { background: var(--green); box-shadow: none; }
body::before { background: var(--green); }
.site-header .logo { color: #fff; }
.site-header .logo svg rect { fill: #fff; }
.site-header .logo svg path { fill: var(--green); }
.nav a { color: #fff; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.15); color: #fff; }
.nav a.nav-cta { background: var(--mark); color: #17252a; }
.nav a.nav-cta:hover { background: #ffe680; color: #17252a; }
.menu-btn { color: #fff; border-color: rgba(255,255,255,.5); }
@media (max-width: 1120px) { .nav { background: var(--green); } }
.tarifa { background: var(--soft-bg); }

.hero3 { position: relative; overflow: hidden; color: #fff; text-align: center; background: #0d5a3c; }
.hero3-bg { position: absolute; inset: 0; }
.hero3-bg .ph { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; background: #0d5a3c; }
.hero3-bg .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero3::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 70, 45, .78), rgba(6, 60, 40, .86)); }
.hero3-in { position: relative; z-index: 1; padding-block: 72px 64px; display: grid; justify-items: center; }
.hero3 h1 { font-size: clamp(2.2rem, 1.3rem + 4vw, 4.2rem); font-weight: 800; line-height: 1.05; margin: 0 0 18px; max-width: 18ch; color: #fff; }
.hero3-sub { font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); max-width: 44ch; margin: 0 0 28px; opacity: .95; line-height: 1.5; }
.hero3-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-yellow { background: var(--mark); border-color: var(--mark); color: #17252a; font-weight: 800; }
.btn-yellow:hover { background: #ffe680; border-color: #ffe680; color: #17252a; }
.btn-white { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-white:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.ticks-light { justify-content: center; color: rgba(255,255,255,.92); margin-top: 22px; }
.ticks-light li::before { border-color: var(--mark); }

.intro-center { text-align: center; padding-block: 48px 0; }
.intro-center h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); color: var(--green); margin: 0 0 12px; }
.intro-center p { max-width: 60ch; margin: 0 auto; color: var(--ink-soft); font-size: var(--t-lg); line-height: 1.55; }

/* Títulos de sección centrados */
.home > .section > .section-head, .home .steps-sec h2, .home > .section > h2 { justify-content: center; text-align: center; }
.home > .section > .section-head { flex-direction: column; align-items: center; gap: 6px; }
.home .steps-sec h2 { display: block; }
.home .section-head h2, .home .steps-sec h2 { color: var(--ink); }
.home .ex-note { text-align: center; }
