/* =========================
   RESET GENERAL
========================= */
*{
  box-sizing:border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================
   BLOQUEO TOTAL DE SCROLL
========================= */
html, body{
  height:100%;
  overflow:hidden;
}

/* =========================
   BODY
========================= */
body{
  margin:0;
  background: linear-gradient(180deg,#4a4a4a,#2e2e2e);
  color:#fff;
}

/* =========================
   HEADER
========================= */
.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px;
}

/* =========================
   CLAVE DINÁMICA HEADER
========================= */
.dynamic-key{
  display:flex;
  align-items:center;
  gap:9px;
  background:rgba(255,255,255,0.15);
  border-radius:10px;
  padding:4px 14px;
}

.circle{
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid #5fff2f;
}

.dynamic-key small{font-size:11px;}
.dynamic-key strong{font-size:13px;}

.help{
  border:1px solid #fff;
  border-radius:10px;
  padding:6px 12px;
  font-size:14px;
}

/* =========================
   LOGO
========================= */
.logo{
  display:flex;
  justify-content:center;
  margin-top:45px;
}

.logo img{
  width:340px;
}

/* =========================
   CONTENIDO
========================= */
.content{
  margin-top:90px;
  padding:0 20px;
}

/* =========================
   INPUT
========================= */
.input-container{
  background:rgba(255,255,255,0.18);
  border-radius:14px;
  padding:14px 16px 10px;
}

.input-wrapper{
  display:flex;
  align-items:center;
  font-size:20px;
}

.input-wrapper span{
  margin-right:10px;
}

.input-wrapper input{
  background:none;
  border:none;
  outline:none;
  color:#fff;
  font-size:20px;
  width:100%;
}

.input-line{
  margin-top:8px;
  height:2px;
  background:rgba(255,255,255,0.35);
}

.input-container:focus-within .input-line{
  background:#fff;
}

/* =========================
   BOTÓN
========================= */
.btn{
  margin-top:20px;
  width:100%;
  padding:16px;
  background:#000;
  border:none;
  border-radius:12px;
  color:#fff;
  font-size:18px;
}

/* =========================
   LINKS
========================= */
.link{
  margin-top:14px;
  text-align:center;
  opacity:.85;
}

/* =========================
   PIN
========================= */
.pin-container{
  display:none;
  justify-content:center;
  gap:14px;
  margin-top:20px;
}

#pin-input{
  position:absolute;
  opacity:0;
}

.pin{
  width:48px;
  height:56px;
  border-radius:10px;
  background:rgba(255,255,255,0.25);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
}

/* =========================
   OVERLAY
========================= */
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  display:none;
  z-index:900;
}

/* =========================
   BOTÓN FLOTANTE (ORIGINAL)
========================= */
.fab{
  position:fixed;
  right:15px;
  bottom:15px;
  width:60px;
  height:60px;
  background:#000;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  font-weight:500;
  color:#fff;
  cursor:pointer;
  z-index:1000;
}

/* =========================
   MENÚ FLOTANTE (ORIGINAL)
========================= */
.fab-menu{
  position:fixed;
  right:15px;
  bottom:90px;
  display:none;
  flex-direction:column;
  gap:18px;
  z-index:1000;
}

.fab-item{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
}

.fab-text{
  font-size:16px;
}

.fab-icon{
  width:46px;
  height:46px;
  background:#bfbfbf;
  color:#000;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  font-weight:700;
}

/* ================= MODAL QR ================= */
.qr-modal{
  position:fixed;
  left:0;
  right:0;
  bottom:-100%;
  margin:auto;
  width:100%;
  max-height:90vh;
  background:#fff;
  border-radius:22px 22px 0 0;
  z-index:1200;
  transition:bottom .35s ease;
  display:flex;
  flex-direction:column;
}

.qr-modal.active{
  bottom:0;
}

/* HEADER MODAL */
.qr-header{
  display:grid;
  grid-template-columns:40px 1fr 40px;
  align-items:center;
  padding:18px 20px;
}

.qr-header strong{
  text-align:center;
  font-size:22px;
  color:#000;
}

.qr-header button{
  background:none;
  border:none;
  font-size:20px;
  cursor:pointer;
}

/* CONTENIDO MODAL */
.qr-content{
  padding:10px 18px 20px;
  display:flex;
  flex-direction:column;
  gap:14px;
  overflow-y:auto;
}

/* OPCIONES */
.qr-option{
  background:#fff;
  border-radius:14px;
  padding:16px;
  display:flex;
  align-items:center;
  gap:14px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

.qr-icon{
  width:42px;
  height:42px;
  background:#f2f2f2;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.qr-text strong{
  display:block;
  color:#000;
}

.qr-text small{
  color:#777;
}

.qr-arrow{
  margin-left:auto;
  font-size:22px;
  color:#aaa;
}
