/* 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; }
img { max-width: 100%; display: block; }

/* Botón del menú en celular */
.nav-menu-btn { display: none; background: none; border: none; padding: 6px; cursor: pointer; }
.nav-menu-btn svg { width: 24px; height: 24px; stroke: #1c2333; }

/* Botón de la banda CTA de la portada */
.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;
}

/* 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; }
/* #254 (10-oct-2026): #626c85 daba 2,99:1 sobre #1c2333; #94a3b8 da 6,1:1. */
.footer p.legal { color: #94a3b8; font-size: 12px; margin: 0; }
.footer p.datos a { color: inherit; }
.footer p.datos a:hover { color: #ffffff; }
.footer p.enlaces { color: #8892a6; font-size: 12.5px; margin: 12px 0 0; }
.footer p.enlaces a { color: #c3cad8; text-decoration: underline; text-underline-offset: 2px; }
.footer p.enlaces a:hover { color: #ffffff; }

/* Numbered service rows (Servicios page) */
.servicio-fila {
  padding: 36px 0; margin: 0 56px; border-top: 1px solid #e2e7f0;
  display: grid; grid-template-columns: 70px 1fr; gap: 24px; align-items: start;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.servicio-fila .num {
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color: #c8102e; font-size: 20px; font-weight: 600;
}
.servicio-fila h3 { color: #16203a; font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.servicio-fila p { color: #3a4560; font-size: 17px; line-height: 1.65; max-width: 640px; 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: 48px;
  padding: 48px 56px; background: #edf0f6; border-top: 1px solid #16203a;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.enfoque-grid .etiqueta {
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color: #c8102e; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 12px;
}
.enfoque-grid h3 { color: #16203a; font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.enfoque-grid p { color: #3a4560; font-size: 15px; line-height: 1.6; margin: 0; }

.legal-strip {
  padding: 26px 56px; background: #ffffff; border-top: 1px solid #e2e7f0; border-bottom: 1px solid #e2e7f0;
  display: flex; gap: 36px; align-items: center; flex-wrap: wrap;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.legal-strip span.item { color: #16203a; font-size: 13px; font-weight: 600; }

/* Contacto */
.contacto-grid {
  padding: 40px 56px 70px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.dato-bloque { margin-bottom: 28px; }
.dato-etiqueta {
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color: #c8102e; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 8px;
}
.dato-valor { color: #16203a; font-size: 17px; font-weight: 500; }
.dato-valor a { color: #16203a; }
.form-card { background: #ffffff; border: 1px solid #16203a; padding: 40px; }
.form-campo { margin-bottom: 18px; }
.form-campo label { display: block; color: #16203a; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form-campo input, .form-campo textarea {
  width: 100%; border: 1px solid #b8c1d4; padding: 12px 14px;
  color: #16203a; font-size: 16px; font-family: inherit; background: #ffffff;
  outline: none;
}
.form-campo input:focus, .form-campo textarea:focus { border-color: #16203a; outline: 1px solid #16203a; }
.form-campo textarea { resize: vertical; min-height: 90px; }
.form-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-enviar {
  background: #16203a; color: #ffffff; font-weight: 600; font-size: 14px;
  padding: 15px; text-align: center; width: 100%; border: none; cursor: pointer;
}
.form-enviar:hover { background: #202c4d; }
.form-aviso { color: #3a4560; font-size: 13px; line-height: 1.5; margin: 0 0 16px; }
.form-aviso a { color: #16203a; text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Home rediseñada — 25-ago-2026
   Fuentes Geist/Geist Mono self-hosteadas (mismo font real que ya usa
   portal.bobinadosyemergencias.com vía next/font/google -- copiadas acá
   como woff2 variable, weight 100-900, porque un Route Handler de HTML
   plano no pasa por el compilador de next/font). Sin fonts.googleapis.com:
   el CSP de producción no lo permite (next.config.ts, font-src 'self').
   ============================================================ */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-sans/geist-sans-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-mono/geist-mono-latin-var.woff2') format('woff2');
}

/* Header */
.inicio-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  background: #ffffff;
  border-bottom: 1px solid #16203a;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: sticky; top: 0; z-index: 50;
}
.inicio-header-logo {
  display: flex; align-items: center;
  padding: 18px 32px;
  border-right: 1px solid #16203a;
}
.inicio-header-logo img { height: 40px; width: auto; }
.inicio-header-nav {
  display: flex; align-items: center; justify-content: center; gap: 40px;
}
.inicio-header-nav a { font-size: 14px; font-weight: 500; color: #3a4560; }
.inicio-header-nav a.activo { color: #16203a; font-weight: 600; }
.inicio-header-nav a:hover { color: #16203a; }
.inicio-header-actions { display: flex; align-items: center; gap: 12px; justify-self: end; align-self: center; }
.inicio-header-portal {
  display: flex; align-items: center;
  border: 1px solid #3a4560; color: #16203a;
  font-size: 14px; font-weight: 600;
  padding: 11px 20px; white-space: nowrap;
  border-radius: 6px;
}
.inicio-header-portal:hover { background: #f1f3f8; }
.inicio-header-cta {
  display: flex; align-items: center;
  background: #16203a; color: #ffffff;
  font-size: 14px; font-weight: 600;
  padding: 12px 24px; white-space: nowrap;
  border-radius: 6px;
  width: max-content;
  margin-right: 32px;
}
.inicio-header-cta:hover { background: #202c4d; color: #ffffff; }
/* Botón de menú (#251, 10-oct-2026): usa ".nav-menu-btn" (arriba), que solo
   se ve en celular. El enlace al Portal dentro del menú solo existe ahí,
   porque en celular se esconde el botón "Portal" de la derecha. */
.inicio-header-nav-portal { display: none; }

/* Hero — foto plena */
.inicio-hero {
  position: relative;
  height: 620px;
  background-color: #16203a;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.inicio-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(22,32,58,0.92) 0%, rgba(22,32,58,0.55) 45%, rgba(22,32,58,0.05) 78%);
}
.inicio-hero-content {
  position: absolute; left: 56px; bottom: 56px; max-width: 680px;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.inicio-hero-kicker {
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}
.inicio-hero-content h1 {
  font-weight: 800; font-size: 52px; line-height: 1.08; letter-spacing: -1.5px;
  color: #ffffff; margin: 0 0 20px;
}
.inicio-hero-content p {
  font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.85);
  max-width: 560px; margin: 0 0 32px;
}
.inicio-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.inicio-btn-light {
  background: #ffffff; color: #16203a; font-size: 16px; font-weight: 600;
  padding: 15px 30px; display: inline-block;
}
.inicio-btn-light:hover { background: #edf0f6; color: #16203a; }
.inicio-btn-ghost {
  background: transparent; color: #ffffff; font-size: 16px; font-weight: 600;
  padding: 15px 30px; border: 1.5px solid rgba(255,255,255,0.5); display: inline-block;
}
.inicio-btn-ghost:hover { border-color: rgba(255,255,255,0.85); }

/* Pie de credenciales (reemplaza la franja de confianza vieja bajo el hero) */
.inicio-credenciales {
  border-top: 1px solid #16203a;
  padding: 20px 56px;
  display: flex; gap: 48px; flex-wrap: wrap;
  background: #ffffff;
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase;
  color: #3a4560;
}

/* ============================================================
   Páginas interiores (Servicios/Nosotros/Contacto) — sistema
   nuevo, segunda pasada — 25-ago-2026. Mismo sistema visual que
   la home (Geist/Geist Mono, tinta #16203a, rojo #c8102e solo en
   rótulos de figura/dato) -- reemplaza el crema/serif/naranja
   viejo.
   ============================================================ */
.pagina-hero {
  padding: 72px 56px;
  background: #ffffff;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.pagina-hero-panel { background: #edf0f6; border-bottom: 1px solid #16203a; }
.pagina-hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center;
  padding: 72px 56px; background: #ffffff;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.pagina-kicker {
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #3a4560; margin-bottom: 16px;
}
.pagina-h1 {
  font-weight: 800; font-size: 44px; line-height: 1.1; letter-spacing: -1px;
  color: #16203a; margin: 0 0 18px;
}
.pagina-parrafo {
  font-size: 18px; line-height: 1.6; color: #3a4560; max-width: 620px; margin: 0;
}

/* Patrón de figura (rótulo FIG. 0N + etiqueta roja + área vacía), suelto
   (".fig-solo") o en tira de 3 (".fig-strip"). */
.fig-rotulo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid #16203a;
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
}
.fig-num { color: #16203a; font-weight: 600; }
.fig-etiqueta { color: #c8102e; font-weight: 600; }
.fig-img { background: #edf0f6; }
.fig-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fig-solo { border: 1px solid #16203a; }
.fig-solo .fig-img { min-height: 300px; }
.fig-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  border: 1px solid #16203a; margin: 56px 56px 56px;
}
.fig-strip .fig:not(:last-child) { border-right: 1px solid #16203a; }
.fig-strip .fig-img { min-height: 220px; }

/* Catálogo de motores en venta (/motores, 29-ago-2026) -- misma cuadrícula
   con líneas que ".servicios-grid", aplicada a una
   cantidad variable de tarjetas (a diferencia de esa, de conteo fijo).
   Página DINÁMICA (route.ts consulta motores_venta_publicos() en cada
   request) -- a diferencia del resto del sitio público, que es 100%
   estático. */
.motores-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px;
  background: #16203a; border: 1px solid #16203a; margin: 0 56px 56px;
}
.motor-card {
  background: #ffffff; display: flex; flex-direction: column;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.motor-card-img { aspect-ratio: 4/3; background: #edf0f6; }
.motor-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.motor-card-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.motor-card-nombre { color: #16203a; font-size: 17px; font-weight: 700; margin: 0; }
.motor-card-specs {
  font-family: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color: #3a4560; font-size: 12px; letter-spacing: 0.3px; text-transform: uppercase;
}
.motor-card-desc { color: #3a4560; font-size: 14px; line-height: 1.5; margin: 2px 0 0; }
.motor-card-precio { color: #c8102e; font-size: 19px; font-weight: 700; margin-top: 6px; }
.motor-card-iva { color: #3a4560; font-size: 13px; font-weight: 600; }
.motor-card-whatsapp {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: center;
  background: #16203a; color: #ffffff; font-weight: 600; font-size: 14px;
  padding: 13px; text-align: center;
}
.motor-card-whatsapp:hover { background: #202c4d; color: #ffffff; }
.motores-vacio {
  margin: 0 56px 56px; padding: 56px; text-align: center; background: #edf0f6;
  border: 1px solid #16203a;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.motores-vacio p { color: #3a4560; font-size: 16px; line-height: 1.6; margin: 0 0 20px; }
.motores-vacio .pagina-btn-primario { display: inline-block; }
.motores-condiciones {
  margin: -36px 56px 56px; color: #3a4560; font-size: 14px; line-height: 1.5;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.motores-condiciones a { color: #16203a; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.motores-condiciones p { margin: 0 0 10px; max-width: 72ch; }
.motores-condiciones strong { color: #16203a; }

/* Banda CTA de página interior (tinta/blanco, nunca naranja -- la
   ".cta-band"/".btn-amber" de la home queda intacta, sin tocar). */
.pagina-cta-band {
  padding: 40px 56px; background: #edf0f6; border-top: 1px solid #16203a;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.pagina-cta-band p { color: #16203a; font-size: 20px; font-weight: 700; margin: 0; }
.pagina-btn-primario {
  background: #16203a; color: #ffffff; font-weight: 600; font-size: 14px;
  padding: 15px 28px; display: inline-block; border: none; cursor: pointer;
  font-family: inherit;
}
.pagina-btn-primario:hover { background: #202c4d; color: #ffffff; }

/* Responsive */
@media (max-width: 860px) {
  .nav-menu-btn { display: block; }
  .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; }
  .servicio-fila { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .pagina-hero-grid { grid-template-columns: 1fr; }
  .fig-strip { grid-template-columns: 1fr; }
  .fig-strip .fig:not(:last-child) { border-right: none; border-bottom: 1px solid #16203a; }
  .motores-grid { grid-template-columns: repeat(2, minmax(0,1fr)); margin-left: 20px; margin-right: 20px; }
  .motores-condiciones { margin-left: 20px; margin-right: 20px; }
  .inicio-header-nav { display: none; }
  .inicio-header-logo { padding: 14px 20px; }
  .inicio-header-actions { margin-right: 20px; }
  .inicio-header-portal { display: none; }
  .inicio-header-cta { padding: 10px 20px; }
  .inicio-header .nav-menu-btn { padding: 10px; }
  .inicio-header.menu-abierto .inicio-header-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #ffffff; border-bottom: 1px solid #16203a;
  }
  .inicio-header.menu-abierto .inicio-header-nav a { padding: 14px 20px; border-top: 1px solid #e2e7f0; font-size: 16px; }
  .inicio-header-nav .inicio-header-nav-portal { display: block; }
  .inicio-hero { height: auto; min-height: 560px; }
  .inicio-hero-content { left: 24px; right: 24px; bottom: 32px; max-width: none; }
  .inicio-hero-content h1 { font-size: 34px; letter-spacing: -1px; }
  .inicio-hero-content p { font-size: 16px; }
  .inicio-credenciales { padding: 18px 28px; gap: 24px; }
}
@media (max-width: 560px) {
  .seccion, .footer, .legal-strip, .contacto-grid, .cta-band, .enfoque-grid { padding-left: 22px; padding-right: 22px; }
  .pagina-hero, .pagina-hero-panel, .pagina-hero-grid, .pagina-cta-band, .form-card { padding-left: 22px; padding-right: 22px; }
  .servicio-fila, .fig-strip { margin-left: 22px; margin-right: 22px; }
  .motores-grid { grid-template-columns: 1fr; margin-left: 16px; margin-right: 16px; }
  .motores-condiciones { margin-left: 16px; margin-right: 16px; }
  .motores-vacio { margin-left: 16px; margin-right: 16px; padding: 32px 20px; }
  .inicio-header-logo { padding: 12px 16px; }
  .inicio-header-actions { margin-right: 16px; }
  .inicio-header-cta { padding: 9px 16px; font-size: 13px; }
  .inicio-hero-content { left: 18px; right: 18px; bottom: 24px; }
  .inicio-hero-content h1 { font-size: 28px; }
  .inicio-credenciales { padding: 16px 18px; gap: 16px; }
}
