/* ===============================
   BASE
================================ */
html, body{
  margin: 0;
  padding: 0;
  font-family: 'Bebas Neue', sans-serif;
  color: #fff;

  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ===============================
   FONDO DEGRADADO YIPIAS
================================ */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom right,
    #37006b 0%,
    #005494 20%,
    #00965c 60%,
    #bbfff5ce 80%,
    #00965c 90%,
    #37006b 100%
  );
}

/* ===============================
   HERO (CONTENEDOR PRINCIPAL)
================================ */
.hero{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
  padding: 80px 20px 60px;
  box-sizing: border-box;
}

/* ===============================
   LOGO
================================ */
.hero-logo{
  width: 260px;
  max-width: 60vw;
  margin-bottom: 24px;
  animation: logoFloat 4.5s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(212,175,55,.35));
}

/* ===============================
   TÍTULOS
================================ */
.hero-title{
  font-size: 2.8rem;
  letter-spacing: 3px;
  margin: 0 0 14px;
  color: #EAF6FF;
  text-shadow: 0 6px 18px rgba(0,0,0,.35);
  text-align: center;
}

.hero-sub{
  font-size: 1.4rem;
  margin: 0 0 40px;
  color: rgba(234,246,255,.75);
  letter-spacing: 2px;
  text-align: center;
}

/* ===============================
   BOTONES HERO
================================ */
.hero-buttons{
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-btn{
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 1.3rem;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
  border: none;
}

/* BOTÓN PRINCIPAL */
.hero-btn--primary{
  background: linear-gradient(135deg, #C70000, #8B0000);
  color: #fff;
  box-shadow: 0 12px 30px rgba(199,0,0,.45);
}

.hero-btn--primary:hover{
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 40px rgba(199,0,0,.65);
}

/* BOTÓN SECUNDARIO */
.hero-btn--ghost{
  background: rgba(255,255,255,.95);
  color: #0B3C49;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

.hero-btn--ghost:hover{
  transform: translateY(-2px) scale(1.03);
}

/* ===============================
   TOP ACTIONS
================================ */
.top-actions{
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.top-btn{
  padding: 10px 18px;
  border-radius: 14px;
  font-size: .95rem;
  letter-spacing: 1px;
  text-decoration: none;
  color: #EAF6FF;

  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);

  transition: transform .2s ease, box-shadow .2s ease, background .3s ease;
}

.top-btn:hover{
  background: rgba(255,255,255,.14);
  transform: translateY(-2px);
}

.top-btn--login{ font-weight: 600; }

.top-btn--register{
  border-color: rgba(212,175,55,.45);
  color: #F5E7A8;
}

/* =====================================================
   🔧 AÑADIDO — BOTÓN CERRAR SESIÓN (NO EXISTÍA)
===================================================== */
/* =====================================================
   🔧 AÑADIDO — BOTÓN CERRAR SESIÓN (HEREDA TOP-BTN)
===================================================== */

/* Posición: mismo header, lado izquierdo */
.top-logout{
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 10;
}

/* Estilo: hereda .top-btn, solo ajusta color */
.top-btn--logout{
  background: rgba(255,255,255,.08); /* igual que login */
  border: 1px solid rgba(255, 90, 90, .85);
  color: #ff5a5a;
}

.top-btn--logout:hover{
  background: rgba(255, 90, 90, .14);
}

/* ===================================================== */


/* ===================================================== */

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 480px){
  .hero{
    padding: 100px 16px 60px;
  }

  .hero-title{
    font-size: 2rem;
  }

  .hero-sub{
    font-size: 1.1rem;
  }

  .hero-btn{
    width: 100%;
    text-align: center;
  }

  .top-actions{
    top: 12px;
    right: 12px;
    gap: 8px;
  }

  /* 🔧 Ajuste responsive para logout */
  .top-logout{
    top: 12px;
    left: 12px;
  }

  .top-btn{
    padding: 8px 14px;
    font-size: .85rem;
  }
}

/* ===============================
   ANIMACIONES
================================ */
@keyframes logoFloat{
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ===============================
   MODAL LOGIN REQUIRED (FIX)
================================ */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:24px;
}

.modal-overlay.hidden{
  display:none;
}

.modal-box{
  font-family: Arial, Helvetica, sans-serif;
  background:#0b1f1a;
  border-radius:16px;
  max-width:420px;
  width:100%;
  max-height:85vh;
  overflow-y:auto;
  padding:26px 24px;
  text-align:center;
  box-shadow:0 20px 50px rgba(0,0,0,.6);
}

.modal-box h2{
  margin:0 0 12px;
  color:#ffd27a;
  font-size:1.6rem;
}

.modal-box p{
  color:#e6e6e6;
  font-size:1rem;
  line-height:1.4;
  margin-bottom:22px;
}

/* BOTONES */
.modal-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn{
  padding:10px 18px;
  border-radius:30px;
  text-decoration:none;
  font-weight:600;
  cursor:pointer;
  border:none;
  white-space:nowrap;
}

.btn.primary{
  background:#1fbf8f;
  color:#003b2c;
}

.btn.secondary{
  background:#fff;
  color:#003b2c;
}

.btn.ghost{
  background:transparent;
  color:#aaa;
}

/* ===============================
   ANIMACIÓN CAMBIO DE CARTILLA
================================ */
.cartilla.fade{
  animation: fadeSlide 0.35s ease;
}

@keyframes fadeSlide{
  from{
    opacity: 0;
    transform: translateX(12px);
  }
  to{
    opacity: 1;
    transform: translateX(0);
  }
}

/* Ajuste botón COPIAR YAPE */
#btnCopiar{
  margin-bottom: 18px;
}

/* ================= PREVENIR FLASH DE CARGA ================= */
body.ready{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
  transition:opacity 0.45s ease;
}

/* =========================================
   BOTÓN DISIMULADO — CONOCE MÁS
========================================= */
.hero-know-more{
  margin-top: 28px;
  display: inline-block;

  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;

  color: rgba(255, 255, 0, 0.739);
  text-decoration: none;

  opacity: 0.6;
  transition: all .3s ease;
}

/* solo aparece con intención */
.hero-know-more:hover{
  opacity: 1;
  color: #d4af37; /* dorado yipero */
  letter-spacing: 3px;
}

/* aún más disimulado en móvil */
@media (max-width: 480px){
  .hero-know-more{
    font-size: 12px;
    opacity: 0.45;
  }
}
