/* ============================================================
   FELIA — Hoja de estilos principal
   Colores: Púrpura #5B2D8E · Ámbar #F2A51A
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   Variables
   ──────────────────────────────────────────────────────────── */
:root {
  --purple:       #5B2D8E;
  --purple-dark:  #3D1A6A;
  --purple-light: #7B4DB0;
  --purple-pale:  #F3EEF9;
  --amber:        #F2A51A;
  --amber-dark:   #D4900F;
  --amber-pale:   #FFF8E7;

  --white:   #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100:#F3F4F6;
  --gray-200:#E5E7EB;
  --gray-400:#9CA3AF;
  --gray-500:#6B7280;
  --gray-700:#374151;
  --gray-900:#111827;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max:  1200px;
  --r:    12px;
  --r-lg: 20px;
  --sh:   0 4px 24px rgba(0,0,0,0.08);
  --sh-lg:0 12px 48px rgba(0,0,0,0.14);
  --t:    0.22s ease;
}

/* ────────────────────────────────────────────────────────────
   Reset & base
   ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ────────────────────────────────────────────────────────────
   Botones
   ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  text-align: center;
}
.btn--lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

.btn--amber {
  background: var(--amber);
  color: var(--gray-900);
  border-color: var(--amber);
}
.btn--amber:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(242,165,26,0.35);
}

.btn--purple {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}
.btn--purple:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91,45,142,0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ────────────────────────────────────────────────────────────
   Elementos comunes
   ──────────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
}

.section-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-badge--purple { background: var(--purple-pale); color: var(--purple); }
.section-badge--amber  { background: var(--amber-pale);  color: var(--amber-dark); }

.check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--gray-700);
}
.check-list li i {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--purple-pale);
  color: var(--purple);
  font-size: 0.65rem;
  margin-top: 0.15rem;
}
.check-list--amber li i {
  background: var(--amber-pale);
  color: var(--amber-dark);
}

/* Placeholder de imagen */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--r);
  font-size: 0.85rem;
  color: var(--gray-400);
  background: var(--gray-100);
  border: 2px dashed var(--gray-200);
}
.img-placeholder i { font-size: 2rem; color: var(--gray-300); }
.img-placeholder p { font-weight: 500; color: var(--gray-500); }
.img-placeholder small { font-size: 0.75rem; }
.img-placeholder--map { background: #EEF2FF; border-color: #C7D2FE; }
.img-placeholder--map i { color: var(--purple-light); }
.img-placeholder--dashboard { background: #F0FDF4; border-color: #A7F3D0; }
.img-placeholder--dashboard i { color: #059669; }

/* ────────────────────────────────────────────────────────────
   NAVEGACIÓN
   ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--t);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav__container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo { display: flex; align-items: center; }
.nav__logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--purple);
  letter-spacing: -0.02em;
}
.nav__logo-dot { color: var(--amber); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__link {
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 6px;
  transition: all var(--t);
}
.nav__link:hover,
.nav__link.active { color: var(--purple); background: var(--purple-pale); }

.nav__cta {
  padding: 0.5rem 1.2rem;
  background: var(--amber);
  color: var(--gray-900);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  transition: all var(--t);
  margin-left: 0.5rem;
}
.nav__cta:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242,165,26,0.35);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--t);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ────────────────────────────────────────────────────────────
   SECCIÓN 1 — HERO
   ──────────────────────────────────────────────────────────── */
.hero {
  padding-top: 68px;
  position: relative;
  overflow: hidden;
  min-height: 68vh;
}
.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(91, 45, 142, 0.55);
  z-index: 2;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
                    radial-gradient(circle at 20% 80%, rgba(242,165,26,0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 3;
}

.hero__container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 4;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(242,165,26,0.18);
  border: 1px solid rgba(242,165,26,0.35);
  color: #FBBF24;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mockup de app */

/* Logos de clientes */
.hero__clients {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 2rem 1.5rem;
}
.hero__clients-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.hero__clients-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.hero__clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.logo-chip {
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 500;
}
/* Reemplazar logo-chip por <img> cuando estén disponibles los logos:
   .logo-chip img { height: 28px; filter: brightness(0) invert(0.8); } */

/* ────────────────────────────────────────────────────────────
   SECCIÓN 2 — CIFRAS
   ──────────────────────────────────────────────────────────── */
.stats {
  background: var(--white);
  padding: 4.5rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}
.stats__container {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--r);
  transition: background var(--t);
}
.stat:hover { background: var(--gray-50); }

.stat__number {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--purple);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.stat__label {
  display: block;
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ────────────────────────────────────────────────────────────
   SECCIÓN 3 — FUNCIONALIDADES
   ──────────────────────────────────────────────────────────── */
.features {
  background: var(--gray-50);
  padding: 5rem 1.5rem 3rem;
}
.features__container { max-width: var(--max); margin: 0 auto; position: relative; }

.features__cat {
  position: absolute;
  bottom: 0;
  left: -290px;
  height: 480px;
  width: auto;
  pointer-events: none;
  filter: drop-shadow(-6px 0 20px rgba(0,0,0,0.10));
  z-index: 2;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.faq__image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.faq__image img {
  max-height: 530px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.12));
}

.feature-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--sh);
  border: 1px solid var(--gray-100);
  transition: all var(--t);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--purple-pale);
}
.feature-card__icon {
  width: 52px;
  height: 52px;
  background: var(--purple-pale);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  color: var(--purple);
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--gray-900);
}
.feature-card p { font-size: 0.92rem; color: var(--gray-500); line-height: 1.6; }

/* ────────────────────────────────────────────────────────────
   SECCIÓN 4 — PROTOCOLO CER
   ──────────────────────────────────────────────────────────── */
.cer {
  background: var(--white);
  padding: 5rem 1.5rem;
}
.cer__container { max-width: var(--max); margin: 0 auto; }

.cer__diagram {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.cer-step {
  flex: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  background: var(--purple-pale);
  border-radius: var(--r-lg);
  border: 2px solid transparent;
  transition: all var(--t);
}
.cer-step:hover {
  background: var(--white);
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.cer-step__num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cer-step__icon {
  font-size: 2rem;
  color: var(--purple);
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}
.cer-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}
.cer-step p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.55; }

.cer__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  padding-top: 3.5rem;
  color: var(--purple-light);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────
   SECCIÓN 5 — BANNER GOBERNANZA
   ──────────────────────────────────────────────────────────── */
.banner {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 100%);
  padding: 4.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(242,165,26,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.banner__container {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.banner__content { text-align: left; }
.banner__content .norm-pills { justify-content: flex-start; }

.banner__visual { display: flex; align-items: center; justify-content: center; }
.banner__img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.15);
}

.banner__text {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.banner__text strong { color: var(--white); }

.banner__legal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.norm-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.norm-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
  position: relative;
  cursor: default;
  transition: all var(--t);
}
.norm-pill:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.42);
  transform: translateY(-1px);
}
.norm-pill i { color: var(--amber); font-size: 0.82rem; }

.norm-pill[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  width: max-content;
  max-width: 220px;
  white-space: normal;
  text-align: center;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
  z-index: 20;
}
.norm-pill[data-tooltip]:hover::after { opacity: 1; }

/* ────────────────────────────────────────────────────────────
   SECCIÓN 6 — PARA AYUNTAMIENTOS
   ──────────────────────────────────────────────────────────── */
.municipalities {
  background: var(--white);
  padding: 5rem 1.5rem;
}
.municipalities__container {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.municipalities__content h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}
.municipalities__content .check-list { margin-bottom: 2rem; }

.municipalities__visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.app-screenshot {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  height: fit-content;
  border: 1px solid var(--gray-100);
}
.app-screenshot--offset {
  margin-left: 2rem;
  margin-top: -0.5rem;
}

/* ────────────────────────────────────────────────────────────
   SECCIÓN 7 — PARA GESTORAS
   ──────────────────────────────────────────────────────────── */
.guardians {
  background: var(--gray-50);
  padding: 5rem 1.5rem;
}
.guardians__container {
  max-width: var(--max);
  margin: 0 auto;
}
.guardians__container h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.guardians__intro {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--r);
  border-left: 4px solid var(--amber);
}
.guardians__intro strong { color: var(--gray-900); }

.guardians__body {
  display: grid;
  grid-template-columns: 1fr 240px 1fr;
  gap: 3rem;
  align-items: center;
}

/* Phone mockup */
.guardians__phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 220px;
  flex-shrink: 0;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.28));
}

.phone-mockup__frame {
  background: #18181B;
  border-radius: 44px;
  padding: 14px 12px 10px;
  box-shadow:
    0 0 0 1.5px #3F3F46,
    0 0 0 3.5px #09090B,
    inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}

/* Botones de volumen (izquierda) */
.phone-mockup__frame::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 76px;
  width: 3.5px;
  height: 28px;
  background: #3F3F46;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 42px 0 #3F3F46;
}

/* Botón de encendido (derecha) */
.phone-mockup__frame::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 96px;
  width: 3.5px;
  height: 46px;
  background: #3F3F46;
  border-radius: 0 3px 3px 0;
}

.phone-mockup__screen {
  background: var(--purple-pale);
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.phone-mockup__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 0;
}

.phone-mockup__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}
.phone-mockup__placeholder i {
  font-size: 3.2rem;
  color: var(--purple-light);
  opacity: 0.25;
}
.phone-mockup__placeholder span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.phone-mockup__home-bar {
  width: 88px;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  margin: 10px auto 2px;
}

.guardians__cta-box {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--sh);
  border: 1px solid var(--gray-100);
}
.guardians__cta-text {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* ────────────────────────────────────────────────────────────
   SECCIÓN 7b — CARNET DIGITAL Y COMUNICACIÓN INTERNA
   ──────────────────────────────────────────────────────────── */
.extras {
  background: var(--white);
  padding: 5rem 1.5rem;
}
.extras__container { max-width: 1500px; margin: 0 auto; }

.extras__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.extra-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--sh);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all var(--t);
}
.extra-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.extra-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.extra-card--purple .extra-card__icon {
  background: var(--purple-pale);
  color: var(--purple);
}
.extra-card--amber .extra-card__icon {
  background: var(--amber-pale);
  color: var(--amber-dark);
}

.extra-card__tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.extra-card--purple .extra-card__tag {
  background: var(--purple-pale);
  color: var(--purple);
}
.extra-card--amber .extra-card__tag {
  background: var(--amber-pale);
  color: var(--amber-dark);
}
.extra-card--teal .extra-card__icon {
  background: #ECFDF5;
  color: #059669;
}
.extra-card--teal .extra-card__tag {
  background: #ECFDF5;
  color: #059669;
}
.extra-card--blue .extra-card__icon {
  background: #EFF6FF;
  color: #2563EB;
}
.extra-card--blue .extra-card__tag {
  background: #EFF6FF;
  color: #2563EB;
}

.check-list--teal li i {
  background: #ECFDF5;
  color: #059669;
}
.check-list--blue li i {
  background: #EFF6FF;
  color: #2563EB;
}

.extra-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
}
.extra-card > p {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* ────────────────────────────────────────────────────────────
   SECCIÓN 8 — POR QUÉ FELIA
   ──────────────────────────────────────────────────────────── */
.why {
  background: var(--white);
  padding: 5rem 1.5rem;
}
.why__container { max-width: var(--max); margin: 0 auto; }

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  padding: 2rem;
  border-radius: var(--r-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: all var(--t);
}
.why-card:hover {
  background: var(--purple-pale);
  border-color: rgba(91,45,142,0.2);
  transform: translateY(-3px);
}
.why-card__icon {
  width: 48px;
  height: 48px;
  background: var(--purple);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}
.why-card p { font-size: 0.92rem; color: var(--gray-500); line-height: 1.6; }

/* ────────────────────────────────────────────────────────────
   SECCIÓN 9 — MUNICIPIOS DE REFERENCIA
   ──────────────────────────────────────────────────────────── */
.testimonials {
  background: var(--gray-50);
  padding: 5rem 1.5rem;
}
.testimonials__container { max-width: var(--max); margin: 0 auto; }

/* Carrusel continuo de municipios */
.muni-carousel {
  display: flex;
  overflow: hidden;
  margin-bottom: 2rem;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.muni-carousel__group {
  display: flex;
  gap: 1.5rem;
  padding-right: 1rem;
  flex-shrink: 0;
  animation: muni-scroll 30s linear infinite;
}

.muni-carousel:hover .muni-carousel__group {
  animation-play-state: paused;
}

@keyframes muni-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.muni-card {
  display: flex;
  flex-direction: column;
  width: 240px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: hidden;
  flex-shrink: 0;
  transition: box-shadow var(--t), border-color var(--t);
}
.muni-card:hover {
  border-color: rgba(91,45,142,0.25);
  box-shadow: 0 8px 28px rgba(91,45,142,0.1);
}

.muni-card__img {
  width: 100%;
  height: 130px;
  background: var(--gray-100);
  object-fit: cover;
}

.muni-card__img img {
    height: 95%;
    width: 100%
}

.muni-card__info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
}

.muni-card__shield {
  width: 42px;
  height: 42px;
  background: var(--purple-pale);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.muni-card__body {
  flex: 1;
  min-width: 0;
}
.muni-card__body strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.muni-card__body span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.muni-card__verified {
  color: #22C55E;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.testimonials__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ────────────────────────────────────────────────────────────
   SECCIÓN 10 — CÓMO EMPEZAR
   ──────────────────────────────────────────────────────────── */
.steps {
  background: var(--white);
  padding: 5rem 1.5rem;
}
.steps__container {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.steps__track {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  margin: 0 auto 3rem;
  max-width: 900px;
}

.step {
  flex: 1;
  padding: 2rem 1.5rem;
  text-align: center;
}
.step__number {
  width: 64px;
  height: 64px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(91,45,142,0.25);
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--gray-900);
}
.step p { font-size: 0.92rem; color: var(--gray-500); }

.step__line {
  flex-shrink: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-light), var(--amber));
  margin-top: 2rem;
  border-radius: 2px;
}

/* ────────────────────────────────────────────────────────────
   SECCIÓN 11 — FORMULARIO DEMO
   ──────────────────────────────────────────────────────────── */
.demo {
  background: var(--gray-50);
  padding: 5rem 1.5rem;
}
.demo__container {
  max-width: 760px;
  margin: 0 auto;
}
.demo__header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.demo__header h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.demo__header p {
  font-size: 1.05rem;
  color: var(--gray-500);
}

.demo-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(91,45,142,0.1);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 80px; }

.form-legal {
  font-size: 0.78rem;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.5;
}
.form-legal a { color: var(--purple); text-decoration: underline; }

.demo-success {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
}
.demo-success i {
  font-size: 3rem;
  color: #22C55E;
  margin-bottom: 1rem;
  display: block;
}
.demo-success h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; }
.demo-success p { color: var(--gray-500); }

/* ────────────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 3rem 1.5rem 1.5rem;
}
.footer__container { max-width: var(--max); margin: 0 auto; }

.footer__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer__logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}
.footer__logo span { color: var(--amber); }
.footer__brand p { font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-bottom: 0.35rem; }
.footer__company { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer__company a { color: rgba(255,255,255,0.7); transition: color var(--t); }
.footer__company a:hover { color: var(--white); }

.footer__nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.footer__nav a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--t);
}
.footer__nav a:hover { color: var(--white); }

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ────────────────────────────────────────────────────────────
   MODAL
   ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.modal-overlay[hidden] { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.modal > p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.85rem;
  transition: all var(--t);
}
.modal__close:hover { background: var(--gray-200); color: var(--gray-900); }

/* Formulario en modal */
.modal .demo-form {
  box-shadow: none;
  border: none;
  padding: 0;
  background: transparent;
}

/* ────────────────────────────────────────────────────────────
   LIGHTBOX
   ──────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}
.lightbox[hidden] { display: none; }

.lightbox__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: min(1100px, 90vw);
}

.lightbox__img {
  max-height: 82vh;
  max-width: 100%;
  width: auto;
  border-radius: var(--r);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  display: block;
  animation: slideUp 0.22s ease;
}

.lightbox__caption {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
}

.lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
}
.lightbox__close:hover { background: rgba(255,255,255,0.22); }

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.22); }
.lightbox__prev { left: 1.25rem; }
.lightbox__next { right: 1.25rem; }

.lightbox__counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ────────────────────────────────────────────────────────────
   BOTÓN SCROLL TO TOP
   ──────────────────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(91,45,142,0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--t), transform var(--t), background var(--t), box-shadow var(--t);
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--purple-dark);
  box-shadow: 0 6px 24px rgba(91,45,142,0.45);
  transform: translateY(-2px);
}

/* ────────────────────────────────────────────────────────────
   Animaciones de entrada (scroll)
   ──────────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ────────────────────────────────────────────────────────────
   CALLOUT MUNICIPIOS (testimonios)
   ──────────────────────────────────────────────────────────── */
.muni-callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--purple-pale);
  border: 1px solid rgba(91,45,142,0.2);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin-top: 1.75rem;
}
.muni-callout > i {
  font-size: 1.4rem;
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.muni-callout p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.65;
}
.muni-callout strong { color: var(--purple); }

/* ────────────────────────────────────────────────────────────
   ODS PILLS (banner)
   ──────────────────────────────────────────────────────────── */
.ods-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.ods-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem 0.3rem 0.35rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  cursor: default;
  transition: all var(--t);
}
.ods-pill:hover { background: rgba(255,255,255,0.15); }
.ods-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--amber);
  color: var(--gray-900);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  flex-shrink: 0;
}
.banner__content .ods-row { justify-content: flex-start; }

/* ────────────────────────────────────────────────────────────
   TABLA COMPARATIVA (Por qué Felia)
   ──────────────────────────────────────────────────────────── */
.compare {
  margin-top: 4rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.compare__title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 1.4rem 1.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-900);
}
.compare__head,
.compare__row {
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  align-items: center;
}
.compare__head {
  background: var(--gray-100);
  border-bottom: 2px solid var(--gray-200);
}
.compare__head > div { padding: 0.9rem 1.25rem; font-size: 0.85rem; font-weight: 700; }
.compare__col-felia {
  background: var(--purple);
  color: var(--white);
  text-align: center;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.compare__col-felia span { color: var(--amber); }
.compare__col-other { text-align: center; color: var(--gray-500); }
.compare__row { border-bottom: 1px solid var(--gray-100); transition: background var(--t); }
.compare__row:last-child { border-bottom: none; }
.compare__row:hover { background: var(--gray-50); }
.compare__row > div { padding: 0.85rem 1.25rem; font-size: 0.92rem; color: var(--gray-700); }
.compare__row > div:first-child { font-weight: 500; }
.compare__row > .yes { text-align: center; color: #16A34A; font-weight: 700; font-size: 0.97rem; background: rgba(22,163,74,0.05); }
.compare__row > .no { text-align: center; color: var(--gray-400); font-size: 0.88rem; }

/* ────────────────────────────────────────────────────────────
   SECCIÓN FAQ
   ──────────────────────────────────────────────────────────── */
.faq {
  background: var(--white);
  padding: 5rem 1.5rem;
}
.faq__container { max-width: 1200px; margin: 0 auto; }
.faq__list { display: flex; flex-direction: column; gap: 0.6rem; }

.faq-item {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item[open] { border-color: var(--purple); }
.faq-item[open] .faq-item__q { color: var(--purple); }

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 1rem;
  transition: color var(--t);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: '\f067';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.72rem;
  color: var(--purple);
  flex-shrink: 0;
}
.faq-item[open] .faq-item__q::after { content: '\f068'; }

.faq-item__a {
  padding: 1rem 1.5rem 1.25rem;
  font-size: 0.97rem;
  color: var(--gray-700);
  line-height: 1.7;
  border-top: 1px solid var(--gray-100);
}

.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

/* ────────────────────────────────────────────────────────────
   FOOTER — Redes sociales
   ──────────────────────────────────────────────────────────── */
.footer__social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.footer__social-link {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: all var(--t);
}
.footer__social-link:hover {
  background: rgba(255,255,255,0.16);
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE — Tablet (≤ 1024px)
   ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__container { grid-template-columns: 1fr; gap: 3rem; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots__masonry { columns: 2; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }

  .banner__container { grid-template-columns: 1fr; gap: 2.5rem; }
  .banner__content { text-align: center; }
  .banner__content .norm-pills { justify-content: center; }

  .municipalities__container { grid-template-columns: 1fr; gap: 3rem; }
  .municipalities__visual { flex-direction: row; }
  .app-screenshot--offset { margin-left: 0; margin-top: 0; }

  .guardians__body {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "list cta"
      "phone phone";
  }
  .guardians__body > ul          { grid-area: list; }
  .guardians__body .guardians__phone { grid-area: phone; }
  .guardians__body .guardians__cta-box { grid-area: cta; }
  .extras__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

  .faq__grid { gap: 1.5rem; }
  .faq__image img { max-height: 380px; }
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE — Móvil (≤ 768px)
   ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav */
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    gap: 0.25rem;
    align-items: stretch;
  }
  .nav__links.open { display: flex; }
  .nav__link, .nav__cta {
    padding: 0.75rem 1rem;
    margin: 0;
    text-align: left;
    border-radius: 8px;
    display: block;
    font-size: 1rem;
  }

  /* Hero */
  .hero__container { padding: 3rem 1.5rem 2rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Stats */
  .stats__container { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .stat { padding: 1.5rem 1rem; }

  /* Features */
  .features__cat { display: none; }
  .faq__grid{ display: grid; grid-template-columns: 1fr; }
  .faq__image { display: none; }

  /* Screenshots */
  .screenshots__masonry { columns: 1; }

  /* CER */
  .cer__diagram {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .cer__connector {
    padding: 0;
    padding-left: 2.5rem;
    transform: rotate(90deg);
    font-size: 1rem;
    color: var(--purple-light);
  }

  /* Why */
  .why__grid { grid-template-columns: 1fr; }

  /* Municipios */

  /* Steps */
  .steps__track { flex-direction: column; align-items: center; gap: 0.5rem; }
  .step__line {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--purple-light), var(--amber));
  }

  /* Extras */
  .extras__grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Guardians phone en móvil */
  .guardians__body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "list"
      "phone"
      "cta";
  }

  /* Comparativa */
  .compare { overflow-x: auto; }
  .compare__head,
  .compare__row { grid-template-columns: 180px 90px 110px; min-width: 380px; }

  /* ODS en banner */
  .ods-row { justify-content: center; }

  /* Footer social */
  .footer__social { justify-content: flex-start; }

  /* Norm pills */
  .norm-pills { gap: 0.45rem; }
  .norm-pill { font-size: 0.78rem; padding: 0.4rem 0.8rem; }
  .norm-pill[data-tooltip]::after { display: none; }

  /* Demo form */
  .form-row { grid-template-columns: 1fr; }
  .demo-form { padding: 1.5rem; }

  /* Footer */
  .footer__main { flex-direction: column; }
  .footer__nav { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .stats__container { grid-template-columns: 1fr 1fr; }
  .stat__number { font-size: 2.5rem; }
}
