/* ==========================================================================
   Landing · réplica del diseño de referencia (tablero de una sola pantalla)
   Medidas tomadas del video a 1440 × 923 px. «--u» escala todo a la ventana.
   ========================================================================== */

:root {
  --u: max(0.7px, min(calc(100vw / 1440), calc(100vh / 923)));
  --fondo: #000;
  --panel: #0f0f0f;
  --panel-centro: #0b0b0b;
  --borde: #262626;
  --texto: #f2f2f2;
  --texto-2: #a1a1a1;
  --texto-3: #6f6f6f;
  --hover: #1a1a1a;
  --color-1: #57985f;
  --color-2: #152d8f;
  --radio: calc(16 * var(--u));
  --pad: calc(22 * var(--u));
  --hueco: calc(15 * var(--u));
  --fuente: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fuente-titulo: "Inter Tight", "DM Sans", system-ui, sans-serif;
  --curva: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@supports (height: 100dvh) {
  :root { --u: max(0.7px, min(calc(100vw / 1440), calc(100dvh / 923))); }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--fondo); -webkit-text-size-adjust: 100%; }
body {
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: calc(15 * var(--u));
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
p, h1, h2, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Tablero ---------- */
.tablero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.536fr) minmax(0, 1fr);
  gap: var(--hueco);
  padding: calc(20 * var(--u));
  height: 100vh;
  height: 100dvh;
  min-height: calc(923 * var(--u));
}
.col { display: flex; flex-direction: column; gap: var(--hueco); min-height: 0; }

.panel {
  position: relative;
  background: var(--panel);
  border-radius: var(--radio);
  min-height: 0;
  overflow: hidden;
}

/* ---------- Panel de presentación ---------- */
.p-intro {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: calc(20 * var(--u)) var(--pad) calc(23 * var(--u));
}
.p-intro > .usuario { order: 0; }
.p-intro > .saludo { order: 1; }
.p-intro > .intro-pie { order: 3; }
.usuario:empty { display: none; }
.usuario + .saludo, .usuario:empty + .saludo { margin-top: calc(14 * var(--u)); }
.usuario:empty + .saludo { margin-top: calc(6 * var(--u)); }

/* Logo del dueño en el panel de presentación (se elige la posición en el panel de control). */
.intro-logo {
  order: 0;
  display: block;
  width: auto;
  max-width: 62%;
  height: calc(42 * var(--u));
  object-fit: contain;
  object-position: left center;
}
.intro-logo:not([hidden]) + .usuario { display: none; }
.p-intro.logo-arriba_grande .intro-logo { height: calc(86 * var(--u)); max-width: 82%; margin-bottom: calc(4 * var(--u)); }
.p-intro.logo-centro .intro-logo {
  order: 2;
  height: auto;
  max-height: calc(130 * var(--u));
  max-width: 78%;
  margin: auto 0;
  padding: calc(16 * var(--u)) 0;
}
.p-intro.logo-centro .intro-logo + .usuario:not(:empty) { display: block; }
.p-intro.logo-centro .intro-pie { margin-top: 0; }
.usuario {
  color: var(--texto-2);
  font-size: calc(16 * var(--u));
  font-weight: 500;
  letter-spacing: -0.01em;
}
.saludo {
  margin-top: calc(14 * var(--u));
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: calc(77 * var(--u) * var(--ajuste, 1));
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #fff;
}
.linea { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.linea-texto { display: inline-block; white-space: nowrap; }
.intro-pie { margin-top: auto; padding-top: calc(20 * var(--u)); }
.bio {
  color: var(--texto-2);
  font-size: calc(14.5 * var(--u));
  line-height: 1.5;
  max-width: 34em;
}
.bio strong { color: var(--texto); font-weight: 500; }
.etiquetas {
  display: flex;
  flex-wrap: wrap;
  gap: calc(9 * var(--u)) calc(8 * var(--u));
  margin-top: calc(24 * var(--u));
}
.etiquetas li {
  display: inline-flex;
  align-items: center;
  height: calc(31 * var(--u));
  padding: 0 calc(11.5 * var(--u));
  border: 1px solid var(--borde);
  border-radius: 999px;
  color: #d6d6d6;
  font-size: calc(13.5 * var(--u));
  white-space: nowrap;
}

/* ---------- Panel de ubicación ---------- */
.p-mapa {
  flex: 0 0 calc(96 * var(--u));
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
}
.mapa {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 57%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%);
}
.mapa-lienzo, .mapa-imagen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mapa-imagen { object-position: 70% 50%; }
.mapa-imagen.propia { filter: grayscale(1) brightness(.7) contrast(1.1); }
/* Crédito de OpenStreetMap: se ve unos segundos y se pliega en una «i» (se abre al pasar el ratón o tocarla). */
.mapa-credito {
  position: absolute;
  right: calc(7 * var(--u));
  bottom: calc(6 * var(--u));
  display: flex;
  align-items: center;
  height: max(14px, calc(15 * var(--u)));
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: rgba(255,255,255,.62);
  font-size: max(9px, calc(9.5 * var(--u)));
  line-height: 1;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.mapa-credito-texto {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  padding-left: 0;
  transition: max-width .55s var(--curva), opacity .35s ease, padding .55s var(--curva);
}
.mapa-credito-i {
  display: grid;
  place-items: center;
  width: max(14px, calc(15 * var(--u)));
  height: max(14px, calc(15 * var(--u)));
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.55);
  font: italic 600 max(8px, calc(9 * var(--u)))/1 Georgia, "Times New Roman", serif;
  opacity: .55;
  transition: opacity .3s ease, border-color .3s ease;
}
.mapa-credito.abierto .mapa-credito-texto,
.mapa-credito:hover .mapa-credito-texto,
.mapa-credito:focus-visible .mapa-credito-texto { max-width: 12em; opacity: 1; padding-left: .7em; padding-right: .35em; }
.mapa-credito.abierto .mapa-credito-i,
.mapa-credito:hover .mapa-credito-i,
.mapa-credito:focus-visible .mapa-credito-i { opacity: 1; border-color: rgba(255,255,255,.4); }
.mapa-punto {
  position: absolute;
  left: 70%; top: 50%;
  width: calc(10 * var(--u)); height: calc(10 * var(--u));
  margin: calc(-5 * var(--u)) 0 0 calc(-5 * var(--u));
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 calc(8 * var(--u)) calc(2 * var(--u)) rgba(255,255,255,.45);
}
.mapa-punto::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: calc(40 * var(--u)); height: calc(40 * var(--u));
  margin: calc(-20 * var(--u)) 0 0 calc(-20 * var(--u));
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.42) 0%, rgba(255,255,255,.16) 38%, rgba(255,255,255,0) 70%);
  animation: latido 2.6s ease-in-out infinite;
}
@keyframes latido {
  0%, 100% { transform: scale(.55); opacity: .9; }
  50% { transform: scale(1.15); opacity: .55; }
}
.mapa-texto { position: relative; max-width: 60%; }
.ciudad {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  text-shadow: 0 0 calc(10 * var(--u)) #0f0f0f, 0 0 calc(4 * var(--u)) #0f0f0f;
  font-size: calc(16 * var(--u)); font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.hora { margin-top: calc(3 * var(--u)); font-size: calc(12.5 * var(--u)); color: var(--texto-2); }
.hora time { margin-right: calc(6 * var(--u)); font-variant-numeric: tabular-nums; }

/* ---------- Panel de botones ---------- */
.p-botones {
  flex: 0 0 calc(98 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(11 * var(--u));
  padding: 0 var(--pad);
}
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(52 * var(--u));
  border-radius: 999px;
  font-size: calc(16 * var(--u));
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, transform .2s var(--curva);
}
.boton:active { transform: scale(.97); }
.boton-claro { flex: 1 1 auto; background: #fff; color: #0b0b0b; padding: 0 calc(20 * var(--u)); }
.boton-claro:hover { background: #e4e4e4; }

/* ---------- Panel central (credencial) ---------- */
.p-centro { background: var(--panel-centro); isolation: isolate; }
.centro-brillo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(95% 50% at 0% 0%, var(--color-1) 0%, color-mix(in srgb, var(--color-1) 36%, transparent) 46%, transparent 100%),
    radial-gradient(88% 56% at 100% 0%, var(--color-2) 0%, color-mix(in srgb, var(--color-2) 40%, transparent) 46%, transparent 100%);
}
.centro-puntos {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='77' height='77' viewBox='0 0 77 77'%3E%3Cpath d='M38.5 35.8v5.4M35.8 38.5h5.4' stroke='%23ffffff' stroke-opacity='.16' stroke-width='1.1'/%3E%3C/svg%3E");
  background-size: calc(77 * var(--u)) calc(77 * var(--u));
  background-position: center calc(50% - 20 * var(--u));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), #000 40%, #000 85%, rgba(0,0,0,.6));
          mask-image: linear-gradient(180deg, rgba(0,0,0,.55), #000 40%, #000 85%, rgba(0,0,0,.6));
}
.credencial { position: absolute; inset: 0; }
.centro-pie {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(22 * var(--u));
  text-align: center;
  pointer-events: none;
}
.credencial-titulo { font-size: calc(16 * var(--u)); font-weight: 600; color: #dcdcdc; letter-spacing: -0.01em; }
.credencial-subtitulo { margin-top: calc(2 * var(--u)); font-size: calc(12 * var(--u)); color: #4d4d4d; }

/* Credencial de respaldo (si no hay 3D) */
.cred-plana {
  position: absolute;
  left: 50%; top: 46%;
  width: min(62%, calc(370 * var(--u)));
  aspect-ratio: 0.77;
  transform: translate(-50%, -50%) perspective(1100px) rotateY(var(--ry, -14deg)) rotateX(var(--rx, 4deg));
  transition: transform .9s var(--curva);
  border-radius: calc(26 * var(--u));
  padding: calc(14 * var(--u));
  background: linear-gradient(150deg, rgba(60,60,64,.9), rgba(16,16,18,.95));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px rgba(0,0,0,.6);
}
.cred-plana::before {
  content: "";
  position: absolute;
  left: 50%; top: calc(-46 * var(--u));
  width: calc(40 * var(--u)); height: calc(60 * var(--u));
  margin-left: calc(-20 * var(--u));
  border-radius: calc(10 * var(--u));
  background: #121212;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.cred-plana-foto {
  position: relative;
  width: 100%; height: 100%;
  border-radius: calc(16 * var(--u));
  overflow: hidden;
  background: linear-gradient(180deg, #c3cbd3, #9aa5b0);
}
.cred-plana-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.cred-plana-marca {
  position: absolute;
  left: 0; right: 0; top: 7%;
  text-align: center;
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-size: calc(46 * var(--u));
  line-height: .92;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,.82);
  white-space: pre-line;
}

/* ---------- Panel de redes (panal) ---------- */
.p-redes { flex: 0 0 calc(365 * var(--u)); container-type: size; }
.panal {
  --hw: min(calc(103 * var(--u)), 31cqh, 27.5cqw);
  position: absolute;
  inset: 0;
}
.panal-lineas {
  position: absolute;
  left: 50%; top: 50%;
  width: calc(var(--hw) * 6);
  height: calc(var(--hw) * 6);
  transform: translate(-50%, -50%);
  overflow: visible;
  -webkit-mask-image: radial-gradient(closest-side, #000 22%, rgba(0,0,0,.45) 42%, transparent 60%);
          mask-image: radial-gradient(closest-side, #000 22%, rgba(0,0,0,.45) 42%, transparent 60%);
}
.panal-lineas polygon { fill: none; stroke: #232323; stroke-width: 1; vector-effect: non-scaling-stroke; }
.celda {
  position: absolute;
  left: calc(50% + var(--x) * var(--hw));
  top: calc(50% + var(--y) * var(--hw));
  width: var(--hw);
  height: calc(var(--hw) * 1.1547);
  transform: translate(-50%, -50%);
}
.celda-enlace {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  color: #e9e9e9;
  transition: background-color .45s ease;
}
.celda-enlace:hover, .celda-enlace:focus-visible { background-color: #1c1c1c; transition-duration: .2s; }
.celda-enlace:focus-visible { outline: none; background-color: #262626; }
.celda-icono {
  width: calc(var(--hw) * .235);
  height: calc(var(--hw) * .235);
  transition: transform .45s var(--curva);
}
.celda-icono svg, .celda-icono img { width: 100%; height: 100%; display: block; }
.celda-icono img { object-fit: contain; }
.celda-icono.con-imagen { width: calc(var(--hw) * .44); height: calc(var(--hw) * .3); }
.celda-icono.con-imagen.monocromo { width: calc(var(--hw) * .26); height: calc(var(--hw) * .26); }
.mascara {
  display: block;
  width: 100%; height: 100%;
  background: currentColor;
  -webkit-mask: var(--mascara) center / contain no-repeat;
          mask: var(--mascara) center / contain no-repeat;
}
.celda-nombre {
  position: absolute;
  top: calc(50% + var(--hw) * .13);
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: max(10px, calc(var(--hw) * .108));
  color: #8d8d8d;
  opacity: 0;
  transform: translateY(calc(var(--hw) * -.05));
  transition: opacity .35s ease, transform .45s var(--curva);
}
.celda-enlace:hover .celda-icono, .celda-enlace:focus-visible .celda-icono { transform: translateY(calc(var(--hw) * -.07)) scale(1.12); }
.celda-enlace:hover .celda-nombre, .celda-enlace:focus-visible .celda-nombre { opacity: 1; transform: translateY(0); }
.orbe {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 40%),
    conic-gradient(from 200deg, #3d7bff, #8b5cff, #ff4fa3, #ff8f5a, #3de0ff, #3d7bff);
  box-shadow: 0 0 calc(var(--hw) * .08) rgba(139,92,255,.45);
}

/* ---------- Botones destacados (3 recuadros) ----------
   Apagados: píldora gris y texto apagado. Al pasar el ratón: se llenan con el verde y el azul
   de la credencial, con aro de luz, brillo que recorre el borde y destellos que flotan. */
@property --giro { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.accesos {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--hueco);
  min-height: 0;
  --c1: color-mix(in oklab, var(--color-1) 80%, #fff 20%);
  --c2: color-mix(in oklab, var(--color-2) 72%, #fff 28%);
  --cm: color-mix(in oklab, var(--c1), var(--c2));
}
/* Donde el navegador lo permite, el verde y el azul del botón salen más vivos que los del fondo. */
@supports (color: oklch(from red l c h)) {
  .accesos {
    --c1: oklch(from var(--color-1) calc(l + 0.1) calc(c * 1.45) h);
    --c2: oklch(from var(--color-2) calc(l + 0.16) calc(c * 1.1) h);
  }
}
.acceso {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(16 * var(--u)) var(--pad);
  text-align: center;
  isolation: isolate;
  cursor: pointer;
}
.acceso::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 75% at 50% 42%, color-mix(in oklab, var(--cm) 34%, transparent), transparent 75%),
    radial-gradient(90% 90% at 50% 100%, color-mix(in oklab, var(--c2) 16%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .6s ease;
}
.acceso-boton {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--u));
  max-width: 100%;
  height: calc(50 * var(--u));
  padding: 0 calc(26 * var(--u)) 0 calc(22 * var(--u));
  border-radius: 999px;
  background-color: #1d1d1d;
  background-image: linear-gradient(100deg, var(--c1) 0%, var(--cm) 52%, var(--c2) 100%);
  background-size: 100% 100%;
  color: #6c6c6c;
  font-size: calc(15.5 * var(--u));
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 0 0 calc(6 * var(--u)) rgba(255,255,255,.018), inset 0 1px 0 rgba(255,255,255,.035);
  transition: color .5s ease, box-shadow .6s ease, transform .3s var(--curva);
}
/* La capa gris tapa el degradado y se desvanece al pasar el ratón (los degradados no se animan solos). */
.acceso-boton::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #1d1d1d;
  transition: opacity .55s ease;
}
/* Brillo de abajo + brillo que recorre el borde. */
.acceso-boton::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background:
    conic-gradient(from var(--giro), transparent 0deg 250deg, rgba(255,255,255,.95) 300deg, transparent 340deg 360deg) border-box;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.acceso-luz {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(70% 90% at 50% 120%, rgba(255,255,255,.38), transparent 60%);
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}
.acceso-icono, .acceso-texto { position: relative; }
.acceso-icono { display: block; width: calc(20 * var(--u)); height: calc(20 * var(--u)); flex: none; color: #575757; transition: color .5s ease, transform .5s var(--curva); }
.acceso-icono svg, .acceso-icono img { display: block; width: 100%; height: 100%; }
.acceso-icono img { object-fit: contain; }
.acceso-texto { overflow: hidden; text-overflow: ellipsis; }
.acceso-descripcion {
  margin-top: calc(13 * var(--u));
  max-width: 30em;
  font-size: calc(13 * var(--u));
  line-height: 1.45;
  color: var(--texto-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .5s ease;
}
.acceso-particulas { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.acceso-particulas i {
  position: absolute;
  left: var(--px); top: var(--py);
  width: var(--pt); height: var(--pt);
  background: color-mix(in oklab, var(--c1) 45%, #fff 55%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0c.4 2.9 1.4 4 5 5-3.6 1-4.6 2.1-5 5-.4-2.9-1.4-4-5-5 3.6-1 4.6-2.1 5-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0c.4 2.9 1.4 4 5 5-3.6 1-4.6 2.1-5 5-.4-2.9-1.4-4-5-5 3.6-1 4.6-2.1 5-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  animation: destello var(--pd) ease-in-out var(--pr) infinite;
  animation-play-state: paused;
}
@keyframes destello {
  0% { opacity: 0; transform: translateY(calc(6 * var(--u))) scale(.5); }
  35% { opacity: .85; }
  70% { opacity: .35; }
  100% { opacity: 0; transform: translateY(calc(-16 * var(--u))) scale(1); }
}
@keyframes recorrer { to { --giro: 360deg; } }
@keyframes centelleo-grande { 0%, 100% { transform: scale(1); } 50% { transform: scale(.82) rotate(12deg); } }
@keyframes centelleo-chica { 0%, 100% { opacity: .55; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes latir { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.ico-chispa path { transform-box: fill-box; transform-origin: center; }
.ico-chispa .e-chica, .ico-chispa .e-mini { opacity: .6; }

/* Encendido: con el ratón, con el teclado o (en celular) cuando el recuadro pasa por el centro de la pantalla. */
.acceso:hover::before, .acceso:focus-visible::before, .acceso.activo::before { opacity: 1; }
.acceso:hover .acceso-boton, .acceso:focus-visible .acceso-boton, .acceso.activo .acceso-boton {
  color: #fff;
  box-shadow:
    0 0 0 calc(6 * var(--u)) color-mix(in oklab, var(--cm) 34%, transparent),
    0 0 calc(34 * var(--u)) calc(4 * var(--u)) color-mix(in oklab, var(--cm) 38%, transparent),
    inset 0 1px 0 rgba(255,255,255,.4);
}
.acceso:hover .acceso-boton::before, .acceso:focus-visible .acceso-boton::before, .acceso.activo .acceso-boton::before { opacity: 0; }
.acceso:hover .acceso-boton::after, .acceso:focus-visible .acceso-boton::after, .acceso.activo .acceso-boton::after { opacity: 1; animation: recorrer 2.6s linear infinite; }
.acceso:hover .acceso-luz, .acceso:focus-visible .acceso-luz, .acceso.activo .acceso-luz { opacity: 1; }
.acceso:hover .acceso-icono, .acceso:focus-visible .acceso-icono, .acceso.activo .acceso-icono { color: #fff; }
.acceso:hover .acceso-icono:not(:has(.ico-chispa)), .acceso:focus-visible .acceso-icono:not(:has(.ico-chispa)), .acceso.activo .acceso-icono:not(:has(.ico-chispa)) { animation: latir 1.8s ease-in-out infinite; }
.acceso:hover .e-grande, .acceso:focus-visible .e-grande, .acceso.activo .e-grande { animation: centelleo-grande 1.8s ease-in-out infinite; }
.acceso:hover .e-chica, .acceso:focus-visible .e-chica, .acceso.activo .e-chica { animation: centelleo-chica 1.2s ease-in-out infinite; }
.acceso:hover .e-mini, .acceso:focus-visible .e-mini, .acceso.activo .e-mini { animation: centelleo-chica 1.2s ease-in-out .6s infinite; }
.acceso:hover .acceso-descripcion, .acceso:focus-visible .acceso-descripcion, .acceso.activo .acceso-descripcion { color: #a9a9a9; }
.acceso:hover .acceso-particulas, .acceso:focus-visible .acceso-particulas, .acceso.activo .acceso-particulas { opacity: 1; }
.acceso:hover .acceso-particulas i, .acceso:focus-visible .acceso-particulas i, .acceso.activo .acceso-particulas i { animation-play-state: running; }
.acceso:active .acceso-boton { transform: scale(.97); }
.acceso:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: -2px; }
.accesos[hidden] { display: none; }
.col-der:has(.accesos[hidden]) .p-redes { flex: 1 1 auto; }
.accesos.compactos .acceso { padding-top: calc(8 * var(--u)); padding-bottom: calc(8 * var(--u)); }
.accesos.compactos .acceso-boton { height: calc(42 * var(--u)); font-size: calc(14.5 * var(--u)); padding: 0 calc(20 * var(--u)) 0 calc(17 * var(--u)); }
.accesos.compactos .acceso-icono { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.accesos.compactos .acceso-descripcion { margin-top: calc(8 * var(--u)); font-size: calc(12.5 * var(--u)); -webkit-line-clamp: 1; }

/* ---------- Entrada animada ---------- */
html.cargando [data-entrada],
html.cargando .linea-texto,
html.cargando .celda,
html.cargando .acceso-boton,
html.cargando .acceso-descripcion,
html.cargando .panal-lineas,
html.cargando .etiquetas li { opacity: 0; }
html.entrada [data-entrada] { animation: aparecer .75s ease both; animation-delay: var(--d, 0ms); }
html.entrada .panel[data-entrada] { animation-name: aparecer-panel; animation-duration: .6s; }
html.entrada .linea-texto { animation: subir .8s var(--curva) both; animation-delay: var(--d, 0ms); }
html.entrada .etiquetas li,
html.entrada .acceso-boton,
html.entrada .acceso-descripcion,
html.entrada .celda { animation: aparecer-sube .6s var(--curva) both; animation-delay: var(--d, 0ms); }
html.entrada .panal-lineas { animation: aparecer 1s ease both; animation-delay: var(--d, 0ms); }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes aparecer-panel { from { opacity: 0; filter: brightness(.4); } to { opacity: 1; filter: none; } }
@keyframes subir { from { transform: translateY(105%); } to { transform: none; } }
@keyframes aparecer-sube { from { opacity: 0; transform: translateY(calc(6 * var(--u))); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
html.entrada .celda { animation-name: aparecer-celda; }
@keyframes aparecer-celda {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.85); filter: blur(3px); }
  to { opacity: 1; transform: translate(-50%, -50%); filter: none; }
}

.sin-js { position: fixed; inset: auto 0 20px; text-align: center; color: #888; }

/* ---------- Tableta ---------- */
@media (max-width: 1099px) and (min-width: 760px) {
  :root { --u: 0.86px; }
  .tablero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    grid-template-rows: calc(800 * var(--u)) auto;
    height: auto;
    min-height: 0;
  }
  .col-der { display: contents; }
  .p-redes { flex: none; height: auto; min-height: calc(420 * var(--u)); }
  .accesos { flex: none; }
  .acceso { min-height: calc(130 * var(--u)); }
}

/* ---------- Celular ---------- */
@media (max-width: 759px) {
  :root { --u: 1px; --pad: 20px; --hueco: 12px; --radio: 18px; }
  .tablero { display: flex; flex-direction: column; height: auto; min-height: 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  .col { display: contents; }
  .p-intro { order: 1; min-height: 0; padding-top: 18px; }
  .saludo { font-size: calc(clamp(46px, 15vw, 64px) * var(--ajuste, 1)); margin-top: 10px; }
  .intro-pie { margin-top: 36px; }
  .p-centro { order: 2; height: min(132vw, 600px); }
  .p-botones { order: 3; flex: none; height: 84px; }
  .p-mapa { order: 4; flex: none; height: 92px; }
  .p-redes { order: 5; flex: none; height: 330px; }
  .accesos { order: 6; flex: none; }
  .acceso { min-height: 150px; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html.entrada [data-entrada], html.entrada .linea-texto, html.entrada .etiquetas li,
  html.entrada .acceso-boton, html.entrada .acceso-descripcion, html.entrada .celda, html.entrada .panal-lineas { animation: none !important; }
  html.cargando [data-entrada], html.cargando .linea-texto, html.cargando .celda,
  html.cargando .acceso-boton, html.cargando .acceso-descripcion, html.cargando .panal-lineas, html.cargando .etiquetas li { opacity: 1; }
  .acceso-particulas { display: none; }
  .acceso .acceso-boton::after { animation: none !important; }
  .acceso .acceso-icono, .acceso .ico-chispa path { animation: none !important; }
  .mapa-punto::before { animation: none; }
  * { transition-duration: .01ms !important; }
}
