:root {
  --ef-azul-oscuro: #071e47;
  --ef-azul: #123a7a;
  --ef-azul-claro: #2f6fd1;
  --ef-carbon: #1c1c1c;
  --ef-carbon-claro: #3a3a3a;
  --ef-gris: #5c6470;
  --ef-gris-claro: #f4f5f7;
  --ef-borde: #e7e9ed;
  --ef-verde-wa: #25d366;
}

.electrofix-home {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}
html:has(.electrofix-home),
body:has(.electrofix-home) {
  overflow-x: hidden;
  max-width: 100%;
}
body:has(.electrofix-home) .wp-block-post-title {
  display: none;
}
body:has(.electrofix-home) main,
body:has(.electrofix-home) .entry-content,
body:has(.electrofix-home) .wp-block-post-content,
body:has(.electrofix-home) main > .wp-block-group {
  padding: 0 !important;
  margin-top: 0 !important;
}
.electrofix-home * { box-sizing: border-box; }

/* ---------- HERO ---------- */
.eh-hero {
  position: relative;
  background: linear-gradient(120deg, var(--ef-azul-oscuro) 0%, var(--ef-azul) 42%, var(--ef-carbon-claro) 78%, var(--ef-carbon) 100%);
  padding: 70px 20px 60px;
  overflow: hidden;
}
.eh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 40px);
  pointer-events: none;
}
.eh-hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.eh-hero-logo {
  height: 56px;
  width: 56px;
  object-fit: contain;
  margin-bottom: 22px;
  background: #fff;
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.eh-hero-inner h1 {
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  line-height: 1.2;
}
.eh-hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  margin: 0 0 30px;
  font-weight: 500;
}
.eh-hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.eh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.eh-btn-whatsapp {
  background: var(--ef-verde-wa);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
}
.eh-btn-whatsapp:hover { opacity: 0.92; }
.eh-btn-outline {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.eh-btn-outline:hover { background: rgba(255,255,255,0.18); }

/* ---------- SECCIONES GENÉRICAS ---------- */
.eh-seccion {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 20px;
}
.eh-seccion h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--ef-carbon);
  margin: 0 0 10px;
  text-align: center;
  letter-spacing: -0.01em;
}
.eh-h2-icono { font-size: 24px; margin-right: 4px; }
.eh-seccion-sub {
  text-align: center;
  color: var(--ef-gris);
  font-size: 14px;
  margin: 0 0 32px;
}
.eh-seccion-sub a { color: var(--ef-azul-claro); font-weight: 600; }
.eh-eyebrow {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ef-azul-claro);
  margin-bottom: 10px;
}
.eh-eyebrow-claro { color: #7fb0ff; }

/* Wrapper interno para las secciones de fondo oscuro de ancho completo. */
.eh-seccion-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 20px;
}
.eh-seccion-sub-oscura { color: rgba(255,255,255,0.65) !important; }

/* ---------- SERVICIOS (sección oscura) ---------- */
.eh-servicios-oscura {
  background: linear-gradient(160deg, var(--ef-azul-oscuro) 0%, #0a1730 60%, var(--ef-carbon) 100%);
  max-width: 100%;
}
.eh-servicios-oscura h2 { color: #fff; }
.eh-servicios-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.eh-servicio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 32px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  transition: all 0.18s ease;
}
.eh-servicio-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(127,176,255,0.5);
  transform: translateY(-3px);
}
.eh-servicio-icono {
  color: #7fb0ff;
  display: flex;
  margin-bottom: 4px;
}
.eh-servicio-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0;
}
.eh-servicio-card p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 6px;
  line-height: 1.45;
}
.eh-servicio-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ef-verde-wa);
  margin-top: auto;
}

/* ---------- COTIZADOR DE REPARACIONES ---------- */
.eh-cotizador {
  background: var(--ef-gris-claro);
  max-width: 100%;
}
.eh-cotizador > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.eh-cotizador-form {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.eh-cotizador-form .electrofix-combo-input {
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--ef-borde);
  background: #fff;
  color: var(--ef-carbon);
  font-size: 14px;
  font-family: inherit;
}
.eh-cotizador-form .electrofix-combo-disabled .electrofix-combo-input { opacity: 0.5; }
.eh-cotizador-resultado {
  margin-top: 24px;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  border: 1.5px solid var(--ef-borde);
  text-align: center;
}
.eh-cotizador-precio {
  font-size: 22px;
  font-weight: 800;
  color: var(--ef-azul);
  margin: 0 0 4px;
}
.eh-cotizador-precio span { color: var(--ef-carbon); }
.eh-cotizador-nota {
  font-size: 12.5px;
  color: var(--ef-gris);
  margin: 0 0 16px;
}
.eh-cotizador-vacio {
  margin-top: 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ef-gris);
}

/* ---------- ¿NO ESTÁ TU EQUIPO? (consulta por email) ---------- */
.eh-consulta { background: #fff; max-width: 100%; }
.eh-consulta-caja {
  max-width: 620px;
  margin: 0 auto;
  padding: 32px 28px;
  border-radius: 18px;
  background: var(--ef-gris-claro);
  border: 1.5px solid var(--ef-borde);
  text-align: center;
}
.eh-consulta-intro h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--ef-carbon);
  margin: 0 0 6px;
}
.eh-consulta-intro p {
  font-size: 13.5px;
  color: var(--ef-gris);
  margin: 0 0 22px;
}
.eh-consulta-form {
  display: grid;
  gap: 10px;
  text-align: left;
}
.eh-consulta-form input,
.eh-consulta-form textarea {
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--ef-borde);
  background: #fff;
  color: var(--ef-carbon);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
.eh-consulta-form textarea { min-height: 90px; resize: vertical; }
.eh-consulta-form button {
  margin-top: 4px;
  justify-content: center;
  width: 100%;
}
.eh-consulta-mensaje {
  margin: 14px 0 0;
  font-size: 13.5px;
  font-weight: 700;
}
.eh-consulta-ok { color: #15803d; }
.eh-consulta-error { color: #b91c1c; }

/* ---------- POR QUÉ ELEGIRNOS ---------- */
.eh-porque {
  background: var(--ef-gris-claro);
  max-width: 100%;
}
.eh-porque > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.eh-porque-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.eh-porque-item { position: relative; }
.eh-porque-num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--ef-borde);
  margin-bottom: 4px;
  line-height: 1;
}
.eh-porque-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ef-azul);
  margin: 0 0 8px;
}
.eh-porque-item p {
  font-size: 13.5px;
  color: var(--ef-carbon-claro);
  line-height: 1.5;
  margin: 0;
}
.eh-porque-item a { color: var(--ef-azul-claro); }

/* ---------- CATÁLOGO DESTACADO ---------- */
/* Sección de ancho completo (fondo propio) con un wrapper interno
   centrado — mismo patrón que las secciones oscuras, así el catálogo
   destacado pesa más visualmente y no se siente "una grilla más" en medio
   de secciones blancas. */
.eh-seccion-full {
  width: 100%;
  max-width: 100%;
  padding: 0;
}
.eh-destacado {
  background: linear-gradient(180deg, #fff 0%, var(--ef-gris-claro) 100%);
}
.eh-destacado .eh-seccion-inner { text-align: center; max-width: 1440px; }

/* ---------- PROMOCIONES DEL MES (solo aparece con promos activas) ---------- */
.eh-promos {
  background: linear-gradient(135deg, #ff8a00 0%, #ff4d00 55%, #c92a00 100%);
}
.eh-promos .eh-seccion-inner { text-align: center; }
.eh-promos h2 { color: #fff; margin: 0 0 32px; }
.eh-eyebrow-promo { color: #ffe2c2; }
.eh-promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  text-align: left;
}
.eh-promo-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}
.eh-promo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--ef-azul-oscuro);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.eh-promo-fotos {
  display: flex;
  aspect-ratio: 16 / 10;
  background: var(--ef-gris-claro);
}
.eh-promo-foto { flex: 1; overflow: hidden; border-right: 2px solid #fff; }
.eh-promo-foto:last-child { border-right: none; }
.eh-promo-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eh-promo-sin-foto { width: 100%; height: 100%; background: var(--ef-gris-claro); }
.eh-promo-body { padding: 18px; }
.eh-promo-body h3 { font-size: 16.5px; font-weight: 800; color: var(--ef-carbon); margin: 0 0 6px; }
.eh-promo-incluye { font-size: 12.5px; color: var(--ef-gris); margin: 0 0 10px; }
.eh-promo-precio { font-size: 20px; font-weight: 800; color: var(--ef-azul); margin: 0 0 14px; }
.eh-promo-body .eh-btn { width: 100%; justify-content: center; }
.eh-destacado-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  text-align: left;
}
.eh-destacado-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: block;
  box-shadow: 0 8px 20px rgba(18, 58, 122, 0.08);
  transition: all 0.2s ease;
}
/* Bento: la tarjeta "grande" ocupa 2 columnas y queda panorámica en vez de
   vertical — rompe la grilla pareja de cuadrados. Solo desde tablet en
   adelante, para no forzar una columna extra en el grid de 1 sola columna
   del mobile. */
@media (min-width: 700px) {
  .eh-destacado-card-lg {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }
}
.eh-destacado-card:hover {
  box-shadow: 0 18px 34px rgba(18, 58, 122, 0.22);
  transform: translateY(-4px);
}
.eh-destacado-img {
  position: absolute;
  inset: 0;
  background: var(--ef-gris-claro);
}
.eh-destacado-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.eh-destacado-card:hover .eh-destacado-img img { transform: scale(1.06); }
.eh-destacado-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 16px;
  background: linear-gradient(0deg, rgba(7,17,38,0.92) 0%, rgba(7,17,38,0.55) 55%, transparent 100%);
}
.eh-destacado-marca {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7fb0ff;
  margin-bottom: 4px;
}
.eh-destacado-overlay h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.3;
}
.eh-destacado-precio {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.eh-btn-catalogo {
  margin-top: 36px;
  background: var(--ef-azul);
  color: #fff;
  display: inline-flex;
}
.eh-btn-catalogo:hover { background: var(--ef-azul-oscuro); }

/* ---------- REDES (sección oscura) ---------- */
.eh-redes-oscura {
  background: #0c1424;
  max-width: 100%;
}
.eh-redes-oscura h2 { color: #fff; }
.eh-redes-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 36px;
}
.eh-red-card {
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 14px;
}
/* Tarjetas pares invertidas (video a la derecha) — le da el efecto
   "zigzag"/dinámico que pidió Alonso en vez de una grilla lineal pareja. */
.eh-red-card-inv { flex-direction: row-reverse; }
.eh-red-card video {
  display: block;
  flex: 0 0 auto;
  width: 130px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
}
.eh-red-card-texto { flex: 1 1 auto; min-width: 0; }
.eh-red-card-titulo {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.eh-red-card-inv .eh-red-card-texto { text-align: right; }
.eh-red-card-desc {
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.eh-redes-seguinos {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
}
.eh-redes-seguinos a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.7);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.eh-redes-seguinos a:hover { color: #fff; }

/* ---------- MAPA ---------- */
.eh-mapa-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}
.eh-mapa-iframe { border-radius: 18px; }
.eh-mapa-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.eh-info-fila {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.eh-info-icono {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ef-gris-claro);
  color: var(--ef-azul);
  display: flex;
  align-items: center;
  justify-content: center;
}
.eh-info-fila strong { display: block; font-size: 14px; color: var(--ef-carbon); margin-bottom: 2px; }
.eh-info-fila p { font-size: 13.5px; color: var(--ef-gris); margin: 0; line-height: 1.5; }
.eh-zonas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}
.eh-zona-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ef-azul);
  background: var(--ef-gris-claro);
  border: 1px solid var(--ef-borde);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.eh-zona-chip-sede {
  color: #fff;
  background: var(--ef-azul);
  border-color: var(--ef-azul);
}
.eh-zonas-nota { font-size: 12.5px; color: var(--ef-gris); margin: 0; line-height: 1.4; }
.eh-mapa-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.eh-btn-outline-oscuro {
  background: #fff;
  color: var(--ef-azul);
  border: 1.5px solid var(--ef-borde);
}
.eh-btn-outline-oscuro:hover { border-color: var(--ef-azul-claro); }
.eh-mapa .eh-btn-whatsapp { padding: 14px 20px; }

/* ---------- LINK LEGAL AL PIE DEL HOME ---------- */
.eh-legal-link {
  text-align: center;
  padding: 0 20px 40px;
  margin: 0;
}
.eh-legal-link a {
  font-size: 13px;
  color: var(--ef-gris);
  text-decoration: underline;
}

/* ---------- WHATSAPP FLOTANTE ---------- */
/* Apilado arriba del ícono de carrito (assets/carrito.css: fixed, 52x52,
   right:18px, bottom:18px, sitewide) para que no se pisen — mismo tamaño y
   alineación horizontal, más arriba. */
.eh-whatsapp-flotante {
  position: fixed;
  bottom: 82px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ef-verde-wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 999;
}

/* ---------- ANIMACIÓN DE APARICIÓN AL SCROLLEAR ---------- */
.eh-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.eh-reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .eh-reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 780px) {
  .eh-hero-inner h1 { font-size: 26px; }
  .eh-mapa-grid { grid-template-columns: 1fr; }
  .eh-redes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .eh-red-card, .eh-red-card-inv {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .eh-red-card video { width: 100%; max-width: 220px; margin: 0 auto; }
  .eh-red-card-inv .eh-red-card-texto,
  .eh-red-card-texto { text-align: center; }
}
