/* Bienvenida con voz de la página principal: portal a pantalla completa, sin botones de pausa ni silencio */
html.bienv-on, html.bienv-on body { overflow: hidden; }
.bienv {
  position: fixed; inset: 0; z-index: 99999; overflow: auto; -webkit-overflow-scrolling: touch;
  display: flex; align-items: center; justify-content: center; padding: 22px 16px;
  background: #070a12; color: #e8ecf4; font-family: var(--font, 'Inter', system-ui, sans-serif);
  transition: opacity .8s ease;
}
.bienv.fin { opacity: 0; pointer-events: none; }
.bv-fondo { position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 520px at 12% 10%, rgba(25,195,125,.22), transparent 62%),
    radial-gradient(700px 520px at 92% 30%, rgba(194,53,192,.20), transparent 62%),
    radial-gradient(760px 560px at 50% 105%, rgba(217,119,87,.24), transparent 62%); }
.bienv > :not(.bv-fondo) { position: relative; }

/* ---------- pantalla de entrada ---------- */
.bv-gate { text-align: center; max-width: 520px; width: 100%; }
.bv-marca { font-size: 1.5rem; margin-bottom: 22px; }
.bv-foto { width: 138px; height: 138px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; display: block; margin: 0 auto 20px;
  border: 3px solid #fff; box-shadow: 0 0 0 5px rgba(25,195,125,.45), 0 0 0 10px rgba(194,53,192,.30), 0 18px 50px rgba(0,0,0,.6); }
.bv-gate h1 { font-size: clamp(2.1rem, 8vw, 3.2rem); line-height: 1.05; font-weight: 900; letter-spacing: -.03em; margin-bottom: 12px; }
.bv-gate h1 span { background: linear-gradient(90deg, #19c37d, #22c8ea 50%, #d97757); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bv-gate p { color: #b9c2d6; font-size: 1.08rem; line-height: 1.5; margin-bottom: 26px; }
.bv-btn { appearance: none; border: 0; cursor: pointer; font: 800 1.2rem var(--font, system-ui); color: #04120c; padding: 19px 38px; border-radius: 999px;
  background: linear-gradient(90deg, #19c37d, #22c8ea); box-shadow: 0 14px 40px rgba(25,195,125,.45); animation: bvLatido 1.6s ease-in-out infinite; }
.bv-btn:active { transform: scale(.97); }
.bv-gate small { display: block; margin-top: 16px; color: #8c96ad; font-size: .92rem; }
@keyframes bvLatido { 50% { transform: scale(1.05); box-shadow: 0 14px 56px rgba(34,200,234,.6); } }

/* ---------- escenario con la voz ---------- */
.bv-stage { display: none; width: 100%; max-width: 980px; }
.bienv.hablando .bv-gate { display: none; }
.bienv.hablando .bv-stage { display: block; animation: bvEntra .6s ease both; }
@keyframes bvEntra { from { opacity: 0; transform: translateY(14px); } }
.bv-top { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.bv-top img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(25,195,125,.4); }
.bv-top b { display: block; font-size: 1.35rem; font-weight: 900; letter-spacing: -.02em; }
.bv-top span { color: #9fb0c8; font-size: .95rem; }
.bv-onda { display: flex; align-items: center; justify-content: center; gap: 4px; height: 58px; margin: 6px 0 18px; }
.bv-onda i { width: 5px; height: 6px; border-radius: 4px; background: linear-gradient(180deg, #22c8ea, #19c37d); transition: height .09s linear; }
.bv-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.bv-card { --c: #19c37d; display: flex; align-items: center; gap: 14px; padding: 15px 17px; border-radius: 18px; background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.12); opacity: .36; transform: scale(.97); transition: all .5s ease; }
.bv-card.c2 { --c: #c235c0; } .bv-card.c3 { --c: #d97757; }
.bv-card .n { font-size: 2.1rem; font-weight: 900; letter-spacing: -.04em; color: var(--c); line-height: 1; min-width: 2.6rem; }
.bv-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 2px; }
.bv-card p { color: #b4bfd2; font-size: .93rem; line-height: 1.35; }
.bv-card.on { opacity: 1; transform: scale(1.025); background: rgba(255,255,255,.08); border-color: var(--c);
  box-shadow: 0 0 0 1px var(--c), 0 16px 50px color-mix(in srgb, var(--c) 45%, transparent); }
.bv-card.visto { opacity: .6; }
.bv-cap { min-height: 3.6em; margin: 20px auto 14px; max-width: 760px; text-align: center; font-size: clamp(1.1rem, 4.2vw, 1.45rem); font-weight: 700; line-height: 1.35; color: #f4f7ff; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.bv-barra { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.bv-barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #19c37d, #22c8ea, #c235c0, #d97757); }
@media (min-width: 760px) {
  .bv-cards { grid-template-columns: repeat(3, 1fr); }
  .bv-card { flex-direction: column; align-items: flex-start; padding: 22px 20px; min-height: 178px; }
  .bv-card .n { font-size: 3rem; }
  .bv-card h3 { font-size: 1.3rem; }
  .bv-onda { height: 70px; }
}

/* "Mi historia" arranca justo cuando el portal se desvanece: mientras el portal está activo, lo ya revelado queda oculto
   y al soltar el bloqueo entra con su transición normal (la foto primero y el texto después) */
html.bienv-on .reveal.in { opacity: 0; transform: translateY(18px); }
html.bienv-sale .historia .foto-col.reveal { transition-delay: .15s; }
html.bienv-sale .historia .texto.reveal { transition-delay: .4s; }
