/* BESS Panimávida · página del proyecto con el sistema del sitio de Rho Generación (16-11-2026)
   Base clara (blanco y gris frío), tinta grafito y el marino de Rho (#061F51) como color de botones e íconos; el petróleo queda
   solo en el logo y el verde solo en detalles (16-11-2026: «aún veo una página full verde y no quiero eso»). Colores planos, sin degradados
   (pedido de Erick, 16-11-2026: «no quiero colores con degradés, quiero lineamientos centrados y compacto, limpio»). Contenedor de 1180 + 22 px, encabezados centrados de dos líneas, tarjetas redondeadas,
   botones píldora. Bloques oscuros en el tono de la portada del sitio de Rho (#0a1424) para el video y el 3D.
   Cada ítem del menú es un bloque que cabe en una pantalla: la pieza principal de cada bloque se mide con --util. */

:root {
  --ink: #1d1d1f;
  --muted: #5a5a5f;
  --faint: #6e6e73;                           /* gris de textos chicos: 5,1:1 sobre blanco y 4,7:1 sobre #f5f5f7 (AA) */
  --line: #e8e8ed;
  --soft: #f5f5f7;
  --brand: #1d1d1f;                           /* controles en grafito: sin azul en botones (Erick, 16-11-2026) */
  --brand-dark: #000000;
  --brand-deep: #1d1d1f;
  --brand-soft: #ededf0;
  --night: #0a1424;
  --aqua: #2f6fed;
  --aqua-l: #a9c6ff;
  --azul: #2f6fed;
  --celeste: #f0f0f3;
  --leaf: #54b549;
  --sun: #f8a537;
  --on-d: #fff;
  --on-d-2: rgba(255, 255, 255, .84);
  --on-d-3: rgba(255, 255, 255, .64);
  --line-d: rgba(255, 255, 255, .12);
  --sans: "Inter", "Inter Respaldo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(72px, 8vw, 112px);
  --nav: 64px;
  --util: calc(100svh - 390px);                /* alto que queda para la pieza principal de un bloque bajo su encabezado */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --sombra: 0 30px 60px -40px rgba(10, 20, 36, .45);
  --aro: inset 0 0 0 1px rgba(29, 29, 31, .06);
  color-scheme: light;
}

/* Inter alojada en el sitio, con respaldo de métricas ajustadas para que el texto no salte al cargar */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(media/fuentes/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(media/fuentes/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Respaldo'; src: local('Arial'), local('Helvetica Neue'), local('Helvetica'); ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; size-adjust: 107.4%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; overflow-x: hidden; background: #fff; color: var(--ink); font: 400 16px/1.55 var(--sans); letter-spacing: -.011em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
.noche :focus-visible, .portada :focus-visible, .pie :focus-visible, .visor :focus-visible { outline-color: var(--aqua-l); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: var(--sombra); }
.saltar:focus { top: 12px; }

.ancho { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: max(22px, env(safe-area-inset-left), env(safe-area-inset-right)); }

/* ------------------------------------------------------------------ botones, chips e íconos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer; font: 600 16px/1 var(--sans); letter-spacing: -.011em; text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease-out), background-color .3s, box-shadow .3s, color .3s; }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-blanco { background: #fff; color: var(--ink); box-shadow: 0 14px 32px -14px rgba(0, 0, 0, .55); }
.btn-marca { background: var(--brand); color: #fff; box-shadow: 0 12px 26px -14px rgba(6, 31, 81, .9); }
.btn-vidrio { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
@media (hover: hover) {
  .btn-blanco:hover, .btn-marca:hover { transform: translateY(-2px); }
  .btn-marca:hover { background: var(--brand-dark); }
  .btn-vidrio:hover { background: rgba(255, 255, 255, .2); }
}
.btn-chico { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ancho { width: 100%; }
.btn-dato { margin-left: 2px; padding-left: 11px; border-left: 1px solid currentColor; font-size: 13px; font-weight: 600; opacity: .6; font-variant-numeric: tabular-nums; }

.boton-redondo { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(10, 20, 36, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #fff; cursor: pointer; transition: background-color .25s, transform .2s var(--ease-out); }
.boton-redondo:hover { background: rgba(10, 20, 36, .8); }
.boton-redondo:active { transform: scale(.94); }
.boton-redondo svg { width: 14px; height: 14px; }

.chip-ref { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(10, 20, 36, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .86); font: 600 11px/1 var(--sans); letter-spacing: .04em; white-space: nowrap; pointer-events: none; }

/* ícono en tile plano: petróleo sólido y trazo blanco (sin degradados, buen contraste) */
.tile { position: relative; display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 15px; background: var(--brand); color: #fff; }
.tile svg { position: relative; width: 24px; height: 24px; fill: rgba(255, 255, 255, .16); stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile svg .fino { fill: none; }
.tile-chico { width: 40px; height: 40px; border-radius: 13px; }
.tile-chico svg { width: 21px; height: 21px; }

/* ------------------------------------------------------------------ menú (como el del sitio de Rho): logo a la izquierda, secciones al centro con burbuja, botón a la derecha */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav); padding-top: env(safe-area-inset-top); color: var(--ink);
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: background-color .5s, border-color .5s, color .5s; }
.nav.sobre-portada { background: transparent; border-bottom-color: transparent; color: #fff; }
.nav-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 100%; }
.nav-marca { display: inline-flex; align-items: center; justify-self: start; }
.nav-logo { position: relative; display: block; width: 147px; height: 34px; }
.nav-logo img { position: absolute; inset: 0; width: auto; height: 100%; transition: opacity .5s; }
.nav .logo-blanco { opacity: 0; }
.nav.sobre-portada .logo-blanco { opacity: 1; }
.nav.sobre-portada .logo-color { opacity: 0; }
.nav-menu { position: relative; isolation: isolate; justify-self: center; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu ul { display: flex; align-items: center; gap: 2px; width: max-content; }
.nav-menu a { position: relative; z-index: 1; display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: rgba(29, 29, 31, .7); white-space: nowrap; transition: color .3s, background-color .3s; }
.nav-menu a:hover { color: var(--ink); background: rgba(0, 0, 0, .04); }
.nav-menu a[aria-current="true"], .nav-menu a[aria-current="true"]:hover { color: var(--ink); font-weight: 600; background: transparent; }
.nav.sobre-portada .nav-menu a { color: rgba(255, 255, 255, .8); }
.nav.sobre-portada .nav-menu a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav.sobre-portada .nav-menu a[aria-current="true"] { color: #fff; background: transparent; }
/* burbuja blanca que se desliza hasta la sección visible */
.nav-burbuja { position: absolute; top: 0; left: 0; z-index: 0; width: var(--w, 0); height: var(--h, 36px); border-radius: 999px; opacity: 0; transform: translate(var(--x, 0), var(--y, 0));
  border: 1px solid rgba(29, 29, 31, .08); background: #ededf0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; pointer-events: none; }
.nav.sobre-portada .nav-burbuja { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .18); box-shadow: 0 6px 20px -6px rgba(10, 20, 36, .55), inset 0 1px 0 rgba(255, 255, 255, .45); }
.nav-burbuja.ve { opacity: 1; }
.nav-burbuja.sin-paso { transition: opacity .3s; }
.nav-der { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
/* selector de idioma, como en el sitio de Rho: un solo control, en el menú */
.idioma { display: inline-flex; align-items: center; height: 36px; padding: 4px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .06); font-size: 13px; font-weight: 600; transition: background-color .5s; }
.idioma > * { display: grid; place-items: center; height: 100%; padding: 0 10px; border-radius: 999px; text-decoration: none; }
.idioma [aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.idioma a { color: var(--faint); transition: color .2s; }
.idioma a:hover { color: var(--ink); }
.nav.sobre-portada .idioma { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.nav.sobre-portada .idioma [aria-current="true"] { background: #fff; color: var(--ink); }
.nav.sobre-portada .idioma a { color: rgba(255, 255, 255, .78); }
.nav.sobre-portada .idioma a:hover { color: #fff; }
.nav-video { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; font: 600 14px/1 var(--sans); white-space: nowrap;
  background: var(--ink); color: #fff; transition: background-color .3s, color .3s, transform .2s var(--ease-out); }
.nav-video svg { width: 11px; height: 11px; }
.nav-video:hover { background: #000; }
.nav-video:active { transform: scale(.97); }
.nav.sobre-portada .nav-video { background: #fff; color: var(--ink); }
.nav.sobre-portada .nav-video:hover { background: rgba(255, 255, 255, .85); }

/* ------------------------------------------------------------------ portada */
.portada { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--night); color: #fff; text-align: center; }
.portada-medio { position: absolute; inset: 0; z-index: -2; }
.portada-medio img, .portada-medio video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portada-medio video { opacity: 0; transition: opacity 1.4s ease; }
.portada-medio video.listo { opacity: 1; }
.portada-velo { position: absolute; inset: 0; z-index: -1; background: rgba(10, 20, 36, .62); }
.portada-dentro { display: flex; flex-direction: column; align-items: center; padding-block: 112px; }
.insignia { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .92); }
.led { width: 6px; height: 6px; border-radius: 50%; background: #7cf2b5; box-shadow: 0 0 8px 1px rgba(124, 242, 181, .6); animation: respirar 3.6s ease-in-out infinite; }
@keyframes respirar { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.portada h1 { margin-top: 28px; font-size: clamp(42px, min(7.6vw, 12vh), 104px); font-weight: 700; line-height: .98; letter-spacing: -.05em; text-shadow: 0 2px 30px rgba(10, 20, 36, .35); }
.portada h1 > span { display: block; }
.acento { color: #a9c6ff; }
.portada-bajada { max-width: 34ch; margin-top: 18px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; letter-spacing: -.015em; color: rgba(255, 255, 255, .86); text-shadow: 0 1px 18px rgba(10, 20, 36, .5); }
.portada-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.portada-bajar { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; padding: 8px; color: rgba(255, 255, 255, .72); transition: color .3s; }
.portada-bajar:hover { color: #fff; }
.portada-bajar > span { display: grid; justify-content: center; width: 24px; height: 40px; padding-top: 8px; border: 1.5px solid currentColor; border-radius: 999px; }
.portada-bajar i { display: block; width: 3px; height: 8px; border-radius: 3px; background: currentColor; animation: senal 1.8s ease-in-out infinite; }
@keyframes senal { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.portada-ref { position: absolute; left: max(22px, env(safe-area-inset-left)); bottom: 30px; }
.portada-pausa { position: absolute; right: max(22px, env(safe-area-inset-right)); bottom: 22px; }
/* entrada del texto desde el primer pintado (CSS, no espera a JavaScript) */
.sube { animation: sube .9s var(--ease) var(--d, 0s) both; }
@keyframes sube { from { opacity: 0; transform: translateY(24px); } }
.portada-bajar.sube { animation-name: sube-bajar; }
@keyframes sube-bajar { from { opacity: 0; } }

/* ------------------------------------------------------------------ secciones y encabezado (formato aprobado en el sitio de Rho) */
.sec { padding-block: var(--pad); }
.blanco { background: #fff; }
.suave { background: var(--soft); }
.noche { background: #000; color: #fff; }
/* al ir a una sección con el menú, su título queda justo bajo el menú */
main > section[id]:not(#inicio) { scroll-margin-top: calc(24px - var(--pad)); }
/* en escritorio cada bloque llena la pantalla al llegar con el menú: no asoma el bloque siguiente */
@media (min-width: 1024px) and (min-height: 700px) { main > .sec { min-height: calc(100svh + var(--pad) - 100px); } }

.cabeza { max-width: 900px; margin: 0 auto clamp(28px, 3.4vw, 44px); text-align: center; }
.ceja { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--brand); }
.ceja::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.noche .ceja { color: #a9c6ff; }
.noche .bloque { background: #111114; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.cabeza h2 { margin-top: 16px; font-size: clamp(32px, min(4.4vw, 6vh), 60px); font-weight: 700; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
@media (min-width: 640px) { .cabeza h2 > span { display: block; } }
.bajada { max-width: 62ch; margin: 16px auto 0; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; color: var(--muted); text-wrap: balance; }
.noche .bajada { color: var(--on-d-2); }
.nota { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--faint); text-align: center; text-wrap: pretty; }

/* aparición al bajar: solo lo que está bajo el pliegue al cargar; al navegar con el menú todo se ve al instante */
.rv { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--r, 0) * 70ms); }
.rv.oculto { opacity: 0; transform: translateY(24px); }
.sin-aparicion .rv { transition: none !important; }

/* ------------------------------------------------------------------ 1 · el proyecto: tarjetas al estilo de los paneles de rondesignlab
   (referencia de Erick, 16-11-2026): punto de color y título arriba, cifra grande en trazo fino abajo, gráfico de línea delgada
   con guías punteadas. La energía, el dato principal, va en la tarjeta grande con el gráfico de entrega a potencia nominal. */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)) auto; gap: 14px; }
.b-tile { display: grid; grid-template-rows: auto 1fr auto; align-items: end; gap: 10px; min-width: 0; padding: 18px 20px 16px; border-radius: 26px; background: var(--soft); text-align: left; }
.b-tile > .b-et { align-self: start; }
.b-tile > .b-pie, .b-tile > .b-pie-viz { min-height: 30px; display: flex; align-items: flex-end; }
.b-et { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--muted); }
.punto { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--azul)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--azul)) 18%, transparent); }
.b-nota { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--faint); }
.b-num { display: flex; align-items: baseline; gap: 6px; line-height: .95; }
.b-num b { font-size: clamp(40px, min(3.6vw, 6vh), 54px); font-weight: 300; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.b-num small { font-size: 15px; font-weight: 500; color: var(--faint); }
.b-pie { font-size: 13px; line-height: 1.35; color: var(--muted); }
.dec { opacity: .5; }
.b-energia { grid-template-rows: auto auto 1fr auto; }
.b-graf { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .12); }
.b-graf-t { font-size: 12.5px; font-weight: 500; color: var(--faint); }
.b-leyenda { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.b-leyenda span { display: inline-flex; align-items: center; gap: 7px; }
.b-leyenda i { width: 10px; height: 10px; border-radius: 3px; background: #2f6fed; }
.b-leyenda i.otro { background: #a9c6ff; }
.b-energia { grid-column: 1 / 3; grid-row: 1 / 3; gap: 10px; padding: 18px 22px 16px; background: var(--celeste); }
.b-energia .b-num b { font-size: clamp(52px, min(5vw, 8vh), 76px); color: var(--brand); }
.b-energia .b-num small { font-size: 18px; color: var(--azul); }
/* minigráficos de las tarjetas chicas: perfil de entrega (potencia) y las cuatro horas (duración) */
.mini { display: block; width: 100%; max-width: 170px; height: 28px; overflow: visible; }
.m-base { stroke: rgba(29, 29, 31, .14); stroke-width: 1; stroke-dasharray: 2 3; }
.m-linea { fill: none; stroke: #f5a524; stroke-width: 1.6; stroke-linejoin: round; }
.m-punto { fill: #f5a524; }
.mini-horas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px 5px; width: 100%; max-width: 210px; }
.mini-horas i { height: 6px; border-radius: 3px; background: #2f6fed; opacity: .85; }
.mini-horas span { font-size: 10.5px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
/* gráfico de línea delgada: guías punteadas, área plana y puntos en los extremos */
.grafico { margin: 2px 0 0; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.g-guias line { stroke: rgba(6, 31, 81, .16); stroke-width: 1; stroke-dasharray: 4 5; }
.g-base { stroke: rgba(6, 31, 81, .28); stroke-width: 1; }
.g-area { fill: rgba(47, 111, 237, .12); transform-origin: 0 100%; transform-box: fill-box; transition: transform 1.2s var(--ease) .2s, opacity .8s ease .2s; }
.g-linea { fill: none; stroke: #2f6fed; stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.g-punto { fill: #fff; stroke: #2f6fed; stroke-width: 1.6; }
.g-halo { fill: rgba(47, 111, 237, .16); }
.g-meta { stroke: rgba(47, 111, 237, .55); stroke-width: 1; stroke-dasharray: 2 4; }
.g-marca { stroke: rgba(47, 111, 237, .35); stroke-width: 1; stroke-dasharray: 2 4; }
.g-pildora { fill: rgba(47, 111, 237, .12); }
.g-ref { text-anchor: middle; font-weight: 600; }
.g-dentro { fill: var(--brand); font: 500 14px var(--sans); text-anchor: middle; letter-spacing: -.01em; }
.g-eje { fill: var(--faint); font: 500 11px var(--sans); font-variant-numeric: tabular-nums; }
.g-x { text-anchor: start; }
.js .b-energia:not(.visto) .g-area { transform: scaleY(0); opacity: 0; }
.js .b-energia:not(.visto) :is(.g-punto, .g-dentro, .g-halo) { opacity: 0; }
.g-halo { transition: opacity .6s ease 1.1s; }
.g-punto, .g-dentro { transition: opacity .6s ease 1s; }
.b-energia .g-linea { stroke-dasharray: 1100; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) .1s; }
.js .b-energia:not(.visto) .g-linea { stroke-dashoffset: 1100; }
.b-funciona { grid-column: 1 / -1; display: block; padding: 14px 24px 16px; background: var(--soft); }
.funciona-cab { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 4px 12px; font-size: 14px; color: var(--faint); }
.funciona-cab b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.etapas { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 14px; }
/* una línea recta une los tres íconos y se dibuja al verse el bloque */
@keyframes conectar { to { transform: scaleX(1); } }
.paso { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 14px; padding: 2px 26px; text-align: left; }
.paso + .paso { border-left: 1px solid rgba(29, 29, 31, .1); }
.paso:first-child { padding-left: 4px; }
.icono { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgba(29, 29, 31, .1); color: var(--ink); flex: none; }
.icono svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.paso h3 { display: flex; align-items: baseline; gap: 8px; font-size: 18px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.paso-n { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--azul); font-variant-numeric: tabular-nums; }
.paso p { max-width: 40ch; margin: 3px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: balance; }

/* ------------------------------------------------------------------ bloque en vidrio sobre la foto nocturna del proyecto (estilo rondesignlab, 16-11-2026)
   Fondo: la foto desenfocada (archivo estático, sin desenfoque en vivo) con un velo plano; tarjetas translúcidas con borde de luz. */
.vidrio { position: relative; isolation: isolate; color: #fff; background: #0a1424 url(media/fondos/proyecto-noche-v1.webp) center / cover no-repeat; }
.vidrio::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(6, 12, 28, .4); }
.vidrio .ceja { color: #a9c6ff; }
.vidrio .bajada { color: rgba(255, 255, 255, .82); }
.vidrio .b-tile { background: rgba(255, 255, 255, .085); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15), inset 0 1px 0 rgba(255, 255, 255, .28), 0 24px 48px -30px rgba(0, 0, 0, .65); }
.vidrio .b-energia { background: rgba(255, 255, 255, .13); }
.vidrio .b-et { color: rgba(255, 255, 255, .8); }
.vidrio .b-nota { color: rgba(255, 255, 255, .58); }
.vidrio .b-num b, .vidrio .b-energia .b-num b { color: #fff; }
.vidrio .b-num small { color: rgba(255, 255, 255, .62); }
.vidrio .b-energia .b-num small { color: #a9c6ff; }
.vidrio .b-pie, .vidrio .b-leyenda { color: rgba(255, 255, 255, .74); }
.vidrio .b-graf-t { color: rgba(255, 255, 255, .58); }
.vidrio .b-leyenda i { background: #6f9bff; }
.vidrio .b-leyenda i.otro { background: #a9c6ff; }
.vidrio .punto { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #2f6fed) 30%, transparent), 0 0 12px color-mix(in srgb, var(--c, #2f6fed) 70%, transparent); }
.vidrio .g-guias line { stroke: rgba(255, 255, 255, .2); }
.vidrio .g-base { stroke: rgba(255, 255, 255, .38); }
.vidrio .g-area { fill: rgba(169, 198, 255, .2); }
.vidrio .g-linea { stroke: #a9c6ff; }
.vidrio .g-punto { fill: #0f1d3a; stroke: #a9c6ff; }
.vidrio .g-dentro { fill: #fff; }
.vidrio .g-eje { fill: rgba(255, 255, 255, .62); }
.vidrio .b-funciona { background: rgba(255, 255, 255, .08); }
.vidrio .funciona-cab { color: rgba(255, 255, 255, .62); }
.vidrio .funciona-cab b, .vidrio .paso h3 { color: #fff; }
.vidrio .paso p { color: rgba(255, 255, 255, .76); }
.vidrio .paso-n { color: #a9c6ff; }
.vidrio .icono { background: #26324d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26), inset 0 1px 0 rgba(255, 255, 255, .3); color: #fff; }
.vidrio .m-base { stroke: rgba(255, 255, 255, .25); }
.vidrio .mini-horas span { color: rgba(255, 255, 255, .6); }
.vidrio .mini-horas i { background: #a9c6ff; }
.vidrio .g-meta { stroke: rgba(169, 198, 255, .7); }
.vidrio .g-marca { stroke: rgba(169, 198, 255, .45); }
.vidrio .g-halo { fill: rgba(169, 198, 255, .22); }
.vidrio .g-pildora { fill: rgba(169, 198, 255, .2); }
.vidrio .g-ref { fill: #fff; }
.vidrio .paso + .paso { border-left-color: rgba(255, 255, 255, .14); }
.vidrio :focus-visible { outline-color: #a9c6ff; }

/* ------------------------------------------------------------------ bloques en una tarjeta centrada
   Lista a la izquierda y la pieza principal (video, mapa, 3D, imagen) a la derecha, en una sola tarjeta centrada, como
   «Quiénes somos» y «Propósito» del sitio de Rho. El ancho de la pieza depende del alto de la pantalla (--util): el bloque cabe entero. */
.bloque { --hueco: 12px; --media: min(calc(min(100vw, 1180px) - 68px - var(--lista) - var(--hueco)), calc(max(var(--util) - 24px, 340px) * 16 / 9));
  display: grid; grid-template-columns: var(--lista) var(--media); gap: var(--hueco); width: fit-content; max-width: 100%; margin-inline: auto; padding: 12px;
  border-radius: 28px; background: #fff; box-shadow: var(--aro), var(--sombra); }
.bloque-lista { order: -1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
/* la lista no estira la tarjeta: toma el alto de la pieza principal y, si no le alcanza, se desplaza por dentro */
@media (min-width: 1024px) { .video-grid .bloque-lista, .mapa .bloque-lista, .galeria .bloque-lista { height: 0; min-height: 100%; overflow: auto; scrollbar-width: thin; } }

/* ------------------------------------------------------------------ 2 · el video */
.video-grid { --lista: 290px; }
.reproductor { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; }
.reproductor video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.reproductor-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; border: 0; background: rgba(10, 20, 36, .18); cursor: pointer; }
.play-disco { display: grid; place-items: center; width: clamp(64px, 6vw, 84px); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--brand-deep); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); transition: transform .4s var(--ease-out); }
.play-disco svg { width: 30%; margin-left: 7%; }
.reproductor-play:hover .play-disco { transform: scale(1.06); }
.reproductor-play:active .play-disco { transform: scale(.96); }
.play-texto { display: flex; align-items: baseline; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(10, 20, 36, .55); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.play-texto b { font-size: 14px; color: #fff; font-variant-numeric: tabular-nums; }
.reproductor.activo .reproductor-play { display: none; }
.reproductor > :focus-visible { outline-offset: -6px; border-radius: inherit; }
.reproductor-ref { position: absolute; top: 14px; right: 14px; }
.reproductor.activo .reproductor-ref { display: none; }

.momentos-caja { overflow: hidden; }
.momentos-t, .lista-t { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.momentos { flex: 1; display: grid; grid-auto-rows: 1fr; min-height: 0; overflow: auto; scrollbar-width: thin; }
.momentos li { display: flex; min-height: 0; }
.momentos button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 4px 10px 4px 6px; border: 0; border-radius: 14px; background: none; cursor: pointer; text-align: left; transition: background-color .2s; }
.momentos button:hover { background: var(--soft); }
.momentos img { flex: none; width: 68px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.momentos span { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.momentos time { font-size: 12.5px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.momentos button[aria-current="true"] { background: var(--celeste); }
.momentos button[aria-current="true"] span { color: var(--brand); }
.momentos button[aria-current="true"] time { color: var(--azul); }
.momentos button:focus-visible { outline-offset: -3px; }

/* ------------------------------------------------------------------ 5 · el sitio (galería) */
.bloque-lista .lista-t { flex: none; color: var(--faint); white-space: nowrap; }
.galeria { --lista: 290px; }
.gal-principal { position: relative; display: flex; flex-direction: column; min-width: 0; }
.gal-ver { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: var(--soft); cursor: zoom-in; }
.gal-ver img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform 1.2s var(--ease); }
.gal-ver img.cambia { opacity: 0; }
@media (hover: hover) { .gal-ver:hover img { transform: scale(1.025); } }
.gal-zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.gal-zoom svg { width: 13px; height: 13px; }
.gal-ref { position: absolute; top: 14px; left: 14px; }
/* pie de la imagen sobre la foto, abajo a la izquierda (tarjeta blanca, como las fichas del mapa) */
.gal-pie { position: absolute; left: 14px; bottom: 14px; max-width: min(520px, calc(100% - 190px)); padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: 0 12px 28px -14px rgba(10, 20, 36, .6); font-size: 13.5px; line-height: 1.45; color: var(--muted); text-wrap: pretty; pointer-events: none; transition: opacity .35s ease; }
.gal-pie b { display: block; margin-bottom: 1px; font-size: 14.5px; font-weight: 700; color: var(--ink); letter-spacing: -.015em; }
.galeria:has(.gal-ver img.cambia) .gal-pie { opacity: 0; }
.gal-lista { display: grid; grid-auto-rows: 1fr; gap: 6px; min-height: 0; }
.gal-lista li { display: flex; min-height: 0; }
.gal-lista button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 12px 6px 6px; overflow: hidden; border: 0; border-radius: 18px; background: none; cursor: pointer; text-align: left; transition: background-color .2s, box-shadow .2s; }
.gal-lista button:hover { background: var(--soft); }
.gal-lista img { flex: none; width: 66px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 11px; }
.gal-lista button > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.gal-lista button > span > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-lista b { font-size: 15px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.gal-lista button[aria-pressed="true"] { background: var(--soft); }
.gal-lista button[aria-pressed="true"] b { color: var(--brand-deep); }
/* avance de la vista que se muestra (la galería avanza sola mientras se ve) */
.gal-avance { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand); transform-origin: left; transform: scaleX(0); opacity: 0; }
.gal-lista button[aria-pressed="true"] .gal-avance { opacity: 1; }
.galeria.corre .gal-lista button[aria-pressed="true"] .gal-avance { animation: avance var(--dur, 6s) linear forwards; }
@keyframes avance { to { transform: scaleX(1); } }
.gal-nota { margin-top: 12px; padding: 0 6px; text-align: left; font-size: 13px; }

/* ------------------------------------------------------------------ 6 · ficha técnica: lista compacta «dato | valor» en dos columnas */
.specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; padding: 8px 32px 10px; border-radius: 28px; background: #fff; box-shadow: var(--aro), var(--sombra); }
.ficha > div { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ficha dt { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.ficha dd { font-size: 15.5px; font-weight: 600; line-height: 1.4; letter-spacing: -.012em; color: var(--ink); font-variant-numeric: tabular-nums; text-wrap: pretty; }
.ficha small { font-size: 13px; font-weight: 500; color: var(--faint); }
.ficha-entera { grid-column: 1 / -1; }
.ficha-entera > div { grid-template-columns: calc((100% - 48px) / 2 * .42) minmax(0, 1fr); border-bottom: 0; }
.ficha-entera dd { font-weight: 500; color: var(--muted); }

/* ------------------------------------------------------------------ pie (claro, como Apple) */
.pie { padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); background: #fff; color: var(--ink); border-top: 1px solid var(--line); }
.pie-arriba { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.pie-logo { display: block; border-radius: 6px; }
.pie-logo img { width: auto; height: 32px; transition: opacity .2s; }
.pie-logo:hover img { opacity: .75; }
.pie-nombre { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1; letter-spacing: -.045em; }
.pie-abajo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 18px; font-size: 13px; color: var(--faint); }

/* ------------------------------------------------------------------ imagen en grande */
.visor { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(3, 18, 20, .97); color: #fff; touch-action: pan-y pinch-zoom; }
.visor::backdrop { background: rgba(0, 0, 0, .7); }
.visor[open] { animation: aparecer .3s ease; }
@keyframes aparecer { from { opacity: 0; } }
.visor figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 18px; height: 100%; padding: 72px clamp(16px, 7vw, 96px) 28px; }
.visor img { width: auto; height: auto; max-width: 100%; max-height: 100%; place-self: center; border-radius: 14px; }
.visor figcaption { max-width: 60ch; margin: 0 auto; text-align: center; font-size: 15px; color: var(--on-d-2); }
.visor figcaption b { display: block; margin-bottom: 4px; font-weight: 700; color: #fff; }
.visor-cerrar { position: absolute; top: 16px; right: max(16px, env(safe-area-inset-right)); }
.visor-atras, .visor-adelante { position: absolute; top: 50%; transform: translateY(-50%); }
.visor-atras:active, .visor-adelante:active { transform: translateY(-50%) scale(.94); }
.visor-atras { left: max(16px, env(safe-area-inset-left)); }
.visor-adelante { right: max(16px, env(safe-area-inset-right)); }
.visor-ref { position: absolute; top: 23px; left: clamp(16px, 7vw, 96px); }

/* ------------------------------------------------------------------ pantallas de escritorio bajas (laptops de 700–880 px de alto) */
@media (min-width: 1024px) and (max-height: 880px) {
  :root { --pad: 64px; --util: calc(100svh - 326px); }
  .cabeza { margin-bottom: 20px; }
  .cabeza h2 { margin-top: 10px; font-size: clamp(30px, min(4.4vw, 5.6vh), 60px); }
  .bajada { margin-top: 12px; font-size: 16px; max-width: 86ch; }
  .bento { gap: 10px; }
  .b-tile { padding: 14px 18px 16px; gap: 6px; }
  .b-energia { padding: 20px 26px 22px; gap: 10px; }
  .b-funciona { padding: 12px 24px 14px; }
  .etapas { margin-top: 10px; }
  .grafico svg { max-height: 118px; }
  .b-graf-t { display: none; }
  .b-et { font-size: 13.5px; }
  .paso p { font-size: 13.5px; }
  .ficha > div { padding: 8px 0; }
}

/* ------------------------------------------------------------------ tableta y celular */
@media (max-width: 1279px) {
  .nav-menu a { padding: 8px 10px; }
}
/* bajo 860 px las secciones pasan a una segunda línea, centradas bajo el logo (sin hamburguesa) */
@media (max-width: 859px) {
  :root { --nav: 108px; }
  html { scroll-padding-top: 120px; }
  .nav-in { grid-template-columns: 1fr auto; grid-template-rows: 58px 44px; row-gap: 0; align-content: start; }
  .nav-menu { grid-column: 1 / -1; grid-row: 2; align-self: start; }
  .nav-logo { width: 130px; height: 30px; }
}
@media (max-width: 420px) {
  .nav-in { gap: 8px; }
  .nav-logo { width: 112px; height: 26px; }
  .nav-der { gap: 6px; }
  .idioma > * { padding: 0 8px; }
  .nav-video { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 1023px) {
  :root { --pad: clamp(64px, 10vw, 88px); }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .b-energia { grid-column: 1 / -1; grid-row: auto; }
  .etapas { grid-template-columns: 1fr; gap: 22px; }
  .paso + .paso { border-left: 0; border-top: 1px solid rgba(29, 29, 31, .1); padding-top: 14px; }
  .vidrio .paso + .paso { border-top-color: rgba(255, 255, 255, .14); }
  .paso, .paso:first-child { padding-inline: 0; }
  .bloque { grid-template-columns: minmax(0, 1fr); width: auto; padding: 8px; gap: 10px; border-radius: 24px; }
  .bloque-lista { order: 0; }
  .video-grid, .galeria { grid-template-columns: minmax(0, 1fr); }
  .momentos-caja { overflow: visible; }
  .momentos-t { padding: 4px 2px 10px; }
  .momentos { display: flex; gap: 8px; padding: 0 0 6px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .momentos::-webkit-scrollbar { display: none; }
  .momentos li { flex: 0 0 auto; scroll-snap-align: start; }
  .momentos button { flex-direction: column; align-items: flex-start; width: 168px; padding: 6px; background: var(--soft); }
  .momentos img { width: 100%; }
  .gal-lista { display: flex; gap: 8px; padding-bottom: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gal-lista::-webkit-scrollbar { display: none; }
  .gal-lista li { flex: 0 0 auto; scroll-snap-align: start; }
  .gal-lista button { flex-direction: column; align-items: flex-start; width: 156px; padding: 6px 6px 10px; }
  .gal-lista img { width: 100%; }
  .gal-lista button > span span { display: none; }
  .gal-lista button > span > * { white-space: normal; }
  .specs { grid-template-columns: 1fr; padding-inline: 24px; }
  .ficha-entera > div { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .g-eje:not(.g-x) { display: none; }
  .g-x { font-size: 22px; }
  .g-dentro { font-size: 26px; }
  .insignia { gap: 8px; padding: 6px 12px; font-size: 12.5px; }
  .bento { gap: 10px; }
  .b-tile { padding: 16px 12px 18px; border-radius: 22px; }
  .b-et { font-size: 13px; }
  .b-nota { display: none; }
  .b-num b { font-size: 34px; }
  .b-energia .b-num b { font-size: 48px; }
  .b-funciona, .specs { padding-inline: 18px; border-radius: 22px; }
  .ficha > div, .ficha-entera > div { grid-template-columns: 1fr; gap: 2px; }
  .reproductor, .gal-ver { border-radius: 18px; }
  .play-texto { display: none; }
  .reproductor-ref { display: none; }
  .gal-zoom { height: 30px; padding: 0 10px; font-size: 12px; }
  .gal-pie { position: static; max-width: none; margin-top: 12px; padding: 0; background: none; box-shadow: none; font-size: 14.5px; }
    .portada-ref { bottom: 86px; left: 50%; translate: -50% 0; }
  .pie-arriba { flex-direction: column; align-items: flex-start; }
  .visor figure { padding: 64px 12px 92px; }
  .visor-atras, .visor-adelante { top: auto; bottom: 22px; transform: none; }
  .visor-atras:active, .visor-adelante:active { transform: scale(.94); }
  .visor-atras { left: calc(50% - 56px); }
  .visor-adelante { right: calc(50% - 56px); }
  .visor-ref { left: 12px; top: 22px; }
}
@media (max-width: 400px) {
  .portada-acciones .btn { width: 100%; }
  .portada-acciones { width: 100%; max-width: 320px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .portada-dentro { padding-block: 76px 64px; }
  .portada h1 { margin-top: 14px; font-size: clamp(36px, 15vh, 64px); }
  .portada-bajada { display: none; }
  .portada-acciones { margin-top: 18px; }
    .portada-bajar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sube, .led, .portada-bajar i { animation: none !important; }
  .rv { transition: opacity .3s; }
  .rv.oculto { transform: none; }
  .b-funciona .etapas::after { animation: none !important; transform: none; }
    .galeria .gal-avance { animation: none !important; }
  .nav-burbuja { transition: none; }
}
@media print {
  .nav, .portada-bajar, .portada-pausa { display: none !important; }
  .rv.oculto { opacity: 1 !important; transform: none !important; }
  .js .b-energia:not(.visto) }
