/* ============================================================
   SANABRIA PROPERTY GROUP — main.css
   Paleta: #0B1F33 navy | #F7F5F0 cream | #FF6B4A coral | #8A94A6 gray
   Tipografía: Archivo (display 700–800) + Inter (body)
   ============================================================ */

/* ── RESET + VARIABLES ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0B1F33;
  --cream:  #F7F5F0;
  --coral:  #FF6B4A;
  --gray:   #8A94A6;
  --white:  #ffffff;
  --creds-bar-h: 40px;
  --nav-h:  72px;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(11,31,51,.15);
  --shadow-xl: 0 20px 60px rgba(11,31,51,.25);
  --max-w:  1200px;
  --trans:  0.2s ease;
}

/* ES: Breakpoints estándar del proyecto (documentados como referencia)
   EN: Standard project breakpoints (documented for reference)
   --bp-xs:  360px  — móvil chico (Moto G4, Galaxy A series)
   --bp-sm:  480px  — móvil mediano
   --bp-md:  768px  — tablet vertical / iPad
   --bp-lg:  1024px — tablet horizontal / laptop
   --bp-xl:  1440px — desktop
   --bp-2xl: 1920px — pantallas grandes (contenido centrado en max 1200px)
*/

html {
  scroll-behavior: smooth;
  /* ES: Base de 16px garantiza que 1rem = 16px en todos los browsers */
  /* EN: 16px base ensures 1rem = 16px across all browsers */
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--navy);
  /* ES: Mínimo 16px en body para buena legibilidad en mobile */
  /* EN: Minimum 16px body text for good mobile readability */
  font-size: clamp(1rem, 2.5vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* ES: Evita scroll horizontal en cualquier página */
  /* EN: Prevents horizontal scroll on any page */
  overflow-x: hidden;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ES: Targets táctiles mínimos de 44px para accesibilidad */
/* EN: Minimum 44px touch targets for accessibility */
button, [role="button"], input[type="submit"], input[type="button"] {
  min-height: 44px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

/* ES: Hover solo en dispositivos con puntero real — evita estados pegados en táctil */
/* EN: Hover only on pointer devices — prevents stuck hover states on touch */
@media (hover: none) {
  a:hover, button:hover { opacity: 1 !important; transform: none !important; }
}

/* ── BARRA DE CREDENCIALES (top strip) ─────────────────────── */
.creds-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  height: var(--creds-bar-h);
  background: var(--white);
  border-bottom: 1px solid rgba(11,31,51,.08);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.creds-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
}

.creds-bar-list {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  padding: 0 24px;
}

.cb-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  letter-spacing: .01em;
  position: relative;
}

.cb-item + .cb-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(11,31,51,.12);
}

.cb-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Mobile: marquee deslizante */
@media (max-width: 860px) {
  .creds-bar { --creds-bar-h: 36px; }

  .creds-bar-inner {
    max-width: none;
    width: auto;
    display: flex;
    animation: cb-marquee 18s linear infinite;
  }

  .creds-bar-list {
    display: flex;
    width: auto;
    padding: 0;
    justify-content: flex-start;
    flex-shrink: 0;
  }

  .creds-bar-list--dup { display: flex; }

  .cb-item {
    padding: 0 24px;
    font-size: .7rem;
  }
}

@media (min-width: 861px) {
  .creds-bar-list--dup { display: none; }
}

@keyframes cb-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.creds-bar:hover .creds-bar-inner { animation-play-state: paused; }

/* ── NAVBAR ────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: box-shadow var(--trans);
  isolation: isolate;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* SPG gradient — navbar & footer */
.logo-spg, .footer-spg {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -.02em;
  line-height: 1;
  background: linear-gradient(180deg, #FF8C42 0%, #E8531F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-divider {
  width: 2px;
  height: 36px;
  background: rgba(255,255,255,.2);
}

.logo-text { display: flex; flex-direction: column; gap: 1px; }

.logo-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: .01em;
}

.logo-sub {
  font-size: .58rem;
  color: var(--gray);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── NAV LINKS wrapper ──────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

/* ── NAV LIC items (license dropdowns) ─────────────────────── */
.nav-lic {
  position: relative;
}

.nav-lic-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: rgba(255,255,255,.82);
  font-family: 'Inter', sans-serif;
  font-size: clamp(.65rem, .85vw, .78rem);
  font-weight: 500;
  padding: 6px 6px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--trans), background var(--trans);
  min-height: 44px;
}

.nav-lic-btn:hover,
.nav-lic.is-open .nav-lic-btn {
  color: var(--white);
  background: rgba(255,255,255,.09);
}

.nav-lic-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.nav-lic-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: .55;
  transition: transform var(--trans);
}

.nav-lic.is-open .nav-lic-chevron {
  transform: rotate(180deg);
  opacity: .9;
}

/* ── Dropdown panel (desktop) ───────────────────────────────── */
.nav-lic-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(11,31,51,.18), 0 2px 8px rgba(11,31,51,.08);
  padding: 20px 22px 18px;
  z-index: 200;
  animation: nlp-in .18s ease both;
}

.nav-lic-panel::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  background: var(--white);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

@keyframes nlp-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nlp-lic-title {
  font-family: 'Archivo', sans-serif;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}

.nlp-lic {
  font-family: 'Archivo', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.nlp-desc {
  font-size: .82rem;
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: 14px;
}

.nlp-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Archivo', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: .02em;
  transition: gap var(--trans);
}

.nlp-cta:hover { gap: 8px; }

/* ── CTA button ─────────────────────────────────────────────── */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--coral);
  color: var(--white) !important;
  font-weight: 700;
  width: 100px;
  height: 38px;
  padding: 0 12px;
  border-radius: 50px;
  font-size: .82rem;
  flex-shrink: 0;
  margin-left: 6px;
  box-shadow: 0 6px 16px rgba(255,107,74,.28), inset 0 1px 0 rgba(255,255,255,.25);
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  white-space: nowrap;
}

.nav-cta:hover {
  background: #e85a3a;
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(255,107,74,.34), inset 0 1px 0 rgba(255,255,255,.28);
}

/* ── WhatsApp navbar ────────────────────────────────────────── */
.nav-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100px;
  height: 38px;
  min-width: 100px;
  border-radius: 50px;
  background: #25D366;
  color: #fff;
  flex-shrink: 0;
  margin-left: 6px;
  box-shadow: 0 6px 16px rgba(37,211,102,.25), inset 0 1px 0 rgba(255,255,255,.25);
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
}
.nav-wa svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav-wa:hover {
  background: #1EBE58;
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(37,211,102,.32), inset 0 1px 0 rgba(255,255,255,.28);
}
.nav-wa::after {
  content: 'WhatsApp';
  font-family: 'Archivo', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 1025px) and (max-width: 1279px) {
  /* ES: Conserva ambos CTAs visibles cuando la ventana desktop es más estrecha. */
  /* EN: Keeps both CTAs visible in narrower desktop windows. */
  .logo-divider,
  .logo-text { display: none; }

  .nav-inner { padding: 0 10px; gap: 6px; }
  .nav-lic-btn { padding: 6px 4px; gap: 4px; font-size: .62rem; }
}

/* ── Hamburger ──────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile + tablet navigation ─────────────────────────────── */
@media (max-width: 1024px) {
  .nav-inner { gap: 8px; padding: 0 clamp(10px, 2.5vw, 16px); }
  .nav-toggle { display: flex; order: 3; }

  /* ES: Los dos CTAs permanecen visibles aunque el menú esté cerrado. */
  /* EN: Both CTAs remain visible while the menu is closed. */
  .nav-links {
    display: flex;
    position: static;
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    background: transparent;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 8px;
    border: 0;
    box-shadow: none;
  }

  .nav-links .nav-lic { display: none; }

  /* ES: Al abrir, el mismo contenedor se convierte en el acordeón completo. */
  /* EN: When opened, the same container becomes the full accordion menu. */
  .nav-links.open {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
    margin: 0;
    padding: 12px 16px 24px;
    gap: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
    z-index: 99;
  }

  .nav-links.open .nav-lic { display: block; width: 100%; }

  .nav-lic-btn {
    width: 100%;
    justify-content: flex-start;
    font-size: .95rem;
    padding: 14px 12px;
    min-height: 52px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    border-radius: 0;
  }

  .nav-lic-btn span { flex: 1; }

  /* Accordion panel (mobile) — inline, not absolute */
  .nav-lic-panel {
    position: static;
    transform: none;
    width: 100%;
    left: auto;
    border-radius: 0 0 10px 10px;
    box-shadow: none;
    background: rgba(255,255,255,.06);
    padding: 14px 16px 16px;
    margin-bottom: 4px;
    animation: nlp-mobile-in .18s ease both;
  }

  .nav-lic-panel::before { display: none; }

  @keyframes nlp-mobile-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nlp-lic  { color: rgba(255,255,255,.45); }
  .nlp-desc { color: rgba(255,255,255,.75); font-size: .85rem; }
  .nlp-cta  { color: var(--coral); font-size: .82rem; }

  .nav-cta {
    width: 104px;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    font-size: .78rem;
  }

  /* ES: WhatsApp conserva un target táctil real de 44px. */
  /* EN: WhatsApp keeps a true 44px touch target. */
  .nav-wa {
    width: 104px;
    height: 44px;
    min-width: 104px;
    margin: 0;
    border-radius: 50px;
    display: flex;
    justify-content: center;
  }

  .nav-links.open .nav-cta {
    width: 100%;
    margin: 12px 0 0;
    border-radius: 10px;
    font-size: .95rem;
  }

  .nav-links.open .nav-wa {
    width: 100%;
    min-width: 100%;
    margin: 8px 0 0;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  /* ES: En teléfonos estrechos queda el monograma SPG para dar aire a los CTAs. */
  /* EN: Narrow phones keep the SPG monogram to leave room for both CTAs. */
  .logo-divider,
  .logo-text { display: none; }

  .nav-inner { gap: 6px; }
  .nav-links { gap: 6px; }
  .nav-cta,
  .nav-wa {
    width: 92px;
    min-width: 92px;
    padding: 0 8px;
    font-size: .72rem;
  }
  .nav-wa::after { font-size: .72rem; }
}

@media (max-width: 360px) {
  .nav-inner { padding-inline: 8px; gap: 4px; }
  .nav-links { gap: 4px; }
  .logo-spg { font-size: 1.4rem; }
  .nav-wa,
  .nav-cta {
    width: 86px;
    height: 40px;
    min-width: 86px;
    padding-inline: 6px;
    font-size: .68rem;
  }
  .nav-wa { gap: 5px; }
  .nav-wa svg { width: 17px; height: 17px; }
  .nav-wa::after { font-size: .68rem; }
  .nav-toggle { width: 40px; height: 40px; }
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  /* ES: Mantiene el hero completo en los dos viewports de validación de T1. */
  /* EN: Keeps the full hero visible in both T1 validation viewports. */
  height: 48vh;
  min-height: 392px;
  max-height: 432px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 52% 1fr;
}

.hero-img-col {
  position: absolute;
  inset: 0;
}

.hero-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-img-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    var(--navy) 0%,
    var(--navy) 22%,
    rgba(11,31,51,.92) 38%,
    rgba(11,31,51,.55) 58%,
    rgba(11,31,51,.15) 80%,
    transparent 100%
  );
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to top, var(--navy), transparent);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* ES: Reduce solo el aire vertical para evitar recortar el texto inferior. */
  /* EN: Reduces only vertical whitespace so the lower copy is not clipped. */
  /* ES: Alinea el hero con el ancho máximo del navbar y las tarjetas. */
  /* EN: Aligns the hero with the navbar and cards maximum width. */
  padding: 6px 48px 6px max(40px, calc((100vw - var(--max-w)) / 2));
}

.hero-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}

.hero-spg {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(3.6rem, 7.6vw, 6.5rem);
  line-height: .88;
  letter-spacing: -.04em;
  color: var(--white);
}

.hero-sanabria {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: .95;
  color: var(--white);
  letter-spacing: -.01em;
}

.hero-group-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  margin-bottom: 12px;
}

.hero-line {
  height: 2px;
  flex: 1;
  background: var(--coral);
  flex-shrink: 0;
}

.hero-group-text {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(.55rem, .85vw, .68rem);
  letter-spacing: .32em;
  color: var(--coral);
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-tagline {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 8px;
}

.hero-tagline em { font-style: normal; color: var(--coral); }

.hero-sub {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 0;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: var(--white);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  padding: 14px 28px;
  border-radius: 50px;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  letter-spacing: .02em;
}

.btn-primary:hover {
  background: #e85a3a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,74,.35);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  padding: 13px 22px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.4);
  transition: border-color var(--trans), background var(--trans);
}

.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}

.btn-outline-white svg { width: 18px; height: 18px; flex-shrink: 0; }

@media (max-width: 768px) {
  .hero {
    display: block;
    height: clamp(420px, 55svh, 520px);
    min-height: 420px;
    max-height: 520px;
    padding-top: var(--nav-h);
  }
  .hero-img-col { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-img-col::before {
    background: linear-gradient(to bottom, rgba(11,31,51,.5) 0%, rgba(11,31,51,.85) 100%);
  }
  .hero::after { display: none; }
  .hero-content {
    height: calc(100% - var(--nav-h));
    padding: clamp(18px, 4vw, 28px) clamp(20px, 6vw, 40px);
    justify-content: center;
  }

  .hero-sub {
    font-size: clamp(.82rem, 3.6vw, .9rem);
    line-height: 1.55;
  }
}

@media (max-width: 380px) {
  .hero-group-row { gap: 8px; margin-bottom: 8px; }
  .hero-group-text { letter-spacing: .24em; }
}


/* ── SERVICIOS ─────────────────────────────────────────────── */
.section-services {
  padding: 4px 24px 96px;
}

.section-header { text-align: center; margin-bottom: 4px; }

.section-eyebrow {
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
  display: inline-block;
  position: relative;
  padding: 0 20px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 32px;
  height: 2px;
  background: var(--coral);
  opacity: .55;
}
.section-eyebrow::before { right: 100%; margin-right: -16px; }
.section-eyebrow::after  { left:  100%; margin-left:  -16px; }

/* ── Título principal SERVICIOS ──────────────────────────────── */
.section-services-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  /* ES: Escala más refinada sin perder la jerarquía coral de la sección. */
  /* EN: More refined scale while preserving the section's coral hierarchy. */
  font-size: clamp(2.25rem, 3.8vw, 3.2rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral);
  line-height: 1;
  margin: 0 0 8px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-services-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 3px;
  background: var(--coral);
  border-radius: 2px;
  opacity: .7;
}

.section-services-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  font-weight: 500;
  color: rgba(11,31,51,.72);
  margin: 8px 0 0;
  letter-spacing: .01em;
}

.section-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--navy);
  line-height: 1.2;
}

.section-title-underline {
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
}

.section-title-underline::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--coral);
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.service-card {
  border-radius: var(--radius);
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans);
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.service-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

@media (min-width: 1025px) {
  .service-card-img {
    /* ES: Altura compacta solo en desktop para no alterar las tarjetas móviles. */
    /* EN: Compact height only on desktop so mobile cards remain unchanged. */
    height: 130px;
    aspect-ratio: auto;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .service-card-img { aspect-ratio: 16/9; }
}

.service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.service-card:hover .service-card-img img { transform: scale(1.06); }

.service-icon-wrap {
  position: relative;
  height: 0;
  display: flex;
  justify-content: center;
}

.service-icon {
  position: absolute;
  top: -32px;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  z-index: 2;
}

.service-icon svg { width: 28px; height: 28px; color: var(--white); }

.service-card-body {
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 52px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.service-card:nth-child(1) .service-card-body { background: #0B1F33; }
.service-card:nth-child(2) .service-card-body { background: #1B3A2D; }
.service-card:nth-child(3) .service-card-body { background: #3A2A1B; }
.service-card:nth-child(4) .service-card-body { background: #2D2440; }

.service-card:nth-child(1) .service-icon { background: #0B1F33; }
.service-card:nth-child(2) .service-icon { background: #1B3A2D; }
.service-card:nth-child(3) .service-icon { background: #3A2A1B; }
.service-card:nth-child(4) .service-icon { background: #2D2440; }

.service-card:nth-child(1) .check-icon { background: var(--coral); }
.service-card:nth-child(2) .check-icon { background: #4CAF8A; }
.service-card:nth-child(3) .check-icon { background: #E8934A; }
.service-card:nth-child(4) .check-icon { background: #9B7EBD; }

.service-card-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  color: var(--white);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.service-card-desc {
  font-size: .83rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.service-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.service-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  color: rgba(255,255,255,.85);
  text-align: left;
}

.check-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg { width: 11px; height: 11px; color: var(--white); }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  padding: 10px 18px;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50px;
  transition: background var(--trans), border-color var(--trans);
  align-self: center;
  margin-top: auto;
}

.service-link:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }

/* T1: en pantallas bajas (≤820px de alto, desktop) el hero se recorta para
   que las 4 tarjetas + sus descripciones quepan sin scroll a 1280x800. */
@media (max-height: 820px) and (min-width: 1025px) {
  .hero { height: 43vh; min-height: 320px; max-height: 380px; }
  .section-services { padding-top: 0; }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .section-services {
    padding: clamp(32px, 5vw, 48px) clamp(16px, 3vw, 24px) 64px;
  }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-card { width: 100%; max-width: 480px; margin: 0 auto; }
  .section-services { padding: 32px 16px 56px; }
}

/* ── ESTADÍSTICAS (oculta por defecto — enabled:false en config) ── */
.section-stats { display: none; }
.section-stats.stats-enabled {
  display: block;
  background: var(--navy);
  padding: 64px 24px;
}

.stats-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  background: rgba(255,255,255,.04);
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 15%; height: 70%;
  width: 1px;
  background: rgba(255,255,255,.1);
}

.stat-icon {
  width: 48px; height: 48px;
  margin-bottom: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg { width: 24px; height: 24px; color: var(--white); }

.stat-item:nth-child(1) .stat-icon { background: rgba(255,107,74,.2); color: var(--coral); }
.stat-item:nth-child(2) .stat-icon { background: rgba(11,31,51,.4); border: 1px solid rgba(100,149,237,.3); }
.stat-item:nth-child(3) .stat-icon { background: rgba(76,175,138,.15); }
.stat-item:nth-child(4) .stat-icon { background: rgba(155,126,189,.15); }

.stat-num {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: .82rem;
  color: var(--gray);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2n+1)::before { display: none; }
}

/* ── CONDADOS ───────────────────────────────────────────────── */
.section-counties {
  padding: 96px 24px;
  background: var(--cream);
}

.counties-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.counties-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 28px;
}

.county-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.county-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid rgba(11,31,51,.12);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(11,31,51,.06);
}

.county-chip svg { width: 14px; height: 14px; color: var(--coral); flex-shrink: 0; }

.counties-sub {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.7;
}

.counties-map {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.counties-map svg {
  width: 100%;
  max-width: 360px;
  height: auto;
}

@media (max-width: 768px) {
  .counties-inner { grid-template-columns: 1fr; gap: 40px; }
  .counties-map { min-height: 240px; }
}

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 72px 24px 0;
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-spg {
  font-size: 1.75rem;
}

.footer-brand-text { display: flex; flex-direction: column; gap: 1px; }

.footer-brand-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  color: var(--white);
  line-height: 1.1;
}

.footer-brand-sub {
  font-size: .55rem;
  color: var(--gray);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-socials { display: flex; gap: 10px; }

.social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  transition: border-color var(--trans), color var(--trans), background var(--trans);
}

.social-link svg { width: 17px; height: 17px; }
.social-link:hover { border-color: var(--coral); color: var(--coral); background: rgba(255,107,74,.08); }

.footer-heading {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--trans);
}
.footer-links a::before { content: '›'; color: var(--coral); font-size: 1.1rem; }
.footer-links a:hover { color: var(--white); }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .84rem;
  color: rgba(255,255,255,.55);
}
.footer-contact li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--coral); }
.footer-contact a { color: rgba(255,255,255,.55); transition: color var(--trans); }
.footer-contact a:hover { color: var(--white); }

.footer-licenses {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.footer-licenses li {
  font-size: .77rem;
  color: rgba(255,255,255,.55);
  line-height: 1.45;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-licenses li:last-child { border-bottom: none; }

.footer-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.footer-badge {
  height: 56px; width: auto;
  max-width: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .6;
  transition: opacity var(--trans);
  align-self: center;
}

/* SUNACHI es horizontal — altura menor para balancear */
.footer-badge[alt*="SUNACHI"] {
  height: 40px;
  max-width: 100px;
}

.footer-badge:hover { opacity: 1; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.footer-bottom p { font-size: .74rem; color: rgba(255,255,255,.3); }

/* IDX Attribution bar */
.footer-idx {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.footer-idx-text {
  font-size: .72rem;
  line-height: 1.6;
  color: rgba(255,255,255,.35);
  margin: 0;
  flex: 1;
}
.footer-idx-text strong { color: rgba(255,255,255,.5); font-weight: 600; }
.footer-idx-equal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: .65rem;
  color: rgba(255,255,255,.3);
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}
.footer-idx-equal svg { width: 28px; height: 28px; opacity: .5; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── WHATSAPP FLOTANTE ─────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════
   ES: CORRECCIONES GLOBALES DE RESPONSIVE
   EN: GLOBAL RESPONSIVE FIXES
   ══════════════════════════════════════════════════════════ */

/* ES: iOS hace zoom automático si el input tiene font-size < 16px — lo prevenimos */
/* EN: iOS auto-zooms when input font-size < 16px — we prevent that */
input, select, textarea, button {
  font-size: max(1rem, 16px);
}

/* ES: Imágenes nunca se salen de su contenedor */
/* EN: Images never overflow their container */
img, video, iframe, svg { max-width: 100%; height: auto; }

/* ES: Celdas de tabla con scroll horizontal si el contenido es ancho */
/* EN: Table cells with horizontal scroll if content is wide */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── PÁGINAS INTERNAS ──────────────────────────────────────── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--navy);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: .875rem;
  padding: 12px 24px;
  border-radius: 50px;
  border: 2px solid var(--navy);
  transition: background var(--trans), color var(--trans);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.insp-page {
  padding: calc(var(--nav-h) + 4rem) 1.5rem 5rem;
  min-height: 100svh;
}
.insp-header { margin-bottom: 2.5rem; }
.insp-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.insp-badges-block { margin-top: 1rem; }
.insp-certified-label {
  font-size: .78rem; font-weight: 600;
  color: var(--gray); letter-spacing: .06em;
  text-transform: uppercase; display: block; margin-bottom: 1rem;
}
.insp-badges { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.insp-badge {
  height: 80px; width: auto;
  max-width: 120px;
  object-fit: contain;
  align-self: center;
}

.insp-badge[alt*="SUNACHI"] {
  height: 52px;
  max-width: 140px;
}

.stub-page {
  padding: calc(var(--nav-h) + 4rem) 1.5rem 5rem;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.stub-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.stub-msg { font-size: 1rem; color: var(--gray); margin-bottom: 2rem; }

/* ── FOCUS VISIBLE ─────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
