:root {
  --negro: #0a0a0a;
  --rojo: #d7141a;
  --plata: #c9ccd1;
  --plata-baja: #8d9198;
  --blanco: #f4f5f6;
  --linea: rgba(201, 204, 209, 0.22);
  --error: #ff8d84;
  --fuente-titulo: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --fuente-texto: Inter, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--blanco);
  font-family: var(--fuente-texto);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--negro) url("../assets/fondo-vertical.webp") center top / cover no-repeat fixed;
}

img {
  max-width: 100%;
  height: auto;
}

.fondo-video,
.velo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fondo-video {
  z-index: -2;
  object-fit: cover;
}

.velo {
  z-index: -1;
  background:
    radial-gradient(ellipse at 70% 45%, rgba(215, 20, 26, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.35), rgba(10, 10, 10, 0.55));
}

.pagina {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1.15rem 1.75rem;
}

.cabecera {
  display: flex;
  justify-content: center;
}

.cabecera img {
  width: min(168px, 46vw);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  margin-top: 0.25rem;
}

.producto {
  position: relative;
  margin: 0;
  padding: 1rem 0;
  order: -1;
}

.producto img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: min(280px, 72vw);
  max-height: 38vh;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(215, 20, 26, 0.28));
  animation: flotar 6s ease-in-out infinite;
}

.brillo {
  position: absolute;
  inset: 12% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 20, 26, 0.55), rgba(215, 20, 26, 0) 68%);
  filter: blur(18px);
  animation: latir 4s ease-in-out infinite;
}

.chispas {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.chispas span {
  position: absolute;
  bottom: 8%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 8px 2px rgba(255, 59, 48, 0.75);
  opacity: 0;
  animation: subir 5s linear infinite;
}

.chispas span:nth-child(1) { left: 12%; animation-delay: 0s; }
.chispas span:nth-child(2) { left: 24%; animation-delay: 1.8s; animation-duration: 6s; }
.chispas span:nth-child(3) { left: 38%; animation-delay: 3.1s; width: 3px; height: 3px; }
.chispas span:nth-child(4) { left: 52%; animation-delay: 0.9s; animation-duration: 6.5s; }
.chispas span:nth-child(5) { left: 64%; animation-delay: 2.4s; width: 3px; height: 3px; }
.chispas span:nth-child(6) { left: 76%; animation-delay: 4s; animation-duration: 5.5s; }
.chispas span:nth-child(7) { left: 86%; animation-delay: 1.3s; }
.chispas span:nth-child(8) { left: 46%; animation-delay: 3.7s; animation-duration: 7s; width: 2px; height: 2px; }

@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes latir {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 0.9; transform: scale(1.04); }
}

@keyframes subir {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(14px, -320px); }
}

.registro {
  width: min(460px, 100%);
}

.sobre {
  margin: 0 0 0.35rem;
  color: var(--rojo);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--fuente-titulo);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.9;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.7rem, 11vw, 4.4rem);
}

h1 span {
  display: block;
  color: var(--plata);
}

h2 {
  font-size: clamp(2.4rem, 8vw, 3.4rem);
}

.lead {
  margin: 0.85rem 0 0;
  color: var(--plata);
}

.datos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 1.15rem;
  padding: 0;
  list-style: none;
}

.datos li {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--linea);
  color: var(--plata);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.tarjeta {
  padding: 1.15rem 1.1rem 1.25rem;
  background: rgba(10, 10, 10, 0.78);
  border: 1px solid var(--linea);
  border-top: 3px solid var(--rojo);
  backdrop-filter: blur(8px);
}

.instruccion {
  margin: 0 0 1rem;
}

.campo {
  margin-bottom: 0.85rem;
}

.campo label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--plata);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.campo input[type="text"],
.campo input[type="email"] {
  width: 100%;
  padding: 0.72rem 0.75rem;
  color: var(--blanco);
  font: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--linea);
  border-radius: 2px;
}

.campo input::placeholder {
  color: var(--plata-baja);
}

.campo-check {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.65rem;
  align-items: start;
}

.campo-check input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--rojo);
}

.campo-check label {
  margin: 0;
  color: var(--blanco);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.campo-check .error {
  grid-column: 1 / -1;
}

.error {
  margin: 0.35rem 0 0;
  color: var(--error);
  font-size: 0.85rem;
}

.error-envio {
  margin-bottom: 0.75rem;
}

button {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  color: var(--blanco);
  font-family: var(--fuente-titulo);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--rojo);
  border: 0;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

button:hover {
  background: #ef1b22;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.trampa {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.exito:focus {
  outline: none;
}

.exito .detalle {
  margin: 0.8rem 0 0;
  color: var(--plata);
}

.exito strong {
  color: var(--blanco);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.exito .nota {
  margin: 0.7rem 0 0;
  color: var(--plata-baja);
  font-size: 0.88rem;
}

.pie {
  margin-top: 1.75rem;
  text-align: center;
}

.pie p {
  margin: 0.15rem 0;
  color: var(--plata-baja);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rojo);
  outline-offset: 2px;
}

.campo.invalido input {
  border-color: var(--error);
}

@media (min-width: 900px) {
  body {
    background-image: url("../assets/fondo-horizontal.webp");
  }

  .pagina {
    padding: 1.5rem 2rem 2rem;
  }

  .cabecera {
    justify-content: flex-start;
  }

  .cabecera img {
    width: 148px;
  }

  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-top: 0.5rem;
  }

  .producto {
    order: 2;
    flex: 1;
  }

  .producto img {
    max-width: 460px;
    max-height: 74vh;
  }

  .registro {
    order: 1;
    flex: 1;
  }

  h1 {
    font-size: 4.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fondo-video,
  .chispas {
    display: none;
  }

  .producto img,
  .brillo {
    animation: none;
  }
}
