:root {
  --bosque: #0d3b34;
  --bosque-2: #145c4e;
  --esmeralda: #1e8a6e;
  --menta: #e7f4ee;
  --crema: #faf7f0;
  --oro: #d9a441;
  --oro-suave: #f6e8cd;
  --tinta: #1c2b27;
  --gris: #5f7269;
  --peligro: #b3261e;
  --sombra: 0 30px 80px rgba(6, 40, 34, .35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--tinta);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 48px;
  line-height: 1.6;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(217, 164, 65, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(30, 138, 110, .35), transparent 60%),
    linear-gradient(160deg, #0a2f2a 0%, var(--bosque) 45%, #0f4a3e 100%);
  background-attachment: fixed;
}

/* ── Animaciones ── */
@keyframes subir {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes latido {
  0%, 100% { transform: scale(1); opacity: .55; }
  50%      { transform: scale(1.15); opacity: .85; }
}
.anima { animation: subir .7s cubic-bezier(.2, .7, .3, 1) both; animation-delay: var(--d, 0s); }

/* ── Banner de prueba ── */
.banner-prueba {
  width: 100%;
  max-width: 780px;
  background: #fff3cd;
  border: 2px dashed #d4a017;
  color: #7a5b00;
  font-weight: 700;
  text-align: center;
  padding: 10px;
  border-radius: 14px;
  margin-bottom: 14px;
}

/* ── Tarjeta principal ── */
.tarjeta {
  width: 100%;
  max-width: 780px;
  background: var(--crema);
  border-radius: 26px;
  box-shadow: var(--sombra);
  overflow: hidden;
  animation: subir .6s ease-out both;
}

/* ── Cabecera con gradiente y brillo ── */
.cabecera {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bosque) 0%, var(--bosque-2) 55%, var(--esmeralda) 100%);
  padding: 42px 36px 34px;
  text-align: center;
}
.cabecera-brillo {
  position: absolute;
  top: -60%; right: -30%;
  width: 120%; height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, .14) 0%, transparent 65%);
  animation: latido 5s ease-in-out infinite;
  pointer-events: none;
}
.marca {
  position: relative;
  font-family: "Fraunces", serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}
.marca span { color: var(--oro); }
.lema {
  position: relative;
  color: rgba(255, 255, 255, .92);
  font-size: 1.05rem;
  margin-top: 4px;
}
.sellos {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.sello {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.cuerpo { padding: 36px 36px 8px; }

/* ── Hero ── */
.hero h1 {
  font-family: "Fraunces", serif;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--bosque);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--esmeralda), var(--oro));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub { color: var(--gris); font-size: 1.05rem; margin-bottom: 18px; max-width: 56ch; }

/* ── Botones ── */
.acciones { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 10px; }
.boton {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.175, .885, .32, 1.275), box-shadow .25s;
}
.boton.primario {
  background: linear-gradient(135deg, var(--bosque-2), var(--esmeralda));
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 92, 78, .35);
}
.boton.primario:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 32px rgba(20, 92, 78, .45); }
.boton.secundario {
  background: #fff;
  color: var(--bosque);
  border: 2px solid var(--bosque-2);
}
.boton.secundario:hover { transform: translateY(-3px); background: var(--menta); }

/* ── Secciones ── */
.titulo-seccion {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--bosque);
  margin: 26px 0 16px;
  padding-left: 16px;
  border-left: 5px solid var(--oro);
  border-radius: 2px;
}

/* ── Cajas de pasos (landing) ── */
.caja-paso {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid #e4e9e4;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: transform .3s cubic-bezier(.175, .885, .32, 1.275), box-shadow .3s, border-color .3s;
}
.caja-paso:hover {
  transform: translateX(6px);
  border-color: var(--esmeralda);
  box-shadow: 0 12px 28px rgba(13, 59, 52, .12);
}
.num {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--bosque-2), var(--esmeralda));
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(20, 92, 78, .3);
}
.caja-paso strong { display: block; color: var(--bosque); font-size: 1.05rem; }
.caja-paso span { color: var(--gris); font-size: .95rem; }

/* ── Destacado bonificación ── */
.destacado {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(120deg, var(--oro-suave), #fdf8ec);
  border: 1px solid var(--oro);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 22px 0 14px;
}
.destacado-icono { font-size: 1.8rem; }
.destacado strong { display: block; color: #7a5b00; }
.destacado span { color: #8a6d1f; font-size: .95rem; }

/* ── Formulario de código ── */
.form-codigo { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.form-codigo input {
  flex: 1 1 200px;
  padding: 14px 18px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-align: center;
  text-transform: uppercase;
  color: var(--bosque);
  background: #fff;
  border: 2px solid #cfdcd4;
  border-radius: 14px;
  transition: border-color .25s, box-shadow .25s;
}
.form-codigo input:focus {
  outline: none;
  border-color: var(--esmeralda);
  box-shadow: 0 0 0 4px rgba(30, 138, 110, .15);
}
.error { color: var(--peligro); font-weight: 600; margin: 6px 0 10px; }
.nota { color: var(--gris); font-size: .9rem; margin-top: 14px; }

/* ── Chip de estado ── */
.chip {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.chip-ok { background: var(--menta); color: var(--bosque-2); border: 1px solid var(--esmeralda); }
.chip-revision { background: var(--oro-suave); color: #7a5b00; border: 1px solid var(--oro); }

/* ── Stepper ── */
.stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 22px 0 8px;
  padding: 18px 14px;
  background: #fff;
  border: 1px solid #e4e9e4;
  border-radius: 16px;
}
.paso { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; }
.paso i {
  font-style: normal;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  background: #eef2ee;
  color: #9aa8a0;
  border: 2px solid #dfe6df;
  transition: all .3s;
}
.paso span { font-size: .75rem; font-weight: 600; color: var(--gris); }
.paso.hecho i { background: var(--esmeralda); border-color: var(--esmeralda); color: #fff; }
.paso.actual i {
  background: #fff;
  border-color: var(--oro);
  color: var(--bosque);
  box-shadow: 0 0 0 5px rgba(217, 164, 65, .2);
}
.paso.actual span { color: var(--bosque); }
.linea { flex: 1 1 auto; height: 3px; background: #dfe6df; border-radius: 2px; margin-bottom: 18px; }
.linea.llena { background: var(--esmeralda); }

/* ── Datos del caso ── */
.datos { display: grid; gap: 10px; margin: 6px 0 12px; }
.datos div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  background: #fff;
  border: 1px solid #e4e9e4;
  border-radius: 12px;
  padding: 12px 16px;
}
.datos div.fila-destacada {
  background: linear-gradient(120deg, var(--menta), #f2faf6);
  border-color: var(--esmeralda);
}
.datos div.fila-destacada dd { color: var(--esmeralda); font-size: 1.15rem; }
.datos dt { color: var(--gris); font-size: .95rem; }
.datos dd { font-weight: 700; color: var(--bosque); text-align: right; }

/* ── Avisos ── */
.aviso {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 18px 0 14px;
}
.aviso-icono { font-size: 1.9rem; line-height: 1; }
.aviso strong { display: block; font-family: "Fraunces", serif; font-size: 1.1rem; margin-bottom: 4px; }
.aviso p { font-size: .95rem; }
.aviso.revision { background: var(--oro-suave); border: 1px solid var(--oro); color: #6d5414; }
.aviso.revision strong { color: #7a5b00; }
.aviso.listo { background: var(--menta); border: 1px solid var(--esmeralda); color: var(--bosque-2); }
.aviso.listo strong { color: var(--bosque); }

/* ── Pie ── */
.pie {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gris);
  font-size: .85rem;
  border-top: 1px solid #e4e9e4;
  margin-top: 26px;
  padding: 16px 36px 20px;
}

@media (max-width: 540px) {
  .cuerpo { padding: 26px 20px 6px; }
  .cabecera { padding: 34px 20px 28px; }
  .hero h1 { font-size: 1.65rem; }
  .datos div { flex-direction: column; gap: 2px; }
  .datos dd { text-align: left; }
  .stepper { overflow-x: auto; }
  .pie { padding: 14px 20px 18px; }
}

/* ── ⚠️ Firma simulada (placeholder temporal, solo modo prueba) ── */
.banner-simulacion {
  background: #ffe9e3;
  border: 2px dashed #d1512d;
  color: #8a2c0f;
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 18px;
}
.acepto {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e4e9e4;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: .95rem;
  cursor: pointer;
}
.acepto input { margin-top: 4px; accent-color: #1e8a6e; }

/* ── Wizard 2 ── */
.campo {
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--bosque);
  border: 2px solid #cfdcd4;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  text-align: right;
}
.campo:disabled { background: #f0f3f0; color: var(--gris); }
.boton.chico { padding: 8px 14px; font-size: .85rem; }
.barra {
  height: 12px;
  background: #e4ebe4;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}
.barra-relleno {
  height: 100%;
  background: linear-gradient(90deg, var(--esmeralda), var(--oro));
  border-radius: 999px;
  transition: width .5s ease;
}
a.caja-paso { color: inherit; }
