/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }

/* Garantiza que [hidden] siempre oculte, sin importar especificidad */
[hidden] { display: none !important; }

/* ── Tipografías locales ── */
@font-face {
  font-family: "NeueHaasDisplay";
  src: url("assets/NeueHaasDisplay-Roman.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NeueHaasDisplay";
  src: url("assets/NeueHaasDisplayBold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}


html, body {
  margin: 0;
  background: #08080B;
  color: #fff;
  font-family: "NeueHaasDisplay", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ── Animations ── */
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════
   LAYOUT
════════════════════════════════════════ */

.root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-area {
  flex: 1;
  display: flex;
  flex-direction: column;   /* mobile: stacked */
}

@media (min-width: 900px) {
  .top-area { flex-direction: row; }
}

/* ════════════════════════════════════════
   COLLAGE
════════════════════════════════════════ */

.collage {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  height: 400px;
}

@media (min-width: 900px) {
  .collage {
    flex: 1.55;
    height: auto;
    min-height: 620px;
  }
}

.collage-picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.collage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.collage-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #000 18%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.10) 100%);
}

@media (min-width: 900px) {
  .collage-overlay {
    background:
      linear-gradient(90deg, rgba(0,0,0,0.20) 38%, #000 100%),
      linear-gradient(0deg, rgba(0,0,0,0.85) 2%, rgba(0,0,0,0) 48%);
  }
}

/* ── Badge Claro (compartido) ── */
.badge-claro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15,15,15,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 30px;
  padding: 7px 14px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
}
.badge-claro strong { color: #fff; font-weight: 700; }

/* ── Mobile hero (branding superpuesto sobre el collage) ── */
.mobile-hero {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
  padding: 16px 20px 24px;
  justify-content: flex-end;
}

.mobile-hero .badge-claro {
  position: absolute;
  top: 16px;
  right: 16px;
}

.mobile-hero__sub {
  margin: 10px 0 0;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

@media (min-width: 900px) {
  .mobile-hero { display: none; }
}

/* ── Desktop brand overlay ── */
.desktop-brand {
  display: none;
}

@media (min-width: 900px) {
  .desktop-brand {
    display: block;
    position: absolute;
    left: 64px;
    bottom: 64px;
    max-width: 560px;
  }
}

.desktop-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15,15,15,0.7);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
}
.desktop-badge strong { color: #fff; font-weight: 700; }

.desktop-brand__sub {
  margin: 14px 0 0;
  font-size: 18px;
  color: #C8C8D0;
  line-height: 1.45;
}

/* ── Brand row ── */
.brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 5px;
  padding: 3px 8px;
}

.brand-img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin-top: 16px;
  align-self: flex-start;   /* evita que flex estire la imagen al ancho del contenedor */
}

/* small variants (mobile) */
.brand-icon--sm { width: 28px; height: 28px; font-size: 16px; border-radius: 7px; }
.brand-name--sm { font-size: 20px; }
.brand-tag--sm  { font-size: 10px; letter-spacing: 1.4px; padding: 3px 7px; }

/* ── Heading ── */
.heading {
  margin: 16px 0 0;
  font-weight: 700;
  font-family: "NeueHaasDisplay", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 48px;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.heading--mobile { font-size: 34px; }

/* .mobile-brand eliminado — el hero mobile vive dentro de .collage */

/* ════════════════════════════════════════
   MAIN PANEL
════════════════════════════════════════ */

.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  padding: 28px 20px 10px;
}

@media (min-width: 900px) {
  .main {
    width: 500px;
    padding: 74px 56px 40px;
  }
}

/* ════════════════════════════════════════
   STEPS
════════════════════════════════════════ */

.steps-wrapper { max-width: 430px; }

.step {
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 34px;
  flex-shrink: 0;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.step-number--dim {
  border-color: rgba(255,255,255,0.32);
  color: rgba(255,255,255,0.7);
}

.step-line- {
  flex: 1;
  width: 1.5px;
  background-image:url('assets/conector.png');
  margin-top: 8px;
}


.step-line {
  flex: 1;
  width: 1.5px;
  background: rgba(255,255,255,0.13);
  margin-top: 8px;
}

.step-body {
  flex: 1;
  padding-bottom: 40px;
}

.step-body--last {
  padding-bottom: 0;
}

.step-title {
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: 600;
}

.step:nth-child(n+2) h3 {
  color:#AEAEB8;
}

.step-desc {
  margin: 8px 0 0;
  font-size: 16px;
  color: #9A9AA6;
  line-height: 1.5;
}

/* ════════════════════════════════════════
   FORM
════════════════════════════════════════ */

.field-label {
  display: block;
  margin: 20px 0 9px;
  font-size: 11.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.42);
  transition: color .15s;
}

.field-label--error { color: #d6453b; }

.field-input {
  width: 100%;
  padding: 15px 22px;
  border-radius: 30px;
  font-size: 15.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow: none;
  outline: none;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s, color .15s;
}

.field-input::placeholder { color: rgba(255,255,255,0.28); }

.field-input:focus {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

.field-input--error {
  background: rgba(214,69,59,0.06);
  border-color: #d6453b;
  box-shadow: none;
}

/* ── Validation error text ── */
.v-error {
  color: #df6258;
  font-size: 13px;
  margin: 9px 2px 0;
}

/* ── Alert boxes ── */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 13px;
  padding: 12px 14px;
  margin: 12px 0 0;
}

.alert--error {
  background: rgba(214,69,59,0.10);
  border: 1px solid rgba(214,69,59,0.42);
}
.alert--error .alert-icon { color: #ef6f63; font-size: 15px; line-height: 1.3; }
.alert--error .alert-text { color: #eaa39c; font-size: 13.5px; line-height: 1.42; }

.alert--success {
  background: rgba(46,160,98,0.10);
  border: 1px solid rgba(46,160,98,0.42);
}
.alert--success .alert-icon { color: #4bbd7e; font-size: 15px; line-height: 1.3; }
.alert--success .alert-text { color: #9fd5b4; font-size: 13.5px; line-height: 1.42; }

/* ── Button ── */
.btn {
  width: 100%;
  padding: 15px 20px;
  border-radius: 30px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  cursor: pointer;
  background: #f4f4f4;
  color: #101010;
  transition: background .15s;
}

.btn-icon { width: 16px; height: 16px; object-fit: contain; vertical-align: middle; }

.btn--sending  { background: #d6d6d6; color: #2a2a2a; cursor: default; }
.btn--retry    { background: #f4f4f4; color: #101010; }

/* ── Spinner ── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: #1a1a1a;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ── Step 3 hint ── */
.hint-box {
  margin-top: 16px;
  background: #101013;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 13px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.62);
  line-height: 1.45;
}

/* ── App store badges ── */
.store-badges {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.store-badges a { display: inline-flex; text-decoration: none; }
.store-badges img { height: 42px; width: auto; display: block; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */

.footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 900px) {
  .footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 26px 56px;
  }
}

.footer-links {
  display: flex;
  gap: 26px;
  font-size: 13.5px;
}

.footer-links a {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
}

.footer-links a:hover { color: #fff; }

.footer-legal {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.42);
  line-height: 1.5;
}

@media (min-width: 900px) {
  .footer-legal {
    max-width: 560px;
    text-align: right;
  }
}

/* ════════════════════════════════════════
   EMAIL-ENVIADO — estilos adicionales
════════════════════════════════════════ */

/* Step 1 completado: círculo gris con ✓ */
.step-number--done {
  background: rgba(255,255,255,0.14);
  border-color: #08080B;
  color: #fff;
}


.step-number--active{
background: #F4F4F6;
color: #08080B;
}

/* Campo email confirmado (solo lectura) */
.email-confirmed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 30px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.13);
}

.email-confirmed__text {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-confirmed__icon {
  flex-shrink: 0;
}

/* Botón "Abrir mi correo" — oscuro con borde */
.btn--outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  margin-top: 20px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
}

.mobile-hero__sub .block{display:block;}
