/* ==========================================================================
   HIGAR — Mangueras y Conexiones
   Landing page (una sola página) · Monterrey, N.L.
   ==========================================================================

   ┌──────────────────────────────────────────────────────────────┐
   │  COLORES DE LA MARCA — los DOS salen del logo real, medidos   │
   │  del PNG: el azul del logotipo y el celeste de la manguera    │
   │  azul clara de la foto. Son los únicos colores con saturación │
   │  que trae el logo, por eso combinan de origen.                │
   └──────────────────────────────────────────────────────────────┘   */

:root {
  --brand:        #002E83;   /* COLOR 1 — azul del logotipo             */
  --accent:       #0B7CB8;   /* COLOR 2 — celeste de la manguera azul   */

  /* Tonos derivados (salen de los dos de arriba) */
  --brand-dark:   #001F5C;
  --brand-800:    #0A3C99;
  --brand-700:    #14499F;
  --accent-dark:  #085C89;
  --accent-light: #6FC7EE;
  --accent-soft:  #E3F1FA;

  --ink:          #10172E;   /* texto principal   */
  --muted:        #616C86;   /* texto secundario  */
  --line:         #E4E6EE;   /* bordes suaves     */
  --surface:      #F5F6FA;   /* fondo claro       */
  --white:        #ffffff;

  --font-head: 'Oswald', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Barlow', 'Segoe UI', Arial, sans-serif;

  --radius: 4px;             /* esquinas rectas = look industrial */
  --shadow-sm: 0 1px 3px rgba(0, 20, 60, 0.12);
  --shadow-md: 0 10px 26px rgba(0, 20, 60, 0.16);
  --shadow-lg: 0 20px 48px rgba(0, 20, 60, 0.30);

  --container: 1180px;
  --gutter: 20px;
  --header-h: 176px;         /* alto del header fijo, para el scroll con ancla */
}

/* ---------- Reset ligero ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;             /* evita cualquier desbordamiento lateral */
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--brand);
  line-height: 1.14;
  margin: 0 0 .55em;
  overflow-wrap: break-word;      /* nunca deja que un título se desborde */
}
h1, h2 { text-transform: uppercase; letter-spacing: 0.005em; }
p { margin: 0 0 1em; color: var(--muted); overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }

/* El ancla se detiene debajo del header fijo, no oculta bajo él */
section[id] { scroll-margin-top: var(--header-h); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(54px, 7.5vw, 88px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.on-dark-text .eyebrow, .eyebrow.light { color: var(--accent-light); }
/* Sobre fondo azul oscuro el celeste base se apaga: ahí va la versión clara */
.process .eyebrow::before,
.cta .eyebrow::before { background: var(--accent-light); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-align: center;
  line-height: 1.2;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
/* Botón de WhatsApp: es el ÚNICO lugar donde entra el verde. Se usa el verde
   oficial de la marca porque la gente lo reconoce de inmediato; fuera de
   estos botones y de la burbuja flotante, no meter verde en el sitio. */
.btn-wa { background: #25d366; color: var(--white); box-shadow: var(--shadow-sm); }
.btn-wa:hover { background: #1da851; color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ==========================================================================
   HEADER — 3 franjas: los datos arriba y directo al grano
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--brand); }

/* --- Franja 1: correo y horario --- */
.utilbar {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.utilbar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap;
}
.utilbar .util-right { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.utilbar a, .utilbar span { display: inline-flex; align-items: center; gap: 7px; }
.utilbar a:hover { color: var(--accent-light); }
.utilbar svg { width: 14px; height: 14px; color: var(--accent-light); flex-shrink: 0; }
.util-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.18); }
/* Los dos correos de sucursal comparten un solo ícono. El gap va con
   .utilbar delante a propósito: si no, le gana el gap:7px de la regla de
   arriba (.utilbar span, que tiene más especificidad). */
.utilbar .util-mails { gap: 16px; flex-wrap: wrap; }
.utilbar .util-mails a { gap: 6px; }
.util-mails b {
  font-family: var(--font-head); font-weight: 500; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.utilbar .util-mails a:hover b { color: var(--accent-light); }

/* --- Franja 2: marca + sucursales + teléfono grande --- */
.brandbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 16px; padding-bottom: 16px;
}

/* --- Logo real de HIGAR ---------------------------------------------------
   El logotipo es azul, igual que el fondo del header. Por eso va dentro de
   una PLACA BLANCA (.brand-plate): el archivo trae fotografías de mangueras
   dentro, así que no se puede recolorear ni sacar una versión en blanco.

   Se usan DOS recortes del original (que sigue intacto en imagenes/):
     · header → logo-higar-texto.png   solo "HIGAR / MANGUERAS Y SERVICIOS…"
                                       porque a 40px las mangueras se borran
     · footer → logo-higar.png         el completo, ahí sí cabe grande
   Para cambiarlo, reemplaza el archivo o el src en los dos lugares. ------- */
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); flex-shrink: 0; }
.brand-plate {
  background: var(--white);
  border-radius: var(--radius);
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transition: box-shadow .15s ease;
}
.brand:hover .brand-plate { box-shadow: 0 2px 10px rgba(0,0,0,0.28); }
.brand-plate img { display: block; height: 40px; width: auto; }
/* En el pie va el logo completo, con más aire y algo más grande */
.brand-plate.full { padding: 10px 14px; }
.brand-plate.full img { height: 52px; }

/* Datos del header. Ocupan el lugar donde iría el teléfono central —
   como no existe uno, el lado derecho lo cierra el botón .head-btn. */
.head-facts { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
.head-fact { display: flex; align-items: center; gap: 12px; color: var(--white); }
.head-fact .fact-ico {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  color: var(--accent-light); flex-shrink: 0;
}
.head-fact .fact-ico svg { width: 26px; height: 26px; }
.head-fact strong {
  display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.head-fact span { font-family: var(--font-head); font-weight: 400; font-size: 15px; color: rgba(255,255,255,0.92); }

/* Botón que cierra la franja de marca (baja a los teléfonos de sucursal) */
.head-btn { flex-shrink: 0; }

/* ---- .head-call: SIN USO por ahora ----
   Estilo del número grande estilo "LLÁMANOS". Se conserva listo para el día
   que HIGAR tenga un teléfono central: en index.html hay un bloque comentado
   "TELÉFONO CENTRAL" que solo hay que descomentar. */
.head-call { text-align: right; padding-left: 24px; border-left: 1px solid rgba(255,255,255,0.14); }
.head-call .call-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--white);
}
.head-call .call-label svg { width: 15px; height: 15px; color: var(--accent); }
.head-call .call-num {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(24px, 2.6vw, 33px); line-height: 1.1; color: var(--accent); letter-spacing: 0.01em;
}
.head-call .call-num:hover { color: var(--accent-light); }

.call-mini {
  display: none; width: 42px; height: 42px; border-radius: var(--radius);
  background: var(--accent); align-items: center; justify-content: center; flex-shrink: 0;
}
.call-mini svg { width: 20px; height: 20px; color: var(--white); }

/* --- Franja 3: menú (barra clara — contrasta con el negro de arriba) --- */
.navbar { background: var(--white); border-top: 3px solid var(--accent); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--brand); font-family: var(--font-head); font-weight: 500; font-size: 14.5px;
  letter-spacing: 0.09em; text-transform: uppercase; padding: 17px 16px;
  border-bottom: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
  cursor: pointer;
}
.nav-links a:hover { color: var(--accent-dark); background: var(--surface); }
.nav-links a.active { color: var(--accent-dark); border-color: var(--accent); }
.nav-links > .btn { display: none; }   /* el CTA del menú solo se usa en móvil */
.nav-links > .btn:hover { border-color: transparent; background: var(--accent-dark); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 25px; height: 2.5px; background: var(--white); border-radius: 2px; }

/* ==========================================================================
   HERO — foto a todo lo ancho de fondo, texto encima, sin columna de imagen
   ========================================================================== */
.hero {
  position: relative;
  background: var(--brand-dark);
  color: var(--white);
  overflow: hidden;
  padding: clamp(70px, 10vw, 128px) 0 clamp(120px, 13vw, 168px);
}
/* ▸ FOTO DE FONDO — foto de banco (Pexels, licencia libre para uso comercial).
   PROVISIONAL: reemplazar por una foto real del mostrador o del almacén.
   El degradado de abajo queda como respaldo por si la imagen no carga. */
.hero-bg {
  position: absolute; inset: 0;
  background:
    url("../imagenes/hero-mangueras.jpg") center/cover no-repeat,
    linear-gradient(135deg, #0A3C99 0%, #001F5C 60%, #05384F 100%);
}
.hero-bg::after {
  /* velo oscuro: mantiene el texto legible cuando pongas la foto real */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(11,124,184,0.32), transparent 55%),
    linear-gradient(90deg, rgba(0,20,55,0.94) 0%, rgba(0,20,55,0.78) 45%, rgba(0,20,55,0.42) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: 660px; }
.hero-badge-top {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(11,124,184,0.20); border-left: 3px solid var(--accent-light);
  color: var(--accent-light); font-family: var(--font-head); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 15px; margin-bottom: 24px;
}
.hero h1 { color: var(--white); font-size: clamp(33px, 6vw, 62px); font-weight: 600; margin-bottom: 20px; }
.hero h1 span { color: var(--accent-light); }
.hero .lead { color: rgba(255,255,255,0.82); font-size: clamp(16px, 2.1vw, 19px); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   BARRA DE SUCURSALES — tarjeta que monta sobre el hero
   Es lo primero que ve el cliente después del título: a qué número marcar.
   ========================================================================== */
.quickbar { position: relative; z-index: 5; margin-top: clamp(-96px, -9vw, -70px); padding: 0; }
.quickbar-inner {
  background: var(--white);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
  /* FLEX, no grid: así los teléfonos se reparten el ancho SEA CUAL SEA su
     número. Con grid quedaban columnas fantasma vacías al quitar una
     sucursal, porque el rótulo de arriba las mantenía "ocupadas". */
  display: flex;
  flex-wrap: wrap;
}
.qb-head {
  flex: 0 0 100%;
  padding: 16px 26px 0;
  font-family: var(--font-head); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.qb-item {
  flex: 1 1 240px;          /* se estiran a partes iguales */
  display: flex; align-items: center; gap: 14px;
  padding: 22px 26px 24px;
  border-left: 1px solid var(--line);
  transition: background .15s ease;
}
.qb-item:first-of-type { border-left: none; }
.qb-item:hover { background: var(--surface); }
.qb-item .qb-ico {
  width: 40px; height: 40px; border-radius: var(--radius); flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
}
.qb-item .qb-ico svg { width: 19px; height: 19px; }
.qb-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.qb-zone { font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.qb-num { font-family: var(--font-head); font-weight: 600; font-size: 22px; color: var(--brand); }
.qb-item:hover .qb-num { color: var(--accent-dark); }

/* ==========================================================================
   PRODUCTOS — índice numerado a dos columnas (no tarjetas)
   ========================================================================== */
.products { padding-top: clamp(58px, 7vw, 84px); }
.prod-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(34px, 5vw, 68px);
  align-items: start;
}
.prod-intro h2 { font-size: clamp(28px, 4.2vw, 42px); }
.prod-intro p { font-size: clamp(15px, 2vw, 17px); }
.prod-intro .img-placeholder { margin-top: 28px; min-height: 300px; }
/* Alto acotado: si no, al colapsar a una columna la foto se estira a lo
   ancho del contenedor y crece a 600px de alto. El object-fit la recorta. */
.prod-intro .media-img { margin-top: 28px; height: clamp(280px, 30vw, 420px); }

.prod-list { border-top: 1px solid var(--line); }
.prod-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 6px 18px;
  padding: 22px 4px 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background .16s ease, padding .16s ease;
}
.prod-item:hover { background: var(--surface); padding-left: 10px; padding-right: 0; }
.prod-num {
  grid-row: 1 / span 2;
  font-family: var(--font-head); font-weight: 600; font-size: 26px; line-height: 1;
  color: var(--accent); opacity: .55;
  padding-top: 2px;
}
.prod-item:hover .prod-num { opacity: 1; }
.prod-item h3 { font-size: 19px; font-weight: 500; margin: 0 0 4px; letter-spacing: 0.01em; }
.prod-item p { font-size: 14.5px; margin: 0; }

/* ==========================================================================
   PROCESO — cómo te atendemos, 3 pasos sobre negro
   ========================================================================== */
.process { background: var(--brand); color: var(--white); }
.process h2, .process h3 { color: var(--white); }
.process .section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.process .section-head .eyebrow { color: var(--accent-light); justify-content: center; }
.process .section-head h2 { font-size: clamp(27px, 4.2vw, 40px); }
.process .section-head p { color: rgba(255,255,255,0.72); font-size: clamp(15px, 2vw, 17px); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.step { padding: 4px 30px; border-left: 1px solid rgba(255,255,255,0.14); }
.step:first-child { border-left: none; padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-num {
  font-family: var(--font-head); font-weight: 700; font-size: 54px; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-light);
  display: block; margin-bottom: 16px;
}
.step h3 { font-size: 20px; font-weight: 500; text-transform: none; margin-bottom: 8px; }
.step p { color: rgba(255,255,255,0.68); font-size: 14.5px; margin: 0; }

/* ==========================================================================
   NOSOTROS — foto a sangre (pegada al borde) + texto
   ========================================================================== */
.about { display: grid; grid-template-columns: 1fr 1fr; padding: 0; align-items: stretch; }
.about-media { position: relative; min-height: 440px; }
.about-media .img-placeholder,
.about-media .media-img { height: 100%; min-height: 440px; border-radius: 0; border-left: 0; }
.about-body {
  display: flex; align-items: center;
  padding-top: clamp(48px, 6vw, 82px);
  padding-bottom: clamp(48px, 6vw, 82px);
  padding-left: clamp(28px, 4.5vw, 60px);
  /* alinea el borde derecho del texto con el del .container */
  padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  background: var(--surface);
}
.about-inner { width: 100%; }
.about-inner h2 { font-size: clamp(27px, 4vw, 38px); }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 13px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--ink); }
.checklist .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 3px;
}
.checklist .check svg { width: 12px; height: 12px; }

/* ==========================================================================
   SUCURSALES — filas tipo directorio (foto | datos | acciones)
   ========================================================================== */
.branches { background: var(--white); }
.branches .section-head { max-width: 660px; margin-bottom: 40px; }
.branches .section-head h2 { font-size: clamp(27px, 4.2vw, 40px); }
.branches .section-head p { font-size: clamp(15px, 2vw, 17px); }

.branch-list { display: flex; flex-direction: column; gap: 18px; }
.branch {
  display: grid;
  /* La columna de la foto va ancha a propósito: las fachadas son horizontales
     y con un hueco angosto el letrero se recortaba y quedaba ilegible. */
  grid-template-columns: 320px 1fr 210px;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .18s ease, transform .18s ease;
}
.branch:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.branch-media { align-self: stretch; }
.branch-media .img-placeholder,
.branch-media .media-img { border-radius: 0; border-width: 0 1px 0 0; }
.branch-media .img-placeholder { height: 100%; min-height: 178px; border-right: 1px solid var(--line); }
/* Alto FIJO, no 100%: cada fachada tiene su propia proporción (la de Escobedo
   es apaisada, la de Guadalupe cuadrada) y si las dejas crecer libres cada
   tarjeta queda de una altura distinta. El object-fit recorta al mismo marco. */
.branch-media .media-img { height: 280px; }
.branch-body { padding: 22px 28px; min-width: 0; }
.branch-tag {
  display: inline-block; font-family: var(--font-head); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--white);
  background: var(--brand); padding: 4px 10px; border-radius: 2px; margin-bottom: 12px;
}
.branch h3 { font-size: 19px; font-weight: 500; margin-bottom: 3px; text-transform: none; }
.branch-zone {
  font-family: var(--font-head); font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-dark); margin: 0 0 10px;
}
.branch-addr { font-size: 14px; margin: 0 0 12px; }
.branch-tel {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 24px; color: var(--brand);
}
.branch-tel svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.branch-tel:hover { color: var(--accent-dark); }
/* WhatsApp y correo de la sucursal, debajo del teléfono grande */
.branch-extra { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.branch-extra a {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--muted); overflow-wrap: anywhere;
}
.branch-extra a:hover { color: var(--accent-dark); }
.branch-extra svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.branch-extra .ico-wa { color: #25d366; }
.branch-actions {
  display: flex; flex-direction: column; gap: 9px;
  padding: 22px 28px 22px 0;
}

/* ==========================================================================
   CIERRE / CONTACTO — banda oscura a todo lo ancho
   ========================================================================== */
.cta { background: var(--brand-dark); color: var(--white); text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(11,124,184,0.28), transparent 60%);
  pointer-events: none;
}
.cta .container { position: relative; }
.cta .eyebrow { color: var(--accent-light); justify-content: center; }
.cta h2 { color: var(--white); font-size: clamp(28px, 4.4vw, 44px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,0.75); font-size: clamp(15px, 2vw, 17.5px); max-width: 620px; margin: 0 auto 30px; }
/* Los 3 teléfonos de sucursal, en grande. Sustituyen al botón de WhatsApp
   central que iba aquí — cada sucursal atiende su propia línea. */
.cta-phones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.cta-phone {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.cta-phone:hover { border-color: var(--accent-light); background: rgba(11,124,184,0.16); transform: translateY(-2px); }
.cp-zone {
  font-family: var(--font-head); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.cp-num {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(22px, 2.4vw, 27px);
  color: var(--white); line-height: 1.15;
}
.cp-num svg { width: 17px; height: 17px; color: var(--accent-light); flex-shrink: 0; }
.cta-phone:hover .cp-num { color: var(--accent-light); }

.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.cta-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); overflow: hidden;
}
.cta-fact { background: var(--brand-dark); padding: 22px 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cta-fact svg { width: 20px; height: 20px; color: var(--accent-light); margin-bottom: 4px; }
.cta-fact strong {
  font-family: var(--font-head); font-weight: 500; font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.cta-fact span, .cta-fact a { font-size: 15px; color: var(--white); overflow-wrap: anywhere; }
.cta-fact a:hover { color: var(--accent-light); }

/* ==========================================================================
   PLACEHOLDERS DE IMAGEN
   Cada uno dice qué foto va ahí. Para reemplazarlo, borra el <div> completo
   y pon en su lugar:  <img class="media-img" src="imagenes/archivo.jpg" alt="...">
   ========================================================================== */
.img-placeholder {
  width: 100%; min-height: 230px; border-radius: var(--radius);
  border: 2px dashed rgba(0,30,95,0.28);
  background: repeating-linear-gradient(135deg, rgba(0,30,95,0.04) 0 12px, rgba(0,30,95,0.07) 12px 24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 26px 20px; color: var(--brand);
}
.img-placeholder.on-dark {
  border-color: rgba(255,255,255,0.3);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 12px, rgba(255,255,255,0.08) 12px 24px);
  color: rgba(255,255,255,0.92);
}
.img-placeholder .ph-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.img-placeholder.on-dark .ph-icon { background: rgba(11,124,184,0.28); color: var(--accent-light); }
.img-placeholder .ph-icon svg { width: 24px; height: 24px; }
.img-placeholder strong {
  font-family: var(--font-head); font-weight: 500; font-size: 13.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.img-placeholder small { font-size: 12.5px; opacity: 0.82; max-width: 330px; line-height: 1.45; }

/* ---------- Imágenes reales (cuando reemplaces los placeholders) ---------- */
.media-img {
  width: 100%; height: 100%; min-height: 260px; object-fit: cover;
  border-radius: var(--radius); display: block;
}
.product-img { width: 100%; height: auto; object-fit: contain; display: block; }

/* ==========================================================================
   FOOTER — 2 franjas (marca + enlaces en línea), no columnas de plantilla
   ========================================================================== */
.site-footer { background: var(--brand); color: rgba(255,255,255,0.68); padding: 46px 0 0; }
.footer-main {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 30px; flex-wrap: wrap; padding-bottom: 32px;
}
.footer-brand { max-width: 330px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.55); margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; }
.footer-nav a {
  font-family: var(--font-head); font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.72);
}
.footer-nav a:hover { color: var(--accent-light); }

.footer-contact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 30px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 13.5px;
}
.footer-contact a, .footer-contact span { color: rgba(255,255,255,0.66); display: block; }
.footer-contact a:hover { color: var(--accent-light); }
.footer-contact b {
  display: block; font-family: var(--font-head); font-weight: 500; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 4px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 12.5px; color: rgba(255,255,255,0.42);
  flex-wrap: wrap; gap: 8px;
}

/* ---- WhatsApp flotante ----
   La burbuja no abre un chat directo: como cada sucursal tiene su propia
   línea, despliega un mini menú para elegir a cuál escribirle. El menú lo
   muestra/oculta js/main.js quitando el atributo [hidden]. */
.wa-dock {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.wa-float {
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; border: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; color: var(--white); }

.wa-menu {
  width: 232px; overflow: hidden;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: wa-pop .16s ease-out;
}
.wa-menu[hidden] { display: none; }
.wa-menu-head {
  display: block; padding: 12px 16px 10px;
  font-family: var(--font-head); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.wa-menu a {
  display: block; padding: 12px 16px;
  border-top: 1px solid var(--line);
  transition: background .15s ease;
}
.wa-menu a:first-of-type { border-top: none; }
.wa-menu a:hover { background: var(--surface); }
.wa-menu b {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 14px; color: var(--brand);
}
/* Ojo: va acotado a "a span" — sin el `a` le ganaría en especificidad a
   .wa-menu-head (que también es un <span>) y le cambiaría el tamaño. */
.wa-menu a span { font-size: 14px; color: var(--muted); }
.wa-menu a:hover b { color: #1da851; }
@keyframes wa-pop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-menu { animation: none; }
}

/* ==========================================================================
   ANIMACIONES DE APARICIÓN AL HACER SCROLL (reveal)
   La clase .is-visible la agrega js/main.js vía IntersectionObserver.
   No se anima el header ni el hero (deben verse al instante).
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==========================================================================
   RESPONSIVE — prioridad celular
   ========================================================================== */

/* La franja de marca se va soltando datos conforme falta ancho, para que
   nunca se encimen: primero cae el segundo dato, luego el primero, y al
   final el botón (que en móvil se convierte en el ícono .call-mini). */
@media (max-width: 1080px) {
  .head-facts .head-fact + .head-fact { display: none; }
}
@media (max-width: 860px) {
  .head-facts { display: none; }
}

/* Tablet */
@media (max-width: 980px) {
  :root { --header-h: 150px; }
  .nav-links a { padding: 15px 11px; font-size: 13.5px; letter-spacing: 0.05em; }

  .prod-layout { grid-template-columns: 1fr; }
  .prod-intro .img-placeholder { display: none; }   /* la foto pasa a "Nosotros" */
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); padding: 22px 0 0; }
  .step:first-child { border-top: none; padding-top: 0; }
  .about { grid-template-columns: 1fr; }
  .about-media { min-height: 300px; }
  .about-media .img-placeholder { min-height: 300px; }
  /* alto fijo: en una columna, height:100% se resuelve a auto y la foto
     crecería hasta su proporción natural (~630px) */
  .about-media .media-img { height: 300px; min-height: 300px; }
  .about-body { padding-left: var(--gutter); padding-right: var(--gutter); }
  .about-inner { max-width: var(--container); margin: 0 auto; }

  .branch { grid-template-columns: 240px 1fr; }
  .branch-actions {
    grid-column: 2; flex-direction: row; flex-wrap: wrap;
    padding: 0 28px 22px;
  }
  .branch-actions .btn { flex: 1 1 140px; }
  .branch-body { padding-bottom: 16px; }
}

/* Celular */
@media (max-width: 700px) {
  :root { --header-h: 104px; }

  /* La barra de datos se queda (el correo arriba, al grano), pero centrada */
  .utilbar { font-size: 12px; }
  .utilbar .container { justify-content: center; padding-top: 6px; padding-bottom: 6px; }
  .utilbar .util-name, .utilbar .util-hours, .utilbar .util-sep { display: none; }
  /* Los dos correos no caben en un renglón de celular: se apilan centrados.
     El ícono compartido queda huérfano al envolver, así que se oculta —
     las etiquetas ESCOBEDO / GUADALUPE ya dicen qué es cada uno. */
  .utilbar .util-right { width: 100%; justify-content: center; }
  .utilbar .util-mails { justify-content: center; gap: 3px 14px; }
  .utilbar .util-mails > svg { display: none; }

  .brandbar .container { padding-top: 11px; padding-bottom: 11px; gap: 12px; }
  /* El logo es 4.4:1 — a 30px de alto mide ~132px y comparte franja con el
     botón de teléfono y el hamburguesa. Medido: cabe en 390px. */
  .brand-plate { padding: 5px 9px; }
  .brand-plate img { height: 30px; }
  .brand-plate.full img { height: 34px; }
  .head-btn { display: none; }         /* el botón completo cede su lugar… */
  .call-mini { display: flex; }        /* …al ícono compacto de teléfonos */
  .head-call { display: none; }        /* (para el futuro número central) */

  /* El menú se despliega desde el botón hamburguesa (que vive en la franja
     oscura de la marca). La franja blanca del menú colapsa a altura cero. */
  .navbar { border-top-width: 0; background: transparent; }
  .navbar .container { padding: 0; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--brand-dark);
    flex-direction: column; align-items: stretch;
    padding: 10px 20px 20px; gap: 0;
    border-top: 3px solid var(--accent-light);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    color: rgba(255,255,255,0.88); padding: 14px 2px; font-size: 15px;
    letter-spacing: 0.09em; border-bottom: 1px solid rgba(255,255,255,0.09);
  }
  .nav-links a:hover, .nav-links a.active { color: var(--accent-light); background: none; }
  .nav-links > .btn { display: inline-flex; margin-top: 16px; }
  .nav-toggle { display: flex; }
  .nav-actions { display: none; }

  .hero { padding-bottom: clamp(96px, 22vw, 130px); }
  .hero-actions .btn { flex: 1 1 auto; }

  /* Las 3 sucursales se apilan, cada una tocable de lado a lado */
  .quickbar { margin-top: -74px; }
  .qb-head { padding: 15px 20px 2px; }
  /* En celular cada teléfono ocupa su propio renglón, de lado a lado */
  .qb-item { flex: 1 1 100%; border-left: none; border-top: 1px solid var(--line); padding: 16px 20px; }
  .qb-item:first-of-type { border-top: none; }

  .prod-item { grid-template-columns: 44px 1fr; padding: 18px 0; }
  .prod-item:hover { padding-left: 6px; }
  .prod-num { font-size: 22px; }

  /* Sucursales: la tarjeta se vuelve una columna */
  .branch { grid-template-columns: 1fr; border-left-width: 4px; }
  .branch-media .img-placeholder, .branch-media .media-img {
    min-height: 160px; border-width: 0 0 1px 0; border-bottom: 1px solid var(--line);
  }
  .branch-body { padding: 20px 20px 14px; }
  .branch-actions { grid-column: 1; padding: 0 20px 20px; }
  .branch-actions .btn { flex: 1 1 100%; }

  .cta-actions .btn { flex: 1 1 100%; }
  .cta-phones { grid-template-columns: 1fr; gap: 10px; }
  .cta-phone { flex-direction: row; justify-content: space-between; align-items: center; padding: 15px 18px; }
  .cp-num { font-size: 21px; }
  .footer-main { flex-direction: column; gap: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Pantallas muy chicas */
@media (max-width: 380px) {
  .brand-plate { padding: 4px 7px; }
  .brand-plate img { height: 25px; }
  :root { --gutter: 15px; }
  .utilbar { font-size: 11.5px; }
  .branch-tel { font-size: 21px; }
  .qb-num { font-size: 20px; }
}
