/* ============================================================
   Group Mediterráneo Tarraconense — Dark Futurista v4.0 (premium)
   ============================================================ */

/* TOKENS */
:root {
  --bg:          #06060f;
  --bg-card:     rgba(255,255,255,0.04);
  --bg-card-h:   rgba(255,255,255,0.07);
  --navy:        #1A3A5C;
  --navy-dim:    rgba(26,58,92,0.3);
  --gold:        #C9A84C;
  --gold-dim:    rgba(201,168,76,0.18);
  --gold-glow:   rgba(201,168,76,0.35);
  --cyan:        #00c9ff;
  --cyan-dim:    rgba(0,201,255,0.15);
  --slate-dim:   rgba(255,255,255,0.06);
  --text:        rgba(255,255,255,0.92);
  --text-muted:  rgba(255,255,255,0.45);
  --text-faint:  rgba(255,255,255,0.4);
  --border:      rgba(255,255,255,0.08);
  --border-gold: rgba(201,168,76,0.22);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --container:    960px;
  --nav-h:        72px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-press:   cubic-bezier(0.4, 0, 1, 1);

  /* Radios: escala coherente, sin valores sueltos */
  --radius-sm:    6px;
  --radius-btn:   8px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    18px;
  --radius-pill:  999px;

  /* Espaciado — escala base-8 */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-30: 120px;

  /* Tipografía — escala desktop (ratio ≈1.2) */
  --fs-eyebrow:   0.6875rem;  /* 11px */
  --fs-small:     0.8125rem;  /* 13px */
  --fs-body-sm:   0.875rem;   /* 14px */
  --fs-body:      1rem;       /* 16px */
  --fs-lead:      1.125rem;   /* 18px */
  --fs-h3:        1.3125rem;  /* 21px */
  --fs-h2:        clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem);  /* 30 → 44px */
  --fs-h1:        clamp(2.25rem, 1.35rem + 2.9vw, 3.4rem);   /* 36 → 54.4px, cabe en 3 líneas dentro de .hero__content (720px) */
}

/* Tipografía — escala móvil fija (≤480px), no solo el clamp tocando fondo */
@media (max-width: 480px) {
  :root {
    --fs-eyebrow:   0.625rem;   /* 10px */
    --fs-small:     0.75rem;    /* 12px */
    --fs-body-sm:   0.8125rem;  /* 13px */
    --fs-body:      0.9375rem;  /* 15px */
    --fs-lead:      1rem;       /* 16px */
    --fs-h3:        1.125rem;   /* 18px */
    --fs-h2:        1.75rem;    /* 28px, fijo */
    --fs-h1:        2rem;       /* 32px, fijo */
  }
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
section[id] { scroll-margin-top: var(--nav-h); }

::selection { background: var(--gold); color: #06060f; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

/* CONTAINER */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* FOCUS — visible en todo el sitio, coherente con la paleta */
a, button { outline: none; }
a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold);
  border-radius: 4px;
}
.btn:focus-visible,
.nav__cta:focus-visible { border-radius: var(--radius-btn); }
.nav__logo:focus-visible { border-radius: var(--radius-sm); }
.nav__burger:focus-visible { border-radius: var(--radius-sm); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.12s;
  transition-timing-function: var(--ease-press);
}
.btn--primary {
  background: var(--gold);
  color: #06060f;
  box-shadow: 0 0 24px var(--gold-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-gold);
}
.btn--whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 0 20px rgba(37,211,102,0.3);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: #d9b95a;
    box-shadow: 0 0 40px var(--gold-glow);
    transform: translateY(-1px);
  }
  .btn--ghost:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
    transform: translateY(-1px);
  }
  .btn--whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
  }
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
#nav.is-scrolled {
  background: rgba(6,6,15,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
  opacity: 0.92;
  transition: opacity 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .nav__logo:hover img { opacity: 1; }
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.2px;
  padding: 4px 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--text); }
  .nav__links a:hover::after { right: 0; }
}
.nav__cta {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  transition: background 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
  letter-spacing: 0.2px;
}
.nav__cta:active { transform: scale(0.97); transition-duration: 0.12s; }
@media (hover: hover) and (pointer: fine) {
  .nav__cta:hover {
    background: var(--gold-dim);
    box-shadow: 0 0 20px var(--gold-glow);
  }
}
.nav__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 5rem;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
/* Glow orbs */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.hero__glow--gold {
  width: 500px; height: 500px;
  background: rgba(201,168,76,0.12);
  top: 5%; left: 50%;
  transform: translateX(-50%);
}
.hero__glow--cyan {
  width: 400px; height: 400px;
  background: rgba(0,201,255,0.08);
  top: 15%; left: 55%;
}
/* Fallback static logo (prefers-reduced-motion) */
.hero__logo-fallback {
  display: none;
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  opacity: 0.9;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  #hero-canvas { display: none; }
  .hero__logo-fallback { display: block; }
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 720px;
  padding: 0 24px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.4px;
  font-family: var(--font-display);
}
.hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; box-shadow: 0 0 6px var(--gold); }
  50%      { opacity:0.6; box-shadow: 0 0 12px var(--gold); }
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
  color: var(--text);
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), #e8c96a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__desc {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Coreografía de entrada del hero — solo si el usuario no pide movimiento reducido */
@media (prefers-reduced-motion: no-preference) {
  @keyframes heroIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero__badge   { animation: heroIn 0.8s var(--ease) both; }
  .hero__title   { animation: heroIn 0.9s var(--ease) 0.08s both; }
  .hero__desc    { animation: heroIn 0.9s var(--ease) 0.16s both; }
  .hero__actions { animation: heroIn 0.9s var(--ease) 0.24s both; }
}

/* ── STATS ── */
.stats {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.stats__item {
  background: var(--bg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .stats__item:hover { background: var(--bg-card); }
}
.stats__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
  display: block;
}
.stats__label {
  font-size: var(--fs-small);
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ── SECTIONS COMMON ── */
.section {
  padding: var(--space-20) 0;
}
.section__eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
}
.section__desc {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 58ch;
  line-height: 1.65;
  margin-bottom: var(--space-16);
}

/* ── LÍNEAS DE NEGOCIO ── */
#lineas { background: linear-gradient(180deg, var(--bg) 0%, rgba(26,58,92,0.06) 100%); }
.lines__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.line-card {
  background: var(--bg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.line-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
@media (hover: hover) and (pointer: fine) {
  .line-card:hover { background: var(--bg-card-h); }
  .line-card:hover::before { opacity: 1; }
}
.line-card:focus-within::before { opacity: 1; }
.line-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.line-card__icon--gold  { background: var(--gold-dim); }
.line-card__icon--cyan  { background: var(--cyan-dim); }
.line-card__icon--navy  { background: var(--navy-dim); }
.line-card__icon--slate { background: var(--slate-dim); }
.line-card__icon svg { width: 22px; height: 22px; }
.line-card__tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.line-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.line-card__desc {
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.line-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--gold);
  transition: gap 0.2s var(--ease);
  margin-top: auto;
}
/* Stretched link: el ::after no está posicionado en el propio <a> (sin position:relative
   arriba), así que su containing block es .line-card (ya position:relative) y cubre la
   tarjeta entera — no solo un margen alrededor del texto del enlace. */
.line-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}
@media (hover: hover) and (pointer: fine) {
  .line-card__link:hover { gap: 10px; }
}
.line-card__link svg { width: 14px; height: 14px; }

/* ── TERRITORIO ── */
#territorio {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.territorio__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.territorio__zonas {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.zona {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 1.1rem var(--space-3);
  margin: 0 calc(var(--space-3) * -1);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.zona:last-child { border-bottom: none; }
@media (hover: hover) and (pointer: fine) {
  .zona:hover { background: var(--bg-card); }
}
.zona__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
  flex-shrink: 0;
  margin-top: 7px;
}
.zona__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.zona__desc {
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
}

/* ── EL GRUPO ── */
.grupo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pilar {
  background: var(--bg);
  padding: var(--space-8);
  transition: background 0.22s;
}
@media (hover: hover) and (pointer: fine) {
  .pilar:hover { background: var(--bg-card-h); }
}
.pilar__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: var(--space-4);
}
.pilar__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}
.pilar__desc {
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── CONTACTO ── */
#contacto {
  background: linear-gradient(135deg, rgba(201,168,76,0.04) 0%, rgba(0,201,255,0.03) 100%);
  border-top: 1px solid var(--border);
  padding-top: var(--space-30);
}
.contacto__inner {
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-14);
  background: rgba(201,168,76,0.03);
  text-align: center;
}
.contacto__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.contacto__sub {
  color: var(--text-muted);
  margin-bottom: var(--space-10);
  font-size: var(--fs-lead);
}
.contacto__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-10);
}
.contacto__item {
  background: var(--bg);
  padding: var(--space-4);
  text-align: center;
  transition: background 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .contacto__item:hover { background: var(--bg-card); }
}
.contacto__item-label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-family: var(--font-display);
}
.contacto__item-val {
  font-size: var(--fs-body-sm);
  color: var(--text);
  font-weight: 500;
}
.contacto__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0;
  padding-bottom: calc(var(--space-8) + env(safe-area-inset-bottom));
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: var(--fs-small);
  color: var(--text-faint);
}
.footer__links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer__links a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  margin: -8px 0;
  font-size: var(--fs-small);
  color: var(--text-faint);
  transition: color 0.2s;
}
.footer__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  transition: right 0.25s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover { color: var(--text-muted); }
  .footer__links a:hover::after { right: 0; }
}

/* ── SCROLL REVEAL ── */
/* .reveal: bloques de "mobiliario" de sección (eyebrow/título/desc), delay fijo por clase.
   .reveal-item: hijos de grid, con --stagger-index inyectado por JS para un stagger automático. */
.reveal,
.reveal-item {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(4px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease), filter 0.5s var(--ease);
}
.reveal.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-item { transition-delay: calc(200ms + var(--stagger-index, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-item {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .section { padding: var(--space-16) 0; }
  #contacto { padding-top: var(--space-20); }

  .nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(6,6,15,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) 0;
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s linear 0.28s;
  }
  .nav__links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0s linear 0s;
  }
  .nav__links a {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
  }
  .nav__links a::after { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero { padding-bottom: 3rem; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .lines__grid { grid-template-columns: 1fr; }
  .territorio__grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .grupo__grid { grid-template-columns: 1fr; }
  /* Columna única: con 4 items y el primero (razón social) a ancho completo,
     un grid de 2 columnas deja una celda vacía colgando — se apila todo. */
  .contacto__grid { grid-template-columns: 1fr; }
  .contacto__inner { padding: var(--space-8) var(--space-6); }
  .footer__inner { flex-direction: column; text-align: center; }
}
