/* ═══════════════════════════════════════════════════════════════════════
   MB ELECTRIC SOLUTIONS INC. · hoja de estilos única del sitio
   versión "cercana" (6 de octubre de 2026): bonita, simple y amable.
   Colores del logo nuevo (Electric Bolt M&B): amarillo y carbón, sobre crema.
   Los textos del sitio están en inglés; estos comentarios, en español,
   son para quien edita. Colores y medidas: sección 1.
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══ 1 · COLORES, LETRA Y MEDIDAS ═══ */
:root {
  /* Marca (del logo) */
  --amarillo: #FDCB01;        /* el amarillo del rayo y de la B. Texto encima: carbón (12:1), nunca blanco (1,5:1) */
  --amarillo-hondo: #EBB800;  /* al pasar el cursor */
  --amarillo-suave: #FFF1BF;  /* fondos de las etiquetas de tiempo */
  --carbon: #1C1B19;          /* el negro del logo, cálido */
  --carbon-2: #2B2925;
  --rojo: #C8321E;            /* solo emergencias. Texto blanco encima: 5,3:1 */
  --rojo-hondo: #A52614;
  --blanco: #FFFFFF;

  /* Superficies (modo normal) */
  --crema: #FBF6EC;           /* fondo de página */
  --arena: #F4ECDD;           /* bandas alternas */
  --superficie: #FFFFFF;      /* tarjetas */
  --tinta: #1C1B19;           /* texto. Sobre crema: 16:1 */
  --tinta-suave: #5E584F;     /* texto secundario. Sobre crema: 6,3:1 */
  --linea: #E7DDCB;
  --accion: var(--amarillo);  /* botón principal */
  --accion-hondo: var(--amarillo-hondo);
  --accion-texto: var(--carbon);
  --enlace: #1C1B19;
  --subrayado: #E0A800;
  --foco: #1C1B19;

  --letra: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --letra-titulo: 'Rubik', 'Figtree', 'Segoe UI', sans-serif;

  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px; --e6: 40px; --e7: 64px; --e8: 96px;
  --margen: clamp(16px, 4vw, 48px);
  --ancho: 1240px;
  --banda: clamp(64px, 8vw, 104px);
  --radio: 16px;
  --radio-grande: 28px;
  --sombra: 0 14px 34px -18px rgba(28, 27, 25, 0.28);
  --sombra-alta: 0 24px 48px -22px rgba(28, 27, 25, 0.36);
  --cabecera: 80px;
  --rapido: 150ms; --medio: 260ms;
  --curva: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modo "sin luz": solo la página de emergencias. Oscuro cálido y el botón de llamar en rojo. */
html[data-modo="off"] {
  --crema: #1C1B19;
  --arena: #24221F;
  --superficie: #2B2925;
  --tinta: #F6F1E7;
  --tinta-suave: #C9C1B3;
  --linea: #3D3A34;
  --accion: var(--rojo);
  --accion-hondo: var(--rojo-hondo);
  --accion-texto: #FFFFFF;
  --enlace: #FFE07A;
  --subrayado: #FFE07A;
  --foco: #FFE07A;
  color-scheme: dark;
}

/* ═══ 2 · BASE ═══ */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--crema); overflow-x: clip; scroll-padding-top: calc(var(--cabecera) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip;
  font-family: var(--letra); font-size: 1.125rem; line-height: 1.65; color: var(--tinta);
  background: var(--crema); -webkit-font-smoothing: antialiased;
}
img, video, canvas, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 0.45em; font-family: var(--letra-titulo); color: var(--tinta); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
h1 { font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4.1rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.28rem; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 var(--e4); max-width: 64ch; text-wrap: pretty; }
a { color: var(--enlace); text-decoration-color: var(--subrayado); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 3px; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 6px; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: var(--e4); top: -80px; z-index: 1000; background: var(--carbon); color: var(--blanco); padding: var(--e3) var(--e4); border-radius: 999px; font-weight: 700; }
.saltar:focus { top: var(--e3); }
.pagina { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--margen); }
.angosto { max-width: 880px; }
.entrada { font-size: clamp(1.14rem, 1.06rem + 0.35vw, 1.3rem); line-height: 1.55; color: var(--tinta-suave); max-width: 58ch; }
.chico { font-size: 0.95rem; color: var(--tinta-suave); }
.numero { font-variant-numeric: tabular-nums; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* La palabra que importa del titular, subrayada como con un marcador amarillo */
h1 em, h1 mark, h2 em {
  font-style: normal; color: inherit; padding: 0 0.08em;
  background: linear-gradient(transparent 60%, var(--amarillo) 60%, var(--amarillo) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html[data-modo="off"] h1 em, html[data-modo="off"] h2 em { background: linear-gradient(transparent 60%, rgba(200, 50, 30, 0.8) 60%, rgba(200, 50, 30, 0.8) 92%, transparent 92%); }

/* Contenido que solo se ve en uno de los dos modos */
html[data-modo="on"] [data-solo="off"], html[data-modo="off"] [data-solo="on"] { display: none !important; }

/* Datos sin confirmar: subrayados solo en modo revisión (?revisar en la dirección) */
html[data-demo] .provisional { text-decoration: underline dotted #C8321E 2px; text-underline-offset: 4px; cursor: help; }

/* ═══ 3 · BOTONES (píldoras: el amarillo lleva texto carbón) ═══ */
.botones { display: flex; flex-wrap: wrap; gap: var(--e3); }
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 54px; padding: 0.75em 1.45em;
  font: inherit; font-family: var(--letra-titulo); font-weight: 600; font-size: 1.05rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color var(--rapido), color var(--rapido), border-color var(--rapido), transform var(--rapido), box-shadow var(--rapido);
}
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(0); }
.boton .ico, .boton svg { width: 1.2em; height: 1.2em; flex: none; }
.boton--principal { background: var(--accion); color: var(--accion-texto); box-shadow: 0 10px 24px -14px rgba(28, 27, 25, 0.55); }
.boton--principal:hover { background: var(--accion-hondo); color: var(--accion-texto); }
.boton--rojo { background: var(--rojo); color: var(--blanco); }
.boton--rojo:hover { background: var(--rojo-hondo); color: var(--blanco); }
.boton--linea { background: transparent; color: var(--tinta); border-color: currentColor; }
.boton--linea:hover { background: var(--tinta); color: var(--crema); border-color: var(--tinta); }
.boton--oscuro { background: var(--carbon); color: var(--blanco); }
.boton--oscuro:hover { background: var(--carbon-2); color: var(--blanco); }
.boton--chico { min-height: 46px; padding: 0.55em 1.1em; font-size: 1rem; }
.boton[disabled] { opacity: 0.6; cursor: progress; }

/* Etiqueta de tiempo estimado (el reloj) */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--amarillo-suave); color: #3A2F00; font-weight: 700; font-size: 0.92rem; line-height: 1.2;
}
.chip .ico { width: 1.05em; height: 1.05em; }
html[data-modo="off"] .chip { background: #3A3427; color: #FFE07A; }

/* ═══ 4 · CABECERA ═══ */
.cabecera {
  position: sticky; top: 0; z-index: 900; background: var(--blanco); border-bottom: 1px solid #ECE3D3;
  --tinta: #1C1B19; --tinta-suave: #5E584F; --linea: #E7DDCB; --superficie: #FFFFFF; --enlace: #1C1B19; --foco: #1C1B19;
  --accion: var(--amarillo); --accion-hondo: var(--amarillo-hondo); --accion-texto: var(--carbon);
}
html[data-modo="off"] .cabecera { --accion: var(--rojo); --accion-hondo: var(--rojo-hondo); --accion-texto: #FFFFFF; }
.cabecera__fila { position: relative; display: flex; align-items: center; gap: var(--e4); min-height: var(--cabecera); }
.logo { display: block; flex: none; margin-right: auto; }
.logo img { height: 46px; width: auto; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.menu > li > a, .menu__grupo > button {
  display: inline-flex; align-items: center; gap: 4px; min-height: 46px; padding: 10px 14px; white-space: nowrap;
  font: inherit; font-weight: 600; font-size: 1.02rem; line-height: 1.1; color: var(--tinta); text-decoration: none;
  background: none; border: 0; border-radius: 999px; cursor: pointer; transition: background-color var(--rapido);
}
.menu > li > a:hover, .menu__grupo > button:hover, .menu__grupo > button[aria-expanded="true"] { background: var(--amarillo-suave); }
.menu > li > a[aria-current="page"], .menu__grupo > button.actual { background: var(--amarillo-suave); }
.flecha { width: 18px; height: 18px; transition: transform var(--rapido); }
.menu__grupo > button[aria-expanded="true"] .flecha { transform: rotate(180deg); }
.desplegable {
  position: absolute; top: calc(100% + 6px); left: var(--margen); right: var(--margen); z-index: 910;
  background: var(--superficie); color: var(--tinta); padding: 28px 30px 20px; border: 1px solid var(--linea); border-radius: var(--radio-grande);
  box-shadow: var(--sombra-alta);
}
.desplegable__rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.desplegable h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 0.5em; color: var(--tinta-suave); }
.desplegable ul { list-style: none; }
.desplegable li a { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; color: var(--tinta); text-decoration: none; font-weight: 700; font-size: 1rem; line-height: 1.25; }
.desplegable li a small { display: block; font-weight: 400; color: var(--tinta-suave); font-size: 0.9rem; margin-top: 2px; }
.desplegable li a:hover { background: var(--crema); }
.desplegable__pie { display: flex; flex-wrap: wrap; gap: 10px 26px; max-width: none; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--linea); font-size: 0.98rem; font-weight: 700; }
.cabecera__llamar { flex: none; }
.menu-movil { display: none; }
.menu-movil__titulo { padding: var(--e4) 0 var(--e1); font-size: 0.9rem; font-weight: 700; color: var(--tinta-suave); text-transform: uppercase; letter-spacing: 0.08em; }

/* ═══ 5 · HÉROE: texto a la izquierda, foto redondeada a la derecha ═══ */
.hero { background: var(--crema); padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.hero__rejilla { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__texto { min-width: 0; }
.hero__entrada { font-size: clamp(1.14rem, 1.06rem + 0.4vw, 1.32rem); line-height: 1.55; color: var(--tinta-suave); max-width: 50ch; margin-bottom: var(--e5); }
.hero h1 { max-width: 15ch; }
.sello {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 var(--e5); padding: 8px 16px 8px 10px; border-radius: 999px;
  background: var(--superficie); border: 1px solid var(--linea); font-weight: 700; font-size: 0.95rem; box-shadow: var(--sombra);
}
.sello .ico { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--amarillo); color: var(--carbon); stroke-width: 2.2; }
.hero__datos, .hero__puntos { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: var(--e5) 0 0; font-size: 1rem; color: var(--tinta-suave); }
.hero__datos li, .hero__puntos li { display: inline-flex; align-items: center; gap: 8px; }
.hero__datos .ico, .hero__puntos .ico { color: var(--tinta); width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--amarillo); stroke-width: 2.4; }
html[data-modo="off"] .hero__datos .ico { background: var(--rojo); color: #fff; }
.hero__foto { position: relative; min-width: 0; }
.hero__mancha {                    /* la mancha amarilla detrás de la foto */
  position: absolute; inset: 8% -4% -6% 10%; border-radius: 42% 58% 46% 54% / 52% 44% 56% 48%; background: var(--amarillo); z-index: 0;
}
html[data-modo="off"] .hero__mancha { background: var(--rojo); opacity: 0.85; }
.hero__marco { position: relative; z-index: 1; margin: 0; overflow: hidden; border-radius: var(--radio-grande); aspect-ratio: 1 / 1; background: var(--arena); box-shadow: var(--sombra-alta); }
.hero__marco img { width: 100%; height: 100%; object-fit: cover; object-position: var(--encuadre, 42% 40%); }
.hero__ficha {                     /* la tarjetita flotante con el tiempo estimado */
  position: absolute; z-index: 2; left: -22px; bottom: 28px; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 18px; background: var(--superficie); box-shadow: var(--sombra-alta); font-size: 0.95rem; line-height: 1.3;
}
.hero__ficha .ico { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--amarillo); color: var(--carbon); stroke-width: 2.2; }
.hero__ficha b { display: block; font-family: var(--letra-titulo); font-size: 1.05rem; }
.hero__nota { margin: var(--e4) 0 0; font-size: 1rem; }
.hero--interno .hero__marco { aspect-ratio: 5 / 4; }
.hero--interno h1 { font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.5rem); max-width: 18ch; }

/* Héroe sin foto (índices, error) */
.hero--plano { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 56px); }
.hero--plano h1 { max-width: 22ch; }

/* Migas de pan */
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: 0.95rem; color: var(--tinta-suave); }
.migas li + li::before { content: "/"; margin-right: 6px; }
.migas a { color: var(--tinta-suave); }

/* Entrada del héroe después de la apertura. Sin JS (sin .js) todo está quieto y visible. */
.js:not(.hero-listo) .hero__texto > *, .js:not(.hero-listo) .hero__foto { opacity: 0; transform: translateY(18px); }
.js .hero__texto > *, .js .hero__foto { transition: opacity 0.6s var(--curva), transform 0.8s var(--curva); }
.js .hero__texto > :nth-child(2) { transition-delay: 0.07s; }
.js .hero__texto > :nth-child(3) { transition-delay: 0.14s; }
.js .hero__texto > :nth-child(4) { transition-delay: 0.21s; }
.js .hero__texto > :nth-child(n+5) { transition-delay: 0.28s; }
.js .hero__foto { transition-delay: 0.12s; }

/* ═══ 6 · BANDAS ═══ */
.banda { padding: var(--banda) 0; position: relative; }
.banda--blanca { background: var(--superficie); }
.banda--arena { background: var(--arena); }
.cabeza { max-width: 760px; margin-bottom: var(--e6); }
.cabeza--centro { margin-left: auto; margin-right: auto; text-align: center; }
.cabeza--centro .entrada { margin-left: auto; margin-right: auto; }
.cabeza h2 + p { margin-top: var(--e3); }
.dos-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.dos-col--arriba { align-items: start; }
.foto { margin: 0; position: relative; overflow: hidden; border-radius: var(--radio-grande); background: var(--arena); }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--curva); }
.foto--alta { aspect-ratio: 4 / 5; }
.foto--ancha { aspect-ratio: 16 / 10; }
.lista-enlaces { list-style: none; display: grid; gap: var(--e2); }
.enlaces { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: var(--e6) 0 0; font-weight: 700; max-width: none; }

/* ═══ 7 · TARJETAS DE SERVICIO (portada) ═══ */
.servicios { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.servicio a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radio-grande);
  background: var(--superficie); border: 1px solid var(--linea); color: var(--tinta); text-decoration: none; box-shadow: var(--sombra);
  transition: transform var(--medio) var(--curva), box-shadow var(--medio) var(--curva);
}
.servicio a:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
.servicio__foto { aspect-ratio: 16 / 10; overflow: hidden; background: var(--arena); }
.servicio__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 35%; transition: transform 0.9s var(--curva); }
.servicio a:hover .servicio__foto img { transform: scale(1.04); }
.servicio__texto { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.servicio h3 { margin: 0; }
.servicio p { margin: 0; color: var(--tinta-suave); font-size: 1rem; }
.servicio .chip { align-self: flex-start; margin-top: auto; }
.servicios__mas { margin: var(--e6) auto 0; text-align: center; max-width: none; font-weight: 600; }
.servicios__mas a { margin: 0 6px; }

/* ═══ 8 · CÓMO FUNCIONA (pasos numerados) ═══ */
.pasos { list-style: none; counter-reset: paso; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pasos li {
  counter-increment: paso; position: relative; padding: 28px 26px 26px; border-radius: var(--radio-grande);
  background: var(--superficie); border: 1px solid var(--linea); box-shadow: var(--sombra); font-size: 1rem;
}
.pasos li::before {
  content: counter(paso); display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%;
  background: var(--amarillo); color: var(--carbon); font-family: var(--letra-titulo); font-weight: 800; font-size: 1.4rem;
}
html[data-modo="off"] .pasos li::before { background: var(--rojo); color: #fff; }
.pasos b { display: block; font-family: var(--letra-titulo); font-weight: 600; font-size: 1.2rem; line-height: 1.25; margin-bottom: 6px; color: var(--tinta); }
.pasos span { color: var(--tinta-suave); }
.pasos--tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ═══ 10 · POR QUÉ LLAMARNOS ═══ */
.razones { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin-top: var(--e5); }
.razones li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; }
.razones .ico { width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: var(--amarillo); color: var(--carbon); stroke-width: 2; }
.razones b { display: block; font-family: var(--letra-titulo); font-weight: 600; font-size: 1.12rem; line-height: 1.25; margin-bottom: 4px; }
.razones span { color: var(--tinta-suave); }

/* ═══ 11 · ZONAS, CÓDIGO POSTAL Y CAMPOS ═══ */
.zonas { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.zonas a {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--radio); background: var(--superficie); border: 1px solid var(--linea);
  color: var(--tinta); font-weight: 700; font-size: 1.05rem; text-decoration: none; transition: border-color var(--rapido), transform var(--rapido);
}
.zonas a span { font-weight: 400; font-size: 0.9rem; color: var(--tinta-suave); }
.zonas a:hover { border-color: var(--amarillo-hondo); transform: translateY(-2px); }
.zip { margin-top: var(--e5); padding: 24px; border-radius: var(--radio-grande); background: var(--superficie); border: 1px solid var(--linea); box-shadow: var(--sombra); max-width: 520px; }
.campo { display: grid; gap: var(--e2); margin-bottom: var(--e4); }
.campo label { font-weight: 700; font-size: 1rem; }
.campo input, .campo select, .campo textarea {
  font: inherit; color: var(--tinta); background: var(--crema); border: 2px solid #CFC3AE; border-radius: 14px;
  min-height: 54px; padding: var(--e3) var(--e4); width: 100%;
}
.campo input:focus, .campo textarea:focus { border-color: var(--tinta); }
.campo textarea { min-height: 120px; resize: vertical; }
.campo--fila { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-bottom: 0; }
.campo--fila label { grid-column: 1 / -1; }
.respuesta { margin: var(--e4) 0 0; padding: var(--e4); border-radius: 14px; background: var(--amarillo-suave); color: #2B2400; font-size: 1rem; }
.respuesta:empty { display: none; }
.respuesta a { color: inherit; }
.zip .chico { margin: 12px 0 0; }

/* ═══ 12 · CIERRE: la banda amarilla con el teléfono y el correo ═══ */
.cierre { background: var(--amarillo); color: var(--carbon); padding: clamp(56px, 7vw, 88px) 0; --tinta: #1C1B19; --tinta-suave: #3B3320; --enlace: #1C1B19; --subrayado: #1C1B19; --foco: #1C1B19; }
html[data-modo="off"] .cierre { background: var(--rojo); color: #fff; --tinta: #fff; --tinta-suave: #FFE3DD; --enlace: #fff; --subrayado: #fff; --foco: #fff; }
.cierre__caja { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: var(--e6); align-items: center; }
.cierre h2 { margin-bottom: 0.3em; }
.cierre p { margin: 0; color: var(--tinta-suave); font-size: 1.15rem; }
.cierre__botones { display: grid; gap: 12px; justify-items: stretch; }
.cierre .boton--linea { color: var(--carbon); border-color: var(--carbon); }
.cierre .boton--linea:hover { background: var(--carbon); color: var(--amarillo); }
html[data-modo="off"] .cierre .boton--oscuro { background: #fff; color: var(--rojo); }
html[data-modo="off"] .cierre .boton--linea { color: #fff; border-color: #fff; }

/* ═══ 13 · PREGUNTAS FRECUENTES ═══ */
.faq { display: grid; gap: 12px; margin-top: var(--e5); }
.faq details { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--e4); padding: 18px 0; font-weight: 700; font-size: 1.08rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--amarillo); color: var(--carbon); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 18px; }
.faq details > div p { color: var(--tinta-suave); }

/* ═══ 14 · TABLAS ═══ */
.tabla { width: 100%; border-collapse: separate; border-spacing: 0; margin: var(--e5) 0; font-size: 1rem; background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.tabla th, .tabla td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla thead th { font-weight: 700; background: var(--amarillo-suave); color: #2B2400; }
html[data-modo="off"] .tabla thead th { background: #3A3427; color: #FFE07A; }
.tabla-caja { overflow-x: auto; }

/* ═══ 15 · PÁGINAS DE SERVICIO Y GUÍAS: TEXTO CON BARRA LATERAL ═══ */
.con-lateral { display: grid; grid-template-columns: minmax(0, 720px) minmax(260px, 1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.prosa { max-width: 720px; }
.prosa > *:first-child { margin-top: 0; }
.prosa h2 { margin: var(--e7) 0 var(--e4); font-size: clamp(1.6rem, 1.2rem + 1.1vw, 2.15rem); }
.prosa h3 { margin: var(--e6) 0 var(--e3); }
.prosa ul, .prosa ol { margin: 0 0 var(--e4) 1.2em; display: grid; gap: var(--e2); max-width: 62ch; }
.prosa > ul:not(.lista-enlaces) { list-style: none; margin-left: 0; }
.prosa > ul:not(.lista-enlaces) > li { position: relative; padding-left: 34px; }
.prosa > ul:not(.lista-enlaces) > li::before {
  content: ""; position: absolute; left: 0; top: 0.22em; width: 22px; height: 22px; border-radius: 50%; background: var(--amarillo);
  -webkit-mask: none; mask: none;
}
.prosa > ul:not(.lista-enlaces) > li::after {
  content: ""; position: absolute; left: 5px; top: calc(0.22em + 5px); width: 12px; height: 12px; background: var(--carbon);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prosa .foto { margin: var(--e6) 0; aspect-ratio: 16 / 10; }
.aviso { padding: var(--e5); border-radius: var(--radio); background: var(--superficie); border: 1px solid var(--linea); margin: var(--e5) 0; }
.aviso p:last-child { margin-bottom: 0; }
.aviso--rojo { border-color: var(--rojo); box-shadow: 0 0 0 1px var(--rojo); }
.lateral { position: sticky; top: calc(var(--cabecera) + 24px); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--e4); }
.lateral .boton { white-space: normal; text-align: center; width: 100%; }
.tarjeta { padding: 24px; background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio-grande); box-shadow: var(--sombra); }
.tarjeta h2 { font-size: 1.2rem; letter-spacing: 0; margin-bottom: var(--e3); }
.tarjeta p { font-size: 1rem; }
.tarjeta p:last-child { margin-bottom: 0; }
.tarjeta--amarilla { background: var(--amarillo); border-color: var(--amarillo); --tinta: #1C1B19; --tinta-suave: #3B3320; --enlace: #1C1B19; --subrayado: #1C1B19; color: var(--carbon); }
.tarjeta--amarilla h2 { color: var(--carbon); }
.tarjeta--amarilla .boton { margin-top: 8px; }
.tarjeta--amarilla .boton--principal { background: var(--carbon); color: var(--blanco); }
.tarjeta--amarilla .boton--linea { color: var(--carbon); border-color: var(--carbon); }
.tarjeta--amarilla .boton--linea:hover { background: var(--carbon); color: var(--amarillo); }
html[data-modo="off"] .tarjeta--amarilla { background: var(--rojo); border-color: var(--rojo); color: #fff; --tinta: #fff; --tinta-suave: #FFE3DD; --enlace: #fff; --subrayado: #fff; }
html[data-modo="off"] .tarjeta--amarilla h2 { color: #fff; }
html[data-modo="off"] .tarjeta--amarilla .boton--principal { background: #fff; color: var(--rojo); }
html[data-modo="off"] .tarjeta--amarilla .boton--linea { color: #fff; border-color: #fff; }
.tarjeta .lista-enlaces a { font-weight: 700; }
.chequeos { list-style: none; display: grid; gap: var(--e3); margin: 0; font-size: 1rem; }
.chequeos li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.chequeos .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--amarillo); color: var(--carbon); stroke-width: 2.6; margin-top: 1px; }

/* ═══ 16 · LANDING DE CADA SEDE ═══ */
.sede { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio-grande); overflow: hidden; box-shadow: var(--sombra); }
.mapa { display: block; width: 100%; height: 380px; border: 0; background: var(--arena); }
.sede__datos { padding: 24px; display: grid; gap: var(--e4); }
.sede__nombre { font-size: 1.35rem; margin: 0; }
.sede dl { margin: 0; display: grid; gap: var(--e3); font-size: 1rem; }
.sede dl > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--e3); }
.sede dt { font-weight: 700; }
.sede dd { margin: 0; overflow-wrap: anywhere; }
.sede .boton { justify-self: start; }
.pedidos { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pedidos a { display: block; height: 100%; padding: 20px 22px; border-radius: var(--radio); background: var(--superficie); border: 1px solid var(--linea); color: var(--tinta); text-decoration: none; transition: border-color var(--rapido), transform var(--rapido); }
.pedidos a:hover { border-color: var(--amarillo-hondo); transform: translateY(-2px); }
.pedidos b { display: block; font-family: var(--letra-titulo); font-weight: 600; font-size: 1.12rem; }
.pedidos span { display: block; margin-top: 4px; font-size: 0.98rem; color: var(--tinta-suave); }
.otras { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--e4); }
.otras a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--superficie); border: 1px solid var(--linea); font-weight: 600; text-decoration: none; }
.otras a:hover { background: var(--amarillo-suave); }

/* Página de todas las sedes */
.sedes-pagina { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--e7); align-items: start; }
.sedes-pagina__mapa { position: sticky; top: calc(var(--cabecera) + 24px); }
.sedes-pagina__mapa .mapa { height: 520px; border-radius: var(--radio-grande); border: 1px solid var(--linea); }
.sedes { list-style: none; display: grid; gap: 12px; }
.sedes__item { padding: 20px 22px; border-radius: var(--radio); background: var(--superficie); border: 1px solid var(--linea); }
.sedes__item h2 { font-size: 1.35rem; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--e3); }
.sedes__item h2 a { color: var(--tinta); text-decoration: none; }
.sedes__item h2 a:hover { text-decoration: underline; text-decoration-color: var(--subrayado); }
.sedes__item p { margin: var(--e3) 0 0; font-size: 1rem; }
.sedes__base { font-family: var(--letra); font-size: 0.82rem; font-weight: 700; letter-spacing: 0; padding: 3px 10px; border-radius: 999px; background: var(--amarillo); color: var(--carbon); }
.sedes__enlaces { display: flex; flex-wrap: wrap; gap: var(--e5); font-weight: 700; }

/* ═══ 17 · CHEQUEO DE 60 SEGUNDOS ═══ */
.chequeo { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio-grande); padding: 28px; margin: 0 0 var(--e5); box-shadow: var(--sombra); }
.chequeo fieldset { border: 0; margin: 0 0 var(--e5); padding: 0; }
.chequeo legend { font-weight: 700; font-size: 1.12rem; padding: 0; margin-bottom: var(--e3); }
.chequeo label { display: flex; align-items: center; gap: var(--e3); min-height: 44px; cursor: pointer; font-size: 1rem; }
.chequeo input { width: 22px; height: 22px; accent-color: var(--carbon); flex: none; }
.chequeo__veredicto { margin-top: var(--e5); padding: 20px; border-radius: var(--radio); background: var(--amarillo-suave); color: #2B2400; }
.chequeo__veredicto:empty { display: none; }
.chequeo__veredicto h3 { margin-bottom: var(--e3); color: inherit; }

/* ═══ 18 · ESPACIO RESERVADO (solo en modo revisión) ═══ */
.reservado { margin-top: var(--e6); border: 2px dashed var(--linea); border-radius: var(--radio); padding: var(--e5); color: var(--tinta-suave); font-size: 1rem; }
html:not([data-demo]) .reservado { display: none; }

/* ═══ 19 · APERTURA: EL RAYO ═══
   La primera página que se abre en la sesión: el logo aparece apagado, cae el rayo
   (destello amarillo), se encienden la M y ELECTRIC, entra SOLUTIONS INC. y el velo
   se levanta. 1,6 s, se salta con un toque, nunca con "reducir movimiento". */
.apertura-pendiente body::before { content: ""; position: fixed; inset: 0; z-index: 2999; background: #1C1B19; }
.apertura {
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: #1C1B19; cursor: pointer; overflow: hidden;
  transition: opacity 0.38s cubic-bezier(0.55, 0, 0.75, 0.1), transform 0.38s cubic-bezier(0.55, 0, 0.75, 0.1);
}
.apertura__escena { position: relative; width: min(440px, 72vw); }
.apertura__escena svg { display: block; width: 100%; height: auto; overflow: visible; }
.apertura__destello { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(253, 203, 1, 0.55), rgba(253, 203, 1, 0) 60%); opacity: 0; pointer-events: none; }
.apertura .lg-m, .apertura .lg-electric { opacity: 0.1; transition: opacity 0.3s ease-out; }
.apertura .lg-rayo { opacity: 0; transform-box: fill-box; transform-origin: 50% 0%; transform: translateY(-14%) scaleY(0.4); transition: opacity 0.08s linear, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1); }
.apertura .lg-solutions { opacity: 0; transform-box: fill-box; transform-origin: center; transform: translateY(12px); transition: opacity 0.35s ease-out, transform 0.45s var(--curva); }
.apertura.golpe .lg-rayo { opacity: 1; transform: none; }
.apertura.golpe .apertura__destello { animation: destello 0.42s ease-out both; }
.apertura.enciende .lg-m, .apertura.enciende .lg-electric { opacity: 1; }
.apertura.enciende svg { filter: drop-shadow(0 0 26px rgba(253, 203, 1, 0.32)); }
.apertura.brilla .lg-solutions { opacity: 1; transform: none; }
.apertura.sube { opacity: 0; transform: translateY(-4%); }
.apertura.rapido, .apertura.rapido * { transition-duration: 0.16s !important; transition-delay: 0s !important; animation: none !important; }
.apertura__saltar { position: absolute; right: 22px; bottom: 20px; color: #B9B1A2; font: 600 0.8rem/1 var(--letra); letter-spacing: 0.14em; text-transform: uppercase; }
@keyframes destello { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

/* ═══ 20 · ENTRADAS POR SCROLL ═══ */
.js [data-reveal].por-entrar { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--curva), transform 0.9s var(--curva); }
.js [data-reveal].por-entrar.en-vista { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: 0.08s; }
.js [data-reveal][data-delay="2"] { transition-delay: 0.16s; }
.js [data-reveal][data-delay="3"] { transition-delay: 0.24s; }

/* ═══ 21 · PIE Y BARRA DEL MÓVIL ═══ */
.pie { background: var(--carbon); color: #D9D1C2; padding: var(--e7) 0 var(--e6); font-size: 1rem; --foco: #FDCB01; }
.pie__cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--e6); }
.pie__marca img { width: 190px; height: auto; }
.pie__tel { display: inline-block; margin: var(--e5) 0 var(--e2); font-family: var(--letra-titulo); font-size: 1.6rem; font-weight: 700; color: var(--blanco); text-decoration: none; }
.pie__tel:hover { color: var(--amarillo); }
.pie__correo { display: inline-block; margin-bottom: var(--e3); color: var(--amarillo); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.pie__correo:hover { text-decoration: underline; }
.pie h2 { font-size: 1.05rem; letter-spacing: 0; color: var(--blanco); margin-bottom: var(--e3); }
.pie ul { list-style: none; display: grid; gap: var(--e2); }
.pie a { color: #D9D1C2; text-decoration: none; }
.pie a:hover { color: var(--amarillo); }
.pie p { color: #D9D1C2; }
.pie__licencia { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #2B2925; color: var(--blanco); font-weight: 700; font-size: 0.92rem; }
.pie__licencia .ico { color: var(--amarillo); }
.pie__legal { margin-top: var(--e6); padding-top: var(--e5); border-top: 1px solid #3A3732; color: #A9A192; font-size: 0.9rem; }
.pie__legal p { max-width: 90ch; color: #A9A192; }
.pie__legal a { color: #D9D1C2; text-decoration: underline; text-decoration-color: #6B655B; }
.barra-movil { display: none; }

/* ═══ 22 · PANTALLAS MEDIANAS ═══ */
@media (max-width: 1240px) {
  .menu > li > a, .menu__grupo > button { padding: 10px 10px; }
  .cabecera__llamar span { display: none; }
  .cabecera__llamar { width: 48px; min-height: 48px; padding: 0; }
  .logo img { height: 42px; }
}

/* ═══ 23 · TABLETA Y MÓVIL ═══ */
@media (max-width: 1040px) {
  :root { --cabecera: 68px; }
  .menu { display: none; }
  .logo img { height: 38px; }
  .menu-movil { display: block; position: static; }
  .menu-movil summary {
    list-style: none; cursor: pointer; width: 48px; height: 48px; display: grid; place-items: center;
    border: 2px solid var(--linea); border-radius: 50%; color: var(--tinta);
  }
  .menu-movil summary::-webkit-details-marker { display: none; }
  .menu-movil summary .ico { width: 24px; height: 24px; }
  .menu-movil[open] summary { border-color: var(--tinta); background: var(--amarillo-suave); }
  .menu-movil ul {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 890; list-style: none;
    max-height: calc(100dvh - var(--cabecera)); overflow-y: auto;
    background: var(--superficie); border-bottom: 1px solid var(--linea); padding: var(--e3) var(--margen) 110px; box-shadow: var(--sombra-alta);
  }
  .menu-movil a { display: block; padding: 11px 0; color: var(--tinta); font-weight: 700; font-size: 1.08rem; text-decoration: none; border-bottom: 1px solid var(--linea); }
  html { scroll-padding-bottom: 90px; }

  .hero__rejilla, .dos-col, .con-lateral, .sedes-pagina, .cierre__caja { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: none; }
  .hero__foto { max-width: 560px; }
  .hero__ficha { left: 12px; bottom: 16px; }
  .servicios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pasos, .pasos--tres { grid-template-columns: minmax(0, 1fr); }
  .sedes-pagina__mapa { position: static; }
  .mapa, .sedes-pagina__mapa .mapa { height: 320px; }
  .lateral { position: static; }
  .pedidos { grid-template-columns: minmax(0, 1fr); }
  .pie__cols { grid-template-columns: 1fr 1fr; }
  .foto--alta { aspect-ratio: 16 / 11; }
  .barra-movil {
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--e2); position: fixed; left: 0; right: 0; bottom: 0; z-index: 880;
    padding: var(--e2) var(--e3) calc(var(--e2) + env(safe-area-inset-bottom)); background: var(--blanco); border-top: 1px solid #ECE3D3;
    --tinta: #1C1B19; --accion: var(--amarillo); --accion-hondo: var(--amarillo-hondo); --accion-texto: var(--carbon);
  }
  html[data-modo="off"] .barra-movil { --accion: var(--rojo); --accion-hondo: var(--rojo-hondo); --accion-texto: #fff; }
  .barra-movil .boton { min-height: 50px; padding: 0 var(--e3); font-size: 1rem; }
  body { padding-bottom: 74px; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .cabecera__fila { gap: var(--e2); }
  .servicios, .razones, .zonas, .pie__cols { grid-template-columns: minmax(0, 1fr); }
  .hero .botones .boton, .cierre .boton { width: 100%; }
  .boton { white-space: normal; text-align: center; }
  .campo--fila { grid-template-columns: minmax(0, 1fr); }
  .sede dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hero__ficha { padding: 10px 14px 10px 10px; }
  .hero__ficha .ico { width: 34px; height: 34px; padding: 7px; }
  .sello { font-size: 0.88rem; }
}
@media (max-width: 400px) { .logo img { height: 32px; } }
@media (max-width: 359px) {
  .logo img { height: 27px; }
  .cabecera__fila { gap: 6px; }
  .cabecera__llamar, .menu-movil summary { width: 44px; height: 44px; min-height: 44px; }
}

/* ═══ 24 · MOVIMIENTO REDUCIDO E IMPRESIÓN ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .apertura, .apertura-pendiente body::before { display: none !important; }
  .js [data-reveal].por-entrar, .js:not(.hero-listo) .hero__texto > *, .js:not(.hero-listo) .hero__foto { opacity: 1; transform: none; }
}
@media print {
  .cabecera, .barra-movil, .apertura, .hero__mancha, .hero__ficha { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
  .cierre, .pie { background: #fff; color: #000; }
}
