/* ══════════════════════════════════════════════════════════════
   GP GROUP — "Modern Insurtech System"
   Basado en DESIGN.md del cliente (modelo Stitch/Lovable)
   Primario: Deep Forest Teal #002428 · Acento: Coral #fc6e5f
   Display: Plus Jakarta Sans · Cuerpo: Inter
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Color — corporativo GP Group (logo: negro azulado + azul royal) */
  --primary:            #0B0F22;
  --primary-container:  #171E3F;
  --on-primary-container:#9AA6D8;
  --primary-fixed-dim:  #B9C3EE;
  --coral:              #3B4BE0;   /* acento de conversión: azul royal del logo */
  --coral-dark:         #2A38C2;
  --coral-deep:         #2E3192;
  --surface:            #f8f9f9;
  --surface-low:        #f3f4f4;
  --surface-container:  #edeeee;
  --card:               #ffffff;
  --input-bg:           #f2f4f4;
  --on-surface:         #191c1c;
  --on-surface-variant: #404849;
  --outline:            #717879;
  --outline-variant:    #c0c8c9;
  --error:              #ba1a1a;

  /* Sombras ambientales (nunca duras) */
  --sombra-1: 0 4px 20px rgba(13, 59, 63, .05);
  --sombra-2: 0 8px 30px rgba(13, 59, 63, .08);

  /* Tipografía */
  --f-display: "Plus Jakarta Sans", "Inter", sans-serif;
  --f-body:    "Inter", system-ui, sans-serif;

  /* Formas */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --wrap: 1280px;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--r-lg); }
a { color: var(--primary-container); }

h1, h2, h3 {
  font-family: var(--f-display);
  color: var(--on-surface);
  margin: 0 0 16px;
}
h1 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3vw, 32px);   font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
p  { margin: 0 0 16px; color: var(--on-surface-variant); font-size: 16px; line-height: 1.6; }
.lead { font-size: 18px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  color: var(--coral-deep);
  background: #E7EAFF;
  padding: 6px 14px; border-radius: 9999px;
  margin-bottom: 16px;
}

/* Íconos Material Symbols */
.ms {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal;
  font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap;
  word-wrap: normal; direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Accesibilidad */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; z-index: 99; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: rgba(248, 249, 249, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-container);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 56px; width: auto; border-radius: 0; }
@media (max-width: 640px) { .brand-logo { height: 46px; } }
.brand-mark {
  font-family: var(--f-display); font-weight: 800; font-size: 15px;
  color: #fff; background: var(--primary);
  width: 40px; height: 40px; border-radius: var(--r-md);
  display: grid; place-items: center;
}
.brand-name {
  font-family: var(--f-display); font-weight: 700; font-size: 17px;
  color: var(--on-surface); display: flex; flex-direction: column; line-height: 1.15;
}
.brand-tag { font-family: var(--f-body); font-weight: 500; font-size: 10.5px; color: var(--on-surface-variant); letter-spacing: .04em; text-transform: uppercase; }

.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 14.5px; color: var(--on-surface-variant); }
.site-nav a:hover { color: var(--primary); }
.site-nav a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.nav-cta {
  background: var(--coral); color: #fff !important; font-weight: 600 !important;
  padding: 12px 22px; border-radius: var(--r-md);
  transition: background .15s;
}
.nav-cta:hover { background: var(--coral-dark); }
.nav-toggle { display: none; }

/* ── HERO oscuro con cotizador ────────────────────────────── */
.hero {
  background:
    linear-gradient(100deg, rgba(9, 12, 30, .94) 0%, rgba(9, 12, 30, .82) 45%, rgba(14, 20, 48, .55) 100%),
    url('/assets/img/hero-familia.webp') center / cover no-repeat;
  padding: 96px 0 104px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.hero h1 { color: #ffffff; }
.hero h1 .acento { color: var(--primary-fixed-dim); }
.hero-sub { font-size: 18px; color: var(--on-primary-container); max-width: 44ch; margin-bottom: 32px; }
.hero-acciones { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

/* Insignias de confianza bajo el héroe */
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.hero-badge { display: flex; align-items: center; gap: 8px; color: var(--primary-fixed-dim); font-size: 13.5px; font-weight: 500; }
.hero-badge .ms { font-size: 19px; color: var(--coral); }

/* ── Cotizador (tarjeta flotante) ─────────────────────────── */
.cotizador {
  background: var(--card);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 60px rgba(0, 32, 34, .35);
  padding: 32px;
}
.cotizador-titulo { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.cotizador-sub { font-size: 14px; color: var(--on-surface-variant); margin: 0 0 20px; }

.cot-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 22px; }
.cot-tab {
  font-family: var(--f-body); font-weight: 600; font-size: 12.5px;
  border: none; background: var(--surface-low);
  color: var(--on-surface-variant); border-radius: var(--r-md);
  padding: 12px 4px; cursor: pointer;
  display: grid; gap: 6px; justify-items: center;
  transition: background .15s, color .15s, transform .12s;
}
.cot-tab .ms { font-size: 22px; }
.cot-tab:hover { background: var(--surface-container); }
.cot-tab[aria-pressed="true"] { background: var(--primary); color: #fff; }
.cot-tab[aria-pressed="true"] .ms { color: var(--coral); }

.cot-form { display: grid; }
.cot-body {
  display: grid; gap: 16px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .45s ease, opacity .3s ease .1s;
}
.cotizador.expandido .cot-body { max-height: 1400px; opacity: 1; }
.cot-hint {
  text-align: center; font-size: 13px; color: var(--on-surface-variant);
  background: var(--surface-low); border-radius: var(--r-md);
  padding: 14px; margin: 0;
}
.cotizador.expandido .cot-hint { display: none; }
.cot-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campo label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--on-surface);
}
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; font-size: 15px;
  height: 52px; padding: 0 16px;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  background: var(--input-bg); color: var(--on-surface);
  transition: border-color .15s, box-shadow .15s;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
  border-color: var(--primary-container); outline: none;
  box-shadow: 0 0 0 4px rgba(13, 59, 63, .12);
  background: #fff;
}
.campo-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--on-surface-variant); }
.campo-check input { margin-top: 3px; accent-color: var(--primary-container); }

.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* ── Botones (mín. 56px, coral = conversión) ──────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-weight: 600; font-size: 16px;
  min-height: 56px; padding: 0 28px;
  border: none; cursor: pointer; text-decoration: none;
  border-radius: var(--r-md);
  transition: background .15s, transform .12s, border-color .15s;
}
.btn:active { transform: scale(.98); }
.btn-primario { background: var(--coral); color: #fff; width: 100%; }
.btn-primario:hover { background: var(--coral-dark); color: #fff; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); color: #fff; }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .45);
}
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #17853F; color: #fff; }

.cot-micro { font-size: 12px; color: var(--on-surface-variant); text-align: center; margin: 4px 0 0; }
.cot-error {
  background: #ffdad6; color: var(--error);
  border-radius: var(--r-md); padding: 12px 16px; font-size: 14px; font-weight: 600;
}

/* ── Carrusel de aseguradoras (marquee infinito) ──────────── */
.trust-strip { background: var(--card); border-bottom: 1px solid var(--surface-container); padding: 24px 0; overflow: hidden; }
.trust-label { display: block; text-align: center; color: var(--outline); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.marquee { position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.trust-logo { color: var(--on-surface-variant); font-family: var(--f-display); font-weight: 700; font-size: 18px; opacity: .7; white-space: nowrap; }
.trust-logo img { height: 36px; width: auto; border-radius: 0; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; } }

/* ── Tarjetas de servicios / pilares ──────────────────────── */
.pilares-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pilar {
  background: var(--card); border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--sombra-1);
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s, transform .2s;
}
.pilar:hover { box-shadow: var(--sombra-2); transform: translateY(-4px); }
.pilar-ico {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: #E7EAFF; color: var(--coral-deep);
  display: grid; place-items: center;
}
.pilar-ico .ms { font-size: 26px; }
.pilar p { margin: 0; font-size: 15px; flex: 1; }
.pilar a { font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pilar a .ms { font-size: 18px; transition: transform .15s; }
.pilar a:hover .ms { transform: translateX(3px); }

/* ── Banners de servicio destacado (imagen + capa legible) ── */
.banner {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  min-height: 360px; display: flex; align-items: center;
  padding: 48px; margin-bottom: 24px;
  background-size: cover; background-position: center;
  box-shadow: var(--sombra-2);
}
.banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(9, 12, 30, .88) 0%, rgba(9, 12, 30, .55) 55%, rgba(9, 12, 30, .12) 100%);
}
.banner-autos  { background-image: url('/assets/img/seguro-autos.webp'); }
.banner-viajes { background-image: url('/assets/img/seguro-viajes.webp'); background-position: center top; }
.banner-inner { position: relative; max-width: 520px; }
.banner .eyebrow { background: rgba(231, 234, 255, .16); color: var(--primary-fixed-dim); }
.banner h2 { color: #fff; }
.banner p { color: #C7CDE9; font-size: 16px; margin-bottom: 28px; }

/* ── Filas asesor + texto (imagen y texto lado a lado) ────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split-media img { border-radius: var(--r-xl); box-shadow: var(--sombra-2); width: 100%; object-fit: cover; }
.split-texto h2 { margin-bottom: 16px; }
.split-texto p { margin-bottom: 28px; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split + .split { margin-top: 64px; }
  .split-media { order: -1; }   /* en móvil, la foto siempre arriba */
}

/* ── Sección "Somos GP Group" (foto del equipo + capa) ── */
.somos {
  background:
    linear-gradient(rgba(9, 12, 30, .88), rgba(9, 12, 30, .88)),
    url('/assets/img/equipo-gp.webp') center / cover no-repeat;
  text-align: center;
}
.somos h2 { color: #fff; }
.somos p { color: #C7CDE9; max-width: 60ch; margin: 0 auto 32px; }
.somos .eyebrow { background: rgba(231, 234, 255, .16); color: var(--primary-fixed-dim); }

/* ── Cifras de confianza ──────────────────────────────────── */
.stats { background: var(--card); border-radius: var(--r-xl); box-shadow: var(--sombra-1); padding: 48px 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stat-num { font-family: var(--f-display); font-weight: 800; font-size: 40px; color: var(--primary-container); letter-spacing: -0.02em; }
.stat-num .mas { color: var(--coral); }
.stat-label { font-size: 14px; color: var(--on-surface-variant); }

/* ── Por qué un corredor ──────────────────────────────────── */
.porque { background: var(--surface-low); }
.porque-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.porque-item {
  background: var(--card); border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--sombra-1);
}
.porque-item .ms { font-size: 28px; color: var(--coral); margin-bottom: 12px; }
.porque-item h3 { font-size: 18px; }
.porque-item p { margin: 0; font-size: 15px; }

/* ── Municipios ───────────────────────────────────────────── */
.municipios-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  background: var(--card); box-shadow: var(--sombra-1);
  border-radius: 9999px; padding: 12px 26px;
  font-weight: 600; font-size: 15px; text-decoration: none; color: var(--on-surface);
  transition: box-shadow .15s, transform .15s;
}
.chip:hover { box-shadow: var(--sombra-2); transform: translateY(-2px); }
.chip-activo { background: var(--primary); color: #fff; }

/* ── CTA final ────────────────────────────────────────────── */
.cta-final {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-container) 100%);
  text-align: center;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: var(--on-primary-container); max-width: 52ch; margin: 0 auto 32px; }
.cta-acciones { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Cotizador de cierre de página ────────────────────────── */
.cot-cierre { background: var(--surface-low); padding-top: 72px; }
.cot-solo { max-width: 760px; margin: 0 auto; }
.cot-cierre .cotizador { box-shadow: var(--sombra-2); }

/* ── Página de gracias (estilo minimal sobre fondo de marca) ── */
.gracias-hero {
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-container) 100%);
  min-height: calc(100vh - 96px);
  display: grid; align-items: center;
  padding: 80px 0;
}
.gracias-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.gracias-texto h1 { color: #fff; font-size: clamp(34px, 4.5vw, 52px); }
.gracias-texto h1 .acento { color: var(--primary-fixed-dim); }
.gracias-texto p { color: #C7CDE9; font-size: 17px; max-width: 52ch; }
.eyebrow-oscuro { background: rgba(231, 234, 255, .14); color: var(--primary-fixed-dim); }
.gracias-acciones { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 20px; }
.gracias-nota { font-size: 13.5px !important; color: var(--on-primary-container) !important; }

/* Foto del equipo en círculo con anillos decorativos */
.gracias-foto { display: grid; justify-items: center; }
.foto-anillo { position: relative; width: min(420px, 82%); aspect-ratio: 1; }
.foto-anillo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  border-radius: 50%;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.foto-anillo::before {
  content: ""; position: absolute; inset: -22px;
  border: 2px solid rgba(185, 195, 238, .28);
  border-radius: 50%;
}
.foto-anillo::after {
  content: ""; position: absolute; inset: -40px;
  border: 4px solid transparent;
  border-top-color: var(--coral);
  border-right-color: var(--coral);
  border-radius: 50%;
  transform: rotate(-35deg);
}

@media (max-width: 960px) {
  .gracias-grid { grid-template-columns: 1fr; gap: 44px; }
  .gracias-foto { order: -1; }
  .foto-anillo { width: min(260px, 70%); }
  .gracias-hero { padding: 56px 0; }
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--primary); color: var(--on-primary-container); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding: 64px 24px 32px; }
.footer-logo { font-family: var(--f-display); font-weight: 800; font-size: 24px; color: #fff; margin: 0 0 12px; }
.footer-desc { font-size: 14.5px; margin: 0 0 16px; color: var(--on-primary-container); }
.footer-reg { font-size: 12.5px; color: var(--primary-fixed-dim); border-left: 3px solid var(--coral); padding-left: 14px; line-height: 1.6; }
.footer-h { font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-fixed-dim); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--on-primary-container); text-decoration: none; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: 14.5px; }
.footer-col address p { margin: 0 0 8px; color: var(--on-primary-container); }
.footer-col address a { color: #fff; }
.footer-social a { color: #fff; font-weight: 600; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0 26px; }
.footer-legal p { font-size: 12.5px; color: var(--primary-fixed-dim); margin: 0; text-align: center; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .pilares-grid, .porque-grid, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cot-tabs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .site-nav ul {
    display: none; position: absolute; right: 20px; top: 64px;
    background: var(--card); border-radius: var(--r-lg);
    padding: 20px 24px; flex-direction: column; align-items: flex-start; gap: 16px;
    box-shadow: var(--sombra-2);
  }
  .site-nav ul.abierto { display: flex; }
  .nav-toggle {
    display: block; font: inherit; font-weight: 600; font-size: 14px;
    background: var(--surface-low); border: none;
    border-radius: var(--r-sm); padding: 10px 16px; cursor: pointer;
  }
  .cot-grid2 { grid-template-columns: 1fr; }
  .cotizador { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ══════════ PÁGINAS INTERNAS ══════════ */

/* Héroe interno (más compacto que el de la home) */
.hero-interno { padding: 64px 0 72px; }
.hero-interno .hero-sub { margin-bottom: 24px; }

/* Migas de pan */
.migas { font-size: 13px; color: var(--primary-fixed-dim); margin-bottom: 20px; }
.migas a { color: var(--primary-fixed-dim); text-decoration: none; }
.migas a:hover { color: #fff; }
.migas .sep { margin: 0 8px; opacity: .5; }

/* Comparativa de coberturas (tarjetas lado a lado) */
.comparativa { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cobertura-card {
  background: var(--card); border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--sombra-1);
  border-top: 4px solid var(--outline-variant);
}
.cobertura-card.destacada { border-top-color: var(--coral); }
.cobertura-card .tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--coral-deep); background: #E7EAFF;
  border-radius: 9999px; padding: 4px 12px; margin-bottom: 12px;
}
.cobertura-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.cobertura-card li { display: flex; gap: 10px; font-size: 15px; color: var(--on-surface-variant); }
.cobertura-card li .ms { font-size: 19px; color: var(--coral); flex-shrink: 0; }

/* Espacio reservado para imagen (placeholder visible en desarrollo) */
.img-placeholder {
  border: 2px dashed var(--outline-variant); border-radius: var(--r-xl);
  background: var(--surface-low); min-height: 320px;
  display: grid; place-items: center; text-align: center;
  color: var(--outline); font-size: 14px; font-weight: 500; padding: 24px;
}
.img-placeholder .ms { font-size: 40px; display: block; margin-bottom: 8px; }

/* FAQ acordeón (details nativo) */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--card); border-radius: var(--r-md);
  box-shadow: var(--sombra-1); padding: 0 24px;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 20px 0;
  font-family: var(--f-display); font-weight: 600; font-size: 16.5px; color: var(--on-surface);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ms { color: var(--coral); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary .ms { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; margin: 0; font-size: 15px; }

/* Página legal */
.pagina-legal { max-width: 780px; margin: 0 auto; padding: 64px 24px 32px; }
.pagina-legal h1 { font-size: 34px; }
.pagina-legal h2 { font-size: 22px; margin-top: 40px; }

@media (max-width: 960px) {
  .comparativa { grid-template-columns: 1fr; }
  .hero-interno { padding: 48px 0 56px; }
}

/* Rejilla de 2 columnas (productos de pilar) */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }

/* ══════════ BLOG / RECURSOS ══════════ */
.hub-hero { background: linear-gradient(150deg, var(--primary) 0%, var(--primary-container) 100%); padding: 64px 0; }
.hub-hero h1 { color: #fff; }
.hub-hero p { color: var(--on-primary-container); max-width: 56ch; }

.articulos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.articulo-card {
  background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sombra-1); display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.articulo-card:hover { box-shadow: var(--sombra-2); transform: translateY(-4px); }
.articulo-card .thumb {
  background: var(--surface-container); min-height: 180px;
  display: grid; place-items: center; color: var(--outline);
}
.articulo-card .thumb .ms { font-size: 44px; }
.articulo-card .cuerpo { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.articulo-card .meta { font-size: 12.5px; color: var(--outline); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.articulo-card h2 { font-size: 20px; margin: 0; }
.articulo-card p { margin: 0; font-size: 14.5px; flex: 1; }
.articulo-card a.leer { font-weight: 600; font-size: 15px; text-decoration: none; }
.articulo-card a.leer::after { content: " →"; }

/* Página de artículo */
.articulo { max-width: 760px; margin: 0 auto; padding: 56px 24px 24px; }
.articulo .migas { color: var(--outline); margin-bottom: 16px; }
.articulo .migas a { color: var(--outline); }
.articulo .migas a:hover { color: var(--primary); }
.articulo h1 { font-size: clamp(30px, 4vw, 40px); }
.articulo .meta { font-size: 14px; color: var(--outline); margin-bottom: 32px; }
.articulo h2 { font-size: 24px; margin-top: 44px; }
.articulo p { font-size: 17px; line-height: 1.7; }
.articulo .caja-cta {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sombra-1);
  border-left: 4px solid var(--coral);
  padding: 24px 28px; margin: 40px 0;
}
.articulo .caja-cta p { margin: 0 0 16px; font-size: 15.5px; }

@media (max-width: 960px) { .articulos-grid { grid-template-columns: 1fr; } }


/* ══════════ CONTACTO ══════════ */
.campo textarea { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; }
.contacto-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.info-card {
  background: var(--card); border-radius: var(--r-xl); box-shadow: var(--sombra-1);
  padding: 32px;
}
.info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.info-item .ms { color: var(--coral); flex-shrink: 0; margin-top: 2px; }
.info-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.info-item p, .info-item a { margin: 0; font-size: 15px; color: var(--on-surface-variant); }
.form-card { background: var(--card); border-radius: var(--r-xl); box-shadow: var(--sombra-2); padding: 32px; }
@media (max-width: 960px) { .contacto-grid { grid-template-columns: 1fr; } }


/* ══════════ BOTÓN FLOTANTE DE WHATSAPP (solo móvil) ══════════ */
.wa-flotante { display: none; }
@media (max-width: 768px) {
  .wa-flotante {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #1FA855;
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    transition: transform .15s;
  }
  .wa-flotante:active { transform: scale(.94); }
  .wa-flotante:hover { color: #fff; }
}


/* Mapa embebido (Contacto) */
.mapa-embed { width: 100%; height: 260px; border: 0; border-radius: var(--r-lg); margin-top: 24px; display: block; }
