/* B&E — Bobinados y Emergencias Eléctricas — sitio público */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: #faf7f2;
  color: #1c2333;
}
a { color: #1e3a8a; text-decoration: none; }
a:hover { color: #1e40af; }
.display { font-family: 'Libre Caslon Display', Georgia, serif; }
.mono { font-family: 'IBM Plex Mono', monospace; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px; border-bottom: 1px solid #e6ddd0;
  background: #faf7f2; position: sticky; top: 0; z-index: 50;
}
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: #766f62; font-weight: 500; font-size: 13px; }
.nav-links a.activo { color: #1e293b; font-weight: 600; }
.nav-cta {
  background: #1e3a8a; color: #fff; font-weight: 600; font-size: 13px;
  padding: 11px 22px; border-radius: 3px; white-space: nowrap;
}
.nav-menu-btn { display: none; background: none; border: none; padding: 6px; cursor: pointer; }
.nav-menu-btn svg { width: 24px; height: 24px; stroke: #1c2333; }

/* Hero — Home, navy blueprint */
.hero-navy {
  background: #163b70; position: relative; overflow: hidden;
  padding: 72px 40px 56px;
}
.hero-navy::before, .hero-navy::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.hero-navy::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 20px 20px;
}
.hero-navy::after {
  background-image:
    linear-gradient(rgba(255,255,255,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 100px 100px;
}
.hero-navy .wrap { position: relative; }
.hero-tag {
  color: #f59e0b; font-size: 12px; letter-spacing: 0.1em; margin-bottom: 22px;
}
.hero-navy h1 {
  color: #fff; font-size: 44px; line-height: 1.1; font-weight: 700;
  margin: 0 0 22px; max-width: 780px; font-family: 'Space Grotesk', system-ui, sans-serif;
}
.hero-navy p {
  color: #a8b8dd; font-size: 17px; line-height: 1.6; max-width: 540px;
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-amber {
  background: #f59e0b; color: #12172b; font-weight: 700; font-size: 14px;
  padding: 15px 26px; border-radius: 3px; display: inline-block; border: none; cursor: pointer;
}
.btn-outline-dark {
  border: 1.5px solid rgba(255,255,255,0.3); color: #fff; font-weight: 600; font-size: 14px;
  padding: 15px 26px; border-radius: 3px; display: inline-block;
}
.btn-navy {
  background: #1e3a8a; color: #fff; font-weight: 600; font-size: 14px;
  padding: 15px 28px; border-radius: 3px; display: inline-block;
}

/* Photo placeholder */
.foto-placeholder {
  background: #1e3a8a; border-radius: 4px; aspect-ratio: 16/9;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.foto-placeholder.cuadrado { aspect-ratio: 4/3; }
.foto-placeholder span {
  color: #ffffff; opacity: 0.6; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.foto-placeholder svg { stroke: #ffffff; opacity: 0.6; }

/* Trust strip */
.trust-strip {
  padding: 20px 40px; background: #fff; border-top: 1px solid #e6ddd0; border-bottom: 1px solid #e6ddd0;
  display: flex; gap: 40px; align-items: center; flex-wrap: wrap;
}
.trust-strip span.item { color: #1c2333; font-size: 13px; font-weight: 600; }
.trust-strip .dot { width: 4px; height: 4px; border-radius: 999px; background: #d8cdb8; flex-shrink: 0; }

/* Section header */
.seccion { padding: 60px 40px; }
.seccion-cabecera {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.seccion-cabecera h2 { color: #1c2333; font-size: 26px; font-weight: 400; margin: 0; }
.seccion-cabecera a { color: #1e3a8a; font-weight: 600; font-size: 13px; border-bottom: 1.5px solid #1e3a8a; padding-bottom: 2px; }

/* Services grid */
.servicios-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1px;
  background: #e6ddd0; border: 1px solid #e6ddd0;
}
.servicio-celda { background: #faf7f2; padding: 26px 20px; }
.servicio-num { color: #b0410e; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.servicio-nombre { color: #1c2333; font-weight: 600; font-size: 14px; margin-top: 10px; }
.servicio-desc { color: #766f62; font-size: 12.5px; margin-top: 4px; line-height: 1.5; }

/* Footer */
.footer {
  padding: 44px 40px; background: #1c2333;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.footer img { height: 38px; width: auto; border-radius: 4px; }
.footer p.datos { color: #8892a6; font-size: 12.5px; line-height: 1.7; margin: 14px 0 0; max-width: 280px; }
.footer p.legal { color: #626c85; font-size: 12px; margin: 0; }

/* Inner page header (Servicios/Nosotros/Contacto) */
.pagina-cabecera { padding: 60px 40px 20px; max-width: 720px; }
.pagina-eyebrow {
  color: #b0410e; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px;
}
.pagina-cabecera h1 {
  color: #1c2333; font-size: 38px; line-height: 1.16; margin: 0 0 18px; font-weight: 400;
}
.pagina-cabecera p { color: #5c5648; font-size: 16px; line-height: 1.65; margin: 0; }

/* Numbered service rows (Servicios page) */
.servicio-fila {
  padding: 36px 40px; border-top: 1px solid #e6ddd0;
  display: grid; grid-template-columns: 70px 1fr; gap: 24px; align-items: start;
}
.servicio-fila .num { color: #d8cdb8; font-size: 34px; font-weight: 400; }
.servicio-fila h3 { color: #1c2333; font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.servicio-fila p { color: #5c5648; font-size: 15px; line-height: 1.65; max-width: 620px; margin: 0; }

/* CTA band */
.cta-band {
  padding: 40px; background: #1e3a8a;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-band p { color: #fff; font-size: 20px; font-weight: 400; margin: 0; font-family: 'Libre Caslon Display', Georgia, serif; }

/* Nosotros — approach columns */
.enfoque-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 36px; padding: 50px 40px; border-top: 1px solid #e6ddd0; }
.enfoque-grid .etiqueta { color: #b0410e; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 12px; }
.enfoque-grid h3 { color: #1c2333; font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.enfoque-grid p { color: #5c5648; font-size: 14px; line-height: 1.6; margin: 0; }

.legal-strip {
  padding: 26px 40px; background: #fff; border-top: 1px solid #e6ddd0; border-bottom: 1px solid #e6ddd0;
  display: flex; gap: 36px; align-items: center; flex-wrap: wrap;
}
.legal-strip span.item { color: #1c2333; font-size: 13px; font-weight: 600; }

/* Contacto */
.contacto-grid { padding: 40px 40px 70px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; }
.dato-bloque { margin-bottom: 26px; }
.dato-etiqueta { color: #b0410e; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 8px; }
.dato-valor { color: #1c2333; font-size: 15px; font-weight: 500; }
.form-card { background: #fff; border: 1px solid #e6ddd0; border-radius: 4px; padding: 34px; }
.form-campo { margin-bottom: 18px; }
.form-campo label { display: block; color: #1c2333; font-size: 12.5px; font-weight: 600; margin-bottom: 7px; }
.form-campo input, .form-campo textarea {
  width: 100%; border: 1px solid #d8cdb8; border-radius: 3px; padding: 12px 14px;
  color: #1c2333; font-size: 14px; font-family: inherit; background: #fff;
}
.form-campo textarea { resize: vertical; min-height: 90px; }
.form-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-enviar {
  background: #1e3a8a; color: #fff; font-weight: 600; font-size: 14px;
  padding: 14px 0; border-radius: 3px; text-align: center; width: 100%; border: none; cursor: pointer;
}

/* Photo strip (Home, Servicios) */
.foto-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; padding: 0 40px 60px; }

/* Responsive */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
  .hero-navy h1 { font-size: 32px; }
  .servicios-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .enfoque-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .form-fila { grid-template-columns: 1fr; }
  .foto-strip { grid-template-columns: 1fr; }
  .servicio-fila { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}
@media (max-width: 560px) {
  .nav, .seccion, .pagina-cabecera, .footer, .trust-strip, .legal-strip, .contacto-grid, .foto-strip, .servicio-fila, .cta-band, .enfoque-grid { padding-left: 22px; padding-right: 22px; }
  .hero-navy { padding-left: 22px; padding-right: 22px; }
  .hero-navy .wrap { padding: 0; }
  .wrap { padding: 0 22px; }
}
