/*
 * lab-gate.css — Muro de email de A Umbral Lab
 * Namespace propio (.aumbral-gate) para funcionar dentro de cualquier
 * calculadora sin depender de sus variables CSS.
 */

.aumbral-gate {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: 'PP Neue Montreal Mono', monospace;
  box-sizing: border-box;
}
.aumbral-gate *, .aumbral-gate *::before, .aumbral-gate *::after { box-sizing: border-box; }

.aumbral-gate-card {
  background: #ffffff;
  border: 1px solid #d0cfc8;
  border-radius: 0;
  width: 100%;
  max-width: 480px;
  padding: 2.2rem;
  text-align: center;
  animation: aumbralGateUp .28s ease-out;
  max-height: 92vh;
  overflow-y: auto;
}
@media (max-width: 480px) {
  .aumbral-gate-card { padding: 1.5rem 1.2rem; }
}
@keyframes aumbralGateUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.aumbral-gate-badge {
  display: inline-block;
  color: #ed4044;
  border: 1px solid #ed4044;
  font-size: .62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-bottom: 1rem;
}

.aumbral-gate-card h2 {
  font-family: 'PP Neue Machina', sans-serif;
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  font-weight: normal;
  line-height: 1.15;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 .8rem;
}

.aumbral-gate-text {
  font-size: .82rem;
  color: #555555;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.aumbral-gate-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.aumbral-gate-form input[type="email"] {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 1px solid #b8b6ae;
  border-radius: 0;
  background: #f1efe9;
  color: #1a1a1a;
  font-family: 'PP Neue Montreal Mono', monospace;
  font-size: .9rem;
  text-align: center;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .18s;
}
.aumbral-gate-form input[type="email"]:focus {
  border-color: #ed4044;
  background: #ffffff;
}

.aumbral-gate-form button {
  width: 100%;
  padding: .85rem .6rem !important;
  background: #ed4044 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: 'PP Neue Montreal Mono', monospace !important;
  font-size: .82rem !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  line-height: 1.3;
  transition: opacity .18s;
}
.aumbral-gate-form button:hover { opacity: .85; }
.aumbral-gate-form button:disabled { opacity: .5; cursor: not-allowed; }

.aumbral-gate-error {
  margin-top: .85rem;
  font-size: .74rem;
  color: #ed292b;
  background: rgba(237, 41, 43, .06);
  border: 1px solid #ed292b;
  padding: 8px 12px;
  line-height: 1.45;
}

.aumbral-gate-foot {
  margin-top: 1.4rem;
  font-size: .66rem;
  color: #888888;
  line-height: 1.5;
}
.aumbral-gate-foot strong { color: #555555; font-weight: 400; }

/* Resultados retenidos hasta que el ciclista deja su email. Se difuminan en
 * vez de ocultarse: asi ve que el calculo esta hecho y esperandole. */
.aumbral-locked {
  filter: blur(7px);
  opacity: .55;
  pointer-events: none;
  user-select: none;
  transition: filter .25s ease, opacity .25s ease;
}
