/* ══════════════════════════════════════════════════════════════
   Actividades de Limpieza — Design System v4
   Oscuro refinado · Editorial · Málaga
   ══════════════════════════════════════════════════════════════ */

:root {
  /* ── Fondo y superficies (ink cálido, nunca azul-negro) ── */
  --bg: #0d0f0c;
  --bg-elevated: #121411;
  --surface: #171a16;
  --surface-2: #1d211b;
  --border: rgba(244, 242, 235, 0.08);
  --border-strong: rgba(244, 242, 235, 0.16);

  /* ── Texto ── */
  --text: #f2f0e9;
  --text-2: #a8a79c;
  --text-3: #75746a;

  /* ── Acento esmeralda (uso contenido) ── */
  --accent: #3ddc97;
  --accent-text: #4ade80;
  --accent-strong: #17a568;
  --accent-strong-hover: #1cbb77;
  --accent-soft: rgba(61, 220, 151, 0.1);
  --accent-line: rgba(61, 220, 151, 0.28);

  /* ── WhatsApp (reconocible, se usa tal cual) ── */
  --wa: #25d366;
  --wa-hover: #1fbc5c;

  /* ── Tipografía ── */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ── Radios ── */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 999px;

  /* ── Curvas de easing (nada de defaults flojos) ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-press: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Sombras ── */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 8px 24px -6px rgba(23, 165, 104, 0.45);

  /* ── Medidas ── */
  --nav-h: 72px;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
}

/* ═══════════════ Reset y base ═══════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #06281a; }

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }

.section { padding-block: var(--section-pad); position: relative; }
.section-tight { padding-block: calc(var(--section-pad) * 0.6); }
.section-alt { background: var(--bg-elevated); border-block: 1px solid var(--border); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ═══════════════ Tipografía de sección ═══════════════ */

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-weight: 520;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--accent-text);
}
.display strong { font-weight: 620; }

.lede {
  color: var(--text-2);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  max-width: 60ch;
  margin-top: 1.25rem;
}

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

/* ═══════════════ Botones ═══════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease,
              border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent-strong); color: #06130c;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { background: var(--accent-strong-hover); }
.btn-primary:active { box-shadow: none; }

.btn-wa { background: var(--wa); color: #05190d; }
.btn-wa:hover { background: var(--wa-hover); }

.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent-text); }

.btn-ink {
  background: #f2f0e9; color: #10130e;
}
.btn-ink:hover { background: #ffffff; }

.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* ═══════════════ Chips y etiquetas ═══════════════ */

.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-text);
  font-size: 0.8rem; font-weight: 700;
}
.chip svg { width: 14px; height: 14px; }
.chip--neutral {
  background: rgba(244, 242, 235, 0.05);
  border-color: var(--border);
  color: var(--text-2);
}
.chip--wa { background: rgba(37, 211, 102, 0.1); border-color: rgba(37, 211, 102, 0.3); color: var(--wa); }

/* ═══════════════ Topbar (NAP visible) ═══════════════ */

.topbar {
  display: none;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-2);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.5rem 0;
}
.topbar a { color: var(--text-2); text-decoration: none; transition: color 150ms ease; }
.topbar a:hover { color: var(--text); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.4rem; }
.topbar-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar-item svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.topbar-right .topbar-item:last-child { color: var(--text); font-weight: 600; }
.topbar-right .topbar-item:last-child svg { color: var(--wa); }

@media (min-width: 900px) { .topbar { display: block; } }

/* ═══════════════ Navegación ═══════════════ */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 15, 12, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(13, 15, 12, 0.94); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--nav-h);
}

.nav-logo {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-width: 0; /* permite que el logo se encoja antes que el burger en móvil */
  text-decoration: none; font-weight: 800; font-size: 1.02rem; letter-spacing: -0.02em;
}
.nav-logo img { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.nav-logo .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-strong); color: #06130c;
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
}
.nav-logo .logo-word { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.nav-logo .logo-word b { font-size: 0.95rem; letter-spacing: -0.01em; }
.nav-logo .logo-word span { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }
/* Solo en el header: si el logo se aprieta, recorta con puntos suspensivos
   en vez de desbordar (el footer reutiliza .nav-logo y sí puede envolver). */
.nav .nav-logo .logo-word b,
.nav .nav-logo .logo-word span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-links { display: none; align-items: center; gap: 0.2rem; }
.nav-links a {
  padding: 0.5rem 0.85rem; border-radius: var(--r-sm);
  font-size: 0.92rem; font-weight: 600; color: var(--text-2);
  text-decoration: none; transition: color 150ms ease, background-color 150ms ease;
}
.nav-links a:hover { color: var(--text); background: rgba(244, 242, 235, 0.05); }
.nav-links a[aria-current="page"] { color: var(--accent-text); }

.nav-right { display: flex; align-items: center; gap: 0.9rem; }
.nav-tel {
  display: none; align-items: center; gap: 0.5rem;
  font-weight: 800; font-size: 0.95rem; text-decoration: none;
  padding: 0.5rem 0.25rem;
}
.nav-tel svg { width: 16px; height: 16px; color: var(--wa); }
.nav-cta { padding: 0.68rem 1.35rem; font-size: 0.9rem; }

.nav-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid var(--border-strong); cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 150ms ease;
}
.nav-burger:active { transform: scale(0.94); }
.nav-burger svg { width: 20px; height: 20px; }
.nav-burger svg:last-child { display: none; } /* la X solo se muestra al abrir */
.nav-burger[aria-expanded="true"] svg:first-child { display: none; }
.nav-burger[aria-expanded="true"] svg:last-child { display: block; }

@media (min-width: 768px) {
  .nav-burger { display: none; }
  .nav-tel { display: inline-flex; }
}
@media (min-width: 1060px) { .nav-links { display: flex; } }

/* Nav compacta en móvil: el CTA vive en la barra fija y en el menú,
   así el logo y el burger (menú móvil) caben en pantallas pequeñas. */
@media (max-width: 480px) {
  .nav-inner { gap: 0.75rem; }
  .nav-cta { display: none; }
  .nav-logo .logo-word span { display: none; }
  .nav-logo .logo-word b { font-size: 0.9rem; }
}

/* Menú móvil — panel deslizante */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  padding: calc(var(--nav-h) + 24px) clamp(1.25rem, 5vw, 2rem) 2rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 220ms;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a {
  padding: 0.9rem 0.5rem; border-bottom: 1px solid var(--border);
  font-size: 1.15rem; font-weight: 700; text-decoration: none;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text);
}
.mobile-menu a small { font-size: 0.7rem; color: var(--text-3); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.mobile-menu .menu-ctas { display: grid; gap: 0.7rem; margin-top: 1.4rem; }

/* ═══════════════ Hero ═══════════════ */

.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5.5rem) 0 0; }

.hero-glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: min(1100px, 120vw); height: 700px;
  background: radial-gradient(ellipse 60% 55% at 50% 30%, rgba(61, 220, 151, 0.09), transparent 70%);
  pointer-events: none;
}
.hero-grid-line {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid; gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.6rem; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 520;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent-text); }

.hero-sub {
  color: var(--text-2); font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  max-width: 52ch; margin-top: 1.5rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }
/* En pantallas muy estrechas los CTAs se apilan a ancho completo y el texto
   puede envolver (los .btn llevan white-space:nowrap por defecto y desbordarían). */
@media (max-width: 360px) {
  .btn { white-space: normal; }
  .hero-ctas .btn, .cta-actions .btn { width: 100%; }
}

.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.6rem; margin-top: 2.4rem; }
.hero-proof-stars { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 800; font-size: 0.95rem; }
.hero-proof-stars svg { width: 16px; height: 16px; color: #f5b942; }
.hero-proof p { font-size: 0.88rem; color: var(--text-3); }
.hero-proof p b { color: var(--text-2); }

/* Visual del hero */
.hero-visual { position: relative; }

.hero-photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border-strong);
  aspect-ratio: 4 / 4.6;
  box-shadow: var(--shadow-2);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 15, 12, 0.55));
  pointer-events: none;
}

.hero-photo-caption {
  position: absolute; left: 1.1rem; bottom: 1.1rem; right: 1.1rem;
  z-index: 2;
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.82rem; color: var(--text-2);
  background: rgba(13, 15, 12, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 0.7rem 0.95rem;
}
.hero-photo-caption svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: var(--r-md);
  margin-top: 1rem; overflow: hidden;
}
.hero-stat { padding: 1rem 1.1rem; border-right: 1px solid var(--border); }
.hero-stat:last-child { border-right: none; }
.hero-stat b {
  display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600;
  color: var(--accent-text); line-height: 1.1;
}
.hero-stat span { font-size: 0.75rem; color: var(--text-3); font-weight: 600; }

/* ═══════════════ Numeración de sección ═══════════════ */

.section-num {
  font-family: var(--font-display); font-style: italic;
  color: var(--text-3); font-size: 0.95rem;
  margin-right: 0.8rem;
}

/* ═══════════════ Tarjetas de servicio ═══════════════ */

.services-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  display: flex; flex-direction: column; gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.7rem;
  text-decoration: none;
  transition: border-color 200ms ease, transform 200ms var(--ease-out), background-color 200ms ease;
}
.service-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  background: var(--surface-2);
}
.service-card:active { transform: scale(0.985); }

.service-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.service-card-icon {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: grid; place-items: center; color: var(--accent-text);
}
.service-card-icon svg { width: 22px; height: 22px; }
.service-card-index { font-family: var(--font-display); font-style: italic; color: var(--text-3); font-size: 1rem; }

.service-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.15; }

.service-card-list { display: grid; gap: 0.45rem; margin-top: auto; }
.service-card-list li {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.9rem; color: var(--text-2);
}
.service-card-list svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 0.2rem; }

.service-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: 0.88rem; font-weight: 700; color: var(--accent-text);
}
.service-card-foot .arrow { transition: transform 220ms var(--ease-out); }
.service-card-foot .arrow svg { width: 16px; height: 16px; }
.service-card:hover .service-card-foot .arrow { transform: translateX(4px); }

/* ═══════════════ Filas editoriales (por qué nosotros, zonas) ═══════════════ */

.rows { border-top: 1px solid var(--border); }

.row {
  display: grid; gap: 0.8rem 2rem;
  padding: 1.6rem 0.2rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background-color 200ms ease;
}
@media (min-width: 720px) {
  .row { grid-template-columns: 3.2rem 1fr 1.6fr auto; align-items: start; }
}

.row-index { font-family: var(--font-display); font-style: italic; color: var(--text-3); font-size: 1.05rem; padding-top: 0.15rem; }

.row h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -0.01em; line-height: 1.2; }

.row p { color: var(--text-2); font-size: 0.95rem; }
.row p b { color: var(--text); }

.row-arrow { align-self: center; justify-self: start; color: var(--text-3); transition: color 200ms ease, transform 220ms var(--ease-out); }
.row-arrow svg { width: 20px; height: 20px; }
.row:hover .row-arrow { color: var(--accent-text); transform: translateX(4px); }

/* ═══════════════ Proceso ═══════════════ */

.process-grid { display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 720px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.6rem;
  counter-increment: step;
}
.process-step-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 2.2rem; line-height: 1; color: var(--accent-text);
  display: block; margin-bottom: 0.9rem;
}
.process-step h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 0.45rem; }
.process-step p { font-size: 0.88rem; color: var(--text-2); }

/* ═══════════════ Testimonios ═══════════════ */

.testimonials-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
  display: flex; flex-direction: column; gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.7rem;
}
.testimonial-stars { display: inline-flex; gap: 2px; color: #f5b942; }
.testimonial-stars svg { width: 15px; height: 15px; }
.testimonial p { font-size: 0.95rem; color: var(--text-2); line-height: 1.65; }
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.avatar {
  width: 40px; height: 40px; border-radius: var(--r-full); flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-text); font-weight: 800; font-size: 0.85rem;
}
.testimonial-author b { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--text-3); }

/* ═══════════════ FAQ ═══════════════ */

.faq-list { border-top: 1px solid var(--border); max-width: 780px; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0.2rem;
  background: none; border: none; cursor: pointer; text-align: left;
  font-size: clamp(1rem, 1.4vw, 1.08rem); font-weight: 700;
  color: var(--text);
  transition: color 150ms ease;
}
.faq-q:hover { color: var(--accent-text); }
.faq-q .faq-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  transition: transform 260ms var(--ease-out), border-color 200ms ease, color 200ms ease;
}
.faq-q .faq-icon svg { width: 13px; height: 13px; }
.faq-item[data-open="true"] .faq-icon { transform: rotate(45deg); border-color: var(--accent-line); color: var(--accent-text); }

.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease-out);
}
.faq-a-inner { overflow: hidden; }
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 0.2rem 1.5rem; color: var(--text-2); font-size: 0.95rem; max-width: 65ch; }
.faq-a a { color: var(--accent-text); }

/* ═══════════════ Panel CTA ═══════════════ */

.cta-panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.cta-panel::before {
  content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(61, 220, 151, 0.08), transparent 70%);
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel .display { max-width: 22ch; margin-inline: auto; }
.cta-panel .lede { margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-top: 2.2rem; }
.cta-note { margin-top: 1.4rem; font-size: 0.82rem; color: var(--text-3); display: flex; align-items: center; justify-content: center; gap: 0.4rem; flex-wrap: wrap; }
.cta-note svg { width: 14px; height: 14px; color: var(--accent); }

/* ═══════════════ Footer ═══════════════ */

.footer { border-top: 1px solid var(--border); background: var(--bg-elevated); padding-top: clamp(3rem, 6vw, 5rem); }

.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand p { color: var(--text-2); font-size: 0.92rem; margin-top: 1rem; max-width: 34ch; }

.footer-col h4 {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 0.92rem; transition: color 150ms ease; }
.footer-col a:hover { color: var(--accent-text); }

.footer-nap li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.92rem; color: var(--text-2); }
.footer-nap svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 0.25rem; }
.footer-nap a { color: var(--text-2); text-decoration: none; }
.footer-nap a:hover { color: var(--accent-text); }
.footer-nap .nap-label { font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; display: block; margin-top: 0.9rem; margin-bottom: -0.2rem; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
  font-size: 0.82rem; color: var(--text-3);
}
.footer-bottom a { color: var(--text-3); text-decoration: none; transition: color 150ms ease; }
.footer-bottom a:hover { color: var(--text); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ═══════════════ Elementos flotantes ═══════════════ */

.wa-float {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 90;
  width: 56px; height: 56px; border-radius: var(--r-full);
  background: var(--wa); color: #05190d;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -6px rgba(37, 211, 102, 0.5);
  transition: transform 180ms var(--ease-out), background-color 180ms ease;
}
.wa-float:hover { transform: scale(1.06); background: var(--wa-hover); }
.wa-float:active { transform: scale(0.94); }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 640px) { .wa-float { display: none; } }

/* Barra CTA móvil fija */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.6rem; padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(13, 15, 12, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform 320ms var(--ease-out);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { padding: 0.85rem 0.5rem; font-size: 0.92rem; }
@media (min-width: 641px) { .mobile-cta { display: none; } }
/* La barra fija tapa el final del footer: se compensa con padding en el body. */
@media (max-width: 640px) {
  body { padding-bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
}

/* ═══════════════ Breadcrumbs ═══════════════ */

.breadcrumbs { padding: 1.1rem 0; border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--text-3); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.4rem; }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: var(--text-3); opacity: 0.5; }
.breadcrumbs a { color: var(--text-2); text-decoration: none; transition: color 150ms ease; }
.breadcrumbs a:hover { color: var(--accent-text); }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* ═══════════════ Hero de página interior ═══════════════ */

.page-hero { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.page-hero .hero-glow { top: -50%; opacity: 0.8; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 520;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.07; letter-spacing: -0.02em; text-wrap: balance;
}
.page-hero h1 em { font-style: italic; color: var(--accent-text); }
.page-hero .lede { margin-top: 1.1rem; }
.page-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }

/* ═══════════════ Layouts de contenido ═══════════════ */

.layout-split { display: grid; gap: 3rem; }
/* min-width:0 evita que el contenido (FAQ, imágenes…) ensanche la columna
   y desborde el viewport en móvil (grid blowout). */
.layout-split > * { min-width: 0; }
@media (min-width: 960px) { .layout-split { grid-template-columns: 0.85fr 1.15fr; } }

.sticky-col { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }

.prose { max-width: 72ch; }
.prose h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.015em; margin: 2.8rem 0 1rem; line-height: 1.15;
}
.prose h3 { font-size: 1.15rem; font-weight: 800; margin: 2rem 0 0.7rem; }
.prose p { color: var(--text-2); margin-bottom: 1.1rem; line-height: 1.75; }
.prose p b, .prose li b { color: var(--text); }
.prose a { color: var(--accent-text); }
.prose ul { display: grid; gap: 0.55rem; margin: 1.2rem 0; }
.prose ul li { position: relative; padding-left: 1.7rem; color: var(--text-2); }
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent);
}
.prose blockquote {
  border-left: 2px solid var(--accent-line);
  padding: 0.4rem 0 0.4rem 1.4rem; margin: 1.8rem 0;
  color: var(--text); font-style: italic;
  font-family: var(--font-display); font-size: 1.15rem;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--border); }
.prose th { color: var(--text); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.prose td { color: var(--text-2); }
/* En móvil la tabla se vuelve un bloque con scroll horizontal (no la recorta). */
@media (max-width: 719px) {
  .prose table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}

/* ═══════════════ Paneles / tarjetas genéricas ═══════════════ */

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1.8rem;
}
.panel-accent { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 60%); }

.checks { display: grid; gap: 0.7rem; }
.checks li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.95rem; color: var(--text-2); }
.checks svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 0.15rem; }
.checks li b { color: var(--text); }

/* ═══════════════ Formularios ═══════════════ */

.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.45rem; color: var(--text); }
.field label .req { color: var(--accent-text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text); font-size: 0.95rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a8a79c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* iOS Safari hace zoom al enfocar campos con font-size < 16px. */
@media (max-width: 640px) {
  .field input, .field select, .field textarea { font-size: 16px; }
}

/* Textos largos sin espacio (emails, teléfonos) pueden romper línea en móvil
   para no empujar las columnas del grid fuera del viewport. */
@media (max-width: 640px) {
  .prose p, .prose li, .row p, .checks li, .notice p, .footer-nap li { overflow-wrap: anywhere; }
}
.field.invalid input, .field.invalid textarea { border-color: #e5484d; }
.field-error { display: none; font-size: 0.78rem; color: #ff8085; margin-top: 0.35rem; }
.field.invalid .field-error { display: block; }

.form-grid { display: grid; gap: 0 1.1rem; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }

.form-hint { font-size: 0.78rem; color: var(--text-3); margin-top: 0.4rem; }

/* Pasos del formulario de presupuesto */
.steps { display: flex; gap: 0.4rem; margin-bottom: 2rem; }
.step-dot { height: 4px; flex: 1; border-radius: var(--r-full); background: var(--border-strong); transition: background-color 300ms ease; }
.step-dot.is-active { background: var(--accent); }

.step-panel { display: none; }
.step-panel.is-active { display: block; animation: stepIn 320ms var(--ease-out) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════ Blog ═══════════════ */

.post-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex; flex-direction: column; gap: 0.9rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1.7rem;
  text-decoration: none;
  transition: border-color 200ms ease, transform 200ms var(--ease-out);
}
.post-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.post-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.post-card .post-cat {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.post-card .post-cat svg { width: 13px; height: 13px; }
.post-card time { font-size: 0.72rem; color: var(--text-3); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.post-card h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
.post-card p { font-size: 0.9rem; color: var(--text-2); }
.post-card .read-more { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 800; color: var(--accent-text); margin-top: auto; }
/* Sin tamaño fijo, el <svg> hereda su default 300×150 y rompe la cuadrícula en móvil. */
.post-card .read-more svg, .related-card .read-more svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Posts relacionados al final de los artículos */
.related-grid { display: grid; gap: 1rem; margin-top: 1.6rem; }
@media (min-width: 720px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
.related-card {
  display: flex; flex-direction: column; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1.4rem;
  text-decoration: none;
  transition: border-color 200ms ease, transform 200ms var(--ease-out);
}
.related-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.related-card small { font-size: 0.72rem; color: var(--text-3); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.related-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.25; letter-spacing: -0.01em; }
.related-card .read-more { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 800; color: var(--accent-text); }

.article-meta {
  display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center;
  font-size: 0.85rem; color: var(--text-3); margin-top: 1.4rem; padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border);
}
.article-body { padding: 2.2rem 0; }

/* ═══════════════ Nota / aviso ═══════════════ */

.notice {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: var(--r-md); padding: 1.1rem 1.3rem;
  font-size: 0.92rem; color: var(--text-2);
}
.notice svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 0.1rem; }
.notice b { color: var(--text); }

/* ═══════════════ Reveal / motion ═══════════════ */

/* El estado oculto solo aplica si JS está activo: sin JS todo es visible (progressive enhancement).
   html.js se añade con un script inline en <head> de cada página. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

html.js [data-reveal="clip"] {
  opacity: 1;
  clip-path: inset(0 0 100% 0);
  transform: none;
  transition: clip-path 900ms var(--ease-in-out);
}
html.js [data-reveal="clip"].is-revealed { clip-path: inset(0 0 0 0); }

html.js [data-reveal="fade"] { opacity: 0; transform: none; transition: opacity 600ms ease; }
html.js [data-reveal="fade"].is-revealed { opacity: 1; }

[data-count] { font-variant-numeric: tabular-nums; }

/* ═══════════════ Responsive helpers ═══════════════ */

@media (min-width: 720px) { .hide-desktop { display: none !important; } }
@media (max-width: 719px) { .hide-mobile { display: none !important; } }

/* Panel CTA compacto en móviles estrechos (debe ir tras la regla base .cta-panel) */
@media (max-width: 360px) {
  .cta-panel { padding: 2rem 1.5rem; }
}

/* ═══════════════ Banner de cookies ═══════════════ */

.cookie-banner {
  position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 120;
  max-width: 420px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-2);
  transform: translateY(16px); opacity: 0; visibility: hidden;
  transition: transform 260ms var(--ease-out), opacity 260ms ease, visibility 260ms;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-banner p { font-size: 0.86rem; color: var(--text-2); margin-bottom: 1rem; line-height: 1.55; }
.cookie-banner p a { color: var(--accent-text); }
.cookie-actions { display: flex; gap: 0.6rem; }
.cookie-actions .btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; flex: 1; }
@media (max-width: 640px) {
  .cookie-banner { left: 0.9rem; right: 0.9rem; bottom: calc(4.9rem + env(safe-area-inset-bottom)); max-width: none; }
}

/* ═══════════════ Prefers-reduced-motion ═══════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], [data-reveal="clip"] { opacity: 1; clip-path: none; transform: none; }
  .mobile-cta { transform: none; }
}
