/* =============================================================
   José Agüero · Gasista Matriculado · Plomería en Salta
   Azul profesional + verde seguridad + amarillo precaución
   IBM Plex Sans (display) + Source Sans 3 (body)
   ============================================================= */

:root {
  /* Brand palette */
  --azul: #0D47A1;
  --azul-osc: #0A3470;
  --azul-profundo: #082A5C;
  --verde: #2E7D32;
  --verde-osc: #1F5E23;
  --verde-whats: #1FA653;
  --amarillo: #F9A825;
  --amarillo-osc: #C7891A;

  /* Neutrals */
  --bg: #F6F8FB;
  --bg-alt: #ECF1F8;
  --surface: #FFFFFF;
  --borde: #D6DFEC;
  --borde-suave: #E6ECF4;
  --texto: #14213D;
  --texto-medio: #3A475E;
  --texto-muted: #5C6B82;
  --texto-claro: #C7D2E0;

  /* Effects */
  --sombra-card: 0 10px 30px rgba(13, 71, 161, 0.07), 0 2px 6px rgba(20, 33, 61, 0.05);
  --sombra-flotante: 0 18px 50px rgba(8, 42, 92, 0.16);
  --radio: 12px;
  --radio-sm: 8px;
  --radio-pill: 999px;
  --maxw: 1180px;

  --ff-head: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ff-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--azul); text-decoration: none; }
a:hover { color: var(--azul-osc); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

/* ---------- Focus visible ---------- */
:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Visually hidden ---------- */
.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;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-head);
  color: var(--texto);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 600; }
p { color: var(--texto-medio); }
p.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--texto); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verde-osc);
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: var(--verde);
}

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--bg-alt); }
.section-azul { background: var(--azul-profundo); color: #E8EFF8; }
.section-azul h2, .section-azul h3 { color: #FFFFFF; }
.section-azul p { color: #C7D2E0; }
.section-head { max-width: 680px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 0.9rem; font-size: 1.08rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 0;
  top: -200px;
  background: var(--azul-osc);
  color: #FFFFFF;
  padding: 0.8rem 1.4rem;
  z-index: 2000;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0 0 10px 0;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #FFFFFF; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radio-sm);
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.btn-primary { background: var(--azul); color: #FFFFFF; box-shadow: 0 8px 20px rgba(13, 71, 161, 0.22); }
.btn-primary:hover { background: var(--azul-osc); color: #FFFFFF; box-shadow: 0 12px 28px rgba(10, 52, 112, 0.28); }

.btn-verde { background: var(--verde); color: #FFFFFF; box-shadow: 0 8px 20px rgba(46, 125, 50, 0.22); }
.btn-verde:hover { background: var(--verde-osc); color: #FFFFFF; }

.btn-amarillo { background: var(--amarillo); color: var(--texto); }
.btn-amarillo:hover { background: var(--amarillo-osc); color: var(--texto); }

.btn-outline { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; border-color: #FFFFFF; }

.btn-whatsapp { background: var(--verde-whats); color: #FFFFFF; box-shadow: 0 8px 22px rgba(31, 166, 83, 0.28); }
.btn-whatsapp:hover { background: #178843; color: #FFFFFF; }

.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.08rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borde-suave);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(20, 33, 61, 0.06); }

.topbar {
  background: var(--azul-profundo);
  color: #DCE5F2;
  font-size: 0.9rem;
  font-family: var(--ff-head);
  font-weight: 500;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  padding-block: 0.35rem;
}
.topbar a { color: #DCE5F2; display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar a:hover { color: #FFFFFF; }
.topbar ul { display: flex; gap: 1.4rem; align-items: center; }
.topbar svg { width: 0.95em; height: 0.95em; }
.topbar-pill {
  background: var(--amarillo);
  color: var(--texto);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radio-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}
.brand img { width: 230px; height: auto; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radio-sm);
  background: var(--bg-alt);
  z-index: 1100;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2.5px;
  background: var(--texto);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

.nav-main { display: flex; align-items: center; gap: 1.8rem; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-family: var(--ff-head);
}
.nav-list a {
  position: relative;
  color: var(--texto);
  font-weight: 600;
  font-size: 1rem;
  padding-block: 0.4rem;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--amarillo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a:hover { color: var(--azul); }
.nav-cta { display: flex; gap: 0.6rem; align-items: center; }
.nav-cta-mobile { display: none; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 42, 92, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1050;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, #0A3470 0%, #0D47A1 55%, #0E4BB0 100%);
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 90% -10%, rgba(249, 168, 37, 0.18), transparent 60%),
    radial-gradient(600px 420px at -10% 110%, rgba(46, 125, 50, 0.22), transparent 60%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
  min-height: clamp(440px, 70vh, 620px);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(249, 168, 37, 0.18);
  color: #FFD37A;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radio-pill);
  font-family: var(--ff-head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-eyebrow svg { width: 1em; height: 1em; }
.hero h1 { color: #FFFFFF; margin-top: 1.1rem; }
.hero h1 .accent { color: var(--amarillo); }
.hero .lead {
  color: #D7E2F2;
  margin-top: 1.1rem;
  max-width: 38ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-head);
  font-size: 0.95rem;
  font-weight: 500;
  color: #E1EAF6;
}
.hero-trust svg { width: 1.1em; height: 1.1em; color: #6BE3A4; flex-shrink: 0; }

.hero-figure {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(8, 42, 92, 0.45);
  aspect-ratio: 4 / 3;
  background: #0A2E63;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--texto);
  padding: 0.8rem 1.1rem;
  border-radius: var(--radio-sm);
  box-shadow: var(--sombra-flotante);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 18rem;
}
.hero-badge-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--verde);
  color: #FFFFFF;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.hero-badge-icon svg { width: 22px; height: 22px; }
.hero-badge strong {
  font-family: var(--ff-head);
  font-size: 0.95rem;
  display: block;
  line-height: 1.25;
}
.hero-badge span { font-size: 0.85rem; color: var(--texto-muted); }

/* ---------- Emergency strip ---------- */
.emergency-strip {
  background: var(--amarillo);
  color: var(--texto);
}
.emergency-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding-block: 0.9rem;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}
.emergency-strip svg { width: 1.2em; height: 1.2em; color: var(--verde-osc); }
.emergency-strip a {
  color: var(--azul-profundo);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.emergency-strip a:hover { color: var(--azul); }

/* ---------- Trust bar ---------- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border-block: 1px solid var(--borde-suave);
}
.trust-bar li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.4rem clamp(1rem, 2.5vw, 1.8rem);
  border-right: 1px solid var(--borde-suave);
}
.trust-bar li:last-child { border-right: none; }
.trust-bar .stat-num {
  font-family: var(--ff-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--azul);
  line-height: 1;
}
.trust-bar .stat-label {
  font-size: 0.92rem;
  color: var(--texto-muted);
  font-weight: 500;
  line-height: 1.3;
  margin-top: 0.25rem;
}

/* ---------- Services cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio);
  padding: 1.8rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-card);
  border-color: var(--borde);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radio-sm);
  background: linear-gradient(135deg, #E8EFF8, #DCE7F6);
  color: var(--azul);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.service-icon.alt { background: linear-gradient(135deg, #E5F3E7, #D2EBD5); color: var(--verde-osc); }
.service-icon.warm { background: linear-gradient(135deg, #FDF1D7, #FBE3AE); color: var(--amarillo-osc); }
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { margin-bottom: 0.55rem; }
.service-card p { font-size: 0.98rem; }
.service-card .more {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--azul);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.service-card .more svg { width: 1em; height: 1em; transition: transform 0.2s ease; }
.service-card:hover .more svg { transform: translateX(3px); }

/* Service detail rows (servicios.html) */
.service-detail {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
  border-top: 1px solid var(--borde-suave);
}
.service-detail:first-of-type { border-top: none; }
.service-detail.flip .service-detail-media { order: 2; }
.service-detail-media {
  border-radius: var(--radio);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--bg-alt);
  box-shadow: var(--sombra-card);
}
.service-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-body h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.service-detail-body p { margin-top: 0.8rem; }
.service-detail-body ul.checks {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.55rem;
}
.service-detail-body ul.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1rem;
  color: var(--texto-medio);
}
.service-detail-body ul.checks svg {
  width: 1.1em; height: 1.1em;
  color: var(--verde);
  flex-shrink: 0;
  margin-top: 0.18em;
}

/* ---------- About preview ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: var(--radio);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  box-shadow: var(--sombra-card);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-stamp {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: var(--azul-profundo);
  color: #FFFFFF;
  padding: 1rem 1.2rem;
  border-radius: var(--radio-sm);
  text-align: center;
  box-shadow: var(--sombra-flotante);
  max-width: 12rem;
}
.about-stamp .num {
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--amarillo);
  display: block;
}
.about-stamp .lbl { font-size: 0.85rem; color: #C7D2E0; margin-top: 0.35rem; display: block; }
.about-body h2 { margin-bottom: 1rem; }
.about-body p { margin-top: 0.9rem; }
.about-creds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.about-cred {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--texto-medio);
}
.about-cred svg { width: 1.15em; height: 1.15em; color: var(--verde); flex-shrink: 0; margin-top: 0.15em; }

/* ---------- Process steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2.4rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio);
  padding: 1.6rem 1.3rem;
  position: relative;
}
.step-num {
  font-family: var(--ff-head);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amarillo-osc);
  background: #FDF1D7;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.testi {
  background: var(--surface);
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.testi-stars {
  display: flex;
  gap: 0.15rem;
  color: var(--amarillo);
  margin-bottom: 0.9rem;
}
.testi-stars svg { width: 1.05em; height: 1.05em; }
.testi blockquote {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--texto);
  margin: 0;
}
.testi-author {
  margin-top: auto;
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--azul-profundo);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.testi-author strong { display: block; font-family: var(--ff-head); font-size: 0.98rem; }
.testi-author span { font-size: 0.85rem; color: var(--texto-muted); }

/* ---------- Coverage areas ---------- */
.coverage {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.6rem);
  align-items: center;
}
.coverage-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.6rem;
  margin-top: 1.4rem;
}
.coverage-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.98rem;
  color: var(--texto-medio);
}
.coverage-list svg { width: 1em; height: 1em; color: var(--verde); flex-shrink: 0; }
.coverage-map {
  border-radius: var(--radio);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--sombra-card);
  background: var(--bg-alt);
  border: 1px solid var(--borde-suave);
}
.coverage-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 2rem auto 0; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio-sm);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] { border-color: var(--borde); box-shadow: var(--sombra-card); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--texto);
  cursor: pointer;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:focus-visible { outline-offset: -2px; }
.faq-q-icon {
  width: 1.4em; height: 1.4em;
  flex-shrink: 0;
  color: var(--azul);
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-q-icon { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem 1.3rem; color: var(--texto-medio); }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(120deg, var(--azul-profundo) 0%, var(--azul) 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 280px at 90% 10%, rgba(249, 168, 37, 0.16), transparent 60%);
}
.cta-final .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2rem;
  align-items: center;
}
.cta-final h2 { color: #FFFFFF; }
.cta-final p { color: #D7E2F2; margin-top: 0.8rem; max-width: 50ch; }
.cta-final-actions { display: flex; flex-direction: column; gap: 0.7rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #08203F;
  color: #B6C4D8;
  padding-block: clamp(2.6rem, 5vw, 4rem) 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 2.6rem);
}
.footer-brand img { width: 200px; margin-bottom: 1rem; }
.footer-brand p { color: #9FB0C7; font-size: 0.95rem; max-width: 32ch; }
.footer-col h3 {
  color: #FFFFFF;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { color: #B6C4D8; font-size: 0.96rem; }
.footer-col a:hover { color: #FFFFFF; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.96rem;
  color: #B6C4D8;
}
.footer-contact svg { width: 1.1em; height: 1.1em; color: var(--amarillo); flex-shrink: 0; margin-top: 0.2em; }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #88A0BE;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: linear-gradient(120deg, #0A3470 0%, #0D47A1 100%);
  color: #FFFFFF;
  padding-block: clamp(2.6rem, 6vw, 4.2rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 280px at 90% 10%, rgba(249, 168, 37, 0.16), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #FFFFFF; max-width: 18ch; }
.page-hero p { color: #D7E2F2; margin-top: 0.9rem; max-width: 56ch; font-size: 1.1rem; }
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--ff-head);
  font-size: 0.9rem;
  color: #C7D2E0;
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: #FFD37A; }
.breadcrumb a:hover { color: #FFFFFF; }
.breadcrumb svg { width: 0.9em; height: 0.9em; opacity: 0.6; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.4rem);
  align-items: start;
}
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--sombra-card);
}
.contact-form-wrap h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.field { margin-top: 1.1rem; }
.field label {
  display: block;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--texto);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio-sm);
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--texto);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.16);
}
.field .hint { font-size: 0.85rem; color: var(--texto-muted); margin-top: 0.35rem; }
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: #C62828; background: #FFF5F5; }
.field .error-msg {
  display: block;
  color: #B71C1C;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.35rem;
  min-height: 1.1em;
}
.form-success {
  display: none;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: var(--radio-sm);
  color: var(--verde-osc);
  font-weight: 600;
  gap: 0.6rem;
  align-items: flex-start;
}
.form-success svg { width: 1.3em; height: 1.3em; flex-shrink: 0; }
.form-success.is-visible { display: flex; }

.contact-info {
  display: grid;
  gap: 1rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio);
  padding: 1.4rem 1.3rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.contact-card-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: var(--radio-sm);
  background: var(--bg-alt);
  color: var(--azul);
  display: grid; place-items: center;
}
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card-icon.alt { background: #E5F3E7; color: var(--verde-osc); }
.contact-card-icon.warm { background: #FDF1D7; color: var(--amarillo-osc); }
.contact-card h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.contact-card p, .contact-card a { font-size: 0.95rem; color: var(--texto-medio); }
.contact-card a:hover { color: var(--azul); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.4rem;
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.45rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--borde-suave);
}
.hours-table th { font-weight: 500; color: var(--texto-medio); }
.hours-table td { color: var(--texto); font-family: var(--ff-head); font-weight: 500; text-align: right; }
.hours-table tr:last-child td, .hours-table tr:last-child th { border-bottom: none; }
.hours-table .closed { color: #B71C1C; }
.hours-table .urgent { color: var(--verde-osc); font-weight: 600; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-fab {
  position: fixed;
  right: clamp(0.9rem, 2.5vw, 1.6rem);
  bottom: clamp(0.9rem, 2.5vw, 1.6rem);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--verde-whats);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(31, 166, 83, 0.45);
  z-index: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); background: #178843; color: #FFFFFF; box-shadow: 0 12px 30px rgba(31, 166, 83, 0.55); }
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab-label {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--texto);
  color: #FFFFFF;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radio-sm);
  font-family: var(--ff-head);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}
.whatsapp-fab:hover .whatsapp-fab-label { opacity: 1; visibility: visible; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- About page specifics ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio);
  padding: 1.7rem 1.5rem;
  border-top: 3px solid var(--azul);
}
.value-card.alt { border-top-color: var(--verde); }
.value-card.warm { border-top-color: var(--amarillo); }
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { font-size: 0.97rem; }

.cred-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}
.cred-badge {
  background: var(--surface);
  border: 1px solid var(--borde-suave);
  border-radius: var(--radio-sm);
  padding: 1.2rem 1rem;
  text-align: center;
}
.cred-badge svg { width: 32px; height: 32px; color: var(--verde); margin: 0 auto 0.6rem; }
.cred-badge strong { display: block; font-family: var(--ff-head); font-size: 0.98rem; color: var(--texto); }
.cred-badge span { font-size: 0.85rem; color: var(--texto-muted); display: block; margin-top: 0.2rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- <= 1024px ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-figure { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; aspect-ratio: 4 / 4; }
  .coverage { grid-template-columns: 1fr; }
  .cta-final .container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail.flip .service-detail-media { order: 0; }
  .service-detail-media { max-width: 540px; }
}

/* ---- <= 768px ---- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: block; margin-top: 1rem; }

  .nav-main {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(86vw, 360px);
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5rem 1.4rem 2rem;
    gap: 1.4rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 60px rgba(8, 42, 92, 0.2);
    z-index: 1080;
    overflow-y: auto;
  }
  .nav-main.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.4rem; }
  .nav-list a { display: block; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--borde-suave); font-size: 1.05rem; }
  .nav-list a::after { display: none; }

  .topbar .container { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .topbar ul { gap: 1rem; flex-wrap: wrap; }

  .trust-bar { grid-template-columns: 1fr 1fr; }
  .trust-bar li:nth-child(2n) { border-right: none; }
  .trust-bar li:nth-child(1), .trust-bar li:nth-child(2) { border-bottom: 1px solid var(--borde-suave); }

  .services-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .cred-badges { grid-template-columns: 1fr; }
  .coverage-list { grid-template-columns: 1fr; }
  .about-creds { grid-template-columns: 1fr; }

  .hero-badge { left: 0.7rem; bottom: 0.7rem; padding: 0.7rem 0.9rem; }
  .hero-badge-icon { width: 32px; height: 32px; }
  .hero-badge-icon svg { width: 18px; height: 18px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* ---- <= 480px ---- */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta-final-actions { flex-direction: column; }
  .cta-final-actions .btn { width: 100%; }
  .trust-bar { grid-template-columns: 1fr; }
  .trust-bar li { border-right: none; border-bottom: 1px solid var(--borde-suave); }
  .trust-bar li:last-child { border-bottom: none; }
  .whatsapp-fab-label { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .whatsapp-fab, .nav-toggle, .emergency-strip { display: none; }
  body { background: #FFFFFF; color: #000000; }
}
