/* ============================================================
   XV ELECTRIC · Hoja de estilos
   1. Tokens
   2. Base y utilidades
   3. Botones
   4. Header
   5. Hero
   6. Confianza
   7. Secciones y encabezados
   8. Tabla de síntomas
   9. Servicios
   10. Galería
   11. Reseñas
   12. Proceso
   13. Precios
   14. Zonas
   15. Preguntas
   16. Formulario
   17. Cierre
   18. Footer
   19. Barra móvil
   20. Lightbox
   21. Responsive y preferencias
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Marca */
  --navy-900: #071B2F;
  --navy-800: #0A2540;
  --navy-700: #123A5C;

  --cyan-700: #0B5F75;
  --cyan-600: #0E7490;
  --cyan-500: #0891B2;
  --cyan-50:  #ECF7FA;

  --amber-600: #E86A0C;
  --amber-500: #FF7A1A;

  /* Neutros */
  --bg:        #FFFFFF;
  --bg-soft:   #F7FAFC;
  --line:      #E2E8F0;
  --line-soft: #EDF2F7;
  --text:      #101828;
  --text-2:    #44586B;
  --text-3:    #6B7F92;
  --text-inv:  #C7D6E5;

  /* Funcional */
  --wa:        #25D366;
  --wa-hover:  #1FC05C;

  /* Tipografía */
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Espaciado (escala 4) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* Radios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Elevación (2 niveles) */
  --shadow-1: 0 1px 2px rgba(10, 37, 64, .06);
  --shadow-2: 0 10px 30px rgba(10, 37, 64, .10);

  /* Movimiento */
  --t-fast: 150ms ease;
  --t-med: 220ms ease;
}

/* ---------- 2. BASE ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 767px) {
  body { padding-bottom: 84px; } /* deja lugar a la barra fija */
}

img { max-width: 100%; height: auto; }
p { margin: 0 0 var(--s4); }
h1, h2, h3, h4 { margin: 0 0 var(--s3); line-height: 1.15; color: var(--navy-800); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); letter-spacing: -.015em; font-weight: 750; }
h3 { font-size: 1.08rem; letter-spacing: -.01em; }
a { color: var(--cyan-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

section[id] { scroll-margin-top: 92px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.micro {
  font-size: .86rem;
  color: var(--text-3);
  margin: 0;
}

/* ---------- 3. BOTONES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-sm { min-height: 40px; padding: 9px 14px; font-size: .875rem; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg { min-height: 52px; padding: 15px 22px; font-size: 1rem; }
.btn-lg svg { width: 20px; height: 20px; }
.btn-block { width: 100%; }

/* WhatsApp: único color reservado a la acción principal */
.btn-wa {
  background-color: var(--wa);
  color: var(--navy-900);
  box-shadow: var(--shadow-1);
}
.btn-wa:hover,
.btn-wa:focus-visible { background-color: var(--wa-hover); color: var(--navy-900); }
.btn-wa:disabled { background-color: #B9E6CA; color: #4A6B57; cursor: not-allowed; }

/* Secundario sobre fondo oscuro */
.btn-outline-light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}
.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}

/* Secundario sobre fondo claro */
.btn-outline {
  background-color: #fff;
  border-color: #CBD9E4;
  color: var(--navy-800);
}
.btn-outline:hover,
.btn-outline:focus-visible { border-color: var(--navy-800); background: var(--bg-soft); color: var(--navy-800); }

.btn-call {
  background-color: var(--navy-800);
  color: #fff;
}
.btn-call:hover { background-color: var(--navy-700); color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s3);
  font-size: .93rem;
  font-weight: 700;
  color: var(--cyan-700);
  text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.link-arrow:hover { color: var(--navy-800); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 4. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-800);
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.02rem; letter-spacing: -.01em; }
.brand-text span {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  font-weight: 600;
}

.site-nav { display: none; }
.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--navy-800); border-bottom-color: var(--amber-500); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .9rem;
  font-weight: 650;
  color: var(--navy-800);
  text-decoration: none;
  padding: 8px 4px;
}
.phone-link svg { width: 17px; height: 17px; color: var(--cyan-600); }
.phone-link:hover { color: var(--cyan-700); }

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(14, 116, 144, .38), transparent 68%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
  padding: var(--s8) 0 var(--s8);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 26, .55), transparent);
}

.hero-grid {
  display: grid;
  gap: var(--s7);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--s3);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-600);
}
.hero .eyebrow { color: #7FD3E8; }
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-500);
  flex: none;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: var(--s4);
  max-width: 20ch;
}

.hl {
  text-decoration: underline;
  text-decoration-color: var(--amber-500);
  text-decoration-thickness: .075em;
  text-underline-offset: .12em;
  text-decoration-skip-ink: auto;
}

.hero .lead {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.62;
  color: var(--text-inv);
  max-width: 48ch;
  margin-bottom: var(--s5);
}

.proof-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: var(--s5); }
.stars { display: inline-flex; gap: 2px; color: var(--amber-500); }
.stars svg { width: 16px; height: 16px; }
.stars-lg svg { width: 24px; height: 24px; }
.proof-text { font-size: .93rem; color: var(--text-inv); }
.proof-text strong { color: #fff; font-weight: 750; }
.proof-text a { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s4); }
.hero .micro { color: #9FB4C7; }

.hero-media { position: relative; }
.hero-media picture { display: block; }
.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.hero-card {
  position: absolute;
  left: 16px;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 16px;
  background: #fff;
  color: var(--navy-800);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  font-size: .84rem;
  line-height: 1.35;
}
.hero-card svg { width: 18px; height: 18px; color: var(--cyan-600); flex: none; }
.hero-card strong { display: block; font-size: .86rem; }

/* ---------- 6. CONFIANZA ---------- */
.trust {
  background: var(--cyan-50);
  border-bottom: 1px solid #DCEAF0;
  padding: var(--s5) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4) var(--s5);
}
.trust-item { display: flex; align-items: flex-start; gap: 10px; }
.trust-item svg { width: 20px; height: 20px; flex: none; color: var(--cyan-600); margin-top: 2px; }
.trust-item p { margin: 0; font-size: .88rem; line-height: 1.35; color: var(--text-3); }
.trust-item strong { display: block; font-size: .95rem; color: var(--navy-800); letter-spacing: -.01em; }

/* ---------- 7. SECCIONES ---------- */
.section { padding: var(--s8) 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 60ch; margin-bottom: var(--s6); }
.section-sub { color: var(--text-2); font-size: 1.02rem; margin: 0; }

/* ---------- 8. SÍNTOMAS ---------- */
.diag {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-1);
}
.diag thead th {
  text-align: left;
  padding: 14px var(--s4);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  background: #FBFDFE;
  border-bottom: 1px solid var(--line);
}
.diag tbody td {
  padding: 15px var(--s4);
  font-size: .95rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.diag tbody tr:last-child td { border-bottom: 0; }
.diag tbody tr:hover td { background: #FBFDFE; }
.diag tbody td:first-child {
  font-weight: 650;
  color: var(--navy-800);
  border-left: 3px solid transparent;
}
.diag tbody tr:hover td:first-child { border-left-color: var(--amber-500); }

.diag-note {
  margin: var(--s4) 0 0;
  padding-left: var(--s4);
  border-left: 3px solid var(--amber-500);
  font-size: .93rem;
  color: var(--text-2);
  max-width: 72ch;
}

/* ---------- 9. SERVICIOS ---------- */
.services { display: grid; gap: var(--s4); }

.service {
  display: flex;
  flex-direction: column;
  padding: var(--s5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.service:hover {
  border-color: #BFD9E6;
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cyan-50);
  color: var(--cyan-600);
  margin-bottom: var(--s3);
}
.service-icon svg { width: 20px; height: 20px; }
.service h3 { margin-bottom: var(--s2); }
.service-lead { color: var(--text-2); font-size: .95rem; margin-bottom: var(--s3); }

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s4);
}
.service-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: .92rem;
  color: var(--text-2);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan-500);
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: auto 0 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-3);
}
.service-meta svg { width: 15px; height: 15px; color: var(--cyan-600); }

/* ---------- 10. GALERÍA ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 132px;
  gap: var(--s2);
}
.gallery-item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #E6EDF3;
  cursor: zoom-in;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(7, 27, 47, .88));
  color: #fff;
  font-size: .8rem;
  font-weight: 650;
  text-align: left;
}
.gallery-note { margin: var(--s3) 0 0; font-size: .78rem; color: #8A9AAA; }

/* ---------- 11. RESEÑAS ---------- */
.proof-grid { display: grid; gap: var(--s6); align-items: center; }
.proof-score { text-align: left; }
.proof-number {
  font-size: clamp(3rem, 7vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--navy-800);
  margin: 0 0 var(--s2);
}
.proof-label { margin: var(--s2) 0 0; font-size: .9rem; font-weight: 600; color: var(--text-3); }
.proof-copy h2 { margin-top: 0; }
.proof-copy p { color: var(--text-2); max-width: 58ch; }

/* ---------- 12. PROCESO ---------- */
.steps {
  display: grid;
  gap: var(--s5);
  list-style: none;
  padding: 0;
  margin: 0;
}
.step { border-top: 2px solid var(--line); padding-top: var(--s4); }
.step-num {
  display: block;
  margin-bottom: var(--s2);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--amber-600);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: .95rem; margin: 0; }

/* ---------- 13. PRECIOS ---------- */
.price-grid { display: grid; gap: var(--s6); align-items: start; }
.price-copy p { color: var(--text-2); max-width: 52ch; }

.price-table-wrap { width: 100%; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.price-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 10px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.price-table th,
.price-table td { padding: 14px var(--s4); border-bottom: 1px solid var(--line-soft); }
.price-table thead th {
  text-align: left;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  background: #FBFDFE;
}
.price-table tbody th { text-align: left; font-weight: 600; font-size: .95rem; color: var(--navy-800); }
.price-table tbody td {
  text-align: right;
  font-size: .95rem;
  font-weight: 700;
  color: var(--cyan-700);
  font-variant-numeric: tabular-nums;
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-note { margin: var(--s3) 0 0; font-size: .82rem; color: var(--text-3); }

/* ---------- 14. ZONAS ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s4);
}
.chips li {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 550;
  color: var(--navy-800);
}
.zones-note { color: var(--text-2); margin: 0; }
.zones-note a { font-weight: 650; }

/* ---------- 15. PREGUNTAS ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 18px 44px 18px 0;
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--navy-800);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cyan-700); }
.faq-icon {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--cyan-600);
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-med);
}
.faq-icon::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-icon::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq details[open] .faq-icon::after { transform: scaleY(0); opacity: 0; }
.faq details[open] summary { color: var(--navy-800); }
.faq details p {
  padding: 0 44px 20px 0;
  margin: 0;
  color: var(--text-2);
  font-size: .96rem;
  max-width: 70ch;
}

/* ---------- 16. FORMULARIO ---------- */
.form-grid { display: grid; gap: var(--s6); }
.form-copy p { color: var(--text-2); max-width: 46ch; }

.quote-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-1);
}
.field { margin-bottom: var(--s4); }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: .9rem;
  font-weight: 650;
  color: var(--navy-800);
}
.optional { font-weight: 500; color: var(--text-3); font-size: .82rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #CBD9E4;
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input::placeholder,
.field textarea::placeholder { color: #9AAABA; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, .18);
}
.field input:user-invalid,
.field select:user-invalid { border-color: #D92D20; }
.field textarea { resize: vertical; min-height: 92px; }
.form-error {
  margin: 0 0 var(--s3);
  font-size: .88rem;
  font-weight: 600;
  color: #B42318;
}
.quote-form .micro { margin-top: var(--s2); }

/* ---------- 17. CIERRE ---------- */
.closing {
  background:
    radial-gradient(700px 340px at 20% 0%, rgba(14, 116, 144, .35), transparent 70%),
    var(--navy-900);
  color: #fff;
  padding: var(--s8) 0;
  text-align: center;
}
.closing h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.closing p { color: var(--text-inv); max-width: 56ch; margin-inline: auto; }
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
  margin: var(--s5) 0 var(--s6);
}
.closing-note {
  padding-top: var(--s5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .9rem;
  color: #9FB4C7;
  max-width: 64ch;
}

/* ---------- 18. FOOTER ---------- */
.site-footer {
  background: var(--navy-900);
  color: #B9CBD9;
  padding-top: var(--s7);
}
.footer-grid { display: grid; gap: var(--s6); }
.brand-footer { color: #fff; }
.brand-footer .brand-text span { color: #8AA0B3; }
.site-footer address {
  font-style: normal;
  margin: var(--s4) 0 var(--s2);
  font-size: .92rem;
  line-height: 1.7;
  color: #B9CBD9;
}
.footer-note { font-size: .86rem; color: #8AA0B3; margin: 0; }
.footer-col h3 {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7E95A8;
  margin-bottom: var(--s3);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #CFDCE6; text-decoration: none; font-size: .93rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: var(--s6);
  padding: var(--s4) 0 var(--s5);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .78rem;
  color: #7E95A8;
}
.footer-bottom p { margin: 0; }

/* ---------- 19. BARRA MÓVIL ---------- */
.sticky-cta { display: none; }

/* ---------- 20. LIGHTBOX ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1000px, 92vw);
  color: #fff;
}
.lightbox::backdrop { background: rgba(4, 15, 26, .88); }
.lightbox img {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  border-radius: var(--r-md);
}
.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .18); }
.lightbox-cap { margin: var(--s3) 0 0; text-align: center; font-size: .88rem; color: #CBD9E4; }

/* ---------- 21. RESPONSIVE ---------- */
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 168px; }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
  .quote-form { padding: var(--s6); }
}

@media (min-width: 768px) {
  .section { padding: var(--s9) 0; }
  .hero { padding: var(--s9) 0; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
  .proof-grid { grid-template-columns: 260px 1fr; gap: var(--s7); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: var(--s7); }
  .price-grid { grid-template-columns: 1fr 1fr; gap: var(--s7); }
  .form-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s7); align-items: start; }
}

@media (min-width: 992px) {
  .site-nav { display: flex; align-items: center; gap: var(--s5); }
}

@media (max-width: 991px) {
  .header-bar { flex-wrap: wrap; gap: var(--s2); padding-top: 10px; }
  .site-nav {
    order: 3;
    display: flex;
    gap: var(--s4);
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 96%, transparent 100%);
    mask-image: linear-gradient(to right, #000 96%, transparent 100%);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: .85rem; }
}

@media (max-width: 575px) {
  .phone-link { display: none; }
  .hero-card { left: 12px; right: 12px; bottom: -20px; }
  .hero-media { margin-bottom: var(--s5); }
  .diag thead { display: none; }
  .diag,
  .diag tbody,
  .diag tr,
  .diag td { display: block; width: 100%; }
  .diag { border-radius: var(--r-md); }
  .diag tbody tr { padding: 14px var(--s4); border-bottom: 1px solid var(--line); }
  .diag tbody tr:last-child { border-bottom: 0; }
  .diag tbody td {
    padding: 0;
    border: 0;
    font-size: .92rem;
  }
  .diag tbody td:first-child {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 4px;
  }
  .diag tbody td + td { margin-top: 2px; }
  .diag tbody td::before {
    content: attr(data-label) " · ";
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-3);
    font-weight: 700;
  }
  .diag tbody td:first-child::before { content: none; }
  .diag tbody tr:hover td { background: transparent; }
}

@media (max-width: 767px) {
  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    gap: var(--s2);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .sticky-cta .btn-wa { flex: 1; }
  .sticky-cta .btn-call { width: 52px; padding: 0; }
}

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