/* ADT Alarmas — Fusión web.dev × adt.com
   Trust corporate (ADT navy) + aire/tipografía expresiva (web.dev)
   Sistema nativo de fuentes · Core Web Vitals first · mobile-first
*/

:root {
  /* Paleta primaria — ADT navy como base corporate */
  --navy: #002b49;
  --navy-900: #001a2e;
  --navy-800: #012d52;
  --navy-700: #0a3e64;
  --navy-600: #1e5a82;

  /* Accent — emerald verdeseguridad */
  --emerald: #059669;
  --emerald-600: #047857;
  --emerald-300: #6ee7b7;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;

  /* Acentos web.dev secundarios — sky + violet + coral + amber para variedad */
  --sky: #0ea5e9;
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --violet: #8b5cf6;
  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --coral: #f97316;
  --coral-50: #fff7ed;
  --coral-100: #ffedd5;
  --amber: #f59e0b;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --pink: #ec4899;
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;

  /* Alias legacy */
  --red: var(--emerald);
  --red-dark: var(--emerald-600);
  --red-light: var(--emerald-300);

  /* Neutros cálidos (web.dev-like) */
  --white: #ffffff;
  --surface: #fafbff;
  --gray-50: #f6f8fb;
  --gray-100: #eef1f6;
  --gray-200: #e4e8ef;
  --gray-300: #cbd2de;
  --gray-400: #9aa3b2;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #0f172a;

  /* Tipografía — sans nativo (aproxima Google Sans) + serif expresivo para display */
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  /* Escala tipográfica expresiva */
  /* Escala tipográfica fluida — mobile-first (mínimos reducidos para legibilidad móvil) */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.05rem, 0.95rem + 0.5vw, 1.2rem);
  --fs-xl: clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
  --fs-2xl: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
  --fs-3xl: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem);
  --fs-4xl: clamp(1.75rem, 1.2rem + 2.5vw, 2.75rem);
  --fs-5xl: clamp(2rem, 1.3rem + 3.5vw, 3.25rem);
  --fs-6xl: clamp(2.25rem, 1.4rem + 4.5vw, 4rem);

  /* Radios generosos (web.dev) */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Sombras suaves con tinte azul */
  --shadow-xs: 0 1px 2px rgba(10, 31, 68, 0.04);
  --shadow-sm: 0 2px 8px rgba(10, 31, 68, 0.06);
  --shadow: 0 4px 20px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 16px 48px rgba(10, 31, 68, 0.12);
  --shadow-xl: 0 32px 64px rgba(10, 31, 68, 0.18);
  --shadow-emerald: 0 10px 28px rgba(5, 150, 105, 0.28);

  --container: 1180px;
  --container-narrow: 820px;
  --header-h: 48px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; transition: color 150ms; }
a:hover { color: var(--emerald); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.035em;
}
h1 { font-size: var(--fs-6xl); font-weight: 800; letter-spacing: -0.045em; }
h2 { font-size: var(--fs-4xl); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-xl); letter-spacing: -0.02em; }
h4 { font-size: var(--fs-lg); letter-spacing: -0.015em; }
p { max-width: 68ch; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: clamp(3rem, 7vw, 6rem); position: relative; }
.section-compact { padding-block: clamp(2rem, 5vw, 4rem); }

/* Section variants */
.alt { background: var(--gray-50); }
.dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  color: var(--white);
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--white); }

/* Wash variants web.dev-like */
.wash-emerald { background: linear-gradient(180deg, var(--emerald-50) 0%, var(--surface) 100%); }
.wash-sky { background: linear-gradient(180deg, var(--sky-100) 0%, var(--surface) 100%); }
.wash-violet { background: linear-gradient(180deg, var(--violet-100) 0%, var(--surface) 100%); }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 1rem; z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; border-radius: var(--radius-sm); }

/* ======= HEADER ======= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(198, 212, 228, 0.96);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(10, 31, 68, 0.16);
  box-shadow: 0 1px 0 rgba(10, 31, 68, 0.06), 0 4px 16px rgba(10, 31, 68, 0.08);
  height: var(--header-h);
}
@media (max-width: 780px) {
  .header { background: rgba(198, 212, 228, 0.98); }
}
.header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
/* Logo: wordmark "Tu alarma para casa" oficial */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 180ms, transform 180ms;
}
.logo:hover { opacity: 0.92; }
.logo-mark {
  height: 30px;
  width: auto;
  display: block;
}
@media (max-width: 520px) {
  .logo-mark { height: 26px; }
}
@media (max-width: 380px) {
  .logo-mark { height: 22px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(10, 31, 68, 0.08);
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.2rem;
}
.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-pill);
  transition: all 200ms;
}
.nav a:hover { color: var(--navy); background: rgba(255, 255, 255, 0.7); }
.nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--navy-900) !important; color: var(--white) !important; }

/* Mobile menu toggle (hamburguesa) — oculto en desktop */
.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  background: var(--white);
  border: 1.5px solid rgba(10, 31, 68, 0.18);
  border-radius: var(--radius-sm);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  transition: border-color 150ms, background 150ms;
  box-shadow: 0 2px 6px rgba(10, 31, 68, 0.08);
}
.menu-toggle-bar { width: 16px; height: 2px; }
.menu-toggle:hover { border-color: var(--navy); background: var(--gray-50); }
.menu-toggle-bar {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 200ms, opacity 200ms;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 780px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ======= DRAWER (menú lateral móvil) ======= */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 68, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms;
  z-index: 140;
}
.drawer-overlay.visible { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 380px);
  height: 100dvh;
  background: var(--white);
  z-index: 150;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(10, 31, 68, 0.25);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  background: var(--surface);
}
.drawer-head .logo-mark { height: 42px; }
.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--gray-100);
  border: none;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms, color 150ms;
}
.drawer-close:hover { background: var(--navy); color: var(--white); }
.drawer-close svg { width: 20px; height: 20px; }

.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem;
  flex: 1;
  overflow-y: auto;
}
.drawer-nav a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  color: var(--navy);
  text-decoration: none;
  transition: background 150ms, transform 150ms;
  margin-bottom: 0.25rem;
}
.drawer-nav a:hover,
.drawer-nav a:focus-visible {
  background: var(--emerald-50);
}
.drawer-nav a[aria-current="page"] {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
}
.drawer-nav-ico {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--emerald-50) 0%, var(--sky-100) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-600);
  flex-shrink: 0;
}
.drawer-nav-ico svg { width: 22px; height: 22px; }
.drawer-nav a:nth-child(2) .drawer-nav-ico { background: linear-gradient(135deg, var(--sky-50) 0%, var(--sky-100) 100%); color: #0369a1; }
.drawer-nav a:nth-child(3) .drawer-nav-ico { background: linear-gradient(135deg, var(--violet-50) 0%, var(--violet-100) 100%); color: #6d28d9; }
.drawer-nav a:nth-child(4) .drawer-nav-ico { background: linear-gradient(135deg, var(--coral-50) 0%, var(--coral-100) 100%); color: #c2410c; }
.drawer-nav a:nth-child(5) .drawer-nav-ico { background: linear-gradient(135deg, var(--pink-50) 0%, var(--pink-100) 100%); color: #be185d; }
.drawer-nav-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.drawer-nav-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
}
.drawer-nav-text small {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
}
.drawer-nav-arrow {
  color: var(--gray-400);
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 200ms, color 200ms;
}
.drawer-nav a:hover .drawer-nav-arrow {
  color: var(--emerald);
  transform: translateX(3px);
}

.drawer-foot {
  padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--gray-100);
  background: var(--surface);
}
.drawer-reassure {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.6rem;
}

/* Body lock cuando drawer abierto */
body.drawer-open { overflow: hidden; }

/* ======= COOKIE BANNER ======= */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 95;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(10, 31, 68, 0.18);
  max-width: 920px;
  margin-inline: auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.25rem;
}
.cookie-text strong { display: block; color: var(--navy); font-size: var(--fs-sm); margin-bottom: 0.2rem; }
.cookie-text p { margin: 0; color: var(--gray-600); font-size: 0.82rem; line-height: 1.5; max-width: 64ch; }
.cookie-text a { color: var(--emerald-600); text-decoration: underline; }
.cookie-actions { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; }
@media (max-width: 720px) {
  .cookie-banner-inner { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
  body:has(.mcta:not(.hidden)) .cookie-banner { bottom: calc(90px + env(safe-area-inset-bottom)); }
}

/* ======= BUTTONS ======= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: var(--shadow-emerald);
}
.btn-primary:hover {
  background: var(--emerald-600);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(5, 150, 105, 0.34);
}
.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
}
.btn-ghost:hover { background: var(--gray-100); }
.btn-lg { padding: 1.1rem 2rem; font-size: var(--fs-base); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: var(--fs-xs); }
.btn-block { width: 100%; }

/* ======= CHIPS ======= */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--emerald-50);
  color: var(--emerald-600);
  border: 1px solid var(--emerald-100);
}
.chip--navy { background: rgba(10, 31, 68, 0.05); color: var(--navy); border-color: rgba(10, 31, 68, 0.1); }
.chip--sky { background: var(--sky-100); color: #0369a1; border-color: rgba(14, 165, 233, 0.2); }
.chip--violet { background: var(--violet-100); color: #6d28d9; border-color: rgba(139, 92, 246, 0.18); }
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.18);
}

/* ======= HERO (equilibrado: contenido izquierda | oferta+form derecha) ======= */
.hero {
  position: relative;
  padding-block: clamp(2rem, 4.5vw, 3.5rem);
  overflow: hidden;
  background: var(--surface);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(5, 150, 105, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 70% 90%, rgba(139, 92, 246, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(10, 31, 68, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><circle cx='1' cy='1' r='1' fill='%2310213a' opacity='0.06'/></svg>");
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 460px);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
}

/* === LEFT: contenido === */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-content > .chip { align-self: flex-start; }
.hero h1 {
  color: var(--navy);
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.75rem, 1.1rem + 2.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero .lead {
  max-width: 52ch;
  margin: 0;
  color: var(--gray-600);
  font-size: var(--fs-md);
  line-height: 1.55;
}
.hero-features {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.55rem;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
}
.hero-features li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}
.hero-thumb {
  margin-top: 1rem;
  width: 100%;
}
.hero-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* === RIGHT: oferta + form unificados === */
.hero-offer-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(10, 31, 68, 0.06);
  overflow: hidden;
  position: relative;
}
.hero-offer-form::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.18), rgba(14, 165, 233, 0.12), rgba(139, 92, 246, 0.12));
  z-index: -1;
  filter: blur(20px);
  opacity: 0.8;
}

.oferta-card {
  background: linear-gradient(135deg, #0066c2 0%, #004e8d 100%);
  color: var(--white);
  padding: 1.1rem 1.5rem 1.25rem;
  text-align: center;
  position: relative;
}
.oferta-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%) rotate(45deg);
  width: 20px;
  height: 20px;
  background: #004e8d;
}
.oferta-titulo {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.35rem;
}
.oferta-precio {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
  line-height: 0.95;
  margin-bottom: 0.5rem;
}
.oferta-precio strong {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw + 1rem, 3.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.oferta-precio .euro-mes {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0.35rem;
  text-align: left;
}
.oferta-precio .euro-mes span:last-child {
  font-size: 0.62rem;
  opacity: 0.85;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.oferta-duracion {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.2rem;
}
.oferta-despues {
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 500;
  margin: 0;
}

/* Form integrado (resetea estilos .form para caber dentro de la tarjeta unificada) */
.hero-offer-form .form {
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 1.5rem 1.5rem 1.75rem;
  max-width: none;
  margin: 0;
  text-align: left;
}
.hero-offer-form .form::before { display: none; }
.hero-offer-form .form h3 {
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.hero-offer-form .form .form-sub {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}
.hero-offer-form .form .reassure { margin-top: 0.6rem; }

/* ============ Mobile stack (≤ 900px) — imagen visible arriba ============ */
@media (max-width: 900px) {
  .hero { padding-block: 1.25rem; }
  .hero > .container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero-content {
    text-align: center;
    align-items: center;
    gap: 0.6rem;
    display: flex;
    flex-direction: column;
  }
  .hero-content > .chip { align-self: center; order: 1; }
  .hero-content > h1 { order: 2; margin: 0; max-width: 22ch; margin-inline: auto; font-size: clamp(1.45rem, 2.5vw + 1rem, 1.9rem); line-height: 1.15; }
  .hero-content > .hero-thumb { order: 3; max-width: 380px; margin: 0.3rem auto 0.3rem; }
  .hero-content > .lead { order: 4; margin: 0 auto; max-width: 38ch; font-size: 0.95rem; line-height: 1.5; }
  .hero-content > .hero-features {
    order: 5;
    max-width: 320px;
    margin: 0.5rem auto 0;
    gap: 0.4rem;
  }
  .hero-features li { justify-content: flex-start; font-size: 0.9rem; }
  .hero-features li::before { width: 20px; height: 20px; background-size: 10px; }
  .hero-offer-form { max-width: 460px; margin-inline: auto; width: 100%; }
}
@media (max-width: 480px) {
  .oferta-card { padding: 0.9rem 1rem 1rem; }
  .oferta-precio strong { font-size: 2.25rem; }
  .hero-offer-form .form { padding: 1.25rem; }
}
.hero h1 em {
  font-style: normal;
  color: var(--emerald);
  background: linear-gradient(120deg, var(--emerald) 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  font-size: var(--fs-lg);
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 52ch;
  line-height: 1.55;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero.hero-dark {
  background: radial-gradient(circle at 20% 30%, var(--navy-700) 0%, var(--navy) 60%, var(--navy-900) 100%);
  color: var(--white);
}
.hero.hero-dark::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(5, 150, 105, 0.20) 0%, transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 70% 90%, rgba(139, 92, 246, 0.16) 0%, transparent 45%);
}
.hero.hero-dark::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><circle cx='1' cy='1' r='1' fill='%23ffffff' opacity='0.09'/></svg>");
}
.hero.hero-dark h1 { color: var(--white); }
.hero.hero-dark .lead { color: rgba(255, 255, 255, 0.85); }
.hero.hero-dark .chip--navy { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.95); border-color: rgba(255,255,255,0.18); }

@media (max-width: 900px) {
  .hero > .container { grid-template-columns: 1fr; }
}

/* ======= FORM CARD (alineación izquierda dentro del form por UX) ======= */
.form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(10, 31, 68, 0.06);
  max-width: 440px;
  width: 100%;
  margin-inline: auto;
  position: relative;
  text-align: left;
}
.form label, .form input, .form .consent { text-align: left; }
.form h3, .form .form-sub { text-align: center; }
.form .reassure { text-align: center; }
.form::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.18), rgba(14, 165, 233, 0.12), rgba(139, 92, 246, 0.12));
  z-index: -1;
  filter: blur(20px);
  opacity: 0.8;
}
.form h3 {
  font-size: var(--fs-xl);
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.form .form-sub {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}
.form .field { margin-bottom: 1rem; }
.form label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.form input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: var(--fs-base);
  background: var(--white);
  transition: border-color 180ms, box-shadow 180ms;
}
.form input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px var(--emerald-50);
}
.form input::placeholder { color: var(--gray-400); }
.form .consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.5;
}
.form .consent input {
  width: 18px; height: 18px; margin-top: 2px;
  flex-shrink: 0; accent-color: var(--emerald);
}
.form .consent a { color: var(--navy); text-decoration: underline; }
.form .reassure {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.85rem;
}
.honey {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ======= TRUST BAR (chips pill) ======= */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--fs-sm);
  color: var(--gray-700);
  font-weight: 500;
}
.trust-item strong {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.trust-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px var(--emerald-100);
  flex-shrink: 0;
}

/* ======= SECTION HEAD (web.dev style) ======= */
.sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.sec-head .chip { margin-bottom: 1rem; }
.sec-head h2 { margin-bottom: 1rem; }
.sec-head p {
  color: var(--gray-600);
  font-size: var(--fs-lg);
  margin-inline: auto;
  max-width: 62ch;
}

/* ======= BENEFITS (cards web.dev) ======= */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.benefit {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: transform 250ms, box-shadow 250ms, border-color 250ms;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.benefit p { margin-inline: auto; }
.benefit::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--sky) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms;
}
.benefit:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.benefit:hover::before { transform: scaleX(1); }
.benefit .ico {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--emerald-50) 0%, var(--emerald-100) 100%);
  color: var(--emerald-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* Benefit color variants (rotación web.dev-like) */
.benefits > .benefit:nth-child(4n+2) .ico { background: linear-gradient(135deg, var(--sky-50) 0%, var(--sky-100) 100%); color: #0369a1; }
.benefits > .benefit:nth-child(4n+2)::before { background: linear-gradient(90deg, var(--sky) 0%, var(--violet) 100%); }
.benefits > .benefit:nth-child(4n+3) .ico { background: linear-gradient(135deg, var(--violet-50) 0%, var(--violet-100) 100%); color: #6d28d9; }
.benefits > .benefit:nth-child(4n+3)::before { background: linear-gradient(90deg, var(--violet) 0%, var(--pink) 100%); }
.benefits > .benefit:nth-child(4n+4) .ico { background: linear-gradient(135deg, var(--coral-50) 0%, var(--coral-100) 100%); color: #c2410c; }
.benefits > .benefit:nth-child(4n+4)::before { background: linear-gradient(90deg, var(--coral) 0%, var(--amber) 100%); }
.benefit .ico svg { width: 26px; height: 26px; }
.benefit h3 {
  font-size: var(--fs-md);
  margin-bottom: 0.5rem;
  color: var(--navy);
}
.benefit p {
  color: var(--gray-600);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* ======= STATS (web.dev big numbers con gradientes rotados) ======= */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat {
  padding: 1.75rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: transform 250ms, border-color 250ms;
}
.stat:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow); }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.5vw + 1rem, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  background: linear-gradient(135deg, var(--navy) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stats > .stat:nth-child(4n+2) strong {
  background: linear-gradient(135deg, var(--sky) 0%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stats > .stat:nth-child(4n+3) strong {
  background: linear-gradient(135deg, var(--violet) 0%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stats > .stat:nth-child(4n+4) strong {
  background: linear-gradient(135deg, var(--coral) 0%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat span {
  color: var(--gray-600);
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* ======= PRODUCT block ======= */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  text-align: center;
}
.product .checks { max-width: 42ch; margin-inline: auto; }
.product .checks li { text-align: left; }
.product-image {
  position: relative;
  padding: 2rem;
  background: linear-gradient(135deg, var(--emerald-50) 0%, var(--sky-100) 100%);
  border-radius: var(--radius-xl);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img { max-width: 85%; filter: drop-shadow(0 20px 40px rgba(10, 31, 68, 0.2)); }
.product .checks { list-style: none; padding: 0; margin-top: 1.25rem; display: grid; gap: 0.7rem; }
.product .checks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: var(--fs-base);
  color: var(--gray-700);
}
.product .checks li::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--emerald) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/13px no-repeat;
  margin-top: 2px;
  box-shadow: 0 0 0 4px var(--emerald-100);
}
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product-image { aspect-ratio: 16/10; max-height: 380px; }
}

/* ======= PRICING ======= */
.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.price {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: all 250ms;
  position: relative;
}
.price:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.price.featured {
  border-color: var(--emerald);
  background: linear-gradient(180deg, #fff 0%, var(--emerald-50) 100%);
  box-shadow: 0 12px 40px rgba(5, 150, 105, 0.12);
}
.price .tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-emerald);
}
.price h3 {
  font-size: var(--fs-xl);
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.price .amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  margin: 1rem 0 0.35rem;
}
.price .amount strong {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
}
.price .amount span {
  color: var(--gray-500);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.price .install {
  color: var(--emerald-600);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin: 0.75rem 0 1.25rem;
}

/* ======= FAQ (texto left por legibilidad de preguntas/respuestas largas) ======= */
.faq { max-width: 780px; margin-inline: auto; text-align: left; }
.faq details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 200ms, box-shadow 200ms;
}
.faq details[open] {
  border-color: var(--emerald);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  padding: 1.25rem 3rem 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  list-style: none;
  font-size: var(--fs-base);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--emerald);
  font-weight: 300;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--emerald-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 200ms;
}
.faq details[open] summary::after { content: "−"; }
.faq .ans {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray-600);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* ======= CTA BLOCK ======= */
.cta-block {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(5, 150, 105, 0.22) 0%, transparent 50%),
              radial-gradient(circle at 20% 70%, rgba(14, 165, 233, 0.18) 0%, transparent 50%);
}
.cta-block > * { position: relative; }
.cta-block h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-block p { opacity: 0.92; margin-bottom: 1.75rem; max-width: 52ch; margin-inline: auto; }

/* ======= FOOTER (text-align left dentro de columnas para legibilidad) ======= */
.footer {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 0;
  font-size: var(--fs-sm);
  margin-top: 3rem;
  position: relative;
  text-align: left;
}
.footer-copyright { text-align: center; }
@media (max-width: 520px) { .footer { text-align: center; } }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand img {
  width: 72px;
  height: 72px;
  display: block;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 32ch;
  margin-bottom: 0.75rem;
}
.footer-brand small {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--emerald-300);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background: rgba(5, 150, 105, 0.12);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(5, 150, 105, 0.25);
}
.footer h4 {
  color: var(--white);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.footer a {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  padding: 0.28rem 0;
  transition: color 150ms, padding 150ms;
}
.footer a:hover { color: var(--white); padding-left: 0.3rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer-copyright {
  padding: 1.5rem 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 1.7;
}
.footer-copyright span { display: block; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img { margin-inline: auto; }
  .footer-brand p { margin-inline: auto; }
}

/* ======= POST-CRUMBS ======= */
.post-crumbs {
  background: var(--navy-900);
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}
.post-crumbs a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.post-crumbs a:hover { color: #fff; }
.post-crumbs .sep { padding: 0 0.45rem; color: rgba(255, 255, 255, 0.28); }
.post-crumbs [aria-current] { color: #fff; font-weight: 500; }

/* ======= MOBILE CTA — premium y compacto ======= */
.mcta {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 90;
  background: linear-gradient(135deg, #0e9f73 0%, #047857 100%);
  color: var(--white);
  padding: 0.65rem 1.2rem 0.65rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  align-items: center;
  gap: 0.5rem;
  box-shadow:
    0 10px 28px rgba(5, 150, 105, 0.38),
    0 2px 6px rgba(4, 120, 87, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  transition: transform 220ms cubic-bezier(0.34, 1.4, 0.64, 1), opacity 220ms, box-shadow 220ms;
}
.mcta::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
  flex-shrink: 0;
  transition: transform 220ms;
}
.mcta:hover::before, .mcta:focus::before { transform: translateX(2px); }
.mcta.hidden { opacity: 0; transform: translate(-50%, 140%); pointer-events: none; }
.mcta:hover, .mcta:focus {
  color: var(--white);
  transform: translate(-50%, -2px);
  box-shadow:
    0 14px 34px rgba(5, 150, 105, 0.46),
    0 3px 8px rgba(4, 120, 87, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.mcta:active { transform: translate(-50%, 0); }
@media (max-width: 768px) {
  .mcta { display: inline-flex; }
  body { padding-bottom: 68px; }
}

/* ======= CATALOG (precios detallado) ======= */
.cat-section { margin-top: 3.5rem; text-align: center; }
.cat-section h3 {
  font-size: var(--fs-2xl);
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  justify-content: center;
}
.cat-section h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1.75rem;
  background: linear-gradient(180deg, var(--emerald) 0%, var(--sky) 100%);
  border-radius: 3px;
}
.cat-section > p {
  color: var(--gray-600);
  margin: 0 auto 2rem;
  max-width: 62ch;
  font-size: var(--fs-base);
}
.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.catalog-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 250ms;
  position: relative;
  text-align: center;
}
.catalog-item .cuota { justify-content: center; }
.catalog-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.catalog-item .thumb {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  border: 1px solid var(--gray-100);
}
.catalog-item .thumb img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}
.catalog-item h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  min-height: 2.5rem;
}
.catalog-item p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}
.catalog-item .cuota {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--gray-100);
}
.catalog-item .cuota strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--emerald);
  letter-spacing: -0.03em;
}
.catalog-item .cuota span { font-size: 0.8rem; color: var(--gray-500); }
.catalog-item .venta-tag {
  padding: 0.2rem 0.6rem;
  background: var(--violet-100);
  color: #6d28d9;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  margin-left: auto;
}

/* ======= COMPARE TABLE ======= */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}
.compare-table thead th {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 1.1rem 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.compare-table th:first-child, .compare-table td:first-child { text-align: left; padding-left: 1.5rem; }
.compare-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--gray-50); }
.compare-table strong { color: var(--emerald); font-weight: 700; }
@media (max-width: 640px) {
  .compare-table { font-size: 0.8rem; }
  .compare-table th, .compare-table td { padding: 0.7rem 0.6rem; }
}

/* ======= PROSE ======= */
.prose {
  max-width: 68ch;
  margin-inline: auto;
  color: var(--gray-700);
  font-size: var(--fs-base);
  line-height: 1.75;
  text-align: center;
}
.prose p { margin-bottom: 1.25rem; margin-inline: auto; }
.prose p + h3, .prose p + h2 { margin-top: 2.5rem; }
.prose h2 { font-size: var(--fs-3xl); margin-bottom: 1rem; }
.prose h3 { font-size: var(--fs-xl); margin-bottom: 0.75rem; color: var(--navy); }
.prose strong { color: var(--navy); }
.prose a { color: var(--emerald-600); text-decoration: underline; text-underline-offset: 3px; }

/* ======= TOWNS GRID ======= */
.towns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.35rem 0.85rem;
  max-width: 960px;
  margin-inline: auto;
}
.towns a {
  padding: 0.55rem 0.85rem;
  color: var(--gray-700);
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
  transition: all 150ms;
  border: 1px solid transparent;
}
.towns a:hover {
  background: var(--white);
  border-color: var(--emerald-100);
  color: var(--navy);
  box-shadow: var(--shadow-xs);
}

/* ======= ARROW LINK (web.dev style) ======= */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--emerald-600);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: gap 200ms, color 200ms;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.arrow-link::after {
  content: "→";
  font-size: 1.1em;
  transition: transform 200ms;
  display: inline-block;
}
.arrow-link:hover {
  color: var(--emerald-600);
  gap: 0.7rem;
  border-bottom-color: var(--emerald);
}
.arrow-link:hover::after { transform: translateX(3px); }
.arrow-link--navy { color: var(--navy); }
.arrow-link--navy:hover { color: var(--navy); border-bottom-color: var(--navy); }

/* ======= SPOTLIGHT CARD (featured hero card) ======= */
.spotlight {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 50%, var(--emerald-600) 120%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  isolation: isolate;
}
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(5, 150, 105, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(14, 165, 233, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.18) 0%, transparent 55%);
  z-index: -1;
}
.spotlight h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  margin-bottom: 1rem;
  max-width: 22ch;
}
.spotlight p { color: rgba(255, 255, 255, 0.88); max-width: 56ch; margin-bottom: 1.75rem; }
.spotlight .arrow-link { color: #fff; }
.spotlight .arrow-link:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.6); }

/* ======= TAG PILL LIST (filtros / chips grandes, estilo web.dev) ======= */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 200ms;
}
.tag-pill:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-1px);
}
.tag-pill--active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.tag-pill--active:hover { background: var(--navy-900); color: var(--white); }

/* ======= REVIEWS (estilo Trustpilot/Google Reviews) ======= */
.reviews-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--emerald-50) 0%, var(--sky-100) 100%);
  border-radius: var(--radius-xl);
  margin-bottom: 2.5rem;
  text-align: center;
}
.reviews-summary-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.reviews-summary .rating-score {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 3vw + 1rem, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--navy);
}
.reviews-summary .rating-stars-big {
  display: inline-flex;
  gap: 3px;
}
.reviews-summary .rating-stars-big svg {
  width: 32px;
  height: 32px;
  color: #f59e0b;
  fill: currentColor;
}
.reviews-summary .rating-meta {
  font-size: var(--fs-sm);
  color: var(--gray-700);
  font-weight: 500;
}
.reviews-summary .rating-meta strong { color: var(--navy); font-weight: 700; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 220ms, box-shadow 220ms, border-color 220ms;
  position: relative;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.review-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--emerald) 100%);
}
.reviews-grid > .review-card:nth-child(6n+2) .review-avatar { background: linear-gradient(135deg, var(--sky) 0%, var(--violet) 100%); }
.reviews-grid > .review-card:nth-child(6n+3) .review-avatar { background: linear-gradient(135deg, var(--violet) 0%, var(--pink) 100%); }
.reviews-grid > .review-card:nth-child(6n+4) .review-avatar { background: linear-gradient(135deg, var(--coral) 0%, var(--amber) 100%); }
.reviews-grid > .review-card:nth-child(6n+5) .review-avatar { background: linear-gradient(135deg, var(--pink) 0%, var(--sky) 100%); }
.reviews-grid > .review-card:nth-child(6n+6) .review-avatar { background: linear-gradient(135deg, var(--amber) 0%, var(--emerald) 100%); }

.review-author {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
  flex: 1;
}
.review-author strong {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-author small {
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 2px;
}
.review-author small::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--emerald) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/8px no-repeat;
  border-radius: 50%;
}
.review-stars {
  display: inline-flex;
  gap: 2px;
}
.review-stars svg {
  width: 18px;
  height: 18px;
  color: #f59e0b;
  fill: currentColor;
}
.review-body {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.review-body::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--emerald);
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 0.15rem;
}

.reviews-more {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 480px) {
  .reviews-grid { grid-template-columns: 1fr; gap: 1rem; }
  .review-card { padding: 1.25rem; }
  .reviews-summary { padding: 1.5rem 1rem; }
}

/* ======= MAPA ADT ======= */

/* Mapa interactivo: grid de tiles clicables de CCAA */
.ccaa-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.ccaa-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--navy);
  min-height: 130px;
  overflow: hidden;
  transition: transform 220ms, box-shadow 220ms, border-color 220ms;
  isolation: isolate;
}
.ccaa-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(14, 165, 233, 0.05));
  opacity: 0;
  transition: opacity 220ms;
  z-index: -1;
}
.ccaa-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: var(--navy);
}
.ccaa-tile:hover::before { opacity: 1; }
.ccaa-tile .ccaa-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.ccaa-tile .ccaa-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}
.ccaa-tile .ccaa-count {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--navy) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ccaa-tile .ccaa-count-label {
  font-size: 0.7rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.ccaa-tile .ccaa-arrow {
  font-size: 1.15rem;
  color: var(--emerald);
  opacity: 0;
  transition: opacity 200ms, transform 200ms;
}
.ccaa-tile:hover .ccaa-arrow { opacity: 1; transform: translateX(3px); }

/* Rotación de color por tile (como los stats) */
.ccaa-tiles > .ccaa-tile:nth-child(6n+2) .ccaa-count { background: linear-gradient(135deg, var(--sky) 0%, var(--violet) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ccaa-tiles > .ccaa-tile:nth-child(6n+2) .ccaa-arrow { color: var(--sky); }
.ccaa-tiles > .ccaa-tile:nth-child(6n+3) .ccaa-count { background: linear-gradient(135deg, var(--violet) 0%, var(--pink) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ccaa-tiles > .ccaa-tile:nth-child(6n+3) .ccaa-arrow { color: var(--violet); }
.ccaa-tiles > .ccaa-tile:nth-child(6n+4) .ccaa-count { background: linear-gradient(135deg, var(--coral) 0%, var(--amber) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ccaa-tiles > .ccaa-tile:nth-child(6n+4) .ccaa-arrow { color: var(--coral); }
.ccaa-tiles > .ccaa-tile:nth-child(6n+5) .ccaa-count { background: linear-gradient(135deg, var(--pink) 0%, var(--sky) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ccaa-tiles > .ccaa-tile:nth-child(6n+5) .ccaa-arrow { color: var(--pink); }
.ccaa-tiles > .ccaa-tile:nth-child(6n+6) .ccaa-count { background: linear-gradient(135deg, var(--amber) 0%, var(--emerald) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ccaa-tiles > .ccaa-tile:nth-child(6n+6) .ccaa-arrow { color: var(--amber); }

/* Bloque CCAA */
.mapa-ccaa {
  margin-bottom: 4rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.mapa-ccaa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.mapa-ccaa-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(5,150,105,0.22) 0%, transparent 50%), radial-gradient(circle at 10% 80%, rgba(14,165,233,0.18) 0%, transparent 50%);
}
.mapa-ccaa-head > * { position: relative; }
.mapa-ccaa-head h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem);
  margin: 0;
}
.mapa-ccaa-head .mapa-badge {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  font-weight: 700;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.mapa-ccaa-head .back-top {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  padding-top: 0.2rem;
}
.mapa-ccaa-head .back-top:hover { color: #fff; }

/* Provincia card */
.mapa-prov {
  margin-bottom: 2rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  transition: box-shadow 200ms, border-color 200ms;
}
.mapa-prov:hover { box-shadow: var(--shadow-sm); border-color: var(--gray-200); }
.mapa-prov-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--emerald-100);
}
.mapa-prov h3 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.mapa-prov h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-100);
}
.mapa-prov-count {
  font-size: 0.78rem;
  color: var(--emerald-600);
  background: var(--emerald-50);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

/* Pueblos pills — mucho más legibles */
.mapa-pueblos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.45rem;
}
.mapa-pueblos a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--gray-800);
  font-size: 0.92rem;
  font-weight: 500;
  background: var(--gray-50);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 150ms;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mapa-pueblos a::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.4rem;
  vertical-align: -2px;
  background-color: var(--gray-400);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>") center/contain no-repeat;
  transition: background-color 150ms;
}
.mapa-pueblos a:hover::before { background-color: var(--emerald); }
.mapa-pueblos a:hover {
  background: var(--white);
  border-color: var(--emerald);
  color: var(--navy);
  transform: translateX(2px);
  box-shadow: var(--shadow-xs);
}
.mapa-pueblos a:hover::before { opacity: 1; }

@media (max-width: 540px) {
  .mapa-pueblos { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .mapa-pueblos a { font-size: 0.85rem; padding: 0.5rem 0.7rem; }
  .mapa-ccaa-head { padding: 1.25rem 1.25rem; }
  .mapa-prov { padding: 1.25rem 1rem; }
}

/* ======= UTILS ======= */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }
.mt-6 { margin-top: 2rem; }
.mt-8 { margin-top: 3rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--emerald-50);
  color: var(--emerald-600);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  border: 1px solid var(--emerald-100);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* Breadcrumbs inline (no usadas dentro de hero ahora; reservado) */
.crumbs {
  font-size: var(--fs-xs);
  color: var(--gray-500);
  margin-bottom: 1rem;
}
.crumbs a { color: inherit; }
.crumbs [aria-current] { color: var(--navy); }

.vh {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ======= PÁGINA 404 — interactiva y rica ======= */
.err-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.err-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(5, 150, 105, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 70% 85%, rgba(139, 92, 246, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(249, 115, 22, 0.12) 0%, transparent 50%);
  z-index: -1;
}
.err-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><circle cx='1' cy='1' r='1' fill='%2310213a' opacity='0.07'/></svg>");
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,0.9) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,0.9) 0%, transparent 75%);
  z-index: -1;
}
.err-number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.85;
  background: linear-gradient(135deg, var(--navy) 0%, var(--emerald) 45%, var(--sky) 75%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.5rem;
  animation: err-bounce 3.5s ease-in-out infinite;
  filter: drop-shadow(0 12px 32px rgba(5, 150, 105, 0.15));
}
@keyframes err-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.err-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coral);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1rem;
}
.err-badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
  animation: err-pulse 1.8s ease-in-out infinite;
}
@keyframes err-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.05); }
}
.err-title {
  font-size: clamp(1.5rem, 2.5vw + 1rem, 2.5rem);
  color: var(--navy);
  max-width: 22ch;
  margin: 0 auto 0.75rem;
  letter-spacing: -0.03em;
}
.err-sub {
  color: var(--gray-600);
  font-size: var(--fs-md);
  max-width: 54ch;
  margin: 0 auto 2rem;
  line-height: 1.55;
}
.err-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.err-search {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.err-search-input {
  width: 100%;
  padding: 1rem 3.25rem 1rem 3rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: var(--fs-base);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms, box-shadow 180ms;
}
.err-search-input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px var(--emerald-50);
}
.err-search .err-search-ico {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}
.err-search .err-search-ico svg { width: 20px; height: 20px; }
.err-search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  max-height: 260px;
  overflow-y: auto;
  z-index: 20;
  text-align: left;
}
.err-search-results[hidden] { display: none; }
.err-search-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--navy);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: background 150ms;
}
.err-search-results a:hover { background: var(--emerald-50); }
.err-search-results a span { color: var(--gray-400); font-size: 0.85rem; }
.err-search-empty {
  padding: 1rem;
  color: var(--gray-500);
  font-size: 0.85rem;
  text-align: center;
}

.err-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.err-card {
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 250ms, box-shadow 250ms, border-color 250ms;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.err-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--sky) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms;
}
.err-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: var(--navy);
}
.err-card:hover::before { transform: scaleX(1); }
.err-card .err-ico {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--emerald-50) 0%, var(--emerald-100) 100%);
  color: var(--emerald-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.err-card .err-ico svg { width: 24px; height: 24px; }
.err-cards > .err-card:nth-child(4n+2) .err-ico { background: linear-gradient(135deg, var(--sky-50) 0%, var(--sky-100) 100%); color: #0369a1; }
.err-cards > .err-card:nth-child(4n+2)::before { background: linear-gradient(90deg, var(--sky) 0%, var(--violet) 100%); }
.err-cards > .err-card:nth-child(4n+3) .err-ico { background: linear-gradient(135deg, var(--violet-50) 0%, var(--violet-100) 100%); color: #6d28d9; }
.err-cards > .err-card:nth-child(4n+3)::before { background: linear-gradient(90deg, var(--violet) 0%, var(--pink) 100%); }
.err-cards > .err-card:nth-child(4n+4) .err-ico { background: linear-gradient(135deg, var(--coral-50) 0%, var(--coral-100) 100%); color: #c2410c; }
.err-cards > .err-card:nth-child(4n+4)::before { background: linear-gradient(90deg, var(--coral) 0%, var(--amber) 100%); }
.err-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; color: var(--navy); letter-spacing: -0.015em; }
.err-card p { font-size: 0.88rem; color: var(--gray-600); margin: 0 0 0.6rem; }
.err-card .err-card-go {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald-600);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 200ms;
}
.err-card:hover .err-card-go { gap: 0.55rem; }

.err-quick-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* ======= PÁGINA GRACIAS — interactiva y CRO ======= */
.ty-hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem 2rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.ty-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(5, 150, 105, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(14, 165, 233, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.12) 0%, transparent 55%);
  z-index: -1;
}
.ty-check {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-600) 100%);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(5, 150, 105, 0.4), 0 4px 12px rgba(5, 150, 105, 0.2);
  position: relative;
  animation: ty-pop 700ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.ty-check::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 3px solid var(--emerald-300);
  opacity: 0;
  animation: ty-ring 1.6s ease-out 300ms infinite;
}
@keyframes ty-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes ty-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.ty-check svg {
  width: 72px;
  height: 72px;
  color: #fff;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: ty-draw 600ms ease-out 500ms forwards;
}
@keyframes ty-draw { to { stroke-dashoffset: 0; } }

.ty-title {
  font-size: clamp(2rem, 3.5vw + 1rem, 3rem);
  color: var(--navy);
  margin: 0 0 0.75rem;
  letter-spacing: -0.035em;
  max-width: 20ch;
  margin-inline: auto;
}
.ty-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--emerald) 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ty-sub {
  color: var(--gray-600);
  font-size: var(--fs-md);
  max-width: 56ch;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}
.ty-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Timeline de próximos pasos */
.ty-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
  max-width: 1000px;
  margin: 3rem auto 0;
  position: relative;
}
.ty-step {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem;
  position: relative;
  transition: transform 250ms, box-shadow 250ms, border-color 250ms;
  overflow: hidden;
  text-align: left;
}
.ty-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 1.5rem;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--emerald) 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.25);
}
.ty-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.ty-step.ty-step-active {
  background: linear-gradient(180deg, #fff, var(--emerald-50));
  border-color: var(--emerald-100);
}
.ty-step.ty-step-active::before {
  animation: ty-ring 1.6s ease-out infinite;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45);
}
.ty-step h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.ty-step p { font-size: 0.9rem; color: var(--gray-600); margin: 0; line-height: 1.55; }
.ty-step-time {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  background: var(--emerald-50);
  color: var(--emerald-600);
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: 1px solid var(--emerald-100);
}

/* Mientras tanto — cards */
.ty-more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Trust strip */
.ty-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: center;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin: 2.5rem auto 0;
  max-width: 900px;
}
.ty-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
}
.ty-trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--emerald);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .err-actions, .ty-actions { width: 100%; flex-direction: column; }
  .err-actions .btn, .ty-actions .btn { width: 100%; }
  .ty-check { width: 110px; height: 110px; }
  .ty-check svg { width: 56px; height: 56px; }
}

/* Curved section divider (opcional) */
.curve-top {
  position: relative;
  padding-top: 5rem !important;
}
.curve-top::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: inherit;
  -webkit-mask: radial-gradient(80% 80px at 50% 0%, transparent 99%, #000 100%);
  mask: radial-gradient(80% 80px at 50% 0%, transparent 99%, #000 100%);
  background: var(--surface);
}
