/* =========================================================
   ComparativaAlarmas — Design System v1
   Premium · Minimalist · Conversion-focused · Mobile-first
   No external CSS frameworks. Inlined critical-path.
   ========================================================= */

/* ---------- Tokens (Verisure-style premium) ---------- */
:root {
  /* Paleta principal estilo Verisure */
  --color-primary: #FF0033;
  --color-primary-dark: #D9002B;
  --color-primary-soft: #FFE5EA;
  --color-primary-700: #D9002B;
  --color-primary-50: #FFE5EA;

  /* Colores base */
  --color-white: #FFFFFF;
  --color-black: #111827;
  --color-text: #374151;
  --color-text-soft: #6B7280;

  /* Fondos premium */
  --color-bg: #FFFFFF;
  --color-bg-main: #FFFFFF;
  --color-bg-soft: #F5F5F7;
  --color-bg-card: #FFFFFF;
  --color-surface: #F5F5F7;
  --color-surface-2: #EEF0F4;

  /* Bordes y separadores */
  --color-border: #E5E7EB;
  --color-border-soft: #F3F4F6;
  --color-line: #E5E7EB;
  --color-line-strong: #D1D5DB;

  /* Tinta */
  --color-ink: #111827;
  --color-ink-soft: #374151;
  --color-muted: #6B7280;

  /* Secundarios */
  --color-secondary: #111827;
  --color-secondary-700: #0B0F19;
  --color-accent: #16a34a;
  --color-warn: #f59e0b;
  --color-gold: #c39a3b;

  /* Tipografía */
  --font-main: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;

  /* Radios */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Sombras (premium, 5 niveles) */
  --shadow-xs: 0 1px 2px rgba(17,24,39,.05);
  --shadow-sm: 0 2px 4px rgba(17,24,39,.04), 0 1px 2px rgba(17,24,39,.06);
  --shadow-md: 0 6px 16px rgba(17,24,39,.06), 0 2px 6px rgba(17,24,39,.04);
  --shadow-lg: 0 18px 40px rgba(17,24,39,.10), 0 4px 12px rgba(17,24,39,.04);
  --shadow-xl: 0 30px 60px rgba(17,24,39,.14), 0 10px 24px rgba(17,24,39,.06);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.08);
  --shadow-card: 0 12px 32px rgba(17,24,39,.07), 0 2px 6px rgba(17,24,39,.04);
  --shadow-button: 0 10px 24px rgba(255,0,51,.22);
  --shadow-button-hover: 0 14px 32px rgba(255,0,51,.32);
  --ring-focus: 0 0 0 4px rgba(255,0,51,.18);
  --ring-focus-soft: 0 0 0 4px rgba(255,0,51,.10);

  /* Easing curves premium */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s7: 32px; --s8: 40px; --s9: 56px; --s10: 72px;

  /* Layout */
  --container: 1180px;
  --container-narrow: 860px;
  --header-h: 52px;
}

@media (prefers-color-scheme: dark) {
  /* Force light mode — premium light look. Add later if needed. */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color .15s var(--ease-out);
}
a:hover { color: var(--color-primary-dark); }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--color-primary-soft); color: var(--color-primary-dark); }
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Skip link para accesibilidad */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: 10px 16px; background: var(--color-primary); color: #fff;
  font-weight: 700; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-black);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
  margin-top: var(--s7);
}
h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: -0.018em;
  margin-top: var(--s5);
}
h4 {
  font-size: 1rem;
  letter-spacing: -0.015em;
}
@media (max-width: 768px) {
  h1 { font-size: clamp(1.95rem, 8.5vw, 2.6rem); }
  h2 { font-size: clamp(1.55rem, 6.5vw, 2rem); }
}
.section > .container > h2:first-child,
.section > .container > .text-center:first-child h2,
.section__intro h2 { margin-top: 0; }
p  { margin: 0 0 var(--s4); color: var(--color-text-soft); }
p:last-child { margin-bottom: 0; }
ul, ol { color: var(--color-text-soft); padding-left: 1.25rem; margin: 0 0 var(--s4); }
li + li { margin-top: 6px; }
strong { color: var(--color-black); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 18px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 18px; }
@media (min-width: 720px) {
  .container, .container-narrow { padding: 0 24px; }
}
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight { padding: clamp(36px, 5vw, 64px) 0; }
.section-alt {
  background: var(--color-bg-soft);
  position: relative;
}
.section-alt + .section:not(.section-alt):not(.section-dark) {
  border-top: 1px solid var(--color-border);
}
.section + .section { padding-top: clamp(56px, 7vw, 96px); }
.section-dark {
  position: relative;
  background:
    radial-gradient(900px 380px at 78% 18%, rgba(255,0,51,.22), transparent 60%),
    radial-gradient(600px 340px at 12% 110%, rgba(255,0,51,.10), transparent 60%),
    linear-gradient(135deg, #111827 0%, #0B0F19 100%);
  color: #E5E7EB;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}
.section-dark > .container { position: relative; z-index: 1; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--color-white) !important; letter-spacing: -.03em; }
.section-dark h1 em, .section-dark h2 em, .section-dark h3 em,
.section-dark h1 span, .section-dark h2 span, .section-dark h3 span,
.section-dark h1 strong, .section-dark h2 strong, .section-dark h3 strong { color: #fff !important; }
.section-dark p, .section-dark li { color: #C8D0DD; }
.section-dark .btn-primary {
  box-shadow: 0 18px 36px rgba(255,0,51,.50), inset 0 1px 0 rgba(255,255,255,.22);
}

.grid { display: grid; gap: var(--s5); }
@media (min-width: 720px) { .grid { gap: var(--s6); } }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.flex { display: flex; gap: var(--s4); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

/* ---------- Buttons (premium) ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15.5px;
  font-family: var(--font-main);
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition:
    transform .25s var(--ease-out),
    box-shadow .25s var(--ease-out),
    background .25s var(--ease-out),
    color .25s var(--ease-out),
    border-color .25s var(--ease-out);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  user-select: none;
  isolation: isolate;
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus), var(--shadow-button);
}
.btn:active { transform: translateY(0) scale(.98); }

.btn-primary {
  background: linear-gradient(135deg, #FF1F4D 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-button), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover), inset 0 1px 0 rgba(255,255,255,.22);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-primary);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: var(--color-white);
  color: var(--color-black);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover {
  border-color: var(--color-black);
  color: var(--color-black);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-lg { padding: 17px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-icon svg { width: 18px; height: 18px; }
@media (max-width: 768px) {
  .btn { padding: 13px 22px; font-size: 15px; }
  .btn-lg { padding: 15px 26px; font-size: 16px; }
}

/* ---------- Header (premium glass) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(229,231,235,.7);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 1px 8px rgba(17,24,39,.03);
  transition: box-shadow .3s var(--ease-out);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4);
  height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; color: var(--color-ink);
  letter-spacing: -0.02em; font-size: 1.18rem;
}
.brand:hover { color: var(--color-primary); }
.brand__logo {
  width: 28px; height: 28px;
  background: url("/assets/img/brand/logo.png") center/contain no-repeat;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(255,0,51,.20));
}
.nav { display: none; gap: 0; align-items: center; }
.nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: -.005em;
  padding: 5px 9px;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--color-primary); background: var(--color-bg-soft); }
.nav__cta {
  margin-left: 6px;
  padding: 6px 12px !important;
  font-size: 12.5px !important;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white) !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 10px rgba(255,0,51,.20);
}
.nav__cta:hover { background: var(--color-primary-dark) !important; color: var(--color-white) !important; transform: translateY(-1px); }
@media (min-width: 1024px) { .nav { display: inline-flex; gap: 1px; } }
@media (min-width: 1180px) { .nav { gap: 3px; } .nav a { font-size: 13px; padding: 6px 11px; } }

.menu-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--color-line);
  background: #fff; color: var(--color-ink);
}
@media (min-width: 1024px) { .menu-btn { display: none; } }
.menu-btn svg { width: 18px; height: 18px; }

.mobile-nav { display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-nav.is-open {
  display: block;
  padding: var(--s5);
  border-top: 1px solid var(--color-line);
  background: #fff;
}
/* Plain links inside mobile-nav (excluding the CTA button) */
.mobile-nav a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-line);
  transition: color .15s ease;
}
.mobile-nav a:not(.btn):hover { color: var(--color-primary); }
.mobile-nav a:not(.btn)::after {
  content: "›";
  color: var(--color-line-strong);
  font-size: 1.3rem; line-height: 1;
  transition: transform .15s ease, color .15s ease;
}
.mobile-nav a:not(.btn):hover::after { color: var(--color-primary); transform: translateX(3px); }

/* Premium CTA button inside mobile-nav */
.mobile-nav .btn {
  margin-top: var(--s5);
  display: flex;
  width: 100%;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white) !important;
  letter-spacing: -.01em;
  box-shadow: 0 14px 28px rgba(255,0,51,.35), 0 4px 8px rgba(255,0,51,.16);
  border: 0;
  position: relative;
  overflow: hidden;
}
.mobile-nav .btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 60%);
  pointer-events: none;
}
.mobile-nav .btn::after {
  content: "→";
  margin-left: 8px;
  transition: transform .15s ease;
}
.mobile-nav .btn:hover { color: #fff !important; transform: translateY(-1px); }
.mobile-nav .btn:hover::after { transform: translateX(3px); }
.mobile-nav .btn:active { transform: translateY(0); }

/* ---------- Hero (premium) ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 96px);
  background:
    radial-gradient(800px 380px at 82% -10%, rgba(255,0,51,.07), transparent 60%),
    radial-gradient(600px 320px at -5% 110%, rgba(255,0,51,.04), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F8F8FB 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17,24,39,.06), transparent);
  pointer-events: none;
}
.hero__grid {
  display: grid; gap: var(--s7);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: var(--s9); }
}
.eyebrow,
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 14px; font-weight: 800;
  padding: 8px 14px; border-radius: 999px;
  margin-bottom: var(--s5);
  line-height: 1.2;
  letter-spacing: -.005em;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 4px rgba(255,0,51,.18); }

.hero__title {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: var(--s4);
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--color-primary);
  background: linear-gradient(180deg, transparent 70%, rgba(255,0,51,.14) 70%);
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (max-width: 768px) { .hero__title { font-size: clamp(1.95rem, 8.5vw, 2.6rem); } }
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--color-text);
  margin: 0 0 var(--s6); max-width: 56ch;
  line-height: 1.6;
}
.hero__ctas { display: flex; gap: var(--s3); flex-wrap: wrap; }
.hero__ctas .btn { flex: 1 1 auto; min-width: 0; max-width: 100%; }
@media (min-width: 480px) { .hero__ctas .btn { flex: 0 0 auto; } }

.hero__trust {
  margin-top: var(--s7);
  padding-top: var(--s6);
  border-top: 1px solid var(--color-border);
  display: flex; flex-wrap: wrap;
  gap: var(--s4) var(--s6);
}
.trust__item {
  display: flex; align-items: center; gap: 10px;
  color: var(--color-text); font-size: .92rem;
}
.trust__item strong { color: var(--color-black); font-weight: 700; }
.trust__item svg {
  width: 22px; height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
  padding: 4px;
  background: rgba(22,163,74,.10);
  border-radius: 8px;
  box-sizing: content-box;
}

.hero__card {
  background: var(--color-bg-card);
  border: 1px solid rgba(229,231,235,.8);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 36px);
  box-shadow: var(--shadow-xl);
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
@media (min-width: 1024px) {
  .hero__card { border-radius: var(--radius-xl); padding: 38px; }
  .hero__card::before {
    content:""; position:absolute; inset:-2px; border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255,0,51,.28), transparent 65%);
    z-index:-1; filter: blur(28px); opacity:.55;
  }
}

/* ---------- Form (premium) ---------- */
.form { display: grid; gap: 14px; }
.form__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.35rem, 2.1vw, 1.65rem);
  margin: 0 0 4px;
  letter-spacing: -.028em;
  color: var(--color-black);
  line-height: 1.2;
}
.form__sub {
  color: var(--color-text-soft);
  margin: 0 0 var(--s3);
  font-size: 14.5px;
  line-height: 1.55;
}
.form__field { display: grid; gap: 6px; }
.form__field label {
  font-size: 12.5px; font-weight: 700;
  color: var(--color-text);
  letter-spacing: -.005em;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-main);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-black);
  outline: none;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
  box-shadow: var(--shadow-xs);
}
.form__field input::placeholder { color: #9CA3AF; font-weight: 400; }
.form__field input:hover,
.form__field select:hover,
.form__field textarea:hover { border-color: #CBD5E0; }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: var(--ring-focus-soft);
}
.form__row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__check {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 12.5px; color: var(--color-text-soft); line-height: 1.55;
  margin-top: 2px;
}
.form__check input {
  margin-top: 2px; flex-shrink: 0;
  width: 18px; height: 18px;
  accent-color: var(--color-primary); cursor: pointer;
}
.form__legal a {
  text-decoration: underline;
  color: var(--color-primary-dark);
  font-weight: 600;
}
.form__footnote {
  font-size: 12.5px;
  text-align: center;
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.5;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.form__footnote::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 800;
}

/* ---------- Cards (premium) ---------- */
.card {
  background: var(--color-bg-card);
  border: 1px solid rgba(229,231,235,.8);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-md);
  transition:
    border-color .25s var(--ease-out),
    transform .3s var(--ease-out),
    box-shadow .3s var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
  pointer-events: none;
}
.card > :first-child { margin-top: 0; }
.card:hover {
  border-color: rgba(255,0,51,.18);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-primary-soft); color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s4);
  flex-shrink: 0;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 var(--s3); font-size: clamp(1.12rem, 1.6vw, 1.25rem); line-height: 1.3; color: var(--color-black); font-weight: 800; }
.card p { color: var(--color-text-soft); margin: 0 0 var(--s3); flex-grow: 1; line-height: 1.65; }
.card p:last-child { margin-bottom: 0; }
.card__link {
  display: inline-flex; gap: 6px; align-items: center;
  font-weight: 800; color: var(--color-primary);
  margin-top: auto;
  text-decoration: none;
}
.card__link::after { content: "→"; transition: transform .2s ease; }
.card__link:hover::after { transform: translateX(3px); }
.card__link:hover { color: var(--color-primary-dark); }
.grid > .card { height: 100%; }
@media (max-width: 768px) {
  .card { padding: 24px; border-radius: var(--radius-md); }
}

/* ---------- Comparator (cards on mobile / table on desktop) ---------- */
.cmp { display: block; }
.cmp-table { display: none; }
.cmp-cards { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 720px) { .cmp-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 901px) {
  .cmp-cards { display: none; }
  .cmp-table { display: block; overflow: auto; border: 1px solid var(--color-line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
}

/* Cards (default & mobile) */
.cmp-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 18px;
}
.cmp-card--winner {
  border: 2px solid #D4A93A;
  background: linear-gradient(180deg, #FFFBF0 0%, #fff 45%);
  box-shadow: 0 18px 44px rgba(212,169,58,.18), 0 4px 10px rgba(0,0,0,.04);
}
.cmp-card__flag {
  position: absolute; top: -10px; right: 14px;
  background: linear-gradient(135deg, #E2BC4A 0%, #B58A1F 100%);
  color: #2A1B00;
  padding: 4px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(180,138,31,.35);
}
.cmp-card__head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-line);
}
.cmp-card__logo {
  width: 100px; height: 44px; object-fit: contain; flex-shrink: 0;
}
.cmp-card__head strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--color-ink); line-height: 1.2; }
.cmp-card__pack { display: block; font-size: .85rem; color: var(--color-muted); margin-top: 2px; }

.cmp-card__rows { display: grid; gap: 8px; margin: 0; }
.cmp-card__rows > div {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-line);
}
.cmp-card__rows > div:last-child { border-bottom: 0; }
.cmp-card__rows dt { font-size: 13px; color: var(--color-text-soft); font-weight: 500; margin: 0; }
.cmp-card__rows dd { font-weight: 700; color: var(--color-black); margin: 0; text-align: right; font-size: 15px; }
.cmp-card__price { font-family: var(--font-display); font-weight: 800; color: var(--color-primary) !important; font-size: 1.25rem !important; letter-spacing: -.01em; }
.cmp-card__pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }

/* Pills (compartido) */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: .76rem; font-weight: 700; line-height: 1.4;
}
.pill-yes { background: rgba(22,163,74,.12); color: #0e7a37; }
.pill-yes::before { content: "✓"; font-weight: 900; }
.pill-no { background: rgba(220,38,38,.10); color: #b91c1c; }
.pill-warn { background: rgba(245,158,11,.14); color: #b45309; }

/* Table (desktop) */
.compare {
  width: 100%; min-width: 100%;
  border-collapse: separate; border-spacing: 0;
  font-size: .92rem;
  table-layout: auto;
}
.compare th, .compare td {
  padding: 16px 14px; text-align: left;
  border-bottom: 1px solid var(--color-line);
  vertical-align: middle;
}
.compare thead th {
  background: var(--color-surface); font-weight: 700; color: var(--color-ink);
  font-size: .85rem; text-transform: uppercase; letter-spacing: .03em;
  position: sticky; top: 0;
}
.compare tbody tr:hover { background: var(--color-surface); }
.compare .brand-cell { display: flex; align-items: center; gap: 14px; }
.compare .brand-cell strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1.25; color: var(--color-ink); }
.compare .brand-logo {
  width: 64px; height: 40px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; color: #fff; font-size: .85rem;
  flex-shrink: 0;
}
.compare .brand-logo--img {
  background: #fff; border: 1px solid var(--color-line); padding: 4px;
}
.compare .brand-logo--img img { width: 100%; height: 100%; object-fit: contain; }
.compare .price { font-family: var(--font-display); font-weight: 800; color: var(--color-ink); font-size: 1.02rem; line-height: 1.2; }
.compare .price small { display: block; font-weight: 500; color: var(--color-muted); font-size: .72rem; margin-top: 2px; }
.compare .stars { color: #f59e0b; letter-spacing: 1px; font-size: .9rem; }
.compare .winner { background: linear-gradient(90deg, #FFFBF0 0%, #fff 70%); }
.compare .winner-flag {
  display: inline-block; margin-top: 4px;
  background: linear-gradient(135deg, #E2BC4A 0%, #B58A1F 100%);
  color: #2A1B00;
  padding: 2px 9px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 3px 8px rgba(180,138,31,.28);
}
.cmp-pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; max-width: 180px; }
.cmp-note {
  font-size: .82rem; color: var(--color-muted);
  margin-top: 12px; text-align: center;
}

/* Brand tints */
.bg-adt { background: linear-gradient(135deg,#003a70,#0058a8); }
.bg-securitas { background: linear-gradient(135deg,#003e91,#0067d6); }
.bg-prosegur { background: linear-gradient(135deg,#0a2540,#1f3a68); }
.bg-sector { background: linear-gradient(135deg,#1f5f3f,#2a7a52); }
.bg-tyco { background: linear-gradient(135deg,#b40c0c,#e23b3b); }
.bg-segurma { background: linear-gradient(135deg,#0a2c52,#225c97); }
.bg-verisure { background: linear-gradient(135deg,#0a3a8a,#0d5be0); }
.bg-alarmas10 { background: linear-gradient(135deg,#d10a11,#ff4d52); }
.bg-securitasdirect { background: linear-gradient(135deg,#0a3a8a,#0d5be0); }
.bg-mp { background: linear-gradient(135deg,#0070c0,#56b3ff); }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: var(--s3); }
.faq details {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0;
  transition: border .25s ease, box-shadow .25s ease;
}
.faq details:hover { border-color: var(--color-line-strong); }
.faq details[open] { border-color: var(--color-primary); box-shadow: 0 10px 24px rgba(255,0,51,.08); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4);
  font-weight: 700; color: var(--color-black);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.4;
  letter-spacing: -.018em;
  transition: color .2s var(--ease-out);
}
.faq summary:hover { color: var(--color-primary-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  font-size: 1.3rem; font-weight: 400; line-height: 1;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform .2s var(--ease-out), background .2s var(--ease-out);
}
.faq details[open] summary::after {
  content: "−";
  background: var(--color-primary);
  color: #fff;
  transform: rotate(180deg);
}
.faq details > div { padding: 0 24px 22px; color: var(--color-text-soft); line-height: 1.7; }
.faq details > div p { margin: 0; }

/* ---------- Reviews (premium) ---------- */
.review {
  background: var(--color-bg-card);
  border: 1px solid rgba(229,231,235,.8);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.8vw, 30px);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.review::before {
  content: """;
  position: absolute; top: 14px; right: 22px;
  font-family: Georgia, serif;
  font-size: 60px; line-height: 1;
  color: var(--color-primary-soft);
  font-weight: 900;
  pointer-events: none;
}
.review .stars { color: #F59E0B; font-size: 1rem; letter-spacing: 2px; margin-bottom: var(--s3); }
.review p {
  color: var(--color-ink);
  margin: 0 0 var(--s4);
  flex-grow: 1; line-height: 1.6;
  font-size: 15.5px;
  font-style: normal;
  font-weight: 500;
}
.review__author {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding-top: var(--s4);
  border-top: 1px solid var(--color-border);
}
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, #FFD0D8 100%);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800;
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}
.review__name {
  font-weight: 700; color: var(--color-black);
  display: block; line-height: 1.3;
  font-size: 15px;
}
.review__loc { font-size: 13px; color: var(--color-muted); }

/* ---------- Stats (premium) ---------- */
.stats {
  display: grid; gap: var(--s4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); gap: var(--s5); } }
.stat {
  text-align: center;
  padding: clamp(20px, 2.5vw, 28px) clamp(14px, 1.5vw, 18px);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1; letter-spacing: -.035em;
}
.stat__label {
  color: var(--color-text-soft);
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

/* ---------- Steps (premium) ---------- */
.steps { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 560px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4,1fr); gap: var(--s6); } }
.step {
  background: var(--color-bg-card);
  border: 1px solid rgba(229,231,235,.8);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step__num {
  position: absolute; top: -18px; left: 22px;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #FF1F4D 0%, var(--color-primary-dark) 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(255,0,51,.32), inset 0 1px 0 rgba(255,255,255,.25);
  border: 3px solid var(--color-bg-main);
}
.step h3 { margin: 8px 0 var(--s3); font-size: 1.08rem; }
.step p { font-size: 14.5px; line-height: 1.55; }

/* ---------- Breadcrumbs (post-footer, centered) ---------- */
.crumbs--bottom {
  background: var(--color-secondary-700);
  border-top: 1px solid rgba(255,255,255,.04);
  padding: 18px 0;
  font-size: 13px;
  color: #95a3bd;
  letter-spacing: -.005em;
}
.crumbs--bottom ol {
  list-style: none; padding: 0 var(--s4); margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 4px 0;
}
.crumbs--bottom li { display: inline-flex; align-items: center; }
.crumbs--bottom li::after {
  content: "›"; margin: 0 10px; color: rgba(255,255,255,.25);
  font-size: 1rem; line-height: 1;
}
.crumbs--bottom li:last-child::after { content: ""; margin: 0; }
.crumbs--bottom a { color: #c8d2e1; }
.crumbs--bottom a:hover { color: #fff; }
.crumbs--bottom li:last-child span { color: #fff; font-weight: 600; }

/* ---------- Pros/Cons (premium) ---------- */
.pros-cons { display: grid; gap: var(--s5); grid-template-columns: 1fr; margin-top: var(--s5); }
@media (min-width: 720px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pc-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(229,231,235,.8);
  border-radius: var(--radius-md);
  padding: var(--s6);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.pc-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.pc-card.pros::before { background: linear-gradient(90deg, var(--color-accent), #4ADE80); }
.pc-card.cons::before { background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary)); }
.pc-card h3 {
  margin-top: 0; margin-bottom: var(--s4);
  font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.pc-card.pros h3::before {
  content: "✓"; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(22,163,74,.12); color: var(--color-accent);
  font-size: 14px;
}
.pc-card.cons h3::before {
  content: "−"; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-primary-soft); color: var(--color-primary-dark);
  font-size: 18px; line-height: 1;
}
.pc-card ul { padding-left: 0; list-style: none; margin: 0; }
.pc-card li {
  padding: 8px 0 8px 28px; position: relative;
  color: var(--color-ink); font-size: 14.5px; line-height: 1.55;
}
.pc-card li + li { border-top: 1px solid var(--color-border-soft); }
.pc-card.pros li::before { content:"✓"; position:absolute; left: 4px; top: 9px; color: var(--color-accent); font-weight:800; }
.pc-card.cons li::before { content:"−"; position:absolute; left: 4px; top: 7px; color: var(--color-primary); font-weight:800; font-size: 18px; line-height: 1; }

/* ---------- Brand grid ---------- */
.brand-grid { display: grid; gap: var(--s5); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .brand-grid { grid-template-columns: repeat(5, 1fr); } }
.brand-tile { background: #fff; border: 1px solid var(--color-line); border-radius: var(--r-md); padding: var(--s5); display: grid; place-items: center; gap: 10px; min-height: 120px; text-align: center; }
.brand-tile .brand-logo { width: 44px; height: 44px; border-radius: 10px; }
.brand-tile span { font-weight: 700; color: var(--color-ink); font-size: .9rem; }

/* ---------- Floating mobile CTA (premium, slim, centered) ---------- */
.float-cta {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 8px 8px;
  background: linear-gradient(135deg, #FF1F4D 0%, #D9002B 100%);
  color: #fff;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 12px 26px rgba(255,0,51,.40),
    0 3px 8px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.float-cta:hover,
.float-cta:focus-visible {
  color: #fff;
  transform: translateX(-50%) translateY(-2px);
  box-shadow:
    0 16px 32px rgba(255,0,51,.48),
    0 6px 12px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.28);
}
.float-cta:active { transform: translateX(-50%) translateY(0); }

.float-cta__icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.20);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.float-cta__icon svg { width: 13px; height: 13px; }
.float-cta__icon::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: #16D04B;
  box-shadow: 0 0 0 1.5px #D9002B;
  animation: floatPulse 2s ease-in-out infinite;
}
.float-cta__label { white-space: nowrap; }

@keyframes floatPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.18); opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  .float-cta__icon::after { animation: none; }
}

@media (min-width: 1024px) { .float-cta { display: none; } }
@media (max-width: 1023px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #111827 0%, #0B0F19 100%);
  color: #C8D0DD;
  padding: clamp(56px, 7vw, 88px) 0 var(--s6);
  margin-top: 0;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,0,51,.4), transparent);
}
.site-footer h4 {
  color: #fff;
  font-size: .92rem;
  margin: 0 0 var(--s4);
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
}
.site-footer a {
  color: #B8C4D9;
  transition: color .15s var(--ease-out);
}
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: var(--s7); grid-template-columns: 1fr; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: var(--s6); } }

.footer__brand .brand { color: #fff; font-size: 1.3rem; }
.footer__brand .brand:hover { color: #fff; }
.footer__brand .brand__logo {
  width: 38px; height: 38px;
  filter: drop-shadow(0 4px 14px rgba(255,0,51,.45));
}
.footer__brand p {
  color: #95a3bd;
  max-width: 32ch;
  margin-top: var(--s4);
  font-size: 14px;
  line-height: 1.65;
}

.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-list a { font-size: .92rem; }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: var(--s7); padding-top: var(--s5);
  color: #95a3bd; font-size: .85rem;
}
.footer__legal a + a { margin-left: 6px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom));
  z-index: 70;
  background: #fff;
  border: 1px solid rgba(229,231,235,.8);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-xl);
  display: none;
}
.cookie.show { display: block; }
.cookie p { margin: 0 0 10px; font-size: .88rem; line-height: 1.5; }
.cookie__row { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie .btn { padding: 10px 16px; font-size: .88rem; flex: 1 1 auto; }
@media (min-width: 1024px) {
  .cookie { left: auto; bottom: 16px; right: 16px; max-width: 380px; }
  .cookie .btn { flex: 0 0 auto; }
}

/* ---------- Local hero (premium dark + halo) ---------- */
.local-hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(900px 400px at 82% 15%, rgba(255,0,51,.22), transparent 60%),
    radial-gradient(600px 320px at 8% 110%, rgba(255,0,51,.10), transparent 60%),
    linear-gradient(135deg, #111827 0%, #0B0F19 100%);
  color: #fff;
  overflow: hidden;
}
.local-hero::after {
  /* sutil rejilla para textura */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.local-hero .container { position: relative; z-index: 1; }
.local-hero .eyebrow {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  margin-bottom: var(--s4);
}
.local-hero .eyebrow .dot { background: #FF5575; box-shadow: 0 0 0 4px rgba(255,0,51,.20); }

.local-hero h1 {
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 0 0 var(--s4);
  max-width: 22ch;
  text-wrap: balance;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.local-hero h1 em,
.local-hero h1 .city,
.local-hero h1 strong,
.local-hero h1 span {
  color: #fff !important;
}
.local-hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 62%, rgba(255,0,51,.55) 62%);
  padding: 0 4px;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.local-hero h1 .city {
  color: #fff !important;
  white-space: nowrap;
  font-weight: 800;
}
@media (max-width: 600px) { .local-hero h1 .city { white-space: normal; } }
.local-hero__lead {
  color: #C8D0DD;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  margin: 0 0 var(--s5);
  max-width: 60ch;
}

.local-meta {
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  margin-top: var(--s6);
  margin-bottom: var(--s6);
}
.local-meta__item {
  display: inline-flex; align-items: center; gap: 8px;
  color: #E5E7EB; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.local-meta__item svg { width: 14px; height: 14px; opacity: .85; flex-shrink: 0; }

.local-hero__cta { margin-top: var(--s5); }
.local-hero .btn-primary {
  box-shadow: 0 14px 30px rgba(255,0,51,.45), 0 4px 8px rgba(0,0,0,.18);
}
@media (max-width: 480px) {
  .local-hero h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); max-width: 100%; }
  .local-meta__item { font-size: 12px; padding: 6px 10px; }
}

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.center, .text-center { text-align: center; }
.muted { color: var(--color-muted); }
.bold { font-weight: 700; }
.no-mt, .mt-0 { margin-top: 0 !important; }
.mt-7 { margin-top: var(--s7); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--color-bg-soft);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  letter-spacing: -.005em;
}

/* Layout intent utilities (replace inline styles) */
.section__intro { max-width: 760px; margin: 0 auto var(--s7); text-align: center; }
.section__intro h2 { margin-top: 0; margin-bottom: var(--s4); }
.section__intro p {
  color: var(--color-text-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 60ch;
  margin: 0 auto;
}
.section__intro__sub {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto var(--s7);
  color: var(--color-text-soft);
  font-size: 1.02rem;
  line-height: 1.6;
}
.section-dark .section__intro p,
.section-dark .section__intro__sub { color: #C8D0DD; }
.cta-block { max-width: 600px; margin: 0 auto var(--s6); color: #cfd5e0; }
.section-dark .cta-block { color: #cfd5e0; }
.center-cta { text-align: center; margin-top: var(--s6); }
.prose { max-width: 70ch; }
.section-tight + .section { padding-top: 0; }
.cmp-spaced { margin-bottom: var(--s5); }
.cmp-spaced:last-child { margin-bottom: 0; }
.mt-section { margin-top: var(--s8); }
.cmp-table-note { font-size: .9rem; color: var(--color-muted); margin-top: var(--s5); }
.brand-card__title { margin-top: var(--s4) !important; }
.hero__ctas--center { justify-content: center; }
.local-hero__lead { max-width: 640px; font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.55; }
.local-hero__cta { margin-top: var(--s6); }
.ocu-table { margin: var(--s5) 0; overflow: auto; border: 1px solid var(--color-line); border-radius: var(--r-md); background: #fff; }
.ocu-row--alert { background: rgba(220,38,38,.05); }
.ocu-row--alert:hover { background: rgba(220,38,38,.08); }

/* Old compare-wrap kept for legacy references */
.compare-wrap { overflow: auto; }

/* ---------- Pueblos index ---------- */
.provinces-toc {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 var(--s7);
  padding: 18px 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.provinces-toc a {
  display: inline-flex; align-items: center;
  padding: 5px 11px;
  font-size: 13px; font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-soft);
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.provinces-toc a:hover { background: var(--color-primary-soft); color: var(--color-primary-dark); }

.provinces-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
}
@media (min-width: 720px) { .provinces-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .provinces-grid { grid-template-columns: 1fr 1fr 1fr; } }

.province-block {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.province-block h3 {
  margin: 0 0 var(--s3);
  font-size: 1.1rem;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.province-block h3 small { font-size: .78rem; font-weight: 500; }
.towns-list {
  list-style: none; padding: 0; margin: 0;
  columns: 2; column-gap: 18px;
}
.towns-list li { break-inside: avoid; padding: 2px 0; }
.towns-list a {
  font-size: 13.5px; color: var(--color-text);
  display: block; padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.towns-list a:hover { color: var(--color-primary); border-bottom-color: var(--color-primary); }
@media (max-width: 480px) { .towns-list { columns: 1; } }

/* ---------- Anim ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Thank-you page (premium) ---------- */
.thanks {
  position: relative;
  padding: clamp(64px, 9vw, 128px) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(900px 460px at 50% -10%, rgba(22,163,74,.14), transparent 60%),
    radial-gradient(700px 360px at 88% 110%, rgba(255,0,51,.06), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F5F7FA 100%);
  overflow: hidden;
  text-align: center;
}
.thanks::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17,24,39,.08), transparent);
  pointer-events: none;
}
.thanks__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.thanks__check {
  position: relative;
  width: 104px; height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  color: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto var(--s5);
  box-shadow: 0 18px 36px rgba(22,163,74,.22), inset 0 1px 0 rgba(255,255,255,.7);
  border: 6px solid #fff;
  animation: checkBounce .6s var(--ease-spring) both;
}
.thanks__check::before {
  content: "";
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(22,163,74,.18);
  animation: checkPulse 2.4s ease-in-out infinite;
}
@keyframes checkBounce {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes checkPulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(1.18); opacity: 0; }
}
.thanks h1 {
  margin-top: var(--s5);
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  letter-spacing: -.035em;
}
.thanks h1 em {
  font-style: normal;
  color: var(--color-primary);
  background: linear-gradient(180deg, transparent 70%, rgba(255,0,51,.14) 70%);
  padding: 0 4px;
}
.thanks__lead {
  max-width: 600px; margin: var(--s4) auto var(--s7);
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  color: var(--color-text);
  line-height: 1.65;
}
.thanks__lead strong { color: var(--color-black); }

/* Steps en gracias */
.thanks__steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: var(--s5);
}
.thanks__steps > li {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--color-bg-card);
  border: 1px solid rgba(229,231,235,.8);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.thanks__steps > li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.thanks__steps > li > div { flex: 1; }
.thanks__steps h3 { margin: 0 0 6px; font-size: 1.08rem; }
.thanks__steps p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.thanks__step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF1F4D 0%, var(--color-primary-dark) 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  box-shadow: 0 8px 16px rgba(255,0,51,.30);
}

/* ---------- 404 (premium) ---------- */
.notfound {
  position: relative;
  padding: clamp(64px, 9vw, 128px) 0 clamp(48px, 6vw, 96px);
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% -10%, rgba(255,0,51,.10), transparent 60%),
    radial-gradient(600px 320px at 88% 110%, rgba(255,0,51,.05), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F5F7FA 100%);
  overflow: hidden;
}
.notfound__inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.notfound__num {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 14vw, 9.5rem);
  line-height: 1;
  letter-spacing: -.05em;
  margin: var(--s5) 0;
  background: linear-gradient(135deg, #FF1F4D 0%, var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound__num span { display: inline-block; }
.notfound__shield {
  width: clamp(4rem, 11vw, 7.5rem);
  height: clamp(4rem, 11vw, 7.5rem);
  background: url("/assets/img/brand/logo.png") center/contain no-repeat;
  filter: drop-shadow(0 12px 28px rgba(255,0,51,.40));
  animation: shieldFloat 4s ease-in-out infinite;
}
@keyframes shieldFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.notfound h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin: 0 0 var(--s4);
  letter-spacing: -.03em;
}
.notfound__lead {
  max-width: 580px; margin: 0 auto var(--s7);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--color-text);
  line-height: 1.65;
}
.notfound__ctas {
  display: flex; gap: var(--s3);
  justify-content: center;
  flex-wrap: wrap;
}
.notfound__ctas .btn { flex: 1 1 220px; max-width: 280px; }

@media (max-width: 480px) {
  .notfound__num { font-size: clamp(4rem, 18vw, 6rem); gap: 6px; }
  .notfound__shield { width: 4rem; height: 4rem; }
  .thanks__steps > li { padding: 18px; gap: 14px; }
  .thanks__step-num { width: 32px; height: 32px; font-size: .95rem; }
}

/* Steps fix: remove top spacing / equalise */
.step { margin-top: 16px; padding-top: var(--s7); }
.step h3 { margin-top: 0; }

/* Reviews equal height */
.review { display: flex; flex-direction: column; height: 100%; }

/* Internal links: matchings */
.card.card__link-row { gap: 6px; }

/* Pros/cons spacing tweak */
.pc-card ul { margin: 0; }

/* Local hero: remove redundant top padding inside card area on mobile */
.local-hero h1 { margin-bottom: var(--s3); }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .float-cta, .cookie { display: none !important; }
  .section { padding: 0; }
}
