/* Vatia · sitio de venta
   Base: «Producto en mano» (teléfonos en CSS, circuito entre secciones, interruptor día/noche).
   Encendido: la acometida recorre la pantalla, llega al nodo y enciende el titular; el pulso vuelve cada pocos segundos.
   Líneas: trazos finísimos con pulsos ámbar y azul eléctrico que corren por los cables.
   Una sola familia (Manrope), sin cursivas. */

/* Respaldo métrico de Manrope: mientras carga la fuente, Arial ajustado ocupa el mismo espacio y el titular no salta (CLS). */
@font-face { font-family: "Manrope-respaldo"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); font-weight: 100 599; size-adjust: 103.2%; ascent-override: 103.3%; descent-override: 29.1%; line-gap-override: 0%; }
@font-face { font-family: "Manrope-respaldo"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); font-weight: 600 900; size-adjust: 102.2%; ascent-override: 104.3%; descent-override: 29.4%; line-gap-override: 0%; }

:root {
  --fondo: #f5efe4;
  --fondo-2: #ece3d3;
  --superficie: #fbf8f2;
  --tinta: #1f1b16;
  --tinta-2: #5a5146;
  --tinta-3: #6f655a;
  --apagado: #d6cbb8;
  --linea: #dcd1bf;
  --linea-2: #cbbfa9;
  --traza: rgba(90, 70, 40, .16);
  --corriente: #e0801f;
  --corriente-txt: #9c4f0a;
  --brillo: rgba(255, 170, 70, .45);
  --azul: #2f7fe0;
  --azul-txt: #1d5fb0;
  --azul-brillo: rgba(47, 127, 224, .35);
  --ok: #3f7a52;
  --alerta: #b8480e;
  --btn-fondo: #1f1b16;
  --btn-txt: #f7f1e6;
  --pantalla: #fbf8f2;
  --pantalla-2: #f1eadd;
  --sombra: 0 1px 2px rgba(60, 40, 10, .06), 0 12px 32px -12px rgba(60, 40, 10, .18);
  --radio: 20px;
  --maxw: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #12110f; --fondo-2: #1a1815; --superficie: #1f1c18;
    --tinta: #f3ece0; --tinta-2: #b9ae9b; --tinta-3: #a09582; --apagado: #3d372f;
    --linea: #342f28; --linea-2: #4a4238; --traza: rgba(150, 175, 255, .12);
    --corriente: #ffa940; --corriente-txt: #ffb963; --brillo: rgba(255, 169, 64, .38);
    --azul: #5cb8ff; --azul-txt: #8fd0ff; --azul-brillo: rgba(92, 184, 255, .4);
    --ok: #7cc493; --alerta: #ff9a5c;
    --btn-fondo: #ffa940; --btn-txt: #1a130a;
    --pantalla: #1b1916; --pantalla-2: #26221d;
    --sombra: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -14px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fondo: #12110f; --fondo-2: #1a1815; --superficie: #1f1c18;
  --tinta: #f3ece0; --tinta-2: #b9ae9b; --tinta-3: #a09582; --apagado: #3d372f;
  --linea: #342f28; --linea-2: #4a4238; --traza: rgba(150, 175, 255, .12);
  --corriente: #ffa940; --corriente-txt: #ffb963; --brillo: rgba(255, 169, 64, .38);
  --azul: #5cb8ff; --azul-txt: #8fd0ff; --azul-brillo: rgba(92, 184, 255, .4);
  --ok: #7cc493; --alerta: #ff9a5c;
  --btn-fondo: #ffa940; --btn-txt: #1a130a;
  --pantalla: #1b1916; --pantalla-2: #26221d;
  --sombra: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* Día / noche: qué se ve en cada modo */
.solo-noche { display: none !important; }
:root[data-theme="dark"] .solo-dia { display: none !important; }
:root[data-theme="dark"] .solo-noche { display: revert !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .solo-dia { display: none !important; }
  :root:not([data-theme="light"]) .solo-noche { display: revert !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: "Manrope", "Manrope-respaldo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-synthesis: none;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
b, strong { font-weight: 800; }
i, em, cite, dfn, address, var { font-style: normal; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--corriente); outline-offset: 3px; border-radius: 6px; }
p, li, summary { text-wrap: pretty; }
.nw { white-space: nowrap; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--btn-fondo); color: var(--btn-txt); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.saltar:focus { top: 12px; }

.envase { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.envase-angosto { max-width: 760px; }

/* ——— Íconos lineales finos, con un punto de luz ——— */
.ico { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--corriente-txt); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico .luz { fill: var(--azul); stroke: none; filter: drop-shadow(0 0 3px var(--azul-brillo)); }

/* ——— Botones ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--btn-fondo); color: var(--btn-txt);
  font-weight: 700; font-size: 16px; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 0 var(--brillo);
  transition: box-shadow .35s ease, transform .2s ease, background-color .5s ease;
}
/* Destello que cruza el botón principal, como corriente por un conductor */
.btn-luz::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 220, 160, .35) 50%, transparent 70%);
  transform: translateX(-120%); animation: destello 5s ease-in-out 2.4s infinite;
}
@keyframes destello { 0%, 76% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn:hover { box-shadow: 0 0 0 6px var(--brillo); }
.btn:active { transform: translateY(1px); }
.btn-chico { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-ancho { width: 100%; }
.btn-contorno { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--tinta); }
.btn-contorno:hover { box-shadow: inset 0 0 0 1.5px var(--tinta), 0 0 0 6px var(--brillo); }
.enlace-flecha { font-weight: 700; text-decoration: none; color: var(--tinta); padding: 12px 4px; white-space: nowrap; }
.enlace-flecha span { display: inline-block; transition: transform .25s ease; color: var(--corriente-txt); }
.enlace-flecha:hover span { transform: translateX(4px); }

/* ——— Barra superior ——— */
.barra {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--fondo) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--linea) 70%, transparent);
  transition: background-color .5s ease;
}
.barra-in { max-width: var(--maxw); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--tinta); }
.logo img { width: 28px; height: 28px; border-radius: 8px; }
.nav { display: none; }
.interruptor { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 2px; cursor: pointer; }
.interruptor-riel {
  width: 46px; height: 28px; border-radius: 999px; position: relative;
  background: var(--fondo-2); box-shadow: inset 0 0 0 1px var(--linea-2);
  transition: background-color .4s ease;
}
.interruptor-perilla {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--superficie); box-shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 0 0 1px var(--linea-2);
  transition: transform .35s cubic-bezier(.3,1.4,.5,1), background-color .4s ease, box-shadow .4s ease;
}
.interruptor[aria-checked="true"] .interruptor-riel { background: #2a241c; box-shadow: inset 0 0 0 1px #4a4238; }
.interruptor[aria-checked="true"] .interruptor-perilla { transform: translateX(18px); background: #ffa940; box-shadow: 0 0 12px 2px rgba(255,169,64,.7); }
.interruptor-txt { display: none; font-size: 14px; font-weight: 600; color: var(--tinta-2); min-width: 44px; text-align: left; }

/* ——— Héroe ——— */
.heroe { padding: 40px 0 24px; position: relative; overflow: hidden; isolation: isolate; }
.heroe-in { display: grid; gap: 36px; position: relative; }

/* Red de fondo: trazos finísimos con pulsos ámbar y azul */
.red { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.red path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.red-base path { stroke: var(--traza); stroke-width: 1; }
.red-pulso path { stroke-width: 1.6; stroke-dasharray: 5 95; stroke-dashoffset: 100; animation: fluir 6s linear infinite; }
.red-pulso .az { stroke: var(--azul); }
.red-pulso .am { stroke: var(--corriente); }
.red-pulso path:nth-child(2) { animation-duration: 7.5s; animation-delay: -2s; }
.red-pulso path:nth-child(3) { animation-duration: 6.8s; animation-delay: -4.4s; }
.red-pulso path:nth-child(4) { animation-duration: 8.2s; animation-delay: -1.1s; }
.red-nodo circle { fill: var(--fondo); stroke: var(--traza); stroke-width: 1; }
@keyframes fluir { to { stroke-dashoffset: 0; } }

/* La acometida: el cable llega desde el borde, toca el nodo y enciende el titular */
.sobre { position: relative; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--tinta-2); margin-bottom: 18px; }
.toma { position: relative; flex: none; width: 34px; height: 1.5px; }
.acometida {
  position: absolute; right: 0; top: 0; width: 100vw; height: 1.5px;
  background: var(--linea-2); overflow: hidden;
}
.acometida::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--corriente) 94%);
  transform-origin: left; transform: scaleX(1);
  animation: tender .9s cubic-bezier(.6, 0, .2, 1) .1s backwards;
}
.chispa {
  position: absolute; top: -1px; left: 0; width: 140px; height: 3.5px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #fff3d6 60%, var(--corriente));
  box-shadow: 0 0 10px var(--corriente);
  transform: translateX(-160px); opacity: 0;
  animation: recorrer 5s linear 2s infinite;
}
.chispa-azul { background: linear-gradient(90deg, transparent, #dff1ff 60%, var(--azul)); box-shadow: 0 0 10px var(--azul); animation-delay: 4.5s; animation-duration: 5s; }
.nodo {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--corriente); box-shadow: 0 0 0 1px var(--brillo), 0 0 14px var(--brillo);
  animation: nodo-on .5s ease .95s backwards, nodo-toque 5s linear 2s infinite;
}
.titular {
  font-size: clamp(40px, 10.4vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -.04em; max-width: 12ch; text-wrap: balance;
  color: var(--tinta);
  animation: encender 1s steps(1, end) 1s backwards, recarga 5s linear 2s infinite;
}
@keyframes tender { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes recorrer {
  0% { transform: translateX(-160px); opacity: 0; }
  6% { opacity: 1; }
  96% { opacity: 1; }
  100% { transform: translateX(100vw); opacity: 0; }
}
@keyframes nodo-on {
  0% { background: var(--apagado); box-shadow: none; transform: scale(1); }
  40% { background: #fff3d6; box-shadow: 0 0 0 6px var(--brillo), 0 0 28px var(--corriente); transform: scale(1.35); }
  100% { background: var(--corriente); transform: scale(1); }
}
/* El pulso vuelve: el nodo destella al recibirlo */
@keyframes nodo-toque {
  0%, 93% { transform: scale(1); }
  97% { transform: scale(1.4); background: #fff3d6; box-shadow: 0 0 0 5px var(--brillo), 0 0 24px var(--corriente); }
  100% { transform: scale(1); }
}
/* Parpadeo corto de filamento: prende, duda, queda firme */
@keyframes encender {
  0% { color: var(--apagado); }
  8% { color: var(--tinta); text-shadow: 0 0 24px var(--brillo); }
  14% { color: var(--apagado); text-shadow: none; }
  22% { color: var(--tinta); }
  28% { color: var(--tinta-3); }
  36%, 100% { color: var(--tinta); }
}
@keyframes recarga {
  0%, 94% { text-shadow: 0 0 0 transparent; }
  97% { text-shadow: 0 0 22px var(--brillo); }
  100% { text-shadow: 0 0 0 transparent; }
}

.entrada { font-size: 18px; line-height: 1.5; color: var(--tinta-2); margin-top: 16px; max-width: 38ch; text-wrap: pretty; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 26px; }
.acciones-centro { justify-content: center; }
.nota { font-size: 13px; color: var(--tinta-3); margin-top: 16px; font-weight: 500; }
.nota .nw { display: inline-block; }

.heroe-vis { position: relative; display: flex; flex-direction: column; align-items: center; }
.heroe-vis::before {
  content: ""; position: absolute; left: 50%; top: 46%; width: 320px; height: 320px; translate: -50% -50%;
  background: radial-gradient(circle, var(--brillo), transparent 68%); filter: blur(10px); opacity: .7; pointer-events: none;
}
.trazas { position: absolute; inset: 0 -16px 28px; width: calc(100% + 32px); height: calc(100% - 28px); pointer-events: none; }
.trazas path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.traza-base path { stroke: var(--linea-2); stroke-width: 1; }
.traza-pulso path { stroke-width: 2; stroke-dasharray: 7 93; stroke-dashoffset: 100; animation: fluir 3.2s linear infinite; }
.traza-pulso .am { stroke: var(--corriente); filter: drop-shadow(0 0 3px var(--corriente)); }
.traza-pulso .az { stroke: var(--azul); filter: drop-shadow(0 0 3px var(--azul)); }
.traza-pulso path:nth-child(2) { animation-duration: 3.8s; animation-delay: -1.2s; }
.traza-pulso path:nth-child(3) { animation-duration: 3.5s; animation-delay: -2.1s; }
.traza-pulso path:nth-child(4) { animation-duration: 4.1s; animation-delay: -.6s; }
.traza-nodo circle { fill: var(--corriente); }
.traza-nodo circle.az { fill: var(--azul); }

/* ——— Teléfono hecho en CSS ——— */
.tel {
  position: relative; z-index: 1;
  width: 264px; aspect-ratio: 264 / 548; padding: 9px; border-radius: 44px;
  background: linear-gradient(145deg, #2b2620, #0f0d0b);
  box-shadow: inset 0 0 0 1.5px #3b342c, 0 30px 60px -24px rgba(40, 25, 5, .45), 0 0 0 1px rgba(0,0,0,.05);
}
.tel::before { content: ""; position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 78px; height: 22px; border-radius: 999px; background: #0b0a08; z-index: 3; }
.tel-pantalla { height: 100%; border-radius: 36px; overflow: hidden; background: var(--pantalla); display: flex; flex-direction: column; transition: background-color .5s ease; }
.tel-estado { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 0; height: 44px; font-size: 13px; font-weight: 700; flex: none; }
.tel-iconos { display: inline-flex; gap: 4px; align-items: flex-end; }
.tel-iconos i { display: block; width: 4px; background: currentColor; border-radius: 1px; }
.tel-iconos i:nth-child(1) { height: 6px; } .tel-iconos i:nth-child(2) { height: 9px; } .tel-iconos i:nth-child(3) { height: 12px; }
.tel-escena { height: 132px; margin: 4px 10px 0; border-radius: 18px; overflow: hidden; flex: none; background: var(--pantalla-2); }
.tel-escena img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.tel-cuerpo { padding: 14px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.tel-etq { font-size: 12px; font-weight: 700; color: var(--tinta-3); letter-spacing: .02em; }
.tel-cifra { font-size: 48px; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; margin-top: 2px; }
.tel-sub { font-size: 12px; color: var(--tinta-3); font-weight: 600; margin-bottom: 12px; }
.tel-dias { margin-top: 14px; }
.mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 42px; margin-top: 8px; }
.mini span { height: calc(var(--h) * 1%); border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--tinta) 14%, transparent); }
.mini span.hoy { background: var(--corriente); box-shadow: 0 0 10px -1px var(--brillo); }
.tel-tarjeta { margin-top: auto; padding: 11px 14px; border-radius: 16px; background: color-mix(in srgb, var(--corriente) 14%, var(--pantalla)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--corriente) 30%, transparent); }
.tel-tarjeta p { font-size: 16px; font-weight: 700; }
.tel-tarjeta b { font-size: 22px; letter-spacing: -.03em; }
.tel-mini { font-size: 12px !important; font-weight: 600 !important; color: var(--tinta-2); line-height: 1.35; }

.bloques { position: relative; display: grid; grid-template-columns: 30fr 30fr 40fr; gap: 3px; height: 8px; }
.bloques .b { border-radius: 99px; }
.b1 { background: color-mix(in srgb, var(--ok) 70%, var(--pantalla)); }
.b2 { background: color-mix(in srgb, var(--corriente) 75%, var(--pantalla)); }
.b3 { background: color-mix(in srgb, var(--alerta) 35%, var(--pantalla)); }
.marcador { position: absolute; top: 50%; left: var(--pos); width: 16px; height: 16px; translate: -50% -50%; border-radius: 50%; background: var(--pantalla); box-shadow: 0 0 0 3px var(--corriente), 0 0 10px 2px var(--brillo); }
.bloques-etq { display: grid; grid-template-columns: 30fr 30fr 40fr; gap: 3px; margin-top: 7px; font-size: 10px; font-weight: 600; color: var(--tinta-3); }

.rotulo { font-size: 12px; font-weight: 600; color: var(--tinta-3); margin-top: 12px; letter-spacing: .02em; text-align: center; }

/* ——— Secciones ——— */
.seccion { padding: 56px 0; position: relative; }
.seccion-tono { background: var(--fondo-2); transition: background-color .5s ease; }
.seccion-circuito { padding-top: 28px; padding-bottom: 8px; }
h2 { font-size: clamp(30px, 7.4vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; }
.paso-etq { font-size: 13px; font-weight: 700; color: var(--corriente-txt); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; letter-spacing: .02em; }
.paso-etq::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--corriente); box-shadow: 0 0 8px var(--brillo); }
.cabeza { margin-bottom: 28px; }
.cabeza-centro { text-align: center; }
.cabeza-centro .entrada { margin-left: auto; margin-right: auto; max-width: 46ch; }
.cabeza-centro .paso-etq { justify-content: center; }
.dos { display: grid; gap: 36px; align-items: center; }
.texto { min-width: 0; }

/* Cables entre secciones: la corriente baja al siguiente punto (ámbar o azul) */
.cable { --baja: 60px; position: relative; width: 1.5px; height: 64px; margin: 0 auto; background: var(--linea-2); border-radius: 2px; }
.cable::before { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; translate: -50% 0; border-radius: 50%; background: var(--fondo); box-shadow: inset 0 0 0 2px var(--corriente); }
.cable::after { content: ""; position: absolute; left: 50%; top: 0; width: 3px; height: 18px; translate: -50% 0; will-change: transform; border-radius: 4px; background: linear-gradient(transparent, var(--corriente)); box-shadow: 0 0 10px var(--corriente); animation: bajar 2.2s cubic-bezier(.5,0,.6,1) infinite; }
.cable-azul::before { box-shadow: inset 0 0 0 2px var(--azul); }
.cable-azul::after { background: linear-gradient(transparent, var(--azul)); box-shadow: 0 0 10px var(--azul); animation-duration: 2.6s; }
@keyframes bajar { 0% { transform: translateY(-18px); opacity: 0; } 20% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(var(--baja)); opacity: 0; } }

/* Circuito de beneficios */
.circuito { position: relative; display: grid; gap: 12px; padding-left: 30px; }
.circuito::before { content: ""; position: absolute; left: 9px; top: 26px; bottom: 26px; width: 1.5px; background: var(--linea-2); border-radius: 2px; }
.circuito::after { content: ""; position: absolute; left: 7px; top: 20px; bottom: 26px; width: 5px; border-radius: 6px; background: linear-gradient(transparent, var(--azul), transparent) no-repeat 0 0 / 100% 34px; filter: drop-shadow(0 0 5px var(--azul)); animation: recorrer-v 4.5s ease-in-out infinite; }
@keyframes recorrer-v { 0% { background-position: 0 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { background-position: 0 100%; opacity: 0; } }
.circuito li { position: relative; }
.circuito li::before { content: ""; position: absolute; left: -26px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--fondo); box-shadow: inset 0 0 0 2px var(--corriente); z-index: 1; transition: background-color .5s ease; }
.circuito a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; align-content: start; column-gap: 14px; row-gap: 2px; align-items: start; height: 100%; padding: 18px; border-radius: var(--radio); background: var(--superficie); box-shadow: var(--sombra); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, background-color .5s ease; }
.circuito a:hover { transform: translateY(-2px); box-shadow: var(--sombra), 0 0 0 1.5px var(--corriente); }
.circuito .ico { grid-row: span 2; margin-top: 1px; }
.circuito p { font-size: 15px; color: var(--tinta-2); line-height: 1.45; }

/* Medidor */
.medidor-caja { display: flex; flex-direction: column; align-items: center; }
.medidor {
  width: 100%; max-width: 420px; padding: 24px 20px 20px; border-radius: 28px; position: relative;
  background: linear-gradient(160deg, #2b2620, #16130f); color: #f3ece0;
  box-shadow: inset 0 0 0 1.5px #3d352b, 0 24px 50px -24px rgba(40, 25, 5, .5);
  text-align: center;
}
.medidor-etq { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b9ae9b; }
.odometro { display: inline-flex; gap: 5px; margin-top: 14px; padding: 8px; border-radius: 14px; background: #0c0b09; box-shadow: inset 0 2px 8px rgba(0,0,0,.6); }
.dig { --h: 52px; width: 38px; height: var(--h); overflow: hidden; border-radius: 7px; background: linear-gradient(#1c1915, #2a251f 50%, #1c1915); position: relative; }
.dig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.45), transparent 30%, transparent 70%, rgba(0,0,0,.45)); pointer-events: none; }
.rollo { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.5,0,.3,1); transform: translateY(calc(var(--d, 0) * var(--h) * -1)); }
.rollo span { height: var(--h); line-height: var(--h); font-size: 34px; font-weight: 700; color: #f3ece0; letter-spacing: 0; }
.dig-ultimo { background: linear-gradient(#b85e10, #e0801f 50%, #b85e10); }
.dig-ultimo .rollo span { color: #1a130a; }
.medidor-uni { font-size: 13px; font-weight: 700; color: #b9ae9b; margin-top: 8px; }
.medidor-giro { margin: 14px auto 0; width: 120px; height: 4px; border-radius: 6px; background: #0c0b09; overflow: hidden; }
.medidor-giro span { display: block; width: 28px; height: 100%; border-radius: 6px; background: #5cb8ff; box-shadow: 0 0 8px #5cb8ff; animation: girar 1.6s linear infinite; }
@keyframes girar { from { transform: translateX(-28px); } to { transform: translateX(120px); } }
.consumo { width: 100%; max-width: 420px; margin-top: 14px; padding: 16px 18px; border-radius: var(--radio); background: var(--superficie); box-shadow: var(--sombra); --pantalla: var(--superficie); transition: background-color .5s ease; }
.consumo-fila { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--tinta-2); }
.consumo-fila b { font-size: 22px; color: var(--tinta); letter-spacing: -.02em; }
.bloques-grande { height: 10px; }
.bloques-grande + .bloques-etq { font-size: 12px; }

.rasgos { display: grid; gap: 18px; margin-top: 28px; }
.rasgos li { display: flex; gap: 14px; align-items: flex-start; }
.rasgos h3 { font-size: 17px; }
.rasgos p { font-size: 15px; color: var(--tinta-2); line-height: 1.45; margin-top: 2px; }
.rasgos-compactos { margin-top: 22px; }

.checks { display: grid; gap: 10px; margin-top: 22px; }
.checks li { position: relative; padding-left: 28px; font-size: 16px; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px; border-left: 2px solid var(--corriente-txt); border-bottom: 2px solid var(--corriente-txt); transform: translateY(-40%) rotate(-45deg) scale(.8); }

/* Teléfono del aviso DAC */
.dac-vis { display: flex; flex-direction: column; align-items: center; position: relative; }
.dac-vis::before { content: ""; position: absolute; left: 50%; top: 40%; width: 300px; height: 300px; translate: -50% -50%; background: radial-gradient(circle, var(--brillo), transparent 68%); filter: blur(12px); opacity: .6; }
.tel-oscuro .tel-pantalla { background: radial-gradient(120% 70% at 50% 0%, #3a2a17, #16120d 60%, #0f0d0a); color: #f3ece0; }
.bloqueo-hora { text-align: center; font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-top: 18px; color: #f3ece0; }
.aviso { margin: 22px 10px 0; padding: 12px 14px; border-radius: 20px; background: rgba(255, 245, 230, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); color: #f3ece0; }
.aviso-cab { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #f3ece0; }
.aviso-cab img { width: 18px; height: 18px; border-radius: 5px; }
.aviso-t { margin-left: auto; color: #b9ae9b; font-weight: 600; }
.aviso-tit { font-size: 15px; font-weight: 800; margin-top: 6px; letter-spacing: -.01em; }
.aviso-txt { font-size: 13px; line-height: 1.4; color: #e4dac8; margin-top: 2px; }
.anillo { --p: 95; width: 150px; height: 150px; border-radius: 50%; margin: 26px auto 0; display: grid; place-items: center; background: conic-gradient(#ffa940 calc(var(--p) * 1%), rgba(255,255,255,.12) 0); box-shadow: 0 0 30px -6px rgba(255,169,64,.55); }
.anillo-in { width: 128px; height: 128px; border-radius: 50%; background: #17130e; display: grid; place-content: center; text-align: center; }
.anillo-in b { font-size: 38px; letter-spacing: -.04em; line-height: 1; color: #f3ece0; }
.anillo-in span { font-size: 12px; font-weight: 600; color: #b9ae9b; margin-top: 4px; }
.aviso-2 { margin-top: auto; margin-bottom: 26px; display: flex; flex-direction: column; gap: 0; }
.aviso-2 .aviso-tit { margin-top: 0; color: #ffb963; }
.bloqueo-pie { text-align: center; font-size: 12px; font-weight: 600; color: #b9ae9b; margin-top: 12px; }

/* ——— Tarifas por zona: cada tarifa es un cable que se ilumina hasta su límite ——— */
.tarifas-marco { border-radius: 24px; background: var(--superficie); box-shadow: var(--sombra); padding: 18px 16px 8px; transition: background-color .5s ease; }
.tarifas-cab { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; color: var(--tinta-3); letter-spacing: .02em; padding: 0 2px 10px; border-bottom: 1px solid var(--linea); }
.tarifas li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; column-gap: 12px; row-gap: 8px; padding: 14px 2px; border-bottom: 1px solid var(--linea); }
.tarifas li:last-child { border-bottom: 0; }
.tarifa-id { display: inline-grid; place-items: center; height: 32px; border-radius: 999px; font-weight: 800; font-size: 15px; color: var(--corriente-txt); box-shadow: inset 0 0 0 1.5px var(--corriente); }
.tarifa-clima { font-size: 14px; font-weight: 600; color: var(--tinta-2); line-height: 1.3; min-width: 0; }
.tarifa-clima b { color: var(--tinta); font-weight: 800; }
.tarifa-lim { font-size: 15px; font-weight: 800; text-align: right; letter-spacing: -.01em; }
.tarifa-lim span { font-weight: 600; color: var(--tinta-3); font-size: 13px; }
.tarifa-hilo { grid-column: 1 / -1; position: relative; height: 1.5px; background: var(--linea-2); border-radius: 2px; }
.tarifa-hilo::before {
  content: ""; position: absolute; left: 0; top: -.5px; height: 2.5px; width: calc(var(--l) * 1%); border-radius: 2px;
  background: linear-gradient(90deg, var(--azul), var(--corriente)); box-shadow: 0 0 8px var(--brillo);
  transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.6,0,.2,1) calc(var(--i) * 110ms);
}
.tarifa-hilo::after {
  content: ""; position: absolute; left: calc(var(--l) * 1%); top: 50%; width: 9px; height: 9px; translate: -50% -50%; border-radius: 50%;
  background: var(--fondo); box-shadow: inset 0 0 0 2px var(--corriente), 0 0 0 0 var(--brillo);
  opacity: 0; transition: opacity .3s ease calc(var(--i) * 110ms + .9s), background-color .3s ease;
}
.tarifas.visto .tarifa-hilo::before { transform: scaleX(1); }
.tarifas.visto .tarifa-hilo::after { opacity: 1; background: var(--corriente); box-shadow: inset 0 0 0 2px var(--corriente), 0 0 10px var(--brillo); }
.tarifas-pie { font-size: 13px; color: var(--tinta-3); font-weight: 500; padding: 12px 2px 10px; }
.zonas { margin-top: 28px; display: grid; gap: 14px; }
.zona-tarjeta { padding: 20px 18px; border-radius: var(--radio); background: var(--superficie); box-shadow: var(--sombra); transition: background-color .5s ease; }
.zona-tarjeta h3 { display: flex; align-items: center; gap: 10px; }
.zona-tarjeta p { font-size: 15px; color: var(--tinta-2); margin-top: 6px; line-height: 1.45; }
.regiones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.regiones li { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--fondo-2); box-shadow: inset 0 0 0 1px var(--linea); white-space: nowrap; transition: box-shadow .3s ease, color .3s ease; }
.regiones li.vivo { color: var(--azul-txt); box-shadow: inset 0 0 0 1.5px var(--azul), 0 0 12px -2px var(--azul-brillo); }

/* Selector con / sin paneles */
.selector { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--fondo-2); box-shadow: inset 0 0 0 1px var(--linea); margin-bottom: 20px; width: 200px; }
.selector button { position: relative; z-index: 1; min-height: 44px; border: 0; background: none; border-radius: 999px; font-weight: 700; font-size: 16px; cursor: pointer; color: var(--tinta-2); transition: color .3s ease; }
.selector button[aria-selected="true"] { color: var(--btn-txt); }
.selector-luz { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--btn-fondo); box-shadow: 0 0 0 0 var(--brillo); transition: transform .4s cubic-bezier(.3,1.3,.5,1), background-color .5s ease; }
.selector[data-sel="si"] .selector-luz { transform: translateX(100%); box-shadow: 0 0 16px 2px var(--brillo); }
.panel[hidden] { display: none; }
.panel { animation: aparecer .45s ease both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Flujo red → medidor → casa (+ paneles) */
.flujo { width: 100%; max-width: 520px; margin: 0 0 28px; padding: 14px 12px 6px; border-radius: var(--radio); background: var(--superficie); box-shadow: var(--sombra); transition: background-color .5s ease; }
.flujo svg { display: block; width: 100%; height: auto; overflow: visible; }
.flujo text { font-family: inherit; font-size: 11px; font-weight: 700; fill: var(--tinta-3); }
.flujo-cable path { fill: none; stroke: var(--linea-2); stroke-width: 1.2; }
.flujo-pulso path { fill: none; stroke: var(--azul); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 14 120; filter: drop-shadow(0 0 4px var(--azul)); animation: recorre-c 2.4s linear infinite; }
.flujo-pulso .sol { stroke: var(--corriente); filter: drop-shadow(0 0 4px var(--corriente)); opacity: 0; transition: opacity .4s; animation-duration: 2s; }
@keyframes recorre-c { from { stroke-dashoffset: 134; } to { stroke-dashoffset: 0; } }
.nodo-f path, .nodo-f rect, .nodo-f circle { fill: none; stroke: var(--tinta-2); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.nodo-f .nodo-f-luz { stroke: var(--corriente); fill: color-mix(in srgb, var(--corriente) 35%, transparent); filter: drop-shadow(0 0 4px var(--corriente)); }
.nodo-f-sol, .flujo-txt-sol, #c-sol { opacity: .25; transition: opacity .4s; }
.nodo-f-sol path { stroke: var(--corriente); }
.flujo[data-paneles="si"] .nodo-f-sol,
.flujo[data-paneles="si"] .flujo-txt-sol,
.flujo[data-paneles="si"] #c-sol,
.flujo[data-paneles="si"] .flujo-pulso .sol { opacity: 1; }
.flujo[data-paneles="si"] .flujo-txt-sol { fill: var(--corriente-txt); }

.historial { padding: 20px 18px 16px; border-radius: 24px; background: var(--superficie); box-shadow: var(--sombra); transition: background-color .5s ease; }
.historial-tit { font-size: 14px; font-weight: 700; color: var(--tinta-2); }
.barras { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 170px; margin-top: 22px; }
.barras span { position: relative; height: calc(var(--h) * 1%); border-radius: 8px 8px 3px 3px; background: color-mix(in srgb, var(--tinta) 14%, transparent); }
.barras span.actual { background: linear-gradient(var(--corriente), color-mix(in srgb, var(--corriente) 55%, transparent)); box-shadow: 0 0 18px -2px var(--brillo); }
.barras i { position: absolute; left: 50%; bottom: calc(100% + 4px); translate: -50% 0; font-size: 11px; font-weight: 700; color: var(--tinta-3); }
.barras span.actual i { color: var(--corriente-txt); }
.barras-etq { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; text-align: center; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--tinta-3); }

.casa { position: relative; border-radius: 26px; }
.casa picture img { width: 100%; border-radius: 26px; box-shadow: var(--sombra); }
.ficha { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: color-mix(in srgb, var(--superficie) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--sombra); font-size: 13px; font-weight: 700; }
.ficha b { color: var(--corriente-txt); }
.ficha-1 { top: 12px; left: 12px; }
.ficha-2 { bottom: 88px; right: 12px; }
.ficha-3 { bottom: 42px; left: 12px; }
.ficha-aviso { color: var(--alerta); }
.punto-vivo { width: 8px; height: 8px; border-radius: 50%; background: var(--corriente); box-shadow: 0 0 0 0 var(--brillo); animation: latido 2.4s ease-out infinite; flex: none; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 var(--brillo); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }

/* Pasos */
.pasos { position: relative; display: grid; gap: 14px; }
.pasos li { position: relative; display: grid; align-content: start; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: start; padding: 18px; border-radius: var(--radio); background: var(--superficie); box-shadow: var(--sombra); transition: background-color .5s ease; }
.pasos .num { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--corriente-txt); box-shadow: inset 0 0 0 2px var(--corriente); }
.pasos p { font-size: 15px; color: var(--tinta-2); }

/* Descargas */
.descargas, .planes { display: grid; gap: 16px; }
.tarjeta { display: flex; flex-direction: column; padding: 24px 20px; border-radius: 24px; background: var(--superficie); box-shadow: var(--sombra); transition: background-color .5s ease, box-shadow .3s ease; }
.dl .ico-g { width: 34px; height: 34px; margin-bottom: 12px; }
.dl h3, .dl .dl-tit { font-size: 22px; line-height: 1.25; letter-spacing: -.015em; }
.dl > p:not(.letra-chica) { color: var(--tinta-2); font-size: 16px; margin: 6px 0 20px; flex: 1; }
.letra-chica { font-size: 13px; color: var(--tinta-3); margin-top: 12px; font-weight: 500; text-align: center; }
.letra-chica a { color: var(--corriente-txt); font-weight: 700; }
.dl.destacada { box-shadow: var(--sombra), 0 0 0 2px var(--corriente), 0 0 28px -6px var(--brillo); order: -1; }
.escritorio-solo { display: none; }
[data-plataforma="escritorio"] .escritorio-solo { display: block; }

/* Planes */
.plan-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.plan-cab h3 { font-size: 18px; }
.insignia { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: var(--corriente-txt); box-shadow: inset 0 0 0 1.5px var(--corriente); white-space: nowrap; }
.precio { margin-top: 14px; font-size: 18px; font-weight: 700; color: var(--tinta-2); }
.precio b { margin-right: 6px; font-size: 52px; letter-spacing: -.045em; color: var(--tinta); line-height: 1; }
.precio-per { font-size: 15px; font-weight: 600; color: var(--tinta-2); margin-top: 4px; }
.plan-nota { text-align: left !important; margin-top: 6px !important; }
.plan .checks { margin: 22px 0 26px; flex: 1; align-content: start; }
.plan .checks li { font-size: 15px; }
.plan-destacado { box-shadow: var(--sombra), 0 0 0 2px var(--corriente), 0 0 32px -8px var(--brillo); }
.franja { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--tinta-2); text-align: center; }
.franja .sep { color: var(--corriente-txt); display: none; }

/* Confianza */
.confianza { display: grid; gap: 12px; }
.confianza li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radio); background: var(--superficie); transition: background-color .5s ease; }
.confianza p { font-size: 15px; font-weight: 600; line-height: 1.45; }

/* Preguntas */
.faq { border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 2px; font-weight: 700; font-size: 17px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--corriente-txt); border-bottom: 2px solid var(--corriente-txt); transform: rotate(45deg) translateY(-3px); transition: transform .3s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 2px 20px; color: var(--tinta-2); font-size: 16px; max-width: 60ch; }

/* Cierre: el foco se enciende con el mismo parpadeo del titular */
.cierre { padding-top: 32px; padding-bottom: 72px; }
.foco { width: 88px; height: 118px; margin: 0 auto 20px; display: block; overflow: visible; }
.foco path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.foco-halo { fill: var(--corriente); opacity: 0; filter: blur(18px); transition: opacity 1.4s ease .5s; }
.foco-vidrio { stroke: var(--linea-2); stroke-width: 2; transition: stroke .8s ease; }
.foco-base { stroke: var(--tinta-3); stroke-width: 3; }
.foco-soporte { stroke: var(--tinta-3); stroke-width: 1.5; }
.foco-filamento { stroke: var(--apagado); stroke-width: 2.2; }
.cierre.encendido .foco-filamento { stroke: #ffb347; filter: drop-shadow(0 0 3px #ffa940) drop-shadow(0 0 10px #ff8c1a); animation: filamento 1.2s steps(1, end) .1s backwards, vibra 4s ease-in-out 1.4s infinite; }
.cierre.encendido .foco-vidrio { stroke: color-mix(in srgb, var(--corriente) 60%, var(--linea-2)); }
.cierre.encendido .foco-halo { opacity: .28; }
@keyframes filamento {
  0% { stroke: var(--apagado); filter: none; }
  10% { stroke: #ffb347; filter: drop-shadow(0 0 4px #ffa940); }
  18% { stroke: var(--apagado); filter: none; }
  30%, 100% { stroke: #ffb347; filter: drop-shadow(0 0 3px #ffa940) drop-shadow(0 0 10px #ff8c1a); }
}
@keyframes vibra { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }
.cierre h2 { max-width: 16ch; margin: 0 auto; }

/* Pie */
.pie { border-top: 1px solid var(--linea); padding: 32px 0 40px; }
.pie-in { display: grid; gap: 14px; font-size: 14px; color: var(--tinta-2); }
.pie-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pie-nav a { font-weight: 700; color: var(--tinta); text-decoration: none; }
.pie-nav a:hover { color: var(--corriente-txt); }
.pie-c { color: var(--tinta-3); font-size: 13px; }

/* Diálogos */
.dialogo { width: min(420px, calc(100vw - 32px)); border: 0; padding: 28px 22px 22px; border-radius: 26px; background: var(--superficie); color: var(--tinta); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.dialogo::backdrop { background: rgba(20, 15, 8, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialogo[open] { animation: aparecer .35s ease both; }
.dialogo h2 { font-size: 26px; padding-right: 30px; }
.dialogo-sub { color: var(--tinta-2); margin: 8px 0 18px; }
.dialogo-cerrar { position: absolute; top: 14px; right: 14px; }
.dialogo-cerrar button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--fondo-2); font-size: 22px; line-height: 1; cursor: pointer; }
.guia { display: grid; gap: 12px; }
.guia li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--fondo-2); font-weight: 600; font-size: 15px; }
.aviso-safari { display: none; padding: 14px; border-radius: 16px; margin-bottom: 14px; box-shadow: inset 0 0 0 1.5px var(--corriente); }
.aviso-safari p { font-size: 15px; margin-bottom: 10px; }
[data-plataforma="ios-otro"] .aviso-safari { display: block; }
.dialogo .letra-chica { text-align: left; }

/* ——— Lista de espera ——— */
.apertura { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; max-width: 100%; margin: 18px auto 0; padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--tinta); text-align: left; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea), 0 0 22px -10px var(--brillo); transition: background-color .5s ease; }
.apertura-nodo { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--corriente); box-shadow: 0 0 0 0 var(--brillo); animation: latido 2.4s ease-out infinite; }

.espera { position: relative; width: 100%; max-width: 460px; margin: 28px auto 0; padding: 22px 18px 18px; text-align: left; border-radius: 24px; background: var(--superficie); box-shadow: var(--sombra), inset 0 0 0 1px color-mix(in srgb, var(--corriente) 22%, transparent); transition: background-color .5s ease; }
.dialogo .espera { margin: 0; padding: 0; background: none; box-shadow: none; max-width: none; }
.dialogo-espera .paso-etq { margin-bottom: 8px; }
.espera-etq { display: block; font-size: 14px; font-weight: 700; color: var(--tinta-2); margin-bottom: 8px; }
.espera-caja { position: relative; }
/* Un hilo de corriente se tiende bajo el campo al escribir */
.espera-caja::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--azul), var(--corriente), transparent); box-shadow: 0 0 8px var(--brillo); transform: scaleX(0); transition: transform .5s cubic-bezier(.6,0,.2,1); pointer-events: none; }
.espera-caja:focus-within::after { transform: scaleX(1); }
.espera-campo { display: block; width: 100%; min-width: 0; min-height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--fondo); color: var(--tinta); font: inherit; font-size: 17px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--linea-2); transition: box-shadow .25s ease, background-color .5s ease; -webkit-appearance: none; appearance: none; }
.espera-campo::placeholder { color: var(--tinta-3); font-weight: 500; opacity: 1; }
.espera-campo:focus { outline: none; box-shadow: inset 0 0 0 2px var(--corriente), 0 0 0 5px var(--brillo); }
.espera-campo[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--alerta); }
.espera-paneles { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.espera-pregunta { font-size: 15px; font-weight: 700; }
.espera-opc { display: block; font-size: 12px; font-weight: 600; color: var(--tinta-3); }
.segmento { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; width: 124px; padding: 4px; border-radius: 999px; background: var(--fondo-2); box-shadow: inset 0 0 0 1px var(--linea); }
.segmento input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.segmento label { display: grid; place-items: center; min-height: 40px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--tinta-2); cursor: pointer; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.segmento label:hover { color: var(--tinta); }
.segmento input:checked + label { background: var(--btn-fondo); color: var(--btn-txt); box-shadow: 0 0 14px -2px var(--brillo); }
.segmento input:focus-visible + label { outline: 2px solid var(--corriente); outline-offset: 2px; }
.espera-trampa { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.espera-btn { margin-top: 18px; }
.espera-btn:disabled { cursor: progress; opacity: .8; }
.espera[aria-busy="true"] .espera-btn::after { animation-duration: 1.1s; animation-delay: 0s; }
.espera-estado { margin-top: 10px; font-size: 14px; font-weight: 700; text-align: center; color: var(--tinta-2); }
.espera-estado:empty { display: none; }
.espera-estado[data-tipo="error"] { color: var(--alerta); }
.espera-legal { margin-top: 14px; font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--tinta-3); text-align: center; }
.espera-legal a { color: var(--corriente-txt); font-weight: 700; white-space: nowrap; }
.espera-ok { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0 6px; text-align: center; outline: none; }
.espera-ok[hidden] { display: none; }
.espera-ok-tit { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; text-wrap: balance; }
.espera-chispa { width: 64px; height: 64px; overflow: visible; }
.espera-chispa .aro { fill: none; stroke: var(--corriente); stroke-width: 1.5; }
.espera-chispa .halo { fill: var(--brillo); stroke: none; opacity: 0; transform-origin: 32px 32px; }
.espera-chispa .rayo { fill: color-mix(in srgb, var(--corriente) 22%, transparent); stroke: var(--corriente-txt); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.listo .espera-chispa .rayo { animation: rayo-trazo .55s cubic-bezier(.6,0,.2,1) .1s forwards; }
.listo .espera-chispa .halo { animation: rayo-halo .9s ease-out .5s; }
.listo .espera-chispa .aro { animation: rayo-aro .6s steps(1, end) .45s; }
@keyframes rayo-trazo { to { stroke-dashoffset: 0; } }
@keyframes rayo-halo { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes rayo-aro { 0% { stroke: #fff3d6; filter: drop-shadow(0 0 6px var(--corriente)); } 30% { stroke: var(--apagado); filter: none; } 55%, 100% { stroke: var(--corriente); filter: drop-shadow(0 0 4px var(--corriente)); } }
.cierre .entrada { margin-left: auto; margin-right: auto; max-width: 40ch; }

/* ——— Texto legal (privacidad) ——— */
.legal { max-width: 720px; margin: 0 auto; padding: 28px 20px; border-radius: 24px; background: var(--superficie); box-shadow: var(--sombra); transition: background-color .5s ease; }
.legal h2 { font-size: 20px; line-height: 1.3; letter-spacing: -.015em; margin-top: 26px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 16px; color: var(--tinta-2); margin-top: 8px; max-width: 64ch; }
.legal ul { display: grid; gap: 2px; margin-top: 6px; }
.legal li { position: relative; padding-left: 18px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--corriente); }
.legal a { color: var(--corriente-txt); font-weight: 700; }
.legal b { color: var(--tinta); }
.legal-fecha { font-size: 13px !important; color: var(--tinta-3) !important; margin-top: 26px !important; }
.dialogo .letra-chica a { color: var(--corriente-txt); }

/* ——— Páginas internas (instalar, legales) ——— */
.interna { padding: 40px 0 16px; position: relative; overflow: hidden; isolation: isolate; }
.interna .titular { font-size: clamp(36px, 9vw, 58px); max-width: 16ch; }
.instalar-rejilla { display: grid; gap: 16px; }
.pasos-num { display: grid; gap: 12px; margin: 14px 0 20px; counter-reset: p; flex: 1; align-content: start; }
.pasos-num li { counter-increment: p; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 16px; font-weight: 600; line-height: 1.45; }
.pasos-num li::before { content: counter(p); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; font-weight: 800; color: var(--corriente-txt); box-shadow: inset 0 0 0 1.5px var(--corriente); }
.pasos-num svg { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.consejo { font-size: 14px; color: var(--tinta-2); padding: 12px 14px; border-radius: 14px; background: var(--fondo-2); margin-bottom: 18px; }
.consejo b { color: var(--tinta); }
.placeholder { max-width: 560px; margin: 0 auto; text-align: center; padding: 36px 22px; border-radius: 26px; background: var(--superficie); box-shadow: var(--sombra); }
.placeholder .foco { margin-bottom: 14px; }
.placeholder h1 { font-size: clamp(28px, 7vw, 38px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.placeholder p { color: var(--tinta-2); margin-top: 12px; }
.placeholder .btn { margin-top: 24px; }

/* ——— Escritorio ——— */
@media (min-width: 640px) {
  .circuito { grid-template-columns: 1fr 1fr; padding-left: 0; padding-top: 26px; }
  .circuito::before { left: 26px; right: 26px; top: 0; bottom: auto; width: auto; height: 1.5px; }
  .circuito::after { top: -2px; bottom: auto; left: 20px; right: 20px; width: auto; height: 5px; background: linear-gradient(90deg, transparent, var(--azul), transparent) no-repeat 0 0 / 40px 100%; animation-name: recorrer-h; }
  @keyframes recorrer-h { 0% { background-position: 0 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { background-position: 100% 0; opacity: 0; } }
  .circuito li::before { left: 26px; top: -31px; }
  .circuito li::after { content: ""; position: absolute; left: 31px; top: -20px; width: 1.5px; height: 20px; background: var(--linea-2); }
  .descargas, .planes, .instalar-rejilla { grid-template-columns: 1fr 1fr; }
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .pasos li { grid-template-columns: 1fr; row-gap: 10px; }
  .pasos .num { grid-row: auto; }
  .confianza { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .interruptor-txt { display: inline; }
  .franja { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px 12px; }
  .franja .sep { display: inline; }
  .zonas { grid-template-columns: 1fr 1fr; }
  .tarifas li { grid-template-columns: 60px minmax(0, 1.1fr) minmax(0, 2fr) 120px; row-gap: 0; }
  .tarifa-hilo { grid-column: auto; grid-row: 1; grid-column-start: 3; }
  .tarifa-lim { grid-column-start: 4; grid-row: 1; }
  .tarifas-marco { padding: 22px 26px 10px; }
}
@media (min-width: 900px) {
  .envase { padding: 0 32px; }
  .barra-in { padding: 12px 32px; gap: 28px; }
  .nav { display: flex; gap: 26px; margin-left: 12px; }
  .nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--tinta-2); }
  .nav a:hover { color: var(--tinta); }
  .heroe { padding: 72px 0 40px; }
  .heroe-in { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
  .heroe-vis::before { width: 460px; height: 460px; }
  .toma { width: 56px; }
  .tel { width: 290px; }
  .tel-escena { height: 150px; }
  .tel-cifra { font-size: 54px; }
  .seccion { padding: 72px 0; }
  .circuito a { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; row-gap: 6px; padding: 22px; }
  .circuito .ico { grid-row: auto; margin-bottom: 6px; }
  .seccion-circuito { padding-top: 48px; padding-bottom: 16px; }
  .circuito { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .cable { height: 88px; --baja: 84px; }
  .dos { grid-template-columns: 1fr 1fr; gap: 72px; }
  .dos-inv > :first-child { order: 2; }
  .medidor { padding: 30px 26px 24px; }
  .dig { --h: 64px; width: 48px; }
  .rollo span { font-size: 42px; }
  .panel .dos { gap: 56px; }
  .cabeza { margin-bottom: 36px; }
  .planes, .descargas, .instalar-rejilla { max-width: 820px; margin: 0 auto; gap: 20px; }
  .tarjeta { padding: 30px 28px; }
  .confianza li { flex-direction: column; }
  .pie-in { grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; }
  .dialogo { padding: 32px 28px 26px; }
  .espera { padding: 26px 26px 20px; }
  .legal { padding: 40px 48px; }
  .interna { padding: 72px 0 24px; }
  .paneles-cab { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
  .paneles-cab .flujo { margin: 0; width: 460px; }
  .paneles-cab .cabeza { margin-bottom: 0; }
  .paneles-cab + .selector { margin-top: 28px; }
}

/* Fuera de pantalla: las animaciones infinitas se pausan (sitio.js pone .fuera) */
.fuera, .fuera *, .fuera::before, .fuera::after, .fuera *::before, .fuera *::after { animation-play-state: paused !important; }

/* Movimiento reducido: todo queda encendido y quieto */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .red-pulso, .traza-pulso path { opacity: .45; }
  .red-pulso path, .traza-pulso path, .flujo-pulso path { stroke-dasharray: none; stroke-dashoffset: 0; }
  .red-pulso path { opacity: .5; }
  .flujo-pulso path { opacity: .45; }
  .flujo-pulso .sol { opacity: 0; }
  .flujo[data-paneles="si"] .flujo-pulso .sol { opacity: .45; }
  .chispa, .cable::after, .circuito::after, .btn-luz::after { display: none; }
  .medidor-giro span { transform: translateX(46px); }
  .tarifa-hilo::before { transform: scaleX(1); }
  .tarifa-hilo::after { opacity: 1; background: var(--corriente); }
  .foco-filamento { stroke: #ffb347; }
  .foco-halo { opacity: .28; }
  .espera-chispa .rayo { stroke-dashoffset: 0; }
  .espera-chispa .aro { filter: drop-shadow(0 0 4px var(--corriente)); }
}
