:root{
  --bg:#0d0d0d;
  --card:#151515;
  --gold:#d4af37;
  --text:#ffffff;
  --muted:rgba(255,255,255,.75);
}

body{
  background:var(--bg);
  color:var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-hero{
  height: 300px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.40)),
    url("../assets/login-bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  margin-top: 0px !important;
  padding-top: 20px !important;
}

.auth-wrap{
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: center;
}

.hero-copy h1{
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 8px;
}

.hero-copy p{
  margin: 0 0 10px;
  font-size: 14px;
}

.checklist{
  margin: 10px 0 12px;
}

.checklist li{
  margin-bottom: 6px;
  font-size: 14px;
}

.cta-row{
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

/* Botón slim tipo menú */
.btn-slim{
  padding: 8px 14px;          /* más delgado */
  font-size: 12px;
  border-radius: 10px;
  letter-spacing: .2px;
}

/* Afinar el dorado para que se vea premium */
.btn-gold{
  background: linear-gradient(180deg, #e6c45a, #c9a227);
  box-shadow: 0 4px 10px rgba(212,175,55,.25);
}


.btn-ghost{
  border:1px solid #fff;
  color:#fff;
  padding:12px 18px;
  border-radius:12px;
  text-decoration:none;
}

.login-card{
  background: rgba(255,255,255,0.08);   /* traslúcido */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.15);

  padding: 18px;
  border-radius: 18px;

  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.08);

    display: flex;
  flex-direction: column;
  align-items: center;      /* centra horizontal */
  text-align: center;
}

.login-body{
  width: 100%;
}

.login-body form{
  width: 100%;
}

/* Texto centrado dentro de inputs */
.login-body input{
  text-align: center;
}

.login-head{
  margin-bottom: 0px;
  margin-top: -10px !important;
}

.login-body input{
  width: 100%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;

  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.login-body input::placeholder{
  color: rgba(255,255,255,.65);
}

.login-body form button{
  width: 100%;
  text-align: center !important;
}

.login-body form .nav-cta{
  width: 100%;
  display: flex;              /* asegura flex */
  justify-content: center;    /* centra horizontal */
  align-items: center;        /* centra vertical */
  text-align: center;         /* opcional */
}

.login-foot{
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 900px){
  .auth-hero{
    height: auto;
    padding: 22px 0;
  }

  .auth-wrap{
    grid-template-columns: 1fr;
    height: auto;
    gap: 16px;
  }

  .hero-copy h1{
    font-size: 28px;
  }
}

.hero-copy h2{
  margin-bottom: 2px;
}

.hero-copy p{
  margin: 0 0 8px;
}

.checklist{
  list-style: none;     /* quita los puntos */
  padding-left: 0;
  margin: 10px 0 12px;
}

.checklist li{
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

/* palomita verde */
.checklist li::before{
  content: "✔";
  color: #4ade80;       /* verde suave (tipo emerald) */
  margin-right: 8px;
  font-weight: 600;
}

/* ===== HOW IT WORKS | ENFIÉSTATE ===== */
.howitworks{
  background: linear-gradient(
    180deg,
    rgba(13,13,13,.95),
    rgba(13,13,13,.98)
  );
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.how-inner{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}

/* Card */
.how-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 22px 18px;
  cursor: pointer;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.08);

  transition: transform .25s ease, box-shadow .25s ease;
}

.how-card:hover{
  transform: translateY(-3px);
  box-shadow:
    0 14px 36px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.1);
}

/* Icon */
.how-ico{
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;

  color: var(--gold);
}

.how-ico svg{
  width: 52px;
  height: 52px;
}

/* Text */
.how-card h3{
  margin: 10px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.how-card p{
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 300px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px){
  .how-inner{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .how-card{
    padding: 20px 16px;
  }
}

/* ===== Offer section (¿Qué te ofrecemos?) ===== */
.offer{
  background: var(--bg);
  padding: 56px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.offer-head{
  text-align: center;
  margin-bottom: 26px;
}

.offer-head h2{
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--text);
  letter-spacing: .2px;
}

.offer-head p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.offer-grid{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
}

.offer-left{
  display: grid;
  gap: 14px;
}

.offer-item{
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 16px 16px;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 10px 30px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.offer-txt{
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.offer-ico{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  color: var(--gold);
  background: rgba(212,175,55,.10);
  border: 1px solid rgba(212,175,55,.18);
}

.offer-ico svg{
  width: 22px;
  height: 22px;
}

.offer-txt h3{
  margin: 2px 0 4px;
  font-size: 14px;
  color: var(--text);
}

.offer-txt p{
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.offer-media{
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
}

.offer-media img{
  width: 110%;              
  max-width: none;
  height: auto;
  display: block;
  margin-left: -5px;       
}



/* Responsive */
@media (max-width: 900px){
  .offer-grid{
    grid-template-columns: 1fr;
  }

  .offer-media{
    margin-top: 6px;
  }
}

/* ===== Loading overlay for login ===== */
.login-loading{
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  pointer-events: all; /* bloquea clicks */
}

.login-loading.is-on{
  display: flex;
}

.login-loading__box{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 18px 18px;
  min-width: 220px;

  box-shadow: 0 18px 50px rgba(0,0,0,.55),
              inset 0 1px 0 rgba(255,255,255,.08);

  text-align: center;
}

.login-loading__spinner{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: var(--gold);
  margin: 0 auto 10px;
  animation: spin .9s linear infinite;
}

.login-loading__text{
  color: var(--text);
  font-size: 13px;
  letter-spacing: .2px;
}

@keyframes spin{
  to { transform: rotate(360deg); }
}

/* Opcional: look de “bloqueado” en el form */
.login-card.is-loading{
  opacity: .92;
  filter: saturate(.95);
}

/* ===== Error modal ===== */
.error-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.error-modal.is-open{
  display: flex;
}

.error-modal__box{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 22px 22px;
  max-width: 360px;
  width: calc(100% - 40px);

  text-align: center;

  box-shadow:
    0 18px 50px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.error-modal__box h3{
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
}

.error-modal__box p{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.error-modal__btn{
  font-size: 12px;
  padding: 10px 22px;
  margin: 0 auto;          /* 👈 centra el botón */
  display: inline-flex;   /* mantiene estilo nav-cta */
  justify-content: center;
  cursor: pointer;
}


/* click fuera NO permitido (bloqueado) */
