:root {
  --cielo-1: #FCEACB;
  --cielo-2: #F5C89C;
  --cielo-3: #E0937C;
  --cielo-4: #9C7488;
  --monte-1: #D99B72;
  --monte-2: #B0705B;
  --monte-3: #454F6B;
  --crema: #FAF6EF;
  --texto: #2B2118;
  --texto-suave: #6B6155;
  --acento: #C9663A;
  --acento-oscuro: #B24F29;
  --azul-logo: #3E8FBF;
  --borde: rgba(255,255,255,0.5);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Fondo: amanecer sobre montañas, paleta calida original ---------- */
.cielo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--cielo-1) 0%, var(--cielo-2) 38%, var(--cielo-3) 62%, var(--cielo-4) 100%);
  overflow: hidden;
}

.resplandor {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  max-width: 140vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,244,220,0.85) 0%, rgba(255,220,170,0.35) 40%, rgba(255,220,170,0) 70%);
  animation: respirar 8s ease-in-out infinite;
}
@keyframes respirar {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

.montanas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65%;
}
.cordillera { }
.cordillera-1 { fill: var(--monte-1); opacity: 0.55; }
.cordillera-2 { fill: var(--monte-2); opacity: 0.75; }
.cordillera-3 { fill: var(--monte-3); opacity: 0.95; }

/* ---------- Tarjeta ---------- */
.tarjeta-envoltorio {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px;
  width: 100%;
}

.tarjeta {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 252, 246, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--borde);
  border-radius: 22px;
  padding: 34px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 60px rgba(69, 47, 30, 0.18);
  animation: aparecerTarjeta 0.5s ease;
}
@keyframes aparecerTarjeta {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.anillo-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1.5px solid rgba(62, 143, 191, 0.45);
  background: radial-gradient(circle, rgba(62,143,191,0.12), rgba(62,143,191,0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.logo-img { width: 42px; height: auto; display: block; }

.tarjeta h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  margin: 0;
  color: var(--texto);
  letter-spacing: 0.2px;
}

.subtitulo {
  margin: 4px 0 24px;
  font-size: 13px;
  color: var(--texto-suave);
}

.campo {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.campo span {
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.campo input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(43,33,24,0.14);
  background: rgba(255,255,255,0.75);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--texto);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.campo input:focus {
  border-color: var(--azul-logo);
  box-shadow: 0 0 0 3px rgba(62,143,191,0.15);
}

.fila-opciones {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin: 2px 0 20px;
}
.recordarme {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--texto-suave);
  cursor: pointer;
  user-select: none;
}
.recordarme input { accent-color: var(--acento); width: 15px; height: 15px; cursor: pointer; }

.terminos-caja {
  width: 100%;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: var(--texto-suave);
}
.terminos-caja p { margin: 0 0 6px; color: var(--texto); }
.terminos-caja ul { margin: 0 0 10px; padding-left: 18px; }
.terminos-caja li { margin-bottom: 3px; line-height: 1.4; }
.terminos-caja .recordarme { color: var(--texto); font-size: 12.5px; }

#btnIngresar {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--acento);
  color: white;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
#btnIngresar:hover { background: var(--acento-oscuro); }
#btnIngresar:active { transform: scale(0.98); }
#btnIngresar:disabled { opacity: 0.6; cursor: default; }

.mensaje-error {
  margin: 14px 0 0;
  font-size: 13px;
  color: #A93A2C;
  background: rgba(169,58,44,0.1);
  border-radius: 8px;
  padding: 9px 12px;
  text-align: center;
  width: 100%;
}
.mensaje-error.oculto { display: none; }

.vista-auth {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vista-auth.oculto { display: none; }

.texto-alternar {
  font-size: 12.5px;
  color: var(--texto-suave);
  margin: 12px 0 0;
  text-align: center;
}
.texto-alternar a {
  color: var(--azul-logo);
  font-weight: 600;
  text-decoration: none;
}
.texto-alternar a:hover { text-decoration: underline; }

.texto-codigo {
  font-size: 13.5px;
  color: var(--texto-suave);
  text-align: center;
  margin: 0 0 18px;
  line-height: 1.5;
}
.texto-codigo strong { color: var(--texto); }

#codigoInput {
  text-align: center;
  letter-spacing: 8px;
  font-size: 20px;
  font-weight: 600;
}

.separador {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 18px 0 14px;
  color: var(--texto-suave);
  font-size: 12px;
}
.separador::before, .separador::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(43,33,24,0.14);
}
.separador span { padding: 0 10px; }

.btn-google {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid rgba(43,33,24,0.16);
  background: rgba(255,255,255,0.85);
  color: var(--texto);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s, transform 0.1s;
}
.btn-google:hover { background: white; }
.btn-google:active { transform: scale(0.98); }

.pie-versiculo {
  max-width: 340px;
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 13.5px;
  color: rgba(43,33,24,0.65);
  line-height: 1.5;
}

@media (max-width: 420px) {
  .tarjeta { padding: 28px 22px 24px; }
}
