/*
Theme Name: eleksa24h
Theme URI: https://eleksa24h.com/
Author: eleksa24h
Description: Tema a medida de eleksa24h, electricistas 24 horas en el País Vasco: averías del hogar, reformas, mantenimiento y siniestros para aseguradoras. Al activarlo crea las páginas de la web.
Version: 1.0.3
Requires at least: 6.4
Requires PHP: 7.4
License: Todos los derechos reservados
Text Domain: eleksa24h
*/

/* Layout: la web como un cuadro eléctrico de vivienda. Fondo de plástico gris claro, módulos blancos,
   bandas oscuras de tinta y un único naranja: el de la palanca que ha saltado. */
:root {
  --bg: #F3F4F0;
  --surface: #FFFFFF;
  --surface-2: #E8EAE4;
  --ink: #14161F;
  --muted: #4F5562;
  --line: #D5D8D0;
  --accent: #FF5A1F;
  --accent-hover: #FF7140;
  --on-accent: #14161F;
  --accent-text: #C2410C;
  --band: #14161F;
  --band-ink: #F3F4F0;
  --band-muted: #AEB3BC;
  --band-line: #2C303A;
  --ok: #1E8E4E;
  --panel: #E2E5DE;
  --panel-edge: #C6CAC0;
  --module: #FBFBF8;
  --module-edge: #C3C7BD;
  --slot: #262932;
  --lever: #F2F2EE;
  --ph-bg: #FFE7DC;
  --ph-ink: #8A2A06;
  --shadow: rgba(20, 22, 31, 0.28);
  --wa: #157A43;
  --wa-hover: #13703D;
  --on-wa: #FFFFFF;

  --font-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-3: clamp(1.75rem, 1.2rem + 2vw, 2.375rem);
  --step-4: clamp(2.125rem, 1.25rem + 3.6vw, 3.5rem);
  --radius: 10px;
  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1115;
    --surface: #171A20;
    --surface-2: #1E2229;
    --ink: #ECEDE8;
    --muted: #A4A9B3;
    --line: #2A2F38;
    --accent: #FF6A33;
    --accent-hover: #FF8352;
    --on-accent: #14161F;
    --accent-text: #FF8F66;
    --band: #191C23;
    --band-ink: #ECEDE8;
    --band-muted: #A4A9B3;
    --band-line: #2E333D;
    --ok: #3CCB7F;
    --panel: #22262E;
    --panel-edge: #343944;
    --module: #2B3039;
    --module-edge: #3E4451;
    --slot: #0C0E11;
    --lever: #D8DAD3;
    --ph-bg: #3A1D10;
    --ph-ink: #FFB896;
    --shadow: rgba(0, 0, 0, 0.55);
    --wa: #3CCB7F;
    --wa-hover: #5AD894;
    --on-wa: #14161F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1115;
  --surface: #171A20;
  --surface-2: #1E2229;
  --ink: #ECEDE8;
  --muted: #A4A9B3;
  --line: #2A2F38;
  --accent: #FF6A33;
  --accent-hover: #FF8352;
  --on-accent: #14161F;
  --accent-text: #FF8F66;
  --band: #191C23;
  --band-ink: #ECEDE8;
  --band-muted: #A4A9B3;
  --band-line: #2E333D;
  --ok: #3CCB7F;
  --panel: #22262E;
  --panel-edge: #343944;
  --module: #2B3039;
  --module-edge: #3E4451;
  --slot: #0C0E11;
  --lever: #D8DAD3;
  --ph-bg: #3A1D10;
  --ph-ink: #FFB896;
  --shadow: rgba(0, 0, 0, 0.55);
  --wa: #3CCB7F;
  --wa-hover: #5AD894;
  --on-wa: #14161F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: inherit;
}
p { margin: 0; }
a { color: inherit; }
svg { display: block; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 6px;
}
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }
.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  border-radius: 4px;
  padding: 0 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 54ch; }
.small { font-size: 0.9375rem; color: var(--muted); }
.icon { width: 24px; height: 24px; flex: none; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.7em 1.2em;
  border-radius: 8px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-ink { background: var(--on-accent); color: var(--band-ink); }
.btn-ink:hover { background: #2A2E38; }
.btn-outline-ink { border-color: var(--on-accent); color: var(--on-accent); background: transparent; }
.btn-outline-ink:hover { background: var(--on-accent); color: var(--band-ink); }
.btn-lg { min-height: 56px; font-size: 1.0625rem; padding-inline: 1.4em; }
.btn-wa { background: var(--wa); color: var(--on-wa); }
.btn-wa:hover { background: var(--wa-hover); }
.wa-float {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 54;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--wa);
  color: var(--on-wa);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px var(--shadow);
}
.wa-float:hover { background: var(--wa-hover); }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 760px) { .wa-float { display: none; } }
@media (max-width: 480px) { .topbar .tb-aseg { display: none; } }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link svg { width: 18px; height: 18px; transition: transform 0.15s; }
.text-link:hover svg { transform: translateX(3px); }

/* Barra superior */
.topbar { background: var(--band); color: var(--band-ink); font-size: 0.875rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar p { display: flex; align-items: center; gap: 8px; }
.topbar-links { gap: 22px !important; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: var(--band-ink); font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .topbar-note { display: none !important; }
  .topbar .wrap { justify-content: center; }
}

/* Cabecera */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: inline-flex; flex: none; color: var(--ink); border-radius: 4px; }
.brand .logo { height: 32px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a {
  display: block;
  padding: 10px 13px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.96875rem;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header-call { flex: none; }
.menu-toggle {
  display: none;
  flex: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }
@media (max-width: 1040px) {
  .menu-toggle { display: inline-flex; }
  .header-call { margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding-block: 4px 16px;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px var(--shadow);
  }
  .site-header.is-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--ink); }
  .nav a:hover, .nav a[aria-current="page"] { background: transparent; color: var(--accent-text); }
}
@media (max-width: 460px) {
  .brand .logo { height: 26px; }
  .header-call { padding-inline: 0.9em; }
  .header-call .btn-text-long { display: none; }
}

/* Portada */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(48px, 6vw, 88px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent);
  flex: none;
}
.topbar .status-dot { width: 8px; height: 8px; box-shadow: none; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9375rem; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; }
.hero-media { position: relative; margin: 0; min-width: 0; }
.hero-media img, .media img, .page-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
}
.hero-badge {
  position: absolute;
  left: clamp(12px, 3vw, 24px);
  bottom: clamp(12px, 3vw, 24px);
  max-width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 14px 28px -14px var(--shadow);
}
.badge-num {
  flex: none;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1;
}
.badge-text { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
@media (max-width: 600px) {
  .hero-badge { position: static; max-width: none; margin-top: 12px; border: 1px solid var(--line); box-shadow: none; }
}

/* Franja de confianza */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-list li { display: flex; gap: 14px; align-items: flex-start; padding: 24px 22px; border-left: 1px solid var(--line); min-width: 0; }
.trust-list li:first-child { border-left: 0; padding-left: 0; }
.trust-list svg { width: 28px; height: 28px; flex: none; color: var(--accent-text); }
.trust-list strong { display: block; font-family: var(--font-display); font-size: 1rem; line-height: 1.3; }
.trust-list span { display: block; font-size: 0.90625rem; color: var(--muted); }
@media (max-width: 960px) {
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list li { border-left: 0; padding-left: 0; }
}
@media (max-width: 540px) {
  .trust-list { grid-template-columns: minmax(0, 1fr); }
  .trust-list li { padding-block: 16px; border-top: 1px solid var(--line); }
  .trust-list li:first-child { border-top: 0; }
}

/* Cuadro eléctrico interactivo */
.panel {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  padding: clamp(14px, 3vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 28px 48px -34px var(--shadow);
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-state { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.home-state i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transition: background-color 0.2s; }
.panel[data-state="on"] .home-state i { background: var(--ok); }
.rail, .rail-labels { display: grid; grid-template-columns: 1.6fr 1.6fr 1fr 1fr 1fr; gap: 3px; }
.rail { position: relative; }
.rail::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: 50%;
  height: 22px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, var(--panel-edge) 0 10px, var(--module-edge) 10px 12px);
  border-radius: 2px;
}
.mod {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 4px 12px;
  background: var(--module);
  border: 1px solid var(--module-edge);
  border-radius: 5px;
}
.mod-top, .mod-rate { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; line-height: 1; }
.mod-top { display: flex; align-items: center; gap: 5px; min-height: 15px; color: var(--muted); }
.mod-rate { color: var(--ink); }
.test {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--module-edge);
  font-size: 0.5625rem;
  color: var(--muted);
}
.slot { position: relative; display: block; width: 60%; max-width: 30px; height: 74px; padding: 0; border: 0; border-radius: 6px; background: var(--slot); }
.mod-2 .slot { max-width: 60px; }
button.slot { cursor: pointer; }
.lever {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 4px;
  height: 30px;
  border-radius: 4px;
  background: var(--lever);
  transition: top 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.3), background-color 0.2s;
}
.mod-id .lever { top: calc(100% - 34px); background: var(--accent); }
.panel:not([data-touched]) .mod-id .lever { animation: trip 0.5s 0.6s cubic-bezier(0.5, 0, 0.6, 1.4) both; }
.panel[data-state="on"] .mod-id .lever { top: 4px; background: var(--lever); }
.mod-id button.slot:hover .lever { filter: brightness(1.08); }
.panel.shake { animation: shake 0.36s ease-in-out; }
.rail-labels span {
  min-width: 0;
  padding: 5px 2px;
  border-radius: 3px;
  background: var(--module);
  border: 1px solid var(--module-edge);
  text-align: center;
  font-size: clamp(0.625rem, 2.7vw, 0.75rem);
  font-weight: 600;
  line-height: 1.2;
}
.panel-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--panel-edge);
  font-size: 0.9375rem;
  line-height: 1.45;
  min-height: 3.6em;
}
.panel-msg svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--accent-text); }
@keyframes trip {
  from { top: 4px; background: var(--lever); }
  70% { top: calc(100% - 30px); }
  to { top: calc(100% - 34px); background: var(--accent); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

/* Secciones */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 48rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: var(--step-3); font-weight: 800; }
.section-head p { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.section-foot { margin-top: clamp(24px, 4vw, 36px); }

/* Tarjetas */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1040px) { .cards, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards, .cards-3, .cards-2 { grid-template-columns: minmax(0, 1fr); } }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  transition: border-color 0.15s;
}
.section-alt .card { background: var(--bg); }
.card:has(.card-link):hover { border-color: var(--ink); }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.card-link { color: inherit; text-decoration: none; }
.card-link:focus-visible { outline: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  margin-bottom: 4px;
}
.section-alt .card-icon { background: var(--surface); border: 1px solid var(--line); }
.card-icon svg { width: 24px; height: 24px; }
.card h3, .card-title { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; }
.card p { font-size: 0.96875rem; line-height: 1.55; color: var(--muted); }
.card-more {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--accent-text);
}
.card-more svg { width: 18px; height: 18px; transition: transform 0.15s; }
.card:hover .card-more svg { transform: translateX(3px); }
.card-media { padding: 0; overflow: hidden; }
.card-media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }

/* Bloques de imagen y texto */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split-reverse > :first-child { order: 2; }
@media (max-width: 920px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-reverse > :first-child { order: 0; }
}
.solo-texto .split-copy { max-width: 48rem; }
.split-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-width: 0; }
.split-copy h2 { font-size: var(--step-3); font-weight: 800; }
.split-copy p { color: var(--muted); font-size: 1.0625rem; max-width: 60ch; }
.media { margin: 0; min-width: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent-text); }

/* Pasos */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.steps::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; background: var(--line); }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step-num {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9375rem;
}
.section-alt .step-num { background: var(--surface); }
.step h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.step p { font-size: 0.96875rem; color: var(--muted); }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.note, .callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}
.note { margin-top: clamp(28px, 4vw, 40px); max-width: 48rem; }
.note svg, .callout svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--ink); }
.callout { background: var(--surface); color: var(--ink); font-size: 1rem; }
.callout-warn { border-color: var(--accent); }
.callout-warn svg { color: var(--accent-text); }

/* Bandas oscuras */
.band { background: var(--band); color: var(--band-ink); }
.band .eyebrow { color: var(--band-muted); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 920px) { .band-grid { grid-template-columns: minmax(0, 1fr); } }
.band-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-width: 0; }
.band-copy h2 { font-size: var(--step-3); font-weight: 800; }
.band-copy p { color: var(--band-muted); font-size: 1.0625rem; max-width: 54ch; }
.band .media img { border: 1px solid var(--band-line); }
.checks-row {
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 960px) { .checks-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .checks-row { grid-template-columns: minmax(0, 1fr); } }
.checks-row li { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--band-line); min-width: 0; }
.checks-row svg { width: 24px; height: 24px; color: var(--accent); }
.checks-row strong { font-family: var(--font-display); font-size: 1.0625rem; color: var(--band-ink); }
.checks-row span { font-size: 0.96875rem; color: var(--band-muted); }
.section-alt .checks-row li, .checks-light li { border-top-color: var(--line); }
.checks-light svg { color: var(--accent-text); }
.checks-light strong { color: var(--ink); }
.checks-light span { color: var(--muted); }

/* Zona */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; }
.section-alt .chips li { background: var(--bg); }
.zona-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Preguntas frecuentes */
.faq { display: flex; flex-direction: column; max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor 0 0) center / 14px 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 2px 14px no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.answer { display: flex; flex-direction: column; gap: 10px; max-width: 65ch; padding-bottom: 22px; color: var(--muted); }

/* Páginas interiores */
.page-hero { padding-block: clamp(24px, 4vw, 36px) clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.page-hero-grid.no-media { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 920px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } }
.page-hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.125rem); font-weight: 800; letter-spacing: -0.03em; }
.page-hero-media { margin: 0; min-width: 0; }
.breadcrumb { margin-bottom: clamp(20px, 3vw, 32px); font-size: 0.875rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .article-grid { grid-template-columns: minmax(0, 1fr); } }
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 70ch; min-width: 0; }
.prose h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); font-weight: 800; }
.prose h2:not(:first-child) { margin-top: 24px; }
.prose h3 { font-size: 1.125rem; font-weight: 700; margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 10px; }
.prose li::marker { color: var(--accent-text); font-weight: 700; }
.prose ol li::marker { font-family: var(--font-mono); }
.prose li { padding-left: 4px; }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose .faq { margin-top: 4px; }
.dl-terms { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 14px 20px; margin: 0; }
.dl-terms dt { align-self: start; padding: 3px 10px; border-radius: 6px; background: var(--surface-2); font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem; }
.dl-terms dd { margin: 0; }
@media (max-width: 480px) { .dl-terms { grid-template-columns: minmax(0, 1fr); gap: 6px 0; } .dl-terms dd { margin-bottom: 10px; } }
.sidebar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 100px); min-width: 0; }
@media (max-width: 960px) { .sidebar { position: static; } }
.side-card { display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: 14px; background: var(--band); color: var(--band-ink); }
.side-card .eyebrow { color: var(--band-muted); }
.side-title { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.2; }
.side-card .btn { width: 100%; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.9375rem; color: var(--band-muted); }
.side-list li { display: flex; gap: 8px; align-items: center; }
.side-list svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.side-link { display: inline-flex; align-items: center; gap: 6px; color: var(--band-ink); font-weight: 600; text-underline-offset: 3px; }
.side-link svg { width: 18px; height: 18px; }
.photo-slot {
  margin: 0;
  aspect-ratio: 3 / 2;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--muted);
  text-align: center;
}
.photo-slot svg { width: 40px; height: 40px; }
.photo-slot strong { font-family: var(--font-display); color: var(--ink); font-size: 1.125rem; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.facts-grid div { padding-block: 14px; border-top: 1px solid var(--line); min-width: 0; }
.facts-grid dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.facts-grid dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts-grid { grid-template-columns: minmax(0, 1fr); } }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--ph-bg); color: var(--ph-ink); font-size: 0.9375rem; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.call-card { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 4vw, 36px); border-radius: 14px; background: var(--band); color: var(--band-ink); min-width: 0; }
.call-card .eyebrow { color: var(--band-muted); }
.big-phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--band-ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.call-card dl { margin: 0; display: grid; gap: 14px; }
.call-card dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--band-muted); }
.call-card dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 4vw, 32px);
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }
.form-title { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.optional { font-weight: 400; color: var(--muted); }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.form textarea { min-height: 112px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.form .btn { justify-self: start; }
.form-status { padding: 12px 14px; border-radius: 8px; background: var(--ph-bg); color: var(--ph-ink); font-size: 0.9375rem; }
.form-status { background: var(--surface-2); color: var(--ink); }
.form-status.is-ok { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); border: 1px solid var(--ok); }
.form-status.is-error { background: var(--ph-bg); color: var(--ph-ink); border: 1px solid var(--accent); }
.form-status:focus { outline: none; }
.form button[disabled] { opacity: 0.7; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.link-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.link-list a { font-weight: 600; font-size: 0.9375rem; color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link-list a:hover { color: var(--accent-text); }

/* Llamada a la acción */
.cta-band { background: var(--accent); color: var(--on-accent); }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; padding-block: clamp(40px, 6vw, 64px); }
.cta-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 40rem; }
.cta-copy h2 { font-size: var(--step-3); font-weight: 800; }
.cta-copy p { font-size: 1.0625rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pie */
.site-footer { background: var(--band); color: var(--band-ink); padding-top: clamp(48px, 6vw, 72px); }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px 48px; padding-bottom: 44px; }
@media (max-width: 960px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: minmax(0, 1fr); } }
.footer-brand { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.footer-brand .logo { height: 30px; width: auto; align-self: flex-start; color: var(--band-ink); }
.footer-brand p, .nap { color: var(--band-muted); font-size: 0.9375rem; line-height: 1.65; font-style: normal; max-width: 40ch; }
.nap a { color: inherit; }
.footer-col { min-width: 0; }
.footer-title { margin-bottom: 14px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--band-muted); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--band-ink); font-size: 0.9375rem; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.footer-col p { color: var(--band-muted); font-size: 0.9375rem; }
.footer-phone { display: inline-block; margin-bottom: 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem !important; overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 20px; border-top: 1px solid var(--band-line); }
.copy { font-size: 0.875rem; color: var(--band-muted); }
.legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.875rem; }
.legal a { color: var(--band-muted); text-underline-offset: 3px; }
.legal a:hover { color: var(--band-ink); }

/* Barra de llamada en móvil */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .callbar { gap: 10px; }
  .callbar .btn { flex: 1; padding-inline: 0.8em; }
  .site-footer { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- WordPress ---------- */
.admin-bar .site-header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prose > * { margin-block: 0; }
.prose .wp-block-details { border-top: 1px solid var(--line); }
.prose .wp-block-details:not(:has(+ .wp-block-details)) { border-bottom: 1px solid var(--line); }
.prose .wp-block-details + .wp-block-details { margin-top: -16px; }
.prose .wp-block-details summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 20px; list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.3;
}
.prose .wp-block-details summary::-webkit-details-marker { display: none; }
.prose .wp-block-details summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor 0 0) center / 14px 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 14px no-repeat;
  transition: transform 0.2s;
}
.prose .wp-block-details[open] summary::after { transform: rotate(45deg); }
.prose .wp-block-details > :not(summary) { margin: 0 0 12px; color: var(--muted); max-width: 65ch; }
.prose .wp-block-details > :last-child { padding-bottom: 10px; }
.prose p.callout, .prose p.notice { display: flex; gap: 12px; align-items: flex-start; }
.prose p.callout::before, .prose p.notice::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; background: currentColor;
  -webkit-mask: var(--icono-info) center / contain no-repeat; mask: var(--icono-info) center / contain no-repeat;
}
.prose p.callout-warn::before { background: var(--accent-text); }
:root { --icono-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E"); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.nav-links .current { background: var(--ink); color: var(--bg); }
