/* ==========================================
   ALAMBRADOS GAMA — Sistema Acero Azul
   Fase 3/4 Workflow Ferrari · v20260825a
   ========================================== */

/* ==========================================
   1. RESET Y VARIABLES
   ========================================== */
:root {
  /* Paleta Acero Azul */
  --azul-profundo: #0E1F42;
  --azul: #1D4691;
  --azul-claro: #2E5FB8;
  --rojo: #D93227;
  --rojo-osc: #B8271D;
  --coral: #FF7A6E;
  --acero: #6E7A8C;
  --acero-claro: #8A94A6;
  --hueso: #E7E7E2;
  --gris-texto: #4A5464;
  --blanco: #FFFFFF;
  --grafito: #1C1C1E;
  --linea: rgba(14, 31, 66, 0.14);

  /* Tipografía */
  --font-display: 'Oswald', Impact, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;

  /* Espaciado */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 5.5rem;

  --radius: 4px;
  --container: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--grafito);
  background: var(--blanco);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--azul); color: #fff; }

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

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.12;
  color: var(--azul-profundo);
}

a { color: var(--azul); }

/* Accesibilidad — foco visible en todo elemento interactivo */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--rojo);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--azul-profundo);
  color: #fff;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ==========================================
   2. LAYOUT
   ========================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.block { padding: var(--sp-xl) 0; }
.block--tight { padding: var(--sp-lg) 0; }
.block--hueso { background: var(--hueso); }
.block--azul { background: var(--azul-profundo); color: #fff; }
.block--azul h2, .block--azul h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: 2.8rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--gris-texto); font-size: 1.04rem; }
.block--azul .section-head p { color: rgba(255,255,255,0.78); }

.overline {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rojo);
  display: block;
  margin-bottom: 0.9rem;
}
.block--azul .overline, .hero .overline { color: var(--coral); }

/* Respuesta directa GEO */
.geo-answer {
  background: var(--hueso);
  border-left: 4px solid var(--azul);
  padding: 1.3rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: var(--gris-texto);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.geo-answer strong { color: var(--azul-profundo); }
.block--azul .geo-answer {
  background: rgba(255,255,255,0.07);
  border-left-color: var(--coral);
  color: rgba(255,255,255,0.86);
}
.block--azul .geo-answer strong { color: #fff; }

/* ==========================================
   3. HEADER
   ========================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
  box-shadow: 0 1px 14px rgba(14,31,66,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 0.8rem 0;
}
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-mark {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--azul); border-radius: 3px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  color: #fff; font-size: 1.35rem; letter-spacing: -0.02em;
  border-bottom: 3px solid var(--rojo);
}
.logo-text { line-height: 1.15; }
.logo-text strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 1.1rem; text-transform: uppercase; color: var(--azul-profundo);
  letter-spacing: 0.02em;
}
.logo-text span {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--acero); font-weight: 600;
}

.main-nav ul { display: flex; gap: 1.6rem; list-style: none; }
.main-nav a {
  font-family: var(--font-display); font-weight: 400; font-size: 0.86rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--azul-profundo); text-decoration: none; position: relative;
  padding-bottom: 3px; display: inline-block;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--rojo); transition: width 0.24s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: var(--azul); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 8px;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--azul-profundo);
  margin: 5px 0; transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================
   4. BOTONES
   ========================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 500; font-size: 0.88rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.85rem 1.6rem; border-radius: var(--radius); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
  white-space: nowrap; min-height: 44px;
}
.btn-primary { background: var(--rojo); color: #fff; }
.btn-primary:hover { background: var(--rojo-osc); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217,50,39,0.3); }
.btn-ghost { border-color: var(--azul); color: var(--azul); background: transparent; }
.btn-ghost:hover { background: var(--azul); color: #fff; }
.btn-light { background: #fff; color: var(--azul-profundo); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.22); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--azul-profundo); }

/* ==========================================
   5. HERO
   ========================================== */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--azul-profundo) 0%, var(--azul) 58%, #16305F 100%);
  color: #fff; padding: var(--sp-xl) 0 var(--sp-lg); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.15;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(65deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  font-weight: 700; color: #fff; margin-bottom: 1.3rem; max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--coral); display: block; }
.hero-sub {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  max-width: 58ch; color: rgba(255,255,255,0.92); margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.8rem; }

.hero-badges {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.22); padding-top: 1.7rem;
}
.hero-badge strong {
  display: block; font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 600; color: #fff; line-height: 1;
}
.hero-badge span {
  font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(255,255,255,0.72); font-weight: 600;
}

/* ==========================================
   6. CIUDADES
   ========================================== */
.cities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.city-card {
  background: #fff; border-radius: var(--radius); padding: 1.7rem;
  border-top: 4px solid var(--azul); text-decoration: none; color: inherit;
  display: block; box-shadow: 0 2px 10px rgba(14,31,66,0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.city-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(14,31,66,0.15); }
.city-card:hover h3 { color: var(--azul); }
.city-tag {
  font-family: var(--font-display); font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rojo); font-weight: 600;
}
.city-card h3 { font-size: 1.5rem; margin: 0.45rem 0 0.6rem; transition: color 0.2s; }
.city-card p { font-size: 0.94rem; color: var(--gris-texto); margin-bottom: 0.9rem; }
.city-phone {
  font-family: var(--font-display); font-size: 1.08rem; color: var(--azul);
  letter-spacing: 0.03em; font-weight: 500;
}

/* ==========================================
   7. SERVICIOS
   ========================================== */
.serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.serv-card {
  background: #fff; border-radius: var(--radius); padding: 1.9rem 1.7rem;
  border-left: 4px solid var(--azul);
  box-shadow: 0 2px 10px rgba(14,31,66,0.06);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.serv-card:hover { border-left-color: var(--rojo); transform: translateY(-4px); box-shadow: 0 16px 32px rgba(14,31,66,0.13); }
.serv-num {
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--acero-claro); font-weight: 600;
}
.serv-card h3 { font-size: 1.2rem; margin: 0.5rem 0 0.7rem; }
.serv-card p { font-size: 0.94rem; color: var(--gris-texto); }
.serv-card a { font-weight: 600; text-decoration: none; }
.serv-card a:hover { text-decoration: underline; }

/* ==========================================
   8. FIRMA (producto estrella)
   ========================================== */
.firma-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.2rem; align-items: center; }
.firma-visual {
  aspect-ratio: 4/3; border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--azul-claro), var(--azul-profundo));
  display: grid; place-items: center;
}
.firma-visual::before {
  content: ""; position: absolute; inset: 0; opacity: 0.3;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,0.65) 1.5px, transparent 1.5px),
    linear-gradient(65deg, rgba(255,255,255,0.65) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
}
.ph-note {
  position: relative; z-index: 2; font-family: var(--font-display);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); background: rgba(0,0,0,0.34);
  padding: 0.5rem 1rem; border-radius: 2px; border: 1px solid rgba(255,255,255,0.32);
  text-align: center; line-height: 1.6;
}
.spec-list { display: grid; gap: 0.6rem; margin: 1.5rem 0 1.9rem; }
.spec-row {
  display: flex; gap: 0.9rem; align-items: baseline;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--linea);
}
.spec-row dt {
  font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--acero); min-width: 104px; flex-shrink: 0;
}
.spec-row dd { font-weight: 600; color: var(--azul-profundo); font-size: 0.97rem; }

/* ==========================================
   9. TABLA DE ESPECIFICACIONES
   ========================================== */
.tabla-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabla-specs {
  width: 100%; border-collapse: collapse; min-width: 620px;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 12px rgba(14,31,66,0.08);
}
.tabla-specs th, .tabla-specs td {
  padding: 0.95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--linea);
  font-size: 0.95rem;
}
.tabla-specs thead th {
  background: var(--azul-profundo); color: #fff;
  font-family: var(--font-display); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.82rem;
}
.tabla-specs tbody th {
  font-family: var(--font-display); font-weight: 500; color: var(--azul-profundo);
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem;
  background: var(--hueso); width: 26%;
}
.tabla-specs tbody tr:last-child th, .tabla-specs tbody tr:last-child td { border-bottom: 0; }

/* ==========================================
   10. LISTA DE FACTORES / PROCESO
   ========================================== */
.factores { list-style: none; counter-reset: f; display: grid; gap: 1.1rem; }
.factores li {
  counter-increment: f; position: relative; padding-left: 3.2rem;
  color: var(--gris-texto);
}
.factores li::before {
  content: counter(f, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--rojo); line-height: 1.4;
}
.factores strong { color: var(--azul-profundo); }

.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.paso { border-top: 3px solid var(--azul); padding-top: 1.1rem; }
.paso .num {
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--rojo); font-weight: 600;
}
.paso h3 { font-size: 1.08rem; margin: 0.4rem 0 0.5rem; }
.paso p { font-size: 0.93rem; color: var(--gris-texto); }
.block--azul .paso { border-top-color: var(--coral); }
.block--azul .paso p { color: rgba(255,255,255,0.76); }
.block--azul .paso .num { color: var(--coral); }

/* ==========================================
   11. DIFERENCIADORES
   ========================================== */
.dif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.dif { border-left: 3px solid var(--rojo); padding-left: 1.2rem; }
.dif h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.dif p { font-size: 0.95rem; color: var(--gris-texto); }

/* ==========================================
   12. GALERÍA
   ========================================== */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gal-item {
  aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden; position: relative;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #22488F, var(--azul-profundo));
}
.gal-item:nth-child(2) { background: linear-gradient(145deg, #55606F, #24303F); }
.gal-item:nth-child(3) { background: linear-gradient(145deg, var(--azul-claro), #16305F); }
.gal-item:nth-child(4) { background: linear-gradient(145deg, #3A4756, #14202E); }
.gal-item:nth-child(5) { background: linear-gradient(145deg, var(--azul), #0B1830); }
.gal-item:nth-child(6) { background: linear-gradient(145deg, #6B7686, #2E3947); }
.gal-item::before {
  content: ""; position: absolute; inset: 0; opacity: 0.26;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,0.7) 1.5px, transparent 1.5px),
    linear-gradient(65deg, rgba(255,255,255,0.7) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}
.gal-caption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 0.85rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.66));
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: #fff;
}

/* ==========================================
   13. FAQ
   ========================================== */
.faq-list { display: grid; gap: 0.8rem; max-width: 900px; }
.faq-item {
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.15rem 1.4rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 500; font-size: 1.02rem;
  color: var(--azul-profundo); text-transform: none; letter-spacing: 0.01em;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--rojo); flex-shrink: 0;
  line-height: 1; transition: transform 0.22s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { background: var(--hueso); }
.faq-answer { padding: 0 1.4rem 1.3rem; color: var(--gris-texto); }
.faq-answer p { margin-top: 1rem; }

/* ==========================================
   14. UBICACIÓN / NAP
   ========================================== */
.ubi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
.ubi-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 12px rgba(14,31,66,0.09);
}
.ubi-card iframe { width: 100%; height: 300px; border: 0; display: block; }
.ubi-body { padding: 1.7rem; }
.ubi-body h3 { font-size: 1.35rem; margin-bottom: 0.9rem; }
.nap { display: grid; gap: 0.6rem; }
.nap-row { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.95rem; color: var(--gris-texto); }
.nap-row .lbl {
  font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--acero); min-width: 78px; flex-shrink: 0;
  padding-top: 0.2rem;
}
.nap-row a { color: var(--azul); font-weight: 600; text-decoration: none; }
.nap-row a:hover { text-decoration: underline; }

/* ==========================================
   15. CTA FINAL
   ========================================== */
.cta-final {
  background: linear-gradient(140deg, var(--azul), var(--azul-profundo));
  color: #fff; text-align: center; padding: var(--sp-lg) 0;
}
.cta-final h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); color: #fff; margin-bottom: 1rem; }
.cta-final p { color: rgba(255,255,255,0.88); max-width: 56ch; margin: 0 auto 1.9rem; }
.cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================
   16. FOOTER
   ========================================== */
.site-footer { background: var(--grafito); color: rgba(255,255,255,0.74); padding: 3.4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.2rem; margin-bottom: 2.4rem; }
.site-footer h2, .site-footer h3 {
  font-size: 0.8rem; letter-spacing: 0.19em; color: #fff; margin-bottom: 1rem; font-weight: 500;
}
.site-footer p, .site-footer li { font-size: 0.92rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer a { color: rgba(255,255,255,0.74); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand {
  font-family: var(--font-display); font-size: 1.3rem; color: #fff;
  text-transform: uppercase; margin-bottom: 0.7rem; letter-spacing: 0.03em;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.13); padding-top: 1.5rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ==========================================
   17. BOTONES FLOTANTES DE CONVERSIÓN
   ========================================== */
.float-actions {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.float-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  transition: transform 0.2s ease;
}
.float-btn:hover { transform: scale(1.07); }
.float-btn svg { width: 28px; height: 28px; fill: #fff; }
.float-wa { background: #25D366; }
.float-tel { background: var(--rojo); }

/* ==========================================
   18. BREADCRUMBS
   ========================================== */
.breadcrumb { background: var(--hueso); padding: 0.8rem 0; font-size: 0.86rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb li::after { content: "›"; margin-left: 0.5rem; color: var(--acero); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--azul); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--gris-texto); }

/* ==========================================
   19. RESPONSIVE (mobile-first en ajustes)
   ========================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav ul { gap: 1.1rem; }
  .pasos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .firma-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cities-grid, .serv-grid, .gal-grid, .dif-grid { grid-template-columns: repeat(2, 1fr); }
  .ubi-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--linea);
    box-shadow: 0 12px 24px rgba(14,31,66,0.12);
    max-height: 0; overflow: hidden; transition: max-height 0.28s ease;
  }
  .main-nav.is-open { max-height: 70vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0; }
  .main-nav li { border-bottom: 1px solid var(--linea); }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav a { display: block; padding: 0.95rem var(--sp-md); font-size: 0.95rem; }
  .main-nav a::after { display: none; }
}

@media (max-width: 768px) {
  :root { --sp-xl: 3.6rem; --sp-lg: 2.8rem; }
  .hero-badges { grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
  .ubi-card iframe { height: 260px; }
}

@media (max-width: 720px) {
  .container { padding: 0 1.4rem; }
}

@media (max-width: 640px) {
  .cities-grid, .serv-grid, .gal-grid, .dif-grid, .pasos { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions, .cta-actions { flex-direction: column; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .ubi-card iframe { height: 230px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.1rem; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .spec-row { flex-direction: column; gap: 0.15rem; }
  .nap-row { flex-direction: column; gap: 0.15rem; }
  .ubi-card iframe { height: 210px; }
  .float-btn { width: 50px; height: 50px; }
  .float-btn svg { width: 25px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
