/* JJ Producciones v2 — el sistema sale del equipo mismo, no de una plantilla:
   - negro mate de la carcasa de la planta;
   - las tres fases de la corriente trifásica que entregan sus plantas (rojo, blanco, gris): el único motivo gráfico;
   (2026-11-27: la cinta reflectiva a rayas se quitó: Anthony, «parece barrotes de navidad y barbería»)
   - la placa de datos del generador (cifras tabulares, remaches);
   - el blanco de cal de las fachadas de Cartagena donde trabajan (fondo claro).
   - el logo completo del cliente (con su bombillo), siempre entero.
   Tipografía Barlow: nace de la señalización vial y las placas, el mundo de un equipo que va por carretera. */

@font-face { font-family: "Barlow"; src: url("fuentes/barlow-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fuentes/barlow-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fuentes/barlow-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fuentes/barlow-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fuentes/barlowcondensed-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fuentes/barlowcondensed-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --carcasa: #0c0c0d;
  --acero: #18181b;
  --linea: #2b2b30;
  --gris: #8b8b94;
  --cal: #f3efe7;
  --cal-2: #e6dfd2;
  --texto: #141416;
  --suave: #55555e;
  --rojo: #d61827;
  --rojo-osc: #a90f1c;
  --blanco: #fff;
  --wa: #1fa855;
  --ancho: 1240px;
  --texto-f: "Barlow", system-ui, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --suave-curva: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--texto-f); font-size: 18px; line-height: 1.55; color: var(--texto); background: var(--carcasa); font-variant-numeric: tabular-nums; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { line-height: 1.02; }
button { font: inherit; cursor: pointer; color: inherit; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 12px; top: 12px; z-index: 100; background: var(--blanco); color: var(--carcasa); padding: 8px 14px; }
:focus-visible { outline: 3px solid #ffb703; outline-offset: 3px; }
.contenedor { width: min(var(--ancho), 100% - 48px); margin-inline: auto; }
@media (max-width: 600px) { .contenedor { width: calc(100% - 36px); } body { font-size: 17px; } }

.cejilla { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.cejilla--roja { color: var(--rojo); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: 4px; font-weight: 700; font-size: 17px; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.btn .ico { width: 22px; height: 22px; flex: none; }
.btn--grande { min-height: 58px; padding: 14px 28px; font-size: 18px; }
.btn--chico { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn--rojo { background: var(--rojo); color: var(--blanco); }
.btn--rojo:hover { background: var(--rojo-osc); }
.btn--wa { background: var(--wa); color: var(--blanco); }
.btn--wa:hover { background: #178a45; }
.btn--linea-clara { border-color: #4a4a52; color: var(--blanco); }
.btn--linea-clara:hover { border-color: var(--blanco); }
.btn--fantasma { border-color: var(--cal-2); color: var(--suave); background: transparent; }
.btn--fantasma:hover { border-color: var(--texto); color: var(--texto); }
.enlace-seco { background: none; border: 0; padding: 8px 0; font-weight: 600; color: var(--suave); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--cal-2); }
.enlace-seco:hover { color: var(--texto); text-decoration-color: var(--rojo); }

/* ---------- Barra ---------- */
.barra { position: sticky; top: 0; z-index: 50; background: rgb(12 12 13 / .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); color: var(--blanco); }
.barra__in { width: min(var(--ancho), 100% - 32px); margin-inline: auto; height: 66px; display: flex; align-items: center; gap: 28px; }
.barra__logo img { height: 52px; width: auto; }
.barra__nav { display: flex; gap: 28px; margin-left: auto; }
.barra__nav a { text-decoration: none; font-weight: 600; font-size: 16px; color: #cfcfd5; }
.barra__nav a:hover { color: var(--blanco); }
.barra__menu { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.barra__menu span:not(.oculto) { display: block; height: 2px; background: var(--blanco); transition: transform .2s, opacity .2s; }
.barra__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.barra__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.barra__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .barra__menu { display: flex; }
  .barra__cta { margin-left: auto; }
  .barra__nav { position: fixed; inset: 66px 0 auto 0; flex-direction: column; gap: 0; background: var(--carcasa); padding: 6px 20px 18px; border-bottom: 1px solid var(--linea); transform: translateY(-110%); visibility: hidden; transition: transform .25s var(--suave-curva), visibility 0s .25s; }
  .barra__nav.abierto { transform: none; visibility: visible; transition: transform .25s var(--suave-curva); }
  .barra__nav a { padding: 14px 0; font-size: 19px; border-bottom: 1px solid var(--linea); }
}
@media (max-width: 420px) { .barra__logo img { height: 46px; } .barra__in { gap: 12px; } }

/* ---------- Inicio: texto + panel de la planta ---------- */
.hero { background: var(--carcasa); color: var(--blanco); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; gap: clamp(32px, 5vw, 80px); min-height: min(820px, calc(100svh - 66px)); padding: clamp(40px, 6vw, 80px) 0; }
.hero h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(52px, 6vw, 100px); line-height: .88; letter-spacing: -.01em; margin: 0 0 24px; }
/* La primera línea del título es la búsqueda (alquiler de plantas eléctricas en Cartagena), con aspecto de cejilla. */
.hero h1 .cejilla { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: .08em; margin-bottom: 16px; }
.hero__lema { display: block; }
.hero__lema span { display: block; color: var(--rojo); }
.hero__bajada { font-size: clamp(18px, 1.5vw, 21px); color: #c9c9cf; max-width: 30em; }
.hero__wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: #a9a9b1; text-decoration: none; font-size: 17px; }
.hero__wa b { color: var(--blanco); }
.hero__wa .ico { width: 20px; height: 20px; color: #4ad07f; }
.hero__wa:hover b { text-decoration: underline; text-underline-offset: 4px; }

.panel { background: #141417; border: 1px solid var(--linea); border-radius: 10px; padding: 16px 16px 14px; box-shadow: 0 40px 90px -50px rgb(214 24 39 / .45), inset 0 1px 0 rgb(255 255 255 / .04); }
.panel__barra { display: flex; justify-content: space-between; align-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--gris); font-weight: 600; margin: 2px 2px 12px; }
.panel__estado { display: inline-flex; align-items: center; gap: 8px; }
.panel__estado i { width: 8px; height: 8px; border-radius: 50%; background: #f5a524; box-shadow: 0 0 8px #f5a524; }
.panel__estado.en-linea { color: #cfeedd; }
.panel__estado.en-linea i { background: #35d07f; box-shadow: 0 0 10px #35d07f; }
.panel__pantalla { position: relative; height: clamp(220px, 21vw, 290px); background: #08080a; border: 1px solid #232328; border-radius: 6px; overflow: hidden; }
.panel__pantalla canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Las ondas pasan por detrás de la lectura: un velo abajo para que las cifras se lean siempre. */
.panel__pantalla::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(8 8 10 / .92) 62%); pointer-events: none; }
.panel__fases { position: absolute; top: 12px; right: 14px; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; font-size: 12px; font-weight: 600; color: #8b8b94; }
.panel__fases li::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; background: currentColor; }
.panel__fases li:nth-child(1) { color: #f04a57; }
.panel__fases li:nth-child(2) { color: #e9e9ec; }
.panel__lectura { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.panel__kva { font-family: var(--display); font-weight: 800; font-size: clamp(54px, 5vw, 72px); line-height: .82; }
.panel__kva small { font-size: .3em; margin-left: .15em; color: var(--rojo); }
.panel__lectura dl { display: flex; gap: 22px; text-align: right; }
.panel__lectura dt { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--gris); font-weight: 600; }
.panel__lectura dd { font-family: var(--display); font-weight: 600; font-size: 21px; white-space: nowrap; }
.panel__pregunta { margin: 16px 2px 10px; font-weight: 600; font-size: 16px; color: #cfcfd5; }
.panel__teclas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.panel__teclas button { background: #1c1c20; border: 1px solid #2e2e34; border-radius: 5px; color: var(--blanco); min-height: 52px; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background .15s, border-color .15s; }
.panel__teclas button small { font-family: var(--texto-f); font-size: 11px; font-weight: 600; color: #8b8b94; }
.panel__teclas button:hover { border-color: #55555c; }
.panel__teclas button[aria-checked="true"] { background: var(--rojo); border-color: var(--rojo); }
.panel__teclas button[aria-checked="true"] small { color: #ffd0d4; }
.panel__cotizar { width: 100%; margin-top: 12px; }
.panel__asesoria { display: block; margin: 10px auto 2px; color: #a9a9b1; text-decoration-color: #3a3a40; }
.panel__asesoria:hover { color: var(--blanco); }

/* Arranque: mientras la planta arranca, el texto espera en penumbra; se enciende cuando la tensión se asienta.
   Solo si el script corre (sin script, todo se ve desde el principio). */
.hero.arrancando .hero__texto { opacity: .12; }
.hero .hero__texto { transition: opacity .9s var(--suave-curva); }

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; min-height: 0; padding: 32px 0 48px; }
  .hero h1 { margin-bottom: 18px; }
  .panel__pantalla { height: 210px; }
}
@media (max-width: 420px) {
  .panel { padding: 12px 10px 10px; }
  .panel__teclas button { font-size: 20px; min-height: 48px; }
  .panel__lectura dl { gap: 14px; }
  .panel__lectura dd { font-size: 18px; }
}

/* ---------- Potencia y cotización ---------- */
.potencia { background: var(--cal); padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 104px); }
.encabezado { max-width: 760px; margin-bottom: 40px; }
.encabezado h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 5vw, 72px); line-height: .95; margin: 8px 0 16px; }
.encabezado p:not(.cejilla) { color: var(--suave); font-size: 19px; max-width: 38em; }
.encabezado--claro h2 { color: var(--blanco); }
.encabezado--claro p:not(.cejilla) { color: #b6b6be; }

.cotizador { background: var(--blanco); border-radius: 6px; padding: clamp(18px, 3.5vw, 40px); box-shadow: 0 1px 0 var(--cal-2), 0 20px 50px -30px rgb(40 30 10 / .35); }
.pasos { list-style: none; margin: 0 0 30px; padding: 0; display: flex; gap: 8px 28px; flex-wrap: wrap; font-weight: 600; font-size: 16px; color: #9a9aa2; }
.pasos li { display: flex; align-items: center; gap: 10px; }
.pasos b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; font-size: 14px; }
.pasos li.activo { color: var(--texto); }
.pasos li.activo b { background: var(--texto); border-color: var(--texto); color: var(--blanco); }
.pasos li.hecho { color: var(--rojo); }
.pasos li.hecho b { background: var(--rojo); border-color: var(--rojo); color: var(--blanco); }
.paso { border: 0; margin: 0; padding: 0; min-width: 0; }
.paso legend { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 22px; padding: 0; }

.selector { display: grid; grid-template-columns: repeat(10, 1fr); border: 2px solid var(--texto); border-radius: 4px; overflow: hidden; }
.selector button { background: var(--blanco); border: 0; border-left: 1px solid var(--cal-2); min-height: 64px; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background .15s, color .15s; }
.selector button:first-child { border-left: 0; }
.selector button small { font-family: var(--texto-f); font-weight: 600; font-size: 12px; color: var(--gris); }
.selector button:hover { background: var(--cal); }
.selector button[aria-checked="true"] { background: var(--texto); color: var(--blanco); }
.selector button[aria-checked="true"] small { color: #c9c9cf; }

/* La escala muestra la potencia a su tamaño real (300 kVA llena la pista); la punta es roja. */
.escala { margin: 16px 0 34px; }
.escala__pista { height: 14px; background: var(--cal); border-radius: 2px; overflow: hidden; }
.escala__carga { display: block; height: 100%; width: calc(var(--p, .25) * 100%); background: var(--texto); box-shadow: inset -6px 0 0 var(--rojo); transition: width .7s cubic-bezier(.3, 1.25, .4, 1); }
.escala__marcas { display: flex; justify-content: space-between; font-size: 13px; color: var(--gris); margin-top: 6px; font-weight: 600; }

.placa { position: relative; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr); gap: 8px 40px; background: var(--carcasa); color: var(--blanco); border-radius: 6px; padding: 30px 34px; }
.placa__rotulo { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--gris); font-weight: 600; }
.placa__kva { font-family: var(--display); font-weight: 800; font-size: clamp(88px, 11vw, 150px); line-height: .85; margin-top: 8px; }
.placa__kva small { font-size: .28em; margin-left: .12em; color: var(--rojo); }
.placa__datos { display: grid; grid-template-columns: 1fr; align-content: end; }
.placa__datos div { padding: 12px 0; border-bottom: 1px solid var(--linea); display: flex; justify-content: space-between; gap: 12px; }
.placa__datos dt { color: #a7a7af; font-size: 16px; }
.placa__datos dd { font-weight: 700; font-size: 18px; text-align: right; }
.placa__comunes { grid-column: 1 / -1; margin-top: 14px; }
.placa__comunes summary { cursor: pointer; font-weight: 600; color: #cfcfd5; font-size: 16px; width: fit-content; }
.placa__comunes summary:hover { color: var(--blanco); }
.placa__comunes ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; }
.placa__comunes b { color: var(--gris); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; }
.placa.cambio .placa__kva { animation: asentar .45s var(--suave-curva); }
@keyframes asentar { from { opacity: .35; transform: translateY(6px); } }

.paso__pie { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 28px; }
.opciones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.opcion { position: relative; display: block; }
.opcion input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.opcion span { display: flex; align-items: center; min-height: 76px; padding: 14px 16px; border: 2px solid var(--cal-2); border-radius: 4px; font-weight: 600; font-size: 17px; line-height: 1.25; transition: border-color .15s, background .15s; }
.opcion input:hover + span { border-color: #b9b2a5; }
.opcion input:checked + span { border-color: var(--texto); background: var(--cal); box-shadow: inset 4px 0 0 var(--rojo); }
.opcion input:focus-visible + span { outline: 3px solid #ffb703; outline-offset: 2px; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campo { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--suave); }
.campo--ancho { grid-column: 1 / -1; }
.campo input { font: inherit; font-size: 18px; font-weight: 500; color: var(--texto); background: var(--blanco); border: 2px solid var(--cal-2); border-radius: 4px; padding: 12px 14px; min-height: 54px; }
.campo input:focus { outline: none; border-color: var(--texto); }
.vista { margin-top: 22px; border-left: 4px solid var(--wa); background: #f1f8f3; padding: 14px 18px; border-radius: 0 4px 4px 0; }
.vista__titulo { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #2b7a4b; font-weight: 700; margin-bottom: 6px; }
.vista__texto { white-space: pre-line; font-size: 16px; }
.cotizador__aviso { margin-top: 16px; padding: 12px 16px; background: #fdecee; border-left: 4px solid var(--rojo); font-weight: 600; }

.fichas { margin-top: 22px; }
.fichas summary { cursor: pointer; font-weight: 700; width: fit-content; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rojo); }
.fichas__marco { overflow-x: auto; margin-top: 12px; background: var(--blanco); border-radius: 6px; }
.fichas table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 16px; }
.fichas th, .fichas td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--cal-2); }
.fichas th:first-child, .fichas td:first-child { text-align: left; }
.fichas thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--suave); font-weight: 600; }
.fichas tbody th { font-family: var(--display); font-weight: 800; font-size: 22px; }
.fichas__nota { font-size: 15px; color: var(--suave); margin-top: 10px; }

@media (max-width: 900px) {
  .selector { grid-template-columns: repeat(5, 1fr); }
  .selector button:nth-child(6) { border-left: 0; }
  .selector button:nth-child(n+6) { border-top: 1px solid var(--cal-2); }
  .placa { grid-template-columns: 1fr; padding: 24px; }
  .placa__datos { grid-template-columns: 1fr; }
  .opciones { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  /* Pasos: en móvil solo el activo lleva nombre, para que quepan en una línea. */
  .pasos { gap: 10px; flex-wrap: nowrap; }
  .pasos li:not(.activo) { font-size: 0; gap: 0; }
  .pasos li:not(.activo) b { font-size: 14px; }
  .selector button { min-height: 58px; font-size: 24px; }
  .opciones, .campos { grid-template-columns: 1fr; }
  .opcion span { min-height: 58px; }
  .paso__pie { flex-direction: column-reverse; align-items: stretch; }
  .paso__pie .btn { width: 100%; }
  .paso__pie .enlace-seco { text-align: center; }
}

/* ---------- Servicio: la energía recorre el proceso ---------- */
.servicio { background: var(--carcasa); color: var(--blanco); padding: clamp(72px, 9vw, 128px) 0; }
.proceso { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; --avance: 0; }
/* El cable: pista gris y carga roja que avanza con el scroll. */
.proceso::before, .proceso::after { content: ""; position: absolute; top: 9px; left: 10px; height: 2px; }
.proceso::before { right: 0; background: var(--linea); }
.proceso::after { width: calc((100% - 10px) * var(--avance)); background: var(--rojo); box-shadow: 0 0 12px rgb(214 24 39 / .7); }
.proceso li { position: relative; padding-top: 44px; }
.proceso__nodo { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--carcasa); border: 2px solid #4a4a52; z-index: 1; transition: background .4s, border-color .4s, box-shadow .4s; }
.proceso li.con-energia .proceso__nodo { background: var(--rojo); border-color: var(--rojo); box-shadow: 0 0 0 6px rgb(214 24 39 / .18); }
.proceso__n { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--rojo); letter-spacing: .06em; margin-bottom: 6px; }
.proceso h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 32px); margin-bottom: 12px; transition: color .4s; color: #8d8d95; }
.proceso li.con-energia h3 { color: var(--blanco); }
.proceso p { color: #a9a9b1; font-size: 17px; }
@media (max-width: 860px) {
  .proceso { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }
  .proceso::before, .proceso::after { top: 10px; left: 9px; width: 2px; right: auto; }
  .proceso::before { bottom: 0; height: auto; }
  .proceso::after { height: calc((100% - 10px) * var(--avance)); }
  .proceso li { padding: 0 0 0 46px; }
}

/* ---------- Bitácora: lista de trabajos con fotos pequeñas ---------- */
.calle { background: var(--cal); padding: clamp(64px, 8vw, 104px) 0; }
.calle__cabeza { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--texto); padding-bottom: 14px; }
.calle__cabeza h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3vw, 42px); line-height: 1; }
.calle__cabeza p { color: var(--suave); font-weight: 600; }
.bitacora { list-style: none; margin: 0; padding: 0; }
.bitacora li { display: grid; grid-template-columns: 52px 300px minmax(0, 1fr) 240px; grid-template-areas: "n img que donde"; align-items: center; gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--cal-2); }
.bitacora__n { grid-area: n; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--rojo); }
/* 300 px de ancho en pantalla: el original mide ~320 px; así nunca se agranda más del doble. */
.bitacora img { grid-area: img; width: 300px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.bitacora__que { grid-area: que; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 30px); line-height: 1; transition: color .2s; }
.bitacora__donde { grid-area: donde; text-align: right; color: var(--suave); font-weight: 600; }
.bitacora li:hover .bitacora__que { color: var(--rojo); }
@media (max-width: 900px) { .bitacora li { grid-template-columns: 40px 200px minmax(0, 1fr); grid-template-areas: "n img que" "n img donde"; row-gap: 6px; } .bitacora img { width: 200px; } .bitacora__donde { text-align: left; align-self: start; } .bitacora__que { align-self: end; } }
@media (max-width: 560px) { .bitacora li { grid-template-columns: 128px minmax(0, 1fr); grid-template-areas: "img que" "img donde"; gap: 4px 16px; padding: 14px 0; } .bitacora__n { display: none; } .bitacora img { width: 128px; aspect-ratio: 4 / 3; } .bitacora__que { font-size: 19px; } .bitacora__donde { font-size: 15px; } }

/* ---------- Nosotros: el manifiesto a sangre ---------- */
.nosotros { background: var(--rojo); color: var(--blanco); padding: clamp(88px, 12vw, 168px) 0 clamp(64px, 8vw, 104px); }
.nosotros .cejilla { color: #ffd0d4; }
.nosotros__frase { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(44px, 7vw, 112px); line-height: .9; max-width: 13em; margin: 20px 0 clamp(56px, 7vw, 96px); }
.hechos { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgb(255 255 255 / .35); }
.hechos > div { padding: 22px 28px 0 0; }
.hechos > div + div { padding-left: 28px; border-left: 1px solid rgb(255 255 255 / .35); }
.hechos dt { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; margin-bottom: 8px; }
.hechos dd { color: #ffe1e4; font-size: 17px; }
.nosotros__pilares { margin-top: clamp(48px, 6vw, 72px); font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .22em; font-size: 15px; color: #ffd0d4; }
@media (max-width: 760px) { .hechos { grid-template-columns: 1fr; } .hechos > div, .hechos > div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid rgb(255 255 255 / .35); } }

/* ---------- Preguntas frecuentes ---------- */
.faq { background: var(--cal); padding: clamp(72px, 9vw, 120px) 0; }
.faq__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__cabeza { position: sticky; top: 100px; }
.faq__cabeza h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(38px, 4.4vw, 64px); line-height: .95; margin: 8px 0 18px; }
.faq__cabeza p:not(.cejilla) { color: var(--suave); font-size: 19px; margin-bottom: 26px; }
.faq__lista { border-top: 2px solid var(--texto); }
.faq__item { border-bottom: 1px solid var(--cal-2); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1; color: var(--rojo); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2vw, 28px); line-height: 1.05; transition: color .2s; }
.faq__item summary:hover h3 { color: var(--rojo); }
.faq__item p { color: var(--suave); padding: 0 48px 24px 0; max-width: 40em; }
@media (max-width: 860px) { .faq__in { grid-template-columns: 1fr; } .faq__cabeza { position: static; } .faq__item p { padding-right: 0; } }

/* ---------- Contacto ---------- */
.contacto { background: var(--carcasa); color: var(--blanco); padding: clamp(72px, 9vw, 120px) 0; }
.contacto__in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }
.contacto__principal { position: relative; }
.contacto__numero { display: block; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 136px); line-height: .9; margin: 14px 0 18px; transition: color .2s; white-space: nowrap; }
.contacto__numero:hover { color: var(--rojo); }
.contacto__via { display: flex; align-items: center; gap: 8px; font-family: var(--texto-f); font-size: 17px; font-weight: 600; color: #4ad07f; margin-bottom: 6px; }
.contacto__via .ico { width: 22px; height: 22px; }
.contacto__bajada { color: #b6b6be; font-size: 19px; }
.contacto__datos > div { padding: 14px 0; border-bottom: 1px solid var(--linea); }
.contacto__datos dt { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--gris); font-weight: 600; }
.contacto__datos dd { font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contacto__in { grid-template-columns: 1fr; } .contacto__numero { white-space: normal; } }

/* ---------- Pie ---------- */
.pie { background: var(--carcasa); color: #8f8f98; border-top: 1px solid var(--linea); padding: 32px 0 100px; font-size: 15px; }
.pie__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.pie img { width: 150px; }
.pie__legal { margin-left: auto; }
@media (max-width: 700px) { .pie__legal { margin-left: 0; } }

/* ---------- WhatsApp flotante ---------- */
.flotante { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: var(--blanco); box-shadow: 0 8px 24px rgb(0 0 0 / .3); transition: transform .2s; }
.flotante:hover { transform: scale(1.06); }
.flotante svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.unidad { text-transform: none; } /* «kVA» se escribe así aunque el título vaya en mayúsculas */

/* Móvil: el panel (la acción) sube justo después del título; la bajada y el WhatsApp directo van debajo. */
@media (max-width: 900px) {
  .hero__texto { display: contents; }
  .hero__in { gap: 0; }
  .hero__in > .panel { order: 3; margin: 6px 0 26px; }
  .hero h1 { order: 2; }
  .hero__bajada { order: 4; }
  .hero__wa { order: 5; margin-top: 18px; }
  .hero.arrancando h1, .hero.arrancando .hero__bajada, .hero.arrancando .hero__wa { opacity: .12; }
  .hero h1, .hero__bajada, .hero__wa { transition: opacity .9s var(--suave-curva); }
}
@media (max-width: 480px) { .panel__lectura dl > div + div { display: none; } }
