/* ══════════════════════════════════════════════════
   Alma y Simón, una aventura mágica
   css/estilos.css
   ══════════════════════════════════════════════════ */

/* ── VARIABLES GLOBALES ── */
:root {
  --oro:    #c9a84c;
  --oro2:   #f0d080;
  --tinta:  #1a0f00;
  --papel:  #f5efe6;
  --magic:  #a855f7;
  --magic2: #ec4899;
  --verde:  #4caf82;
  --header: 52px;
  --ctrl:   68px;
}

/* ── RESET BÁSICO ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: Georgia, "Times New Roman", serif;
  background: #08040e;
  color: var(--tinta);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ══════════════════════════════════════════════════
   CANVAS FONDO DINÁMICO
   ══════════════════════════════════════════════════ */
#fondo-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: background .8s ease;
}

/* ══════════════════════════════════════════════════
   BARRA DE PROGRESO
   ══════════════════════════════════════════════════ */
#barra-progreso {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--magic), var(--oro), var(--magic2));
  width: 0%;
  transition: width .5s ease;
  z-index: 1100;
  box-shadow: 0 0 10px var(--oro);
}

/* ══════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header);
  background: rgba(13,7,0,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 1000;
  gap: 10px;
}
.header-titulo {
  font-size: .88rem;
  color: var(--oro);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.header-pag {
  font-size: .75rem;
  color: rgba(201,168,76,.65);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-lector {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c9b89a;
  font-size: .78rem;
  flex-shrink: 0;
}
.header-lector img {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--oro);
  object-fit: cover;
}
@media (max-width: 480px) {
  .header-titulo { display: none; }
  .header-lector span { display: none; }
}

/* ══════════════════════════════════════════════════
   ÁREA DE LECTURA
   ══════════════════════════════════════════════════ */
.lector-area {
  position: fixed;
  top: var(--header); left: 0; right: 0; bottom: var(--ctrl);
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Canvas de watermark invisible */
#wm-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
}

/* Grilla anti-screenshot sutil */
.anti-ss {
  position: absolute;
  inset: 0;
  z-index: 49;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(13,7,0,.015) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(13,7,0,.015) 40px);
}

/* ── ZOOM CONTAINER ── */
.zoom-container {
  position: relative;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform-origin: center center;
  cursor: grab;
  z-index: 10;
}
.zoom-container.animando { transition: transform .25s ease; }
.zoom-container:active    { cursor: grabbing; }

/* ── PÁGINA ── */
.pagina-wrapper {
  position: relative;
  max-width: min(620px, 94vw);
  width: 100%;
  border-radius: 3px 10px 10px 3px;
  overflow: visible;
  background: #fff;
  flex-shrink: 0;
  box-shadow: -4px 0 8px rgba(0,0,0,.35), 0 16px 50px rgba(0,0,0,.6);
}
.pagina-wrapper::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 22px;
  background: linear-gradient(90deg, rgba(0,0,0,.18), transparent);
  z-index: 10;
  pointer-events: none;
}
#imgPagina {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
  border-radius: 3px 10px 10px 3px;
}

/* ── ANIMACIONES VUELTA DE PÁGINA ── */
.pagina-wrapper.sal-sig { animation: salSig .28s ease forwards; }
.pagina-wrapper.sal-ant { animation: salAnt .28s ease forwards; }
.pagina-wrapper.ent-sig { animation: entSig .28s ease both; }
.pagina-wrapper.ent-ant { animation: entAnt .28s ease both; }

@keyframes salSig {
  to { transform: perspective(1000px) rotateY(-22deg) translateX(-6%) scale(.96); opacity: 0; }
}
@keyframes salAnt {
  to { transform: perspective(1000px) rotateY(22deg) translateX(6%) scale(.96); opacity: 0; }
}
@keyframes entSig {
  from { transform: perspective(1000px) rotateY(14deg) translateX(4%) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes entAnt {
  from { transform: perspective(1000px) rotateY(-14deg) translateX(-4%) scale(.97); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ── CANVAS DE EFECTOS POR PÁGINA ── */
#efecto-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.niebla-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: none;
  overflow: hidden;
}

/* ── EFECTO TEMBLOR ── */
@keyframes temblor {
  0%,100% { transform: translate(0,0); }
  10%     { transform: translate(-3px,1px); }
  20%     { transform: translate(3px,-2px); }
  30%     { transform: translate(-2px,3px); }
  40%     { transform: translate(2px,1px); }
  50%     { transform: translate(-3px,-1px); }
  60%     { transform: translate(3px,2px); }
  70%     { transform: translate(-1px,-3px); }
  80%     { transform: translate(1px,3px); }
  90%     { transform: translate(-2px,-1px); }
}
.pagina-wrapper.temblor { animation: temblor .7s ease; }

/* ── LOADER ── */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 14px;
  color: rgba(201,168,76,.5);
  font-style: italic;
  font-size: .85rem;
}
.loader-ring {
  width: 32px; height: 32px;
  border: 2px solid rgba(201,168,76,.2);
  border-top-color: var(--oro);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════
   CONTROLES INFERIORES
   ══════════════════════════════════════════════════ */
.controles {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--ctrl);
  background: rgba(10,5,0,.93);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(201,168,76,.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  gap: 6px;
}
.ctrl-nav  { display: flex; align-items: center; gap: 5px; flex: 1; }
.ctrl-info { flex: 1; text-align: center; color: #c9b89a; font-size: .8rem; }
.ctrl-info strong { color: var(--oro); font-size: .98rem; }
.ctrl-zoom { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: flex-end; }

.btn-ctrl {
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.26);
  color: var(--oro);
  border-radius: 50%;
  cursor: pointer;
  transition: all .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
.btn-ctrl:hover:not(:disabled) { background: rgba(201,168,76,.22); border-color: var(--oro); }
.btn-ctrl:active:not(:disabled) { transform: scale(.86); }
.btn-ctrl:disabled { opacity: .2; cursor: not-allowed; }
.btn-pag  { width: 46px; height: 46px; font-size: 1.5rem; }
.btn-zoom { width: 36px; height: 36px; font-size: 1rem; font-weight: 700; }
.zoom-pct { color: rgba(201,168,76,.6); font-size: .7rem; min-width: 32px; text-align: center; }

/* ══════════════════════════════════════════════════
   BOTONES FLOTANTES
   ══════════════════════════════════════════════════ */

/* ── Botón de voz por página ── */
.voz-btn {
  position: fixed;
  right: 14px;
  bottom: calc(var(--ctrl) + 60px);
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--magic), var(--magic2));
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(168,85,247,.5);
  z-index: 900;
  transition: all .25s;
  -webkit-tap-highlight-color: transparent;
  animation: vozPulso 2.5s ease-in-out infinite;
}
.voz-btn.visible { display: flex; }
@keyframes vozPulso {
  0%,100% { box-shadow: 0 4px 20px rgba(168,85,247,.5); transform: scale(1); }
  50%     { box-shadow: 0 4px 30px rgba(236,72,153,.7); transform: scale(1.07); }
}
.voz-btn.play {
  animation: none;
  background: linear-gradient(135deg, #6d28d9, #be185d);
  box-shadow: 0 0 0 4px rgba(168,85,247,.3);
}

/* ── Botón flotante de sonido (izquierda) ── */
.btn-flotante {
  position: fixed;
  left: 14px;
  width: 40px; height: 40px;
  background: rgba(13,7,0,.85);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 50%;
  color: var(--oro);
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  z-index: 800;
  backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
}
.btn-flotante:hover { background: rgba(201,168,76,.15); transform: scale(1.1); }
.btn-flotante.activo { box-shadow: 0 0 12px rgba(201,168,76,.35); }
#btnSonido { bottom: calc(var(--ctrl) + 60px); }

/* ── Indicador de inactividad ── */
#inactivoInd {
  position: fixed;
  left: 14px;
  bottom: calc(var(--ctrl) + 108px);
  background: rgba(13,7,0,.9);
  border: 1px solid rgba(201,168,76,.3);
  color: var(--oro);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: .7rem;
  letter-spacing: .06em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  z-index: 800;
}
#inactivoInd.visible { opacity: 1; }

/* ── Botón "A la gorra" ── */
.btn-gorra {
  position: fixed;
  right: 14px;
  bottom: calc(var(--ctrl) + 14px);
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 16px rgba(245,158,11,.4);
  z-index: 900;
  transition: transform .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  letter-spacing: .03em;
  font-family: inherit;
  animation: gorraPulso 3s ease-in-out infinite;
}
.btn-gorra:hover  { transform: scale(1.07) !important; box-shadow: 0 6px 28px rgba(245,158,11,.65); }
.btn-gorra:active { transform: scale(.95) !important; }
@keyframes gorraPulso {
  0%,100% { box-shadow: 0 4px 16px rgba(245,158,11,.4); transform: scale(1); }
  50%     { box-shadow: 0 4px 28px rgba(245,158,11,.65); transform: scale(1.04); }
}

/* ══════════════════════════════════════════════════
   MODALES
   ══════════════════════════════════════════════════ */

/* ── Modal base overlay ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  background: linear-gradient(145deg, #1a1000, #0d0700);
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 20px;
  padding: 36px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(201,168,76,.15), 0 32px 80px rgba(0,0,0,.6);
  animation: cardEntra .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes cardEntra {
  from { transform: translateY(30px) scale(.95); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal-titulo { font-size: 1.4rem; color: var(--oro2); font-style: italic; margin-bottom: 6px; }
.modal-sub    { font-size: .82rem; color: rgba(201,168,76,.55); margin-bottom: 24px; line-height: 1.6; }
.modal-cerrar {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  color: rgba(201,168,76,.5);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}
.modal-cerrar:hover { color: var(--oro); }

/* ── Modal "A la gorra" ── */
.gorra-emoji   { font-size: 3rem; margin-bottom: 16px; }
.alias-box {
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 10px;
  padding: 14px 20px;
  margin: 16px 0;
  cursor: pointer;
  transition: .2s;
}
.alias-box:hover { background: rgba(201,168,76,.15); }
.alias-label {
  font-size: .7rem;
  color: rgba(201,168,76,.55);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.alias-valor { font-size: 1.2rem; color: var(--oro2); font-weight: 700; letter-spacing: .04em; }
.alias-hint  { font-size: .7rem; color: rgba(255,255,255,.3); margin-top: 4px; }
.gorra-desc  { font-size: .8rem; color: rgba(255,255,255,.45); line-height: 1.7; margin-bottom: 20px; }
.gorra-desc strong { color: var(--oro); }
.btn-copiar {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  margin-bottom: 10px;
}
.btn-copiar:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,.4); }
.btn-copiar.copiado { background: linear-gradient(135deg, #4caf82, #388e5f); }
.mp-link {
  display: block;
  color: rgba(201,168,76,.5);
  font-size: .72rem;
  text-decoration: none;
  margin-top: 8px;
}
.mp-link:hover { color: var(--oro); }

/* ── Modal Bienvenida ── */
.modal-bienvenida {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bienvenida-card {
  background: linear-gradient(145deg, #1a0830, #0d0700);
  border: 1px solid rgba(168,85,247,.35);
  border-radius: 20px;
  padding: 36px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(168,85,247,.2), 0 32px 80px rgba(0,0,0,.6);
  animation: cardEntra .6s .1s cubic-bezier(.34,1.56,.64,1) both;
  position: relative;
}
.bienvenida-estrellas { font-size: 2rem; margin-bottom: 12px; letter-spacing: .3em; }
.bienvenida-titulo    { font-size: 1.5rem; color: var(--oro2); font-style: italic; margin-bottom: 6px; }
.bienvenida-sub       { font-size: .82rem; color: rgba(201,168,76,.55); margin-bottom: 24px; line-height: 1.6; }

.audio-status {
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.3);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.audio-onda {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 24px;
  margin-bottom: 8px;
}
.onda-bar {
  width: 3px;
  background: var(--magic);
  border-radius: 2px;
  animation: onda 1.2s ease-in-out infinite;
}
.onda-bar:nth-child(1) { height: 8px;  animation-delay: 0s; }
.onda-bar:nth-child(2) { height: 18px; animation-delay: .15s; }
.onda-bar:nth-child(3) { height: 24px; animation-delay: .3s; }
.onda-bar:nth-child(4) { height: 14px; animation-delay: .45s; }
.onda-bar:nth-child(5) { height: 8px;  animation-delay: .6s; }
.onda-bar.pausa { animation: none; height: 4px !important; }
@keyframes onda {
  0%,100% { transform: scaleY(.4); }
  50%     { transform: scaleY(1); }
}
.audio-msg { font-size: .78rem; color: rgba(255,255,255,.6); font-style: italic; }
.audio-msg strong { color: var(--magic2); }

.volumen-aviso {
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: .76rem;
  color: rgba(245,158,11,.9);
  line-height: 1.5;
}
.btn-comenzar {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--magic), var(--magic2));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  letter-spacing: .05em;
}
.btn-comenzar:hover  { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(168,85,247,.4); }
.btn-comenzar:active { transform: scale(.97); }

/* ── Modal Fin del libro ── */
.modal-fin {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex-direction: column;
  gap: 0;
}
.modal-fin.visible { display: flex; }
.fin-card {
  background: linear-gradient(145deg, #12080a, #0d0700);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 20px;
  padding: 40px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 80px rgba(201,168,76,.12), 0 32px 80px rgba(0,0,0,.7);
  animation: cardEntra .7s cubic-bezier(.34,1.56,.64,1) both;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.fin-estrellas { font-size: 2.2rem; letter-spacing: .3em; margin-bottom: 16px; }
.fin-titulo    { font-size: 1.6rem; color: var(--oro2); font-style: italic; margin-bottom: 8px; }
.fin-sub       { font-size: .85rem; color: rgba(201,168,76,.6); margin-bottom: 24px; line-height: 1.7; }

.autor-audio-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: .2s;
  width: 100%;
}
.autor-audio-btn:hover { background: rgba(201,168,76,.15); }
.autor-icon { font-size: 1.8rem; flex-shrink: 0; }
.autor-info { text-align: left; }
.autor-info strong { display: block; color: var(--oro); font-size: .9rem; margin-bottom: 2px; }
.autor-info span   { font-size: .75rem; color: rgba(255,255,255,.45); font-style: italic; }
.fin-nota {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
  line-height: 1.6;
  font-style: italic;
}
.fin-acciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.btn-fin {
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.btn-fin-gorra  { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.btn-fin-releer { background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.3); color: var(--oro); }
.btn-fin:hover  { transform: translateY(-1px); }

/* ══════════════════════════════════════════════════
   ELEMENTOS FLOTANTES MENORES
   ══════════════════════════════════════════════════ */

/* Toast de voz especial */
.voz-toast {
  position: fixed;
  bottom: calc(var(--ctrl) + 115px);
  right: 14px;
  background: linear-gradient(135deg, rgba(26,8,48,.97), rgba(13,7,0,.97));
  border: 1px solid rgba(168,85,247,.35);
  border-radius: 12px;
  padding: 10px 14px;
  max-width: 190px;
  color: #fff;
  font-size: .75rem;
  z-index: 850;
  animation: vToastIn .4s ease both;
  box-shadow: 0 8px 24px rgba(168,85,247,.2);
}
@keyframes vToastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: none; }
}
.voz-toast strong { color: var(--oro2); display: block; margin-bottom: 3px; font-size: .8rem; }

/* Badge de zoom (centrado en pantalla) */
.zoom-badge {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(.7);
  background: rgba(0,0,0,.8);
  border: 1px solid rgba(201,168,76,.4);
  color: var(--oro2);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: opacity .25s, transform .25s;
  backdrop-filter: blur(8px);
}
.zoom-badge.visible {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}

/* Toast genérico (mensajes de sistema) */
.toast {
  position: fixed;
  top: calc(var(--header) + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13,7,0,.96);
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 8px;
  padding: 10px 22px;
  color: var(--oro);
  font-size: .82rem;
  z-index: 1500;
  white-space: nowrap;
  animation: toastIn .4s ease both, toastOut .4s ease 3.5s both;
  backdrop-filter: blur(10px);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Toast especial "retomás en pág X" — más prominente */
.toast-retoma {
  position: fixed;
  top: calc(var(--header) + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(20,10,0,.97), rgba(13,7,0,.97));
  border: 1px solid rgba(201,168,76,.55);
  border-radius: 12px;
  padding: 12px 24px;
  color: #c9b89a;
  font-size: .84rem;
  z-index: 1500;
  white-space: nowrap;
  animation: toastIn .4s ease both, toastOut .5s ease 4.5s both;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(201,168,76,.15);
  text-align: center;
}
.toast-retoma strong {
  color: var(--oro2);
  font-size: 1rem;
  display: block;
  margin-bottom: 2px;
}
.toast-retoma em {
  font-size: .74rem;
  color: rgba(201,168,76,.5);
  font-style: italic;
}

/* ══════════════════════════════════════════════════
   LANDING / LOGIN
   ══════════════════════════════════════════════════ */
body.landing-mode { overflow: auto; touch-action: auto; }
.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}
.landing-card {
  background: var(--papel);
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 16px;
  padding: 48px 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.4);
  animation: fadeUp .8s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.landing-logo    { width: 80px; margin-bottom: 22px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.2)); }
.landing-eyebrow { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--oro); margin-bottom: 10px; }
.landing-titulo  { font-size: 2rem; line-height: 1.2; color: var(--tinta); margin-bottom: 8px; }
.landing-sub     { font-size: .88rem; color: #6b5a42; font-style: italic; margin-bottom: 24px; line-height: 1.6; }
.divider {
  width: 55px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--oro), transparent);
  margin: 0 auto 20px;
}
.volumen-landing {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.4);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 22px;
  text-align: left;
}
.volumen-landing .icon { font-size: 1.5rem; flex-shrink: 0; }
.volumen-landing p     { font-size: .78rem; color: #7a5a20; line-height: 1.5; }
.volumen-landing strong { color: #92661a; }
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Portal menu and content sections */
html.portal-html,
html.landing-html { height: auto; overflow: auto; }
body.portal-mode {
  min-height: 100vh;
  overflow: auto;
  touch-action: auto;
  -webkit-user-select: text;
  user-select: text;
  background:
    radial-gradient(circle at 12% 10%, rgba(201,168,76,.12), transparent 28%),
    linear-gradient(135deg, #130d08 0%, #21160d 45%, #0f0a06 100%);
  color: #efe4d1;
}
body.portal-mode #fondo-canvas,
body.portal-mode #barra-progreso { display: none; }
.portal-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}
.portal-hero {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(201,168,76,.22);
  border-radius: 28px;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(9,6,3,.92), rgba(33,22,13,.82)),
    url('../logo.png') center right / min(680px, 72vw) auto no-repeat;
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
  overflow: hidden;
}
.portal-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.45), transparent);
}
.portal-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 70px;
  color: #d7c49f;
  font-size: .86rem;
}
.portal-user img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201,168,76,.45);
}
.portal-user a,
.portal-nav a {
  color: #c9a84c;
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,.3);
  padding-bottom: 2px;
}
.portal-user a { margin-left: auto; }
.portal-brand img {
  width: min(360px, 80vw);
  max-height: 120px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.5));
  margin-bottom: 18px;
}
.portal-brand p,
.section-kicker,
.menu-option-kicker {
  color: #c9a84c;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
}
.portal-hero h1 {
  max-width: 560px;
  color: #fff5dc;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: .98;
  margin: 14px 0 18px;
  font-weight: 500;
}
.portal-lead {
  max-width: 540px;
  color: rgba(239,228,209,.74);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}
.menu-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.menu-option {
  grid-column: span 3;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(245,239,230,.08);
  border: 1px solid rgba(201,168,76,.18);
  color: #f7eedc;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.menu-option:hover {
  transform: translateY(-3px);
  background: rgba(245,239,230,.12);
  border-color: rgba(201,168,76,.42);
}
.menu-option strong {
  font-size: clamp(1.18rem, 2.4vw, 1.7rem);
  font-weight: 500;
}
.menu-option small {
  color: rgba(239,228,209,.62);
  line-height: 1.5;
  font-size: .88rem;
}
.menu-option-main,
.menu-option-game { grid-column: span 6; }
.menu-option-main {
  background: linear-gradient(135deg, rgba(201,168,76,.22), rgba(245,239,230,.08));
}
.menu-option-game {
  min-height: 132px;
  background: linear-gradient(135deg, rgba(76,53,28,.84), rgba(25,15,8,.82));
}
.portal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
  color: rgba(239,228,209,.56);
  font-size: .86rem;
}
.section-head {
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 24px;
  padding: 32px;
  background: rgba(12,8,4,.62);
  margin-bottom: 20px;
}
.section-head h1 {
  color: #fff5dc;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  margin: 10px 0 12px;
}
.section-head p {
  max-width: 760px;
  color: rgba(239,228,209,.68);
  line-height: 1.7;
}
.section-head code,
.empty-state code,
.gallery-empty code {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(201,168,76,.18);
  padding: 2px 6px;
  border-radius: 6px;
  color: #e8d1a0;
}
.empty-state {
  border: 1px dashed rgba(201,168,76,.35);
  border-radius: 20px;
  padding: 28px;
  background: rgba(245,239,230,.06);
  color: rgba(239,228,209,.72);
  line-height: 1.7;
}
.empty-state strong { color: #fff5dc; display: block; margin-bottom: 6px; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.download-card {
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(245,239,230,.07);
}
.download-preview {
  aspect-ratio: 4 / 3;
  background: rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.file-tile {
  width: 82px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201,168,76,.32);
  color: #c9a84c;
  letter-spacing: .18em;
}
.download-info { padding: 16px; display: grid; gap: 8px; }
.download-info strong { color: #fff5dc; font-size: 1rem; }
.download-info small { color: rgba(239,228,209,.48); }
.download-info a {
  display: inline-flex;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: #c9a84c;
  color: #160f08;
  text-decoration: none;
  font-weight: 700;
}
.timeline-list { display: grid; gap: 18px; }
.timeline-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
  gap: 20px;
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 24px;
  background: rgba(245,239,230,.06);
  padding: 22px;
}
.timeline-copy { position: relative; padding-left: 56px; }
.timeline-number {
  position: absolute;
  top: 0;
  left: 0;
  color: rgba(201,168,76,.55);
  font-size: 1.3rem;
}
.timeline-meta {
  color: #c9a84c;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
  margin-bottom: 8px;
}
.timeline-copy h2 {
  color: #fff5dc;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 500;
  margin-bottom: 12px;
}
.timeline-copy p {
  color: rgba(239,228,209,.68);
  line-height: 1.75;
}
.timeline-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  min-height: 180px;
}
.timeline-gallery a,
.gallery-empty {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(201,168,76,.12);
}
.timeline-gallery img {
  width: 100%;
  height: 100%;
  min-height: 116px;
  object-fit: cover;
  display: block;
}
.gallery-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(239,228,209,.62);
  text-align: center;
}
.header-menu {
  flex-shrink: 0;
  color: var(--oro);
  text-decoration: none;
  border: 1px solid rgba(201,168,76,.24);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.voz-btn {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.btn-flotante {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.btn-gorra { animation: none; }
.volumen-landing .icon {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #92661a;
  font-weight: 800;
}
@media (max-width: 760px) {
  .portal-shell { width: min(100% - 20px, 1120px); padding-top: 14px; }
  .portal-hero { min-height: 0; padding: 22px; background-size: 540px auto; }
  .portal-user { margin-bottom: 44px; }
  .menu-options { grid-template-columns: 1fr; }
  .menu-option,
  .menu-option-main,
  .menu-option-game { grid-column: auto; min-height: 132px; }
  .timeline-card { grid-template-columns: 1fr; }
  .timeline-copy { padding-left: 0; padding-top: 38px; }
  .timeline-gallery { grid-template-columns: repeat(2, 1fr); }
  .header-menu { padding: 5px 8px; font-size: .62rem; }
}


/* =========================================================
   LGA 2026 - portal refinado, modal integrado y fallbacks
   ========================================================= */
.menu-premium { padding-top: 22px; }
.studio-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(24px, 5vw, 62px);
  align-items: end;
  border: 1px solid rgba(201,168,76,.24);
  border-radius: 34px;
  padding: clamp(22px, 4vw, 42px);
  background:
    radial-gradient(circle at 78% 22%, rgba(201,168,76,.18), transparent 30%),
    linear-gradient(135deg, rgba(14,9,5,.96), rgba(38,24,13,.9) 58%, rgba(9,6,4,.98));
  box-shadow: 0 34px 95px rgba(0,0,0,.46);
  overflow: hidden;
}
.studio-hero::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(245,239,230,.08);
  border-radius: 26px;
  pointer-events: none;
}
.studio-user { position: absolute; top: 28px; left: 28px; right: 28px; margin: 0; z-index: 2; }
.hero-copy { position: relative; z-index: 2; max-width: 650px; padding-top: 86px; }
.portal-brandline {
  color: #c9a84c;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .72rem;
  margin-bottom: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,.34);
  color: #f5efe6;
  text-decoration: none;
  font-weight: 700;
  font-size: .86rem;
  background: rgba(245,239,230,.07);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.hero-btn:hover { transform: translateY(-2px); border-color: rgba(201,168,76,.7); background: rgba(245,239,230,.11); }
.hero-btn-primary { background: #c9a84c; color: #160f08; border-color: #c9a84c; }
.hero-book { position: relative; z-index: 2; display: grid; gap: 14px; align-items: end; }
.book-frame {
  aspect-ratio: 3 / 4;
  border-radius: 18px 28px 28px 18px;
  padding: 10px;
  background: linear-gradient(90deg, rgba(0,0,0,.26), rgba(255,255,255,.04)), #f5efe6;
  box-shadow: -8px 0 18px rgba(0,0,0,.28), 0 34px 70px rgba(0,0,0,.46);
  transform: rotate(-1.4deg);
}
.book-frame img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 10px 20px 20px 10px; }
.book-frame.no-cover { display: grid; place-items: center; background: rgba(245,239,230,.08); border: 1px dashed rgba(201,168,76,.35); }
.book-frame.no-cover img { object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.45)); opacity: .9; }
.progress-card {
  --p: 1%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(10,7,4,.72);
  border: 1px solid rgba(201,168,76,.25);
}
.progress-card::before {
  content: '';
  grid-row: span 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(#c9a84c var(--p), rgba(245,239,230,.14) 0);
  box-shadow: inset 0 0 0 8px rgba(10,7,4,.96);
}
.progress-card span { color: rgba(239,228,209,.48); text-transform: uppercase; letter-spacing: .16em; font-size: .64rem; }
.progress-card strong { color: #fff5dc; font-size: 1.25rem; line-height: 1; }
.progress-card small { color: rgba(239,228,209,.58); }
.menu-options-premium { margin-top: 20px; }
.menu-options-premium .menu-option {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(245,239,230,.08), rgba(12,8,5,.64));
}
.menu-options-premium .menu-option::after {
  content: '';
  position: absolute;
  inset: auto 22px 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,.0), rgba(201,168,76,.44), rgba(201,168,76,.0));
  opacity: .55;
}
.menu-options-premium .menu-option code { color: #e8d1a0; background: rgba(0,0,0,.22); padding: 1px 5px; border-radius: 5px; }
.menu-option-large { grid-column: span 3; min-height: 232px !important; }
.menu-options-premium .menu-option-game { grid-column: span 6; min-height: 150px; background: linear-gradient(135deg, rgba(40,50,55,.75), rgba(25,15,8,.86)); }
.bienvenida-card-studio {
  max-width: 460px;
  background:
    radial-gradient(circle at 20% 10%, rgba(201,168,76,.12), transparent 36%),
    linear-gradient(145deg, #1a1109, #090604 78%);
  border: 1px solid rgba(201,168,76,.28);
  box-shadow: 0 30px 90px rgba(0,0,0,.72), 0 0 0 1px rgba(245,239,230,.04) inset;
}
.modal-kicker {
  color: #c9a84c;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .68rem;
  margin-bottom: 12px;
}
.bienvenida-card-studio .bienvenida-titulo { color: #fff5dc; font-style: normal; font-size: clamp(1.7rem, 5vw, 2.35rem); }
.bienvenida-card-studio .bienvenida-sub { color: rgba(239,228,209,.62); }
.volumen-aviso-studio {
  background: rgba(201,168,76,.09);
  border-color: rgba(201,168,76,.28);
  color: rgba(239,228,209,.78);
}
.audio-status-studio {
  background: rgba(245,239,230,.06);
  border-color: rgba(201,168,76,.18);
}
.audio-status-studio .onda-bar { background: #c9a84c; }
.audio-status-studio .audio-msg strong { color: #f0d080; }
.bienvenida-card-studio .btn-comenzar { background: #c9a84c; color: #160f08; border-radius: 999px; font-weight: 800; }
.bienvenida-card-studio .btn-comenzar:hover { box-shadow: 0 12px 30px rgba(201,168,76,.24); }
.btn-modal-link {
  display: inline-flex;
  margin-top: 14px;
  color: rgba(239,228,209,.52);
  text-decoration: none;
  font-size: .82rem;
  border-bottom: 1px solid rgba(201,168,76,.22);
}
.missing-page {
  min-height: 360px;
  place-items: center;
  text-align: center;
  padding: 34px 28px;
  color: #6b5a42;
  background: repeating-linear-gradient(-45deg, #f7efe1, #f7efe1 10px, #f0e3cf 10px, #f0e3cf 20px);
  border-radius: 3px 10px 10px 3px;
  border: 1px solid rgba(107,90,66,.22);
}
.missing-page strong { display: block; color: #1a0f00; font-size: 1.15rem; margin-bottom: 8px; }
.missing-page span { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .78rem; background: rgba(255,255,255,.75); border: 1px solid rgba(107,90,66,.16); padding: 8px 10px; border-radius: 8px; max-width: 100%; overflow-wrap: anywhere; }
.missing-page small { display: block; max-width: 360px; line-height: 1.55; margin-top: 10px; color: #7a6649; }
@media (max-width: 860px) {
  .studio-hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-top: 76px; }
  .hero-book { max-width: 280px; width: 100%; justify-self: center; }
  .menu-option-large,
  .menu-options-premium .menu-option-game { grid-column: auto; }
}

.login-error { margin-top: 14px; color: #8a2f20; background: rgba(138,47,32,.08); border: 1px solid rgba(138,47,32,.18); border-radius: 10px; padding: 10px 12px; font-size: .78rem; line-height: 1.45; }

/* =========================================================
   LGA 2026 - colaboracion a la gorra
   ========================================================= */
.hero-btn-support {
  background: rgba(201,168,76,.12);
  border-color: rgba(240,208,128,.42);
  color: #f0d080;
}
.hero-btn-support:hover { background: rgba(201,168,76,.2); }
.menu-options-premium .menu-option-game,
.menu-options-premium .menu-option-colab {
  grid-column: span 3;
  min-height: 178px;
}
.menu-options-premium .menu-option-colab {
  background:
    radial-gradient(circle at 80% 14%, rgba(240,208,128,.18), transparent 32%),
    linear-gradient(145deg, rgba(58,38,18,.9), rgba(13,8,5,.78));
  border-color: rgba(240,208,128,.28);
}
.menu-options-premium .menu-option-colab strong { color: #fff5dc; }
.bienvenida-gorra-note {
  margin: -8px 0 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(245,239,230,.055);
  border: 1px solid rgba(201,168,76,.14);
  color: rgba(239,228,209,.62);
  font-size: .76rem;
  line-height: 1.5;
}
.btn-gorra {
  background: rgba(18,11,6,.9);
  border: 1px solid rgba(240,208,128,.48);
  color: #f0d080;
  box-shadow: 0 10px 30px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.03);
  animation: none;
}
.btn-gorra::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9a84c;
  box-shadow: 0 0 14px rgba(240,208,128,.7);
}
.btn-gorra:hover {
  background: rgba(43,28,14,.95);
  box-shadow: 0 14px 34px rgba(0,0,0,.36), 0 0 0 1px rgba(240,208,128,.16);
}
.colaborar-shell { max-width: 1160px; }
.colab-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 380px);
  gap: clamp(20px, 4vw, 44px);
  align-items: stretch;
  border: 1px solid rgba(201,168,76,.24);
  border-radius: 32px;
  padding: clamp(24px, 5vw, 48px);
  background:
    radial-gradient(circle at 14% 18%, rgba(201,168,76,.13), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(245,239,230,.07), transparent 28%),
    linear-gradient(135deg, rgba(14,9,5,.97), rgba(38,24,13,.88) 62%, rgba(9,6,4,.98));
  box-shadow: 0 34px 95px rgba(0,0,0,.44);
  position: relative;
  overflow: hidden;
}
.colab-page-hero::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(245,239,230,.07);
  border-radius: 24px;
  pointer-events: none;
}
.colab-page-copy,
.colab-pay-panel { position: relative; z-index: 1; }
.colab-page-copy h1 {
  max-width: 760px;
  color: #fff5dc;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .95;
  font-weight: 500;
  margin: 14px 0 18px;
}
.colab-page-copy p {
  color: rgba(239,228,209,.72);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  line-height: 1.75;
  max-width: 700px;
}
.colab-page-copy .colab-lead {
  color: rgba(240,208,128,.78);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}
.colab-notice {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(240,208,128,.25);
  background: rgba(245,239,230,.07);
  max-width: 620px;
}
.colab-notice strong { color: #fff5dc; font-size: .96rem; }
.colab-notice span { color: rgba(239,228,209,.62); line-height: 1.55; font-size: .88rem; }
.colab-pay-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  border-radius: 24px;
  padding: 18px;
  background: rgba(8,5,3,.55);
  border: 1px solid rgba(201,168,76,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.colab-qr-box,
.colab-qr-empty {
  border-radius: 20px;
  border: 1px solid rgba(201,168,76,.2);
  background: rgba(245,239,230,.055);
  padding: 16px;
  text-align: center;
}
.colab-qr-box img {
  display: block;
  width: min(220px, 100%);
  margin: 0 auto 10px;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
}
.colab-qr-box small,
.colab-qr-empty span { color: rgba(239,228,209,.58); line-height: 1.45; }
.colab-qr-empty {
  min-height: 172px;
  display: grid;
  place-items: center;
  gap: 6px;
}
.colab-qr-empty strong { color: #f0d080; }
.colab-qr-empty code {
  background: rgba(0,0,0,.22);
  color: #f0d080;
  padding: 2px 5px;
  border-radius: 5px;
}
.alias-box-colab,
.alias-box-modal {
  border-radius: 16px;
  background: rgba(240,208,128,.08);
  border-color: rgba(240,208,128,.26);
}
.colab-actions-stack { display: grid; gap: 10px; }
.mp-link-primary,
.mp-link-soft,
.hero-btn-copy {
  min-height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: .86rem;
  border: 1px solid rgba(201,168,76,.34);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  cursor: pointer;
  font-family: inherit;
}
.mp-link-primary {
  background: #c9a84c;
  color: #160f08;
  margin-top: 0;
}
.mp-link-primary:hover { transform: translateY(-2px); color: #160f08; background: #f0d080; }
.mp-link-soft {
  width: 100%;
  background: rgba(245,239,230,.06);
  color: rgba(239,228,209,.68);
}
.mp-link-soft:hover { color: #fff5dc; border-color: rgba(201,168,76,.42); }
.btn-copiar-page { margin-bottom: 0; }
.colab-suggestions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.colab-suggestion-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(201,168,76,.18);
  background: linear-gradient(145deg, rgba(245,239,230,.075), rgba(12,8,5,.62));
}
.colab-suggestion-card span {
  color: #c9a84c;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .68rem;
}
.colab-suggestion-card strong { color: #fff5dc; font-size: 1.2rem; font-weight: 500; }
.colab-suggestion-card small { color: rgba(239,228,209,.58); line-height: 1.55; }
.colab-story-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 26px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(12,8,4,.58);
}
.colab-story-panel h2 {
  color: #fff5dc;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.06;
  font-weight: 500;
  margin-top: 8px;
}
.colab-story-panel p { color: rgba(239,228,209,.65); line-height: 1.7; }
.colab-story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-btn-copy {
  padding: 0 18px;
  background: rgba(245,239,230,.07);
  color: #f5efe6;
}
.hero-btn-copy:hover { transform: translateY(-2px); border-color: rgba(201,168,76,.7); }
.gorra-card {
  max-width: 860px;
  text-align: left;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 14%, rgba(201,168,76,.13), transparent 34%),
    linear-gradient(145deg, #1a1109, #090604 78%);
  border-color: rgba(201,168,76,.28);
}
.gorra-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .85fr);
  gap: 22px;
  align-items: stretch;
}
.gorra-copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}
.gorra-title {
  color: #fff5dc;
  font-style: normal;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.04;
  margin-bottom: 16px;
}
.gorra-mini-note {
  margin-top: 16px;
  color: rgba(240,208,128,.68);
  font-size: .86rem;
  line-height: 1.6;
  border-top: 1px solid rgba(201,168,76,.16);
  padding-top: 14px;
}
.gorra-pay-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(201,168,76,.18);
  background: rgba(0,0,0,.18);
}
.colab-qr-box-modal { padding: 10px; }
.colab-qr-box-modal img { width: min(160px, 100%); margin-bottom: 0; }
@media (max-width: 860px) {
  .menu-options-premium .menu-option-game,
  .menu-options-premium .menu-option-colab { grid-column: auto; }
  .colab-page-hero,
  .colab-story-panel,
  .gorra-grid { grid-template-columns: 1fr; }
  .colab-suggestions { grid-template-columns: 1fr; }
  .gorra-copy-panel { min-height: 0; }
}
@media (max-width: 520px) {
  .btn-gorra { right: 10px; bottom: calc(var(--ctrl) + 10px); height: 40px; padding: 0 14px; font-size: .76rem; }
  .colab-page-hero { padding: 22px; border-radius: 24px; }
  .colab-page-copy h1 { font-size: clamp(2rem, 12vw, 3.4rem); }
  .colab-pay-panel { padding: 12px; }
  .gorra-card { padding: 22px 16px; }
}

/* =========================================================
   LGA 2026 - parche login inicial y portada completa
   Reemplaza solo index.php y css/estilos.css
   ========================================================= */
body.landing-mode {
  min-height: 100vh;
  overflow: auto;
  touch-action: auto;
  -webkit-user-select: text;
  user-select: text;
  background:
    radial-gradient(circle at 18% 16%, rgba(201,168,76,.14), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(120,76,28,.14), transparent 28%),
    linear-gradient(135deg, #130d08 0%, #21160d 46%, #0b0704 100%);
  color: #efe4d1;
}
body.landing-mode #fondo-canvas,
body.landing-mode #barra-progreso { display: none; }

.landing-studio {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}
.landing-shell-studio {
  position: relative;
  width: min(1120px, 100%);
  min-height: min(720px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
  border: 1px solid rgba(201,168,76,.24);
  border-radius: 34px;
  padding: clamp(22px, 4vw, 46px);
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 18%, rgba(201,168,76,.18), transparent 31%),
    linear-gradient(135deg, rgba(14,9,5,.97), rgba(38,24,13,.92) 58%, rgba(9,6,4,.98));
  box-shadow: 0 34px 95px rgba(0,0,0,.48);
}
.landing-shell-studio::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(245,239,230,.08);
  border-radius: 26px;
  pointer-events: none;
}
.landing-shell-studio::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  left: -180px;
  bottom: -260px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.13);
  box-shadow: 0 0 0 42px rgba(201,168,76,.025), 0 0 0 92px rgba(201,168,76,.018);
  pointer-events: none;
}
.landing-copy-panel,
.landing-access-panel { position: relative; z-index: 2; }
.landing-copy-panel { max-width: 660px; }
.landing-copy-panel h1 {
  color: #fff5dc;
  font-size: clamp(2.25rem, 6vw, 5.25rem);
  line-height: .94;
  font-weight: 500;
  letter-spacing: -.045em;
  margin: 12px 0 18px;
}
.landing-lead {
  max-width: 560px;
  color: rgba(239,228,209,.75);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}
.landing-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}
.landing-proof-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,.22);
  background: rgba(245,239,230,.055);
  color: rgba(239,228,209,.78);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.landing-note-card {
  max-width: 520px;
  border-left: 2px solid rgba(201,168,76,.62);
  padding: 4px 0 4px 18px;
}
.landing-note-card strong {
  display: block;
  color: #f0d080;
  font-size: .92rem;
  margin-bottom: 6px;
}
.landing-note-card p {
  color: rgba(239,228,209,.62);
  line-height: 1.65;
  font-size: .9rem;
}
.landing-access-panel {
  display: grid;
  gap: 0;
  align-content: center;
}
.landing-book-preview {
  position: relative;
  z-index: 2;
  width: min(250px, 70vw);
  margin: 0 auto -48px;
  pointer-events: none;
}
.login-book-frame {
  aspect-ratio: 3 / 4;
  max-height: 340px;
  transform: rotate(-1.6deg);
}
.login-book-frame img {
  object-fit: contain !important;
  object-position: center center;
  background: #f5efe6;
}
.landing-login-box {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(201,168,76,.24);
  border-radius: 28px;
  padding: 72px 26px 26px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 0%, rgba(240,208,128,.12), transparent 34%),
    rgba(10,7,4,.74);
  box-shadow: 0 28px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(245,239,230,.05);
  backdrop-filter: blur(12px);
}
.landing-logo-small {
  width: 86px;
  max-height: 62px;
  object-fit: contain;
  margin: 0 auto 14px;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.35));
}
.landing-login-box .landing-eyebrow {
  color: #c9a84c;
  margin-bottom: 8px;
}
.landing-login-box h2 {
  color: #fff5dc;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 500;
  margin-bottom: 8px;
}
.landing-login-copy {
  color: rgba(239,228,209,.64);
  line-height: 1.55;
  font-size: .88rem;
  margin-bottom: 18px;
}
.volumen-landing-studio {
  background: rgba(201,168,76,.085);
  border-color: rgba(201,168,76,.24);
  color: rgba(239,228,209,.72);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.volumen-landing-studio .icon {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f0d080;
  font-weight: 800;
}
.volumen-landing-studio p { color: rgba(239,228,209,.68); }
.volumen-landing-studio strong { color: #f0d080; }
.btn-google-studio {
  min-height: 44px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(245,239,230,.04);
}
.landing-login-box .login-error {
  color: #ffd4c7;
  background: rgba(138,47,32,.16);
  border-color: rgba(224,90,74,.32);
}

.book-frame:not(.no-cover) img {
  object-fit: contain !important;
  object-position: center center;
  background: #f5efe6;
}
.hero-book .book-frame {
  aspect-ratio: 3 / 4.25;
}
.hero-book .book-frame img {
  padding: 0;
}

@media (max-width: 860px) {
  .landing-shell-studio {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px;
  }
  .landing-copy-panel h1 { font-size: clamp(2.15rem, 12vw, 4rem); }
  .landing-access-panel { max-width: 430px; width: 100%; justify-self: center; }
  .landing-book-preview { width: min(220px, 62vw); margin-bottom: -42px; }
}
@media (max-width: 520px) {
  .landing-studio { padding: 12px; }
  .landing-shell-studio { border-radius: 24px; }
  .landing-shell-studio::before { inset: 10px; border-radius: 18px; }
  .landing-proof-row { gap: 6px; }
  .landing-proof-row span { font-size: .64rem; padding: 0 9px; min-height: 30px; }
  .landing-login-box { padding: 62px 16px 18px; border-radius: 22px; }
  .login-book-frame { max-height: 280px; }
}

/* =========================================================
   LGA 2026 - parche: acceso de Google mas visible
   Reemplaza solo index.php y css/estilos.css
   ========================================================= */
.landing-login-box {
  padding-bottom: 24px;
}

.landing-login-box h2 {
  margin-bottom: 10px;
}

.landing-login-copy {
  max-width: 330px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px;
}

.login-action-card {
  position: relative;
  margin: 18px auto 16px;
  padding: 18px 14px 14px;
  width: 100%;
  max-width: 342px;
  border-radius: 22px;
  border: 1px solid rgba(240,208,128,.58);
  background:
    linear-gradient(180deg, rgba(240,208,128,.16), rgba(201,168,76,.065)),
    rgba(19,13,8,.82);
  box-shadow:
    0 18px 44px rgba(0,0,0,.34),
    0 0 0 6px rgba(201,168,76,.035),
    inset 0 1px 0 rgba(255,245,220,.11);
}

.login-action-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  border: 1px solid rgba(255,245,220,.12);
  pointer-events: none;
}

.login-action-kicker {
  margin: 0 0 4px;
  color: #c9a84c;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.login-action-title {
  margin: 0;
  color: #fff5dc;
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  line-height: 1.25;
  font-weight: 800;
}

.login-action-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin: 8px auto 7px;
  border-radius: 999px;
  border: 1px solid rgba(240,208,128,.45);
  color: #f0d080;
  background: rgba(240,208,128,.08);
  font-size: 1.05rem;
  line-height: 1;
  animation: lga-login-arrow 1.35s ease-in-out infinite;
}

@keyframes lga-login-arrow {
  0%, 100% { transform: translateY(0); opacity: .72; }
  50% { transform: translateY(4px); opacity: 1; }
}

.btn-google-studio {
  min-height: 58px;
  padding: 7px;
  border-radius: 18px;
  border: 1px solid rgba(255,245,220,.18);
  background:
    linear-gradient(180deg, rgba(255,245,220,.14), rgba(255,245,220,.035)),
    rgba(255,255,255,.045);
  box-shadow:
    0 12px 28px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.btn-google-studio .g_id_signin {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-action-note {
  margin: 10px auto 0;
  max-width: 285px;
  color: rgba(239,228,209,.58);
  font-size: .74rem;
  line-height: 1.45;
}

.volumen-landing-studio {
  max-width: 342px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .landing-access-panel {
    order: -1;
  }
  .landing-copy-panel {
    order: 2;
  }
  .landing-book-preview {
    width: min(170px, 48vw);
    margin-bottom: -30px;
  }
  .landing-login-box {
    padding-top: 48px;
  }
  .landing-copy-panel h1 {
    margin-top: 18px;
  }
  .landing-note-card {
    margin-bottom: 0;
  }
}

@media (max-width: 520px) {
  .landing-shell-studio {
    gap: 18px;
  }
  .landing-book-preview {
    width: min(150px, 42vw);
    margin-bottom: -26px;
  }
  .landing-login-box {
    padding: 44px 14px 16px;
  }
  .landing-login-copy {
    font-size: .84rem;
    margin-bottom: 12px;
  }
  .login-action-card {
    margin-top: 14px;
    padding: 16px 10px 12px;
    border-radius: 20px;
  }
  .btn-google-studio {
    min-height: 56px;
    padding: 6px;
  }
  .login-action-note {
    font-size: .7rem;
  }
  .volumen-landing-studio {
    padding: 10px 12px;
  }
}

/* =========================================================
   LGA 2026 - parche menu, scroll mobile y colaboracion mejorada
   ========================================================= */
.studio-user {
  z-index: 12;
}
.studio-user a {
  position: relative;
  z-index: 13;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(240,208,128,.34);
  background: rgba(10,7,4,.72);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}
.studio-user a:hover {
  background: rgba(43,28,14,.92);
  border-color: rgba(240,208,128,.62);
}
.hero-book { z-index: 3; }
.hero-actions .hero-btn,
.menu-options-premium .menu-option,
.colab-actions-stack .btn-copiar,
.colab-actions-stack .mp-link-primary,
.colab-story-actions .hero-btn {
  cursor: pointer;
}
.hero-btn {
  box-shadow: inset 0 1px 0 rgba(255,245,220,.08), 0 10px 26px rgba(0,0,0,.18);
}
.hero-btn-primary,
.hero-btn-support,
.mp-link-primary,
.btn-copiar,
.btn-fin-gorra {
  box-shadow: 0 12px 30px rgba(201,168,76,.22), inset 0 1px 0 rgba(255,245,220,.24);
}
.hero-btn-support {
  background: linear-gradient(135deg, #c9a84c, #9f7c2d);
  color: #160f08;
  border-color: rgba(240,208,128,.85);
}
.hero-btn-support:hover {
  background: linear-gradient(135deg, #f0d080, #c9a84c);
  color: #160f08;
}
.menu-options-premium .menu-option {
  padding-top: 66px;
  border-color: rgba(201,168,76,.28);
  box-shadow: 0 18px 48px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,245,220,.045);
  isolation: isolate;
}
.menu-options-premium .menu-option::before {
  content: 'Abrir';
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(240,208,128,.35);
  background: rgba(10,7,4,.48);
  color: rgba(240,208,128,.86);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.menu-options-premium .menu-option:hover {
  transform: translateY(-5px);
  border-color: rgba(240,208,128,.56);
  background: linear-gradient(145deg, rgba(245,239,230,.12), rgba(12,8,5,.72));
  box-shadow: 0 24px 60px rgba(0,0,0,.32), 0 0 0 1px rgba(240,208,128,.08);
}
.menu-options-premium .menu-option:hover::before {
  transform: translateX(2px);
  background: rgba(201,168,76,.18);
  color: #fff5dc;
}
.menu-options-premium .menu-option-colab::before { content: 'Aportar'; }
.menu-options-premium .menu-option-game::before { content: 'Jugar'; }
.menu-options-premium .menu-option-large::before { content: 'Leer'; }
.menu-options-premium .menu-option-colab {
  background:
    radial-gradient(circle at 82% 12%, rgba(240,208,128,.26), transparent 34%),
    linear-gradient(145deg, rgba(77,48,18,.94), rgba(14,9,5,.82));
  border-color: rgba(240,208,128,.42);
}
.menu-options-premium .menu-option-colab small {
  color: rgba(255,245,220,.72);
}
.scroll-cue {
  display: none;
}
@media (max-width: 760px) {
  body.landing-mode .scroll-cue,
  body.portal-mode .scroll-cue {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 1200;
    transform: translateX(-50%);
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(240,208,128,.35);
    background: rgba(10,7,4,.78);
    color: #f0d080;
    box-shadow: 0 18px 38px rgba(0,0,0,.34);
    backdrop-filter: blur(10px);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .02em;
    opacity: 1;
    transition: opacity .22s ease, transform .22s ease;
  }
  .scroll-cue b {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(240,208,128,.12);
    animation: lga-scroll-cue 1.25s ease-in-out infinite;
  }
  .scroll-cue.oculto {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
  }
}
@keyframes lga-scroll-cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
.btn-gorra {
  min-width: 122px;
  justify-content: center;
  background: linear-gradient(135deg, #c9a84c, #9f7c2d);
  color: #160f08;
  border-color: rgba(240,208,128,.72);
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(0,0,0,.34), 0 0 0 1px rgba(240,208,128,.14);
}
.btn-gorra::before {
  background: #160f08;
  box-shadow: none;
}
.btn-gorra:hover {
  background: linear-gradient(135deg, #f0d080, #c9a84c);
  color: #160f08;
}
.colab-page-hero {
  border-color: rgba(240,208,128,.34);
}
.colab-pay-panel {
  box-shadow: inset 0 0 0 1px rgba(255,245,220,.035), 0 18px 48px rgba(0,0,0,.24);
}
.alias-box-colab,
.alias-box-modal {
  box-shadow: inset 0 1px 0 rgba(255,245,220,.05);
}
.colab-suggestion-card {
  border-color: rgba(201,168,76,.26);
}
.colab-reminder[hidden] { display: none; }
.colab-reminder {
  position: fixed;
  right: 14px;
  bottom: calc(var(--ctrl) + 72px);
  z-index: 1050;
  width: min(365px, calc(100vw - 28px));
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(240,208,128,.34);
  background:
    radial-gradient(circle at 14% 14%, rgba(240,208,128,.14), transparent 34%),
    rgba(12,8,5,.92);
  color: #efe4d1;
  box-shadow: 0 24px 70px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,245,220,.06);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(18px) scale(.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.colab-reminder.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.colab-reminder-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(240,208,128,.22);
  background: rgba(245,239,230,.05);
  color: rgba(239,228,209,.68);
  cursor: pointer;
}
.colab-reminder-kicker {
  margin: 0 34px 8px 0;
  color: #c9a84c;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .66rem;
  font-weight: 900;
}
.colab-reminder strong {
  display: block;
  color: #fff5dc;
  font-size: 1.02rem;
  line-height: 1.25;
  margin-bottom: 6px;
}
.colab-reminder span {
  display: block;
  color: rgba(239,228,209,.64);
  font-size: .82rem;
  line-height: 1.45;
}
.colab-reminder-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.colab-reminder-actions button {
  min-height: 38px;
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(240,208,128,.32);
  background: #c9a84c;
  color: #160f08;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
}
.colab-reminder-actions button.soft {
  background: rgba(245,239,230,.06);
  color: rgba(239,228,209,.72);
}
.capitulo-toast {
  position: fixed;
  top: calc(var(--header) + 14px);
  left: 50%;
  z-index: 1250;
  transform: translateX(-50%);
  width: min(380px, calc(100vw - 28px));
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(240,208,128,.3);
  background: rgba(12,8,5,.9);
  color: #efe4d1;
  box-shadow: 0 20px 46px rgba(0,0,0,.38);
  backdrop-filter: blur(10px);
  text-align: center;
  animation: capitulo-toast-in .24s ease both;
}
.capitulo-toast strong {
  display: block;
  color: #f0d080;
  font-size: .96rem;
  margin-bottom: 4px;
}
.capitulo-toast span {
  display: block;
  color: rgba(239,228,209,.66);
  font-size: .78rem;
  line-height: 1.35;
}
.capitulo-toast button {
  margin-top: 10px;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(240,208,128,.44);
  background: #c9a84c;
  color: #160f08;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
}
@keyframes capitulo-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (max-width: 860px) {
  .studio-user {
    right: 20px;
    left: 20px;
  }
  .menu-options-premium .menu-option {
    padding-top: 58px;
  }
  .menu-options-premium .menu-option::before {
    top: 16px;
    right: 16px;
  }
}
@media (max-width: 520px) {
  .studio-user a {
    min-height: 32px;
    padding: 0 11px;
    font-size: .72rem;
  }
  .btn-gorra {
    min-width: 108px;
  }
  .colab-reminder {
    left: 10px;
    right: 10px;
    bottom: calc(var(--ctrl) + 58px);
    width: auto;
    padding: 16px 14px 14px;
  }
  .colab-reminder-actions {
    flex-direction: column;
  }
}

/* =========================================================
   LGA 2026 - parche flecha mobile y compartir en menu
   ========================================================= */
.scroll-cue.oculto {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.hero-actions button.hero-btn,
.colab-story-actions button.hero-btn {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
}
.hero-btn-share {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,245,220,.10), rgba(255,245,220,.035)),
    rgba(12,8,5,.36);
  border-color: rgba(240,208,128,.30);
}
.hero-btn-share::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 10px;
  border-radius: 999px;
  background: rgba(240,208,128,.78);
  box-shadow: 10px -6px 0 rgba(240,208,128,.38), 10px 6px 0 rgba(240,208,128,.38);
}
.hero-btn-menu {
  background: rgba(245,239,230,.055);
  color: rgba(245,239,230,.86);
  border-color: rgba(240,208,128,.28);
}
.hero-btn-menu:hover,
.hero-btn-share:hover {
  background: rgba(245,239,230,.105);
  border-color: rgba(240,208,128,.58);
}
@media (max-width: 760px) {
  body.landing-mode .scroll-cue:not(.oculto),
  body.portal-mode .scroll-cue:not(.oculto) {
    display: inline-flex;
  }
}

/* =========================================================
   LGA 2026 - parche innovación lectura/certificado/admin
   ========================================================= */
.landing-counter-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 4px 0 16px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(240,208,128,.30);
  background: rgba(10,7,4,.42);
  color: rgba(255,245,220,.78);
  box-shadow: inset 0 1px 0 rgba(255,245,220,.05);
}
.landing-counter-card strong {
  color: #f0d080;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
}
.landing-counter-card span {
  font-size: .82rem;
  line-height: 1.25;
  max-width: 180px;
}

body.spread-mode .zoom-container {
  gap: min(1.2vw, 14px);
  padding: 0 min(2vw, 28px);
}
body.spread-mode .pagina-wrapper {
  max-width: min(1040px, 96vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  background: linear-gradient(90deg, #fff 0 49.5%, #d9d0c2 49.5% 50.5%, #fff 50.5% 100%);
  border-radius: 10px;
  overflow: hidden;
}
body.spread-mode .pagina-wrapper::before {
  left: 50%;
  width: 28px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,.12), rgba(255,255,255,.12), rgba(0,0,0,.16));
}
body.spread-mode #imgPagina,
body.spread-mode #imgPagina2 {
  width: 100%;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  background: #fff;
}
body.spread-mode #imgPagina { border-right: 1px solid rgba(0,0,0,.08); }
body.spread-mode #imgPagina2 { display: block; }
@media (max-width: 899px) {
  #imgPagina2 { display: none !important; }
}

.ctrl-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1;
  min-width: 112px;
}
.ctrl-jump label {
  color: rgba(201,168,76,.62);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ctrl-jump input {
  width: 58px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,.26);
  background: rgba(255,255,255,.055);
  color: var(--oro2);
  text-align: center;
  outline: none;
  font-family: inherit;
}
.ctrl-jump input:focus { border-color: rgba(240,208,128,.72); background: rgba(255,255,255,.09); }
.ctrl-jump button {
  height: 34px;
  min-width: 38px;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,.34);
  background: rgba(201,168,76,.13);
  color: var(--oro);
  font-weight: 800;
  cursor: pointer;
}
.btn-night {
  width: auto !important;
  min-width: 58px;
  padding: 0 10px;
  border-radius: 999px !important;
  font-size: .66rem !important;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.btn-night.activo {
  color: #160f08;
  background: #f0d080;
  border-color: #f0d080;
}
body.night-reading #imgPagina,
body.night-reading #imgPagina2 {
  filter: brightness(.84) sepia(.12) contrast(.96);
}
body.night-reading .lector-area::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(25,10,0,.10);
  z-index: 48;
}

.certificado-box {
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(240,208,128,.28);
  background: rgba(255,245,220,.045);
  text-align: left;
}
.certificado-box label {
  display: block;
  color: #f0d080;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 900;
}
.certificado-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.certificado-form input {
  min-width: 0;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(240,208,128,.28);
  background: rgba(0,0,0,.20);
  color: #fff7df;
  padding: 0 14px;
  font-family: inherit;
  outline: none;
}
.certificado-form button,
.btn-fin-share {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(240,208,128,.35);
  background: #f0d080;
  color: #170e06;
  font-weight: 900;
  cursor: pointer;
  padding: 0 14px;
  font-family: inherit;
}
.certificado-box small {
  display: block;
  color: rgba(255,247,223,.48);
  font-size: .72rem;
  margin-top: 8px;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .controles {
    height: auto;
    min-height: var(--ctrl);
    flex-wrap: wrap;
    padding: 8px 10px;
  }
  .ctrl-nav { order: 1; flex: 0 0 auto; }
  .ctrl-info { order: 2; flex: 1 1 80px; }
  .ctrl-jump { order: 3; flex: 1 1 132px; justify-content: flex-end; }
  .ctrl-zoom { order: 4; flex: 1 0 100%; justify-content: center; padding-top: 4px; }
  .ctrl-jump label { display: none; }
  .certificado-form { grid-template-columns: 1fr; }
}


/* =========================================================
   PARCHE LEGIBILIDAD FINAL + AUDIO AUTOR + CONTROLES
   ========================================================= */
.modal-fin {
  background:
    radial-gradient(circle at 50% 14%, rgba(240,208,128,.16), transparent 34%),
    rgba(0,0,0,.9);
}
.fin-card {
  border-color: rgba(240,208,128,.46);
  background:
    radial-gradient(circle at 20% 0%, rgba(201,168,76,.12), transparent 32%),
    linear-gradient(145deg, #181009, #090604 72%);
}
.fin-estrellas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f7df9b !important;
  background: rgba(240,208,128,.12);
  border: 1px solid rgba(240,208,128,.26);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: .72rem !important;
  line-height: 1;
  letter-spacing: .16em !important;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 28px rgba(0,0,0,.28);
}
.fin-titulo {
  color: #fff4d1 !important;
  text-shadow: 0 2px 18px rgba(240,208,128,.18);
}
.fin-sub {
  color: rgba(255,247,223,.74) !important;
}
.autor-audio-btn {
  position: relative;
  overflow: hidden;
  min-height: 70px;
  background:
    linear-gradient(135deg, rgba(240,208,128,.17), rgba(201,168,76,.06)),
    rgba(255,245,220,.035) !important;
  border: 1px solid rgba(240,208,128,.42) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 34px rgba(0,0,0,.26);
}
.autor-audio-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent);
  transform: translateX(-120%);
  transition: transform .55s ease;
  pointer-events: none;
}
.autor-audio-btn:hover::after { transform: translateX(120%); }
.autor-audio-btn:hover {
  background:
    linear-gradient(135deg, rgba(240,208,128,.23), rgba(201,168,76,.09)),
    rgba(255,245,220,.05) !important;
  transform: translateY(-1px);
}
.autor-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f0d080, #c9a84c);
  color: #120b05 !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.08rem !important;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(201,168,76,.28), inset 0 1px 0 rgba(255,255,255,.35);
  flex: 0 0 46px;
}
.autor-info strong {
  color: #fff1c2 !important;
  font-size: .98rem !important;
}
.autor-info span {
  color: rgba(255,247,223,.62) !important;
}

/* Sube el boton colaborar para que nunca quede tapado por la barra inferior. */
.btn-gorra {
  bottom: calc(var(--ctrl) + 22px) !important;
  z-index: 1250 !important;
}
.voz-btn { bottom: calc(var(--ctrl) + 78px) !important; }
#btnSonido { bottom: calc(var(--ctrl) + 22px) !important; }
#inactivoInd { bottom: calc(var(--ctrl) + 72px) !important; }

@media (max-width: 680px) {
  :root { --ctrl: 118px; }
  .lector-area { bottom: var(--ctrl) !important; }
  .controles {
    height: var(--ctrl) !important;
    min-height: var(--ctrl) !important;
    align-content: center;
    box-shadow: 0 -16px 34px rgba(0,0,0,.28);
  }
  .btn-gorra {
    right: 10px !important;
    bottom: calc(var(--ctrl) + 16px) !important;
    height: 42px !important;
    min-width: 116px !important;
  }
  .voz-btn { bottom: calc(var(--ctrl) + 68px) !important; }
  #btnSonido { bottom: calc(var(--ctrl) + 16px) !important; }
  #inactivoInd { bottom: calc(var(--ctrl) + 64px) !important; }
  .modal-fin { padding: 14px; }
  .fin-card { padding: 28px 18px; max-height: 92vh; }
}

@media (max-width: 380px) {
  :root { --ctrl: 126px; }
  .ctrl-jump input { width: 52px; }
  .btn-gorra span { font-size: .74rem; }
}


/* =========================================================
   PARCHE CONTACTO + LOGIN AUDIO + BOTONES MÁS MARCADOS
   ========================================================= */
.login-audio-icon,
.volumen-landing .icon.login-audio-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #f0d080, #c9a84c);
  color: #150d06 !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem !important;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(201,168,76,.24), inset 0 1px 0 rgba(255,255,255,.35);
}

.header-menu,
.header-menu-strong,
.portal-nav a,
.btn-modal-link,
.hero-btn-menu,
.btn-fin-releer {
  border: 1px solid rgba(240,208,128,.46) !important;
  background: linear-gradient(135deg, rgba(240,208,128,.18), rgba(201,168,76,.07)) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.07);
  color: #fff0bd !important;
  font-weight: 850 !important;
}
.header-menu:hover,
.portal-nav a:hover,
.btn-modal-link:hover,
.hero-btn-menu:hover,
.btn-fin-releer:hover {
  transform: translateY(-1px);
  border-color: rgba(240,208,128,.7) !important;
  background: linear-gradient(135deg, rgba(240,208,128,.25), rgba(201,168,76,.1)) !important;
}

.menu-options-premium .menu-option-contacto::before { content: 'Mensaje'; }
.menu-options-premium .menu-option-contacto {
  background:
    radial-gradient(circle at 12% 8%, rgba(125,211,252,.13), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}

.contacto-shell { max-width: 980px; }
.contacto-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.contacto-hero > div,
.contacto-panel {
  border: 1px solid rgba(201,168,76,.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(240,208,128,.11), transparent 34%),
    rgba(12,8,5,.72);
  box-shadow: 0 18px 48px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 24px;
}
.contacto-hero h1 {
  color: #fff5dc;
  font-size: clamp(2.1rem, 7vw, 4rem);
  line-height: .98;
  letter-spacing: -.04em;
  margin: 8px 0 14px;
}
.contacto-hero p,
.contacto-note span,
.contacto-panel label,
.contacto-feedback,
.contacto-config-alert {
  color: rgba(239,228,209,.68);
  line-height: 1.65;
}
.contacto-note { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.contacto-note strong { color: #f0d080; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.contacto-panel label { display: block; font-weight: 850; color: #f0d080; margin-bottom: 8px; }
.contacto-panel textarea {
  width: 100%;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid rgba(240,208,128,.26);
  background: rgba(255,248,226,.06);
  color: #fff7df;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  min-height: 160px;
}
.contacto-panel textarea:focus {
  border-color: rgba(240,208,128,.62);
  box-shadow: 0 0 0 4px rgba(240,208,128,.08);
}
.contacto-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.contacto-config-alert code { color: #fff5dc; }
.contacto-feedback { margin-top: 12px; color: #f0d080; }

/* Final más inmediato y visible */
.fin-card { animation: lga-fin-in .18s ease-out both; }
@keyframes lga-fin-in { from { opacity: .4; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* Botones flotantes mejor separados: colaborar no queda bajo controles. */
.btn-gorra {
  bottom: calc(var(--ctrl) + 38px) !important;
  min-height: 46px;
  border: 1px solid rgba(255,244,210,.36) !important;
}
.voz-btn { bottom: calc(var(--ctrl) + 94px) !important; }
#btnSonido { bottom: calc(var(--ctrl) + 38px) !important; }
#inactivoInd { bottom: calc(var(--ctrl) + 88px) !important; }

@media (max-width: 760px) {
  .contacto-hero { grid-template-columns: 1fr; }
  .contacto-hero > div,
  .contacto-panel { padding: 20px; border-radius: 24px; }
}
@media (max-width: 680px) {
  .btn-gorra { bottom: calc(var(--ctrl) + 26px) !important; }
  .voz-btn { bottom: calc(var(--ctrl) + 80px) !important; }
  #btnSonido { bottom: calc(var(--ctrl) + 26px) !important; }
  #inactivoInd { bottom: calc(var(--ctrl) + 76px) !important; }
}

/* Contacto formal con autor */
.menu-options-premium .menu-option-contacto::before { content: 'Contacto'; }
.contacto-autor-shell { max-width: 1120px; }
.autor-card {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(22px, 4vw, 46px);
  align-items: stretch;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(240, 208, 128, .24);
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 0%, rgba(240, 208, 128, .16), transparent 34%),
    linear-gradient(135deg, rgba(26, 22, 17, .96), rgba(12, 11, 10, .94));
  box-shadow: 0 28px 80px rgba(0,0,0,.38);
}
.autor-photo-wrap {
  min-height: 430px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.28), 0 20px 50px rgba(0,0,0,.28);
}
.autor-photo {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  object-fit: cover;
  object-position: center;
}
.autor-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0d080;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  letter-spacing: -.08em;
  background:
    radial-gradient(circle at 50% 35%, rgba(240,208,128,.2), transparent 35%),
    linear-gradient(160deg, #211b14, #090806);
}
.autor-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(4px, 2vw, 16px) 0;
}
.autor-copy h1 {
  margin: 0;
  color: #fff7df;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: .95;
  letter-spacing: -.055em;
}
.autor-role {
  margin: 0;
  color: #f0d080;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .86rem;
}
.autor-bajada,
.autor-copy p,
.autor-extra,
.contacto-config-alert {
  color: rgba(255, 247, 223, .78);
  line-height: 1.65;
  font-size: 1.02rem;
}
.autor-bajada {
  color: rgba(255, 247, 223, .92);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}
.autor-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.contact-channel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 126px;
  padding: 17px;
  border-radius: 22px;
  text-decoration: none;
  color: #fff7df;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 16px 35px rgba(0,0,0,.24);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.contact-channel:hover {
  transform: translateY(-3px);
  border-color: rgba(240,208,128,.46);
  background: linear-gradient(145deg, rgba(240,208,128,.13), rgba(255,255,255,.04));
}
.contact-channel span {
  color: #f0d080;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.contact-channel strong {
  font-size: 1.04rem;
  line-height: 1.15;
}
.contact-channel small {
  color: rgba(255,247,223,.62);
  line-height: 1.35;
  word-break: break-word;
}
.contact-channel-primary {
  border-color: rgba(240,208,128,.26);
}
.autor-extra {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(240,208,128,.08);
  border: 1px solid rgba(240,208,128,.16);
}
.contacto-actions-formal {
  margin-top: 6px;
}
@media (max-width: 860px) {
  .autor-card { grid-template-columns: 1fr; border-radius: 26px; }
  .autor-photo-wrap,
  .autor-photo { min-height: 320px; }
  .autor-contact-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   PARCHE FINAL P80 + VOLVER AL MENU
   ========================================================= */
.btn-fin-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255,247,223,.07);
  border: 1px solid rgba(255,247,223,.24);
  color: #fff4d1;
  font-weight: 850;
}
.btn-fin-menu:hover {
  border-color: rgba(240,208,128,.52);
  background: rgba(240,208,128,.12);
}
.fin-acciones {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 520px) {
  .fin-acciones { grid-template-columns: 1fr; }
}

/* =========================================================
   PARCHE LOGIN MOBILE MAS LIMPIO
   Portada protagonista + acceso Google directo
   ========================================================= */
.landing-login-box.login-con-portada .landing-logo-small { display: none; }
.landing-login-box.login-con-portada { padding-top: 30px; }
.landing-login-box.login-con-portada .landing-login-copy { margin-bottom: 10px; }
.landing-login-box.login-con-portada .login-action-card { margin-top: 12px; }

@media (min-width: 861px) {
  .landing-login-box.login-con-portada { padding-top: 72px; }
}

@media (max-width: 860px) {
  .landing-studio {
    place-items: start center;
    padding: 10px;
  }
  .landing-shell-studio {
    gap: 14px;
    padding: 18px;
  }
  .landing-access-panel {
    order: -1;
    width: 100%;
    max-width: 430px;
  }
  .landing-book-preview {
    width: min(230px, 58vw);
    margin: 0 auto 10px;
  }
  .login-book-frame {
    max-height: none;
    transform: rotate(-.8deg);
    box-shadow: 0 22px 54px rgba(0,0,0,.46);
  }
  .landing-login-box {
    padding: 20px 16px 16px;
    border-radius: 22px;
  }
  .landing-login-box.login-con-portada {
    padding-top: 20px;
  }
  .landing-login-box h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
    margin-bottom: 4px;
  }
  .landing-login-copy {
    font-size: .82rem;
    line-height: 1.35;
    margin-bottom: 10px;
  }
  .login-action-card {
    margin: 10px auto 12px;
    padding: 14px 10px 12px;
    border-radius: 19px;
    box-shadow: 0 16px 34px rgba(0,0,0,.36), 0 0 0 5px rgba(201,168,76,.035);
  }
  .login-action-kicker {
    font-size: .62rem;
    margin-bottom: 3px;
  }
  .login-action-title {
    font-size: 1.05rem;
  }
  .login-action-arrow {
    width: 28px;
    height: 28px;
    margin: 6px auto 6px;
  }
  .btn-google-studio {
    min-height: 54px;
    padding: 6px;
  }
  .login-action-note {
    display: none;
  }
  .volumen-landing-studio {
    margin-top: 8px;
    padding: 9px 11px;
    border-radius: 14px;
  }
  .volumen-landing-studio p {
    font-size: .76rem;
    line-height: 1.35;
  }
  .login-audio-icon,
  .volumen-landing .icon.login-audio-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: .82rem !important;
  }
  .landing-copy-panel {
    order: 2;
    text-align: center;
    max-width: 430px;
    margin: 0 auto;
  }
  .portal-brandline {
    font-size: .66rem;
    margin-top: 2px;
  }
  .landing-copy-panel h1 {
    font-size: clamp(1.7rem, 9vw, 2.45rem);
    line-height: 1;
    margin: 8px 0 8px;
  }
  .landing-lead {
    font-size: .88rem;
    line-height: 1.45;
    margin: 0 auto;
  }
  .landing-proof-row {
    justify-content: center;
    gap: 6px;
    margin: 14px 0 12px;
  }
  .landing-proof-row span {
    min-height: 28px;
    padding: 0 9px;
    font-size: .58rem;
  }
  .landing-counter-card {
    margin: 10px auto;
  }
  .landing-note-card {
    display: none;
  }
}

@media (max-width: 420px) {
  .landing-book-preview {
    width: min(210px, 56vw);
  }
  .landing-shell-studio {
    padding: 14px;
    border-radius: 22px;
  }
  .landing-shell-studio::before { display: none; }
  .landing-copy-panel h1 { font-size: clamp(1.55rem, 8.2vw, 2.15rem); }
  .landing-lead { font-size: .82rem; }
  .landing-proof-row span:nth-child(4) { display: none; }
}


/* =========================================================
   LGA 2026 - Mercado Pago mas visible y QR sin placeholder
   ========================================================= */
.colab-pay-panel:has(.colab-qr-box) {
  justify-content: center;
}
.colab-pay-panel:not(:has(.colab-qr-box)) {
  justify-content: center;
}
.mp-link-destacado,
.mp-link-primary.mp-link-destacado {
  min-height: 56px;
  width: 100%;
  padding: 0 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0d080, #c9a84c 48%, #9f7c2d);
  color: #130d08 !important;
  border: 1px solid rgba(255,245,220,.55);
  box-shadow:
    0 16px 38px rgba(201,168,76,.26),
    0 0 0 5px rgba(201,168,76,.055),
    inset 0 1px 0 rgba(255,245,220,.42);
  letter-spacing: .025em;
  font-size: .94rem;
}
.mp-link-destacado::before {
  content: 'MP';
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 999px;
  background: rgba(19,13,8,.92);
  color: #f0d080;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(240,208,128,.24);
}
.mp-link-destacado:hover,
.mp-link-primary.mp-link-destacado:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #fff0b8, #f0d080 48%, #c9a84c);
  box-shadow:
    0 20px 48px rgba(201,168,76,.36),
    0 0 0 6px rgba(201,168,76,.08),
    inset 0 1px 0 rgba(255,255,255,.52);
}
@media (max-width: 520px) {
  .mp-link-destacado,
  .mp-link-primary.mp-link-destacado {
    min-height: 52px;
    font-size: .88rem;
    padding: 0 16px;
  }
  .mp-link-destacado::before {
    width: 28px;
    height: 28px;
    margin-right: 8px;
  }
}
