:root {
  --bg: #0b0b0b;
  --ink: #0f0f10;
  --paper: #ffffff;
  --muted: #6b7280;
  --accent: #ff6e40;
  --blanco: #ffffff;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* FONDO Y FUENTE */
html, body {
  height: 100%;
  margin: 0;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  background: radial-gradient(circle at top, #1a1a1a, #000);
  color: var(--blanco);
  overflow-x: hidden;
  overflow-y: auto;   /* ← SOLUCIÓN */
}

/* HEADER */
.header-fbr {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--accent);
  padding: 12px 0;
  text-align: center;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.header-logo {
  height: 50px;
}

.header-fbr h1 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--blanco);
  font-weight: 800;
  letter-spacing: 2px;
}
.header-fbr span {
  color: var(--accent);
  font-style: italic;
}

/* PANTALLA DE CARGA */
.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  background: var(--paper);
  color: #111;
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: var(--shadow);
  text-align: center;
  width: min(500px, 90vw);
}
.loader-title {
  font-weight: 700;
  font-size: 1.2rem;
}
.progress {
  height: 14px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 16px;
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #000, #444);
  transition: width 0.2s;
}
.progress__pct {
  margin-top: 8px;
  color: #333;
  font-size: 0.9rem;
}

/* GRID FORMULARIO */
.form-grid {
  display: grid;
  place-items: center;
  height: 100vh;
  padding-top: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.form-grid.active {
  opacity: 1;
  pointer-events: auto;
}

.formulario {
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 30px;
  width: min(700px, 90%);
  display: grid;
  gap: 18px;
}

.informacion {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 12px;
}

.marca-hint{
  background: rgba(255,110,64,0.12);
  border: 1px solid rgba(255,110,64,0.35);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .92rem;
  line-height: 1.4;
  color: #7a2f1f;
}

label {
  font-weight: 600;
  color: #111;
}
input, select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
}
input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,110,64,0.3);
}

/* BOTÓN */
.enviar-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.enviar-container button {
  width: 100%;
  max-width: 320px;
  height: 60px;
  font-size: 1.2rem;
  font-weight: 800;
  border: 4px solid var(--blanco);
  border-radius: 15px;
  background: linear-gradient(135deg, #000, #333);
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.enviar-container button:hover {
  transform: translateY(-4px);
  filter: brightness(1.3);
}

.aviso-marca{
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,110,64,.45);
  background:rgba(255,110,64,.12);
  color:#5f2d1e;
  font-size:.92rem;
  line-height:1.4;
}

.aviso-marca .aviso-marca-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:10px;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid rgba(185,67,34,.45);
  background:#fff4ef;
  color:#b94322;
  font-weight:700;
  text-decoration:none;
}

/* ===== PASOS (1 de 3) ===== */
.steps{
  width: min(760px, 92vw);
  margin: 110px auto 14px;  /* margen superior tras el header fijo */
  color: #fff;
}
.steps__head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:8px;
}
.steps__stage{
  font-weight:800; letter-spacing:.5px;
  text-transform:uppercase;
  font-size:.95rem;
  color:#f0f0f0;
}
.steps__label{
  font-size:.95rem; color:#cfcfcf;
}
.steps__bar{
  width:100%; height:10px; border-radius:999px;
  background: rgba(255,255,255,.15);
  overflow:hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.25);
}
.steps__bar-fill{
  height:100%; width:0;
  background: linear-gradient(90deg, #ffffff, #8a8a8a);
  transition: width .4s ease;
}

/* ===== CÓDIGOS: DESCUENTO + TARJETA REGALO ===== */
.codes-block{
  display: grid;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px dashed rgba(0,0,0,0.15);
  margin-top: 4px;
}

.codes-sub{
  padding-left: 16px;
  border-left: 3px solid rgba(255,110,64,0.35);
  display: grid;
  gap: 6px;
}

.informacion--sub label{
  font-size: 0.95rem;
  color: #222;
  opacity: 0.9;
}

.codes-hint{
  margin: 0;
  font-size: 0.9rem;
  color: #444;
}

@media (max-width: 768px) {
  .header-fbr {
    padding: 10px 0;
  }

  .header-logo {
    height: 44px;
  }

  .header-fbr h1 {
    font-size: 1.6rem;
    letter-spacing: 1.2px;
  }

  .steps {
    margin: 100px auto 14px;
  }

  .steps__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .steps__stage,
  .steps__label {
    font-size: 1rem;
  }

  .form-grid {
    height: auto;
    min-height: 100vh;
    padding: 98px 0 24px;
  }

  .formulario {
    width: min(94vw, 720px);
    padding: 22px 18px;
    gap: 14px;
  }

  .formulario h2 {
    font-size: 1.5rem;
    margin: 0;
  }

  .formulario p,
  .marca-hint,
  .codes-hint,
  label,
  input,
  select {
    font-size: 1.02rem;
  }

  .nota-final {
    font-size: 1.02rem !important;
    line-height: 1.7 !important;
  }

  .informacion {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  input,
  select {
    padding: 12px 13px;
  }

  .enviar-container button {
    height: 58px;
    font-size: 1.08rem;
    max-width: none;
  }
}
