/* Portada (vestíbulo): logo grande, panal que se ilumina y tres links. */

.portada {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--e-6) var(--e-4) var(--e-7);
  overflow: hidden;
  background: var(--blanco);
}

.portada__centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--e-6);
  width: 100%;
}

/* El logo necesita aire alrededor: al menos la altura de la "B" */
.portada__escena {
  position: relative;
  width: min(500px, 86vw);
  padding: var(--e-5);
}

.portada__logo {
  position: relative;
  z-index: 1;
  width: 100%;
  animation: logo-aparece 0.8s var(--curva) 0.2s both;
}
@keyframes logo-aparece {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* Destello detrás del logo (el logo no lleva sombras) y luego brillo suave y lento */
.portada__destello {
  position: absolute;
  inset: -18% -22%;
  z-index: 0;
  background: radial-gradient(closest-side, var(--oro-claro) 0%, color-mix(in srgb, var(--oro-claro) 45%, transparent) 40%, transparent 72%);
  opacity: 0;
  animation:
    destello 1.2s ease-out 0.25s both,
    respiro 7s ease-in-out 1.6s infinite;
}
@keyframes destello {
  0% { opacity: 0; transform: scale(0.6); }
  35% { opacity: 0.95; }
  100% { opacity: 0.3; transform: scale(1); }
}
@keyframes respiro {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.45; }
}

.portada__enlaces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--e-3);
  animation: aparece 0.6s ease-out 1.7s both;
}
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }

.portada__enlaces .btn { min-width: 180px; }

/* Panal animado: hexágonos generados por portada.js */
.panal-fondo[data-panal-animado].tiene-hexagonos { background-image: none; }
.panal-fondo svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.hex {
  fill: transparent;
  stroke: var(--panal-suave);
  stroke-width: 2.4;
  stroke-linejoin: round;
  animation: hex-ilumina 0.9s ease-out var(--d, 0s) both;
}
@keyframes hex-ilumina {
  0% { stroke: var(--panal-suave); fill: transparent; }
  35% {
    stroke: var(--amarillo-bee);
    stroke-width: 3.2;
    fill: color-mix(in srgb, var(--amarillo-bee) 38%, transparent);
  }
  100% { stroke: var(--panal-suave); fill: transparent; }
}

/* Celular: logo arriba, botones apilados a ancho completo */
@media (max-width: 640px) {
  .portada { place-items: start center; padding-top: var(--e-7); }
  .portada__enlaces { flex-direction: column; width: 100%; max-width: 420px; }
  .portada__enlaces .btn { width: 100%; }
  .portada__registro { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .portada__logo, .portada__enlaces { animation: aparece 0.3s ease-out both; }
  .portada__destello { animation: none; opacity: 0.3; }
  .hex { animation: none; }
}
