/* ==========================================================================
   MR. BLACK — "EL PATRÓN" LANDING PAGE
   CSS completo, mobile-first, producción lista.
   Paleta: oro envejecido, plata metálico, carmesí sobre negro profundo.
   ========================================================================== */

/* Fuentes cargadas vía <link> en index.html */

/* ==========================================================================
   VARIABLES GLOBALES
   ========================================================================== */
:root {
  --negro-profundo: #000000;
  --oro-envejecido: #B8860B;
  --plata-metalico: #C0C0C0;
  --marron-bronce: #4B3621;
  --rojo-carmesi: #DC143C;
  --texto-claro: #F5F5F0;
  --texto-secundario: #E0E0E0;
  --oro-claro: #D4A843;
  --oro-oscuro: #8B6914;
  --rojo-hover: #B01030;
}

/* ==========================================================================
   RESET Y BASE
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

/* --- Scrollbar personalizada (delgada, dorada) --- */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--oro-envejecido) var(--negro-profundo);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--negro-profundo);
}

::-webkit-scrollbar-thumb {
  background: var(--oro-oscuro);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--oro-envejecido);
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--texto-claro);
  background-color: var(--negro-profundo);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ==========================================================================
   ANIMACIONES (KEYFRAMES)
   ========================================================================== */

/* --- Entrada desde abajo con desvanecimiento --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Desvanecimiento simple --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- Pulso para dígitos del countdown al cambiar --- */
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* --- Brillo dorado desplazándose sobre el logo --- */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* --- Anillo expandiéndose en la confirmación --- */
@keyframes checkRing {
  0% {
    transform: scale(0.5);
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.6);
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
    box-shadow: 0 0 0 20px rgba(184, 134, 11, 0);
  }
}

/* --- Flotación sutil arriba-abajo para la foto del artista --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* --- Rotación para el spinner del botón en carga --- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- Pulso luminoso suave para el logo del hero --- */
@keyframes logoPulse {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(184, 134, 11, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(184, 134, 11, 0.55));
  }
}

/* ==========================================================================
   CLASES DE UTILIDAD
   ========================================================================== */
.text-oro {
  color: var(--oro-envejecido);
}

.text-plata {
  color: var(--plata-metalico);
}

.text-rojo {
  color: var(--rojo-carmesi);
}

/* --- Accesibilidad: oculto visualmente, visible para lectores de pantalla --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Animación al hacer scroll (estado inicial) --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* --- Animación al hacer scroll (estado visible) --- */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   BOTONES
   ========================================================================== */

/* --- Botón primario (Estilo oscuro, bordes animados dorados) --- */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 8px 40px;
  border-radius: 12px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffffff;
  cursor: pointer;
  z-index: 1;
  transition: color 0.2s ease;
  
  /* Truco de múltiples fondos para el borde degradado */
  border: 2px solid transparent;
  background-clip: padding-box, border-box, border-box;
  background-origin: border-box;
  background-image: 
    linear-gradient(#000000, #000000), 
    linear-gradient(#000000 50%, rgba(0, 0, 0, 0.6) 80%, rgba(0, 0, 0, 0)), 
    linear-gradient(90deg, #B8860B, #FFD700, #DAA520, #FFF8DC, #B8860B);
  background-size: 200% 100%;
  animation: rainbowButton 8s linear infinite;
}

/* Resplandor difuminado que sale por debajo del botón */
.btn-primary::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  height: 20%;
  width: 60%;
  background-image: linear-gradient(90deg, #B8860B, #FFD700, #DAA520, #FFF8DC, #B8860B);
  background-size: 200% 100%;
  filter: blur(12px);
  animation: rainbowButton 8s linear infinite;
}

@keyframes rainbowButton {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.btn-primary:hover {
  color: var(--oro-envejecido);
}

.btn-primary:active {
  transform: translateY(2px);
}

/* --- Estado deshabilitado --- */
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary:disabled::before {
  animation: none;
  opacity: 0.5;
}

.btn-primary:disabled:hover {
  transform: none;
}

/* --- Estado de carga con spinner --- */
.btn-primary.btn--loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-primary.btn--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* --- Botón secundario (borde plata, fondo transparente) --- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--plata-metalico);
  color: var(--plata-metalico);
  padding: 16px 40px;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: border-color 0.3s ease,
              color 0.3s ease,
              box-shadow 0.3s ease;
  text-align: center;
  line-height: 1.2;
}

.btn-secondary:hover {
  border-color: var(--oro-envejecido);
  color: var(--oro-envejecido);
  box-shadow: 0 0 15px rgba(184, 134, 11, 0.15);
}

/* --- Botón de compartir WhatsApp (variante ligeramente más pequeña) --- */
.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--rojo-carmesi);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease,
              transform 0.3s ease,
              box-shadow 0.3s ease;
  text-align: center;
  line-height: 1.2;
}

.btn-share:hover {
  background-color: var(--rojo-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

.btn-share:active {
  transform: translateY(0);
}

/* ==========================================================================
   1. STICKY HEADER
   Barra fija superior con CTA, oculta por defecto.
   ========================================================================== */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 134, 11, 0.3);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Clase activa: se desliza hacia abajo --- */
.sticky-header.visible {
  transform: translateY(0);
}

.sticky-header .btn-primary {
  padding: 10px 28px;
  font-size: 0.78rem;
}

/* ==========================================================================
   2. SECCIÓN HERO (#hero)
   Pantalla completa, centrado, atmósfera lujosa.
   ========================================================================== */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0;
  overflow: hidden;
  background: var(--negro-profundo);
}

/* --- Banner de fondo --- */
.hero__banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  animation: logoPulse 5s ease-in-out infinite;
}

/* --- Overlay oscuro --- */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 50%, var(--negro-profundo) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* --- Subtítulo del hero --- */
.hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--texto-claro);
  margin-bottom: 32px;
  max-width: 480px;
  animation: fadeInUp 1s ease 0.8s both;
}

/* --- Contador regresivo (estilo limpio, dígitos grandes) --- */
.hero__countdown {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 1s both;
}

.countdown__block {
  background: none;
  border: none;
  padding: 0 6px;
  min-width: 56px;
  text-align: center;
}

.countdown__digit {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 3.2rem;
  color: var(--texto-claro);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.countdown__digit.pulse {
  animation: pulse 0.4s ease;
}

.countdown__label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--plata-metalico);
  opacity: 0.7;
}

/* --- Separador ":" entre bloques --- */
.countdown__separator {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 3.2rem;
  color: var(--texto-claro);
  line-height: 1;
  padding: 0 2px;
  opacity: 0.6;
}

/* --- CTA principal del hero --- */
.hero__cta {
  animation: fadeInUp 1s ease 1.2s both;
}

/* ==========================================================================
   3. SECCIÓN "QUÉ RECIBES" (#que-recibes)
   Tarjetas de beneficios con grid responsivo.
   ========================================================================== */
#que-recibes {
  padding: 80px 20px;
  background-color: var(--negro-profundo);
}

/* --- Título de sección compartido --- */
.section-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--oro-envejecido);
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 16px;
}

/* --- Línea decorativa dorada debajo del título --- */
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--oro-envejecido),
    transparent
  );
  border-radius: 1px;
}

/* --- Texto introductorio de sección --- */
.section-intro {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--texto-secundario);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* --- Grilla de tarjetas de beneficio --- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

/* --- Tarjeta individual de beneficio --- */
.benefit-card {
  background: rgba(75, 54, 33, 0.2);
  border: 1px solid rgba(192, 192, 192, 0.2);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s ease,
              transform 0.3s ease,
              box-shadow 0.3s ease;
}

.benefit-card:hover {
  border-color: rgba(184, 134, 11, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(184, 134, 11, 0.1);
}

/* --- Ícono de la tarjeta --- */
.benefit-card__icon {
  width: 48px;
  height: 48px;
  color: var(--oro-envejecido);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.benefit-card__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* --- Título de la tarjeta --- */
.benefit-card__title {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--plata-metalico);
  margin-bottom: 10px;
}

/* --- Descripción de la tarjeta --- */
.benefit-card__text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--texto-secundario);
  line-height: 1.65;
}

/* ==========================================================================
   4. SECCIÓN "CÓMO FUNCIONA" (#como-funciona)
   Pasos verticales en móvil, horizontales en escritorio.
   ========================================================================== */
#como-funciona {
  padding: 80px 20px;
  background-color: var(--negro-profundo);
}

/* --- Contenedor de pasos --- */
.steps-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

/* --- Paso individual --- */
.step {
  text-align: center;
  max-width: 280px;
  position: relative;
}

/* --- Número del paso (círculo dorado) --- */
.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--oro-envejecido);
  border-radius: 50%;
  color: var(--oro-envejecido);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.step:hover .step__number {
  background-color: rgba(184, 134, 11, 0.1);
}

/* --- Título del paso --- */
.step__title {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--texto-claro);
  margin-bottom: 10px;
}

/* --- Texto descriptivo del paso --- */
.step__text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--texto-secundario);
  line-height: 1.6;
}

/* --- Conector vertical entre pasos (móvil) --- */
.step__connector {
  display: none;
}

/* ==========================================================================
   5. SECCIÓN FORMULARIO (#formulario)
   Registro con gradiente sutil de fondo.
   ========================================================================== */
#formulario {
  padding: 80px 20px;
  background: linear-gradient(
    180deg,
    var(--negro-profundo) 0%,
    rgba(75, 54, 33, 0.12) 50%,
    var(--negro-profundo) 100%
  );
}

/* --- Contenedor del formulario --- */
.form-container {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(75, 54, 33, 0.15);
  border: 1px solid rgba(192, 192, 192, 0.15);
  border-radius: 20px;
  padding: 24px;
}

/* --- Título del formulario --- */
.form-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--oro-envejecido);
  text-align: center;
  margin-bottom: 8px;
}

/* --- Subtítulo del formulario --- */
.form-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--texto-secundario);
  text-align: center;
  margin-bottom: 32px;
}

/* --- Grupo de campo --- */
.form-group {
  margin-bottom: 20px;
}

/* --- Etiqueta del campo --- */
.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--plata-metalico);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* --- Campo de entrada --- */
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(192, 192, 192, 0.3);
  border-radius: 10px;
  color: var(--texto-claro);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  transition: border-color 0.3s ease,
              box-shadow 0.3s ease,
              background 0.3s ease;
  outline: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
  border-color: var(--oro-envejecido);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

/* --- Estado de error del campo --- */
.form-input.error {
  border-color: var(--rojo-carmesi);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

/* --- Mensaje de error (oculto por defecto) --- */
.form-error {
  display: none;
  color: var(--rojo-carmesi);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  margin-top: 4px;
}

.form-input.error ~ .form-error,
.form-group.has-error .form-error {
  display: block;
}

/* --- Nota auxiliar bajo campos (ej. campo Ciudad) --- */
.form-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--texto-secundario);
  margin-top: 6px;
  opacity: 0.8;
}

/* --- Select personalizado --- */
.form-input[type="select"],
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C0C0C0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ==========================================================================
   6. SECCIÓN SORTEO (#sorteo)
   Fondo bronce sólido con textura de grano sutil.
   ========================================================================== */
#sorteo {
  padding: 80px 20px;
  background-color: var(--marron-bronce);
  background-image:
    repeating-radial-gradient(
      circle at 17% 32%,
      rgba(0, 0, 0, 0) 0px,
      rgba(0, 0, 0, 0.03) 1px,
      rgba(0, 0, 0, 0) 2px
    ),
    repeating-radial-gradient(
      circle at 62% 78%,
      rgba(255, 255, 255, 0) 0px,
      rgba(255, 255, 255, 0.015) 1px,
      rgba(255, 255, 255, 0) 2px
    ),
    repeating-radial-gradient(
      circle at 83% 15%,
      rgba(0, 0, 0, 0) 0px,
      rgba(0, 0, 0, 0.025) 1px,
      rgba(0, 0, 0, 0) 3px
    );
  text-align: center;
}

#sorteo .section-title {
  color: var(--oro-claro);
}

#sorteo .section-intro {
  color: var(--texto-claro);
}

/* ==========================================================================
   7. OVERLAY DE CONFIRMACIÓN (#confirmacion)
   Pantalla completa que aparece tras enviar el formulario.
   ========================================================================== */
.confirmacion {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* --- Estado activo del overlay --- */
.confirmacion.active {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

/* --- Contenido centrado de la confirmación --- */
.confirmacion__content {
  position: relative;
  max-width: 480px;
  text-align: center;
  padding: 40px 24px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* --- Ícono de check dorado con anillo animado --- */
.confirmacion__check {
  width: 80px;
  height: 80px;
  color: var(--oro-envejecido);
  margin: 0 auto 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmacion__check::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--oro-envejecido);
  border-radius: 50%;
  animation: checkRing 1.2s ease-out 0.5s both;
}

.confirmacion__check svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
  animation: fadeIn 0.6s ease 0.8s both;
}

/* --- Título de confirmación --- */
.confirmacion__title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--oro-envejecido);
  margin-bottom: 12px;
}

/* --- Texto de confirmación --- */
.confirmacion__text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--texto-claro);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* --- Detalles del sorteo dentro de la confirmación --- */
.confirmacion__sorteo {
  background: rgba(75, 54, 33, 0.25);
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 28px;
}

/* ==========================================================================
   8. FOOTER
   Zona inferior con logo, redes y créditos.
   ========================================================================== */
footer {
  background-color: var(--negro-profundo);
  border-top: 1px solid rgba(192, 192, 192, 0.15);
  padding: 40px 20px;
  text-align: center;
}

/* --- Logo del footer --- */
.footer__logo {
  max-width: 120px;
  margin: 0 auto 20px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer__logo:hover {
  opacity: 1;
}

/* --- Links a redes sociales --- */
.footer__socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer__socials a {
  color: var(--plata-metalico);
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer__socials a:hover {
  color: var(--oro-envejecido);
  transform: translateY(-2px);
}

.footer__socials svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* --- Texto legal / créditos --- */
.footer__text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--plata-metalico);
  opacity: 0.7;
  line-height: 1.5;
}

.footer__divider {
  width: 40px;
  height: 1px;
  background: rgba(192, 192, 192, 0.2);
  margin: 16px auto;
}

/* ==========================================================================
   MEDIA QUERIES — TABLET (≥ 768px)
   Incrementos en tipografía, espaciado y columnas.
   ========================================================================== */
@media (min-width: 768px) {

  /* --- Hero --- */
  #hero {
    padding: 60px 40px 80px;
  }



  .hero__subtitle {
    font-size: 1.1rem;
    max-width: 520px;
  }

  .hero__countdown {
    gap: 0;
    margin-bottom: 44px;
  }

  .countdown__block {
    padding: 0 8px;
    min-width: 70px;
  }

  .countdown__digit {
    font-size: 4rem;
  }

  .countdown__label {
    font-size: 0.65rem;
  }

  .countdown__separator {
    font-size: 4rem;
    padding: 0 4px;
  }

  /* --- Secciones generales --- */
  .section-title {
    font-size: 1.9rem;
  }

  .section-intro {
    font-size: 1.05rem;
  }

  /* --- Tarjetas de beneficio en 2 columnas --- */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  /* --- Secciones con más respiración --- */
  #que-recibes,
  #como-funciona,
  #sorteo {
    padding: 100px 40px;
  }

  /* --- Formulario más amplio --- */
  .form-container {
    padding: 40px;
  }

  .form-title {
    font-size: 1.6rem;
  }

  #formulario {
    padding: 100px 40px;
  }

  /* --- Footer --- */
  footer {
    padding: 48px 40px;
  }

  .footer__socials svg {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   MEDIA QUERIES — ESCRITORIO (≥ 1024px)
   Layout más amplio, hero más espacioso, pasos en fila.
   ========================================================================== */
@media (min-width: 1024px) {

  /* --- Hero más espacioso --- */
  #hero {
    padding: 80px 60px 100px;
    background:
      radial-gradient(
        ellipse 55% 50% at 50% 50%,
        rgba(75, 54, 33, 0.3) 0%,
        rgba(0, 0, 0, 0.92) 55%,
        var(--negro-profundo) 100%
      );
  }



  .hero__subtitle {
    font-size: 1.15rem;
    max-width: 560px;
    margin-bottom: 40px;
  }

  .hero__countdown {
    gap: 0;
    margin-bottom: 52px;
  }

  .countdown__block {
    padding: 0 12px;
    min-width: 90px;
  }

  .countdown__digit {
    font-size: 5rem;
    margin-bottom: 12px;
  }

  .countdown__label {
    font-size: 0.75rem;
  }

  .countdown__separator {
    font-size: 5rem;
    padding: 0 6px;
  }

  /* --- Secciones --- */
  .section-title {
    font-size: 2.1rem;
    padding-bottom: 20px;
  }

  .section-title::after {
    width: 56px;
    height: 2.5px;
  }

  .section-intro {
    font-size: 1.1rem;
    margin-bottom: 56px;
  }

  #que-recibes,
  #como-funciona,
  #sorteo {
    padding: 120px 60px;
  }

  #formulario {
    padding: 120px 60px;
  }

  /* --- Tarjetas --- */
  .benefit-card {
    padding: 36px;
  }

  .benefit-card__title {
    font-size: 1.15rem;
  }

  .benefit-card__text {
    font-size: 0.95rem;
  }

  /* --- Pasos en fila horizontal con conectores --- */
  .steps-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }

  .step {
    flex: 1;
    max-width: 240px;
  }

  /* --- Línea conectora dorada entre pasos (escritorio) --- */
  .step__connector {
    display: block;
    flex-shrink: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(184, 134, 11, 0.15),
      var(--oro-envejecido),
      rgba(184, 134, 11, 0.15)
    );
    margin-top: 32px;
    border-radius: 1px;
  }

  /* --- Formulario --- */
  .form-container {
    padding: 48px;
  }

  .form-title {
    font-size: 1.7rem;
  }

  /* --- Footer --- */
  footer {
    padding: 56px 60px;
  }

  .footer__socials {
    gap: 24px;
  }
}

/* ==========================================================================
   MEDIA QUERIES — PANTALLA GRANDE (≥ 1280px)
   Anchos máximos y espaciado extra.
   ========================================================================== */
@media (min-width: 1280px) {

  /* --- Banner del hero a tamaño completo --- */


  .hero__subtitle {
    font-size: 1.2rem;
  }

  .countdown__digit {
    font-size: 6.5rem;
  }

  .countdown__block {
    min-width: 110px;
    padding: 0 16px;
  }

  .countdown__separator {
    font-size: 6.5rem;
    padding: 0 8px;
  }

  /* --- Contenedores con ancho máximo --- */
  .cards-grid {
    max-width: 1000px;
  }

  .steps-container {
    max-width: 1100px;
  }

  /* --- Secciones con más aire --- */
  #que-recibes,
  #como-funciona,
  #sorteo {
    padding: 140px 80px;
  }

  #formulario {
    padding: 140px 80px;
  }

  .section-title {
    font-size: 2.3rem;
  }

  .section-intro {
    font-size: 1.15rem;
    margin-bottom: 64px;
  }

  .benefit-card {
    padding: 40px;
  }

  .benefit-card__title {
    font-size: 1.2rem;
  }

  /* --- Pasos más amplios --- */
  .step {
    max-width: 280px;
  }

  .step__connector {
    width: 80px;
  }

  .step__title {
    font-size: 1.05rem;
  }

  .step__text {
    font-size: 0.9rem;
  }

  /* --- Footer --- */
  footer {
    padding: 64px 80px;
  }
}

/* ==========================================================================
   PREFERENCIAS DE USUARIO
   Respeto por movimiento reducido y esquema de colores.
   ========================================================================== */

/* --- Deshabilitar animaciones para usuarios que lo soliciten --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .hero__banner {
    animation: none;
  }

  .hero__banner {
    animation: none;
    filter: drop-shadow(0 0 15px rgba(184, 134, 11, 0.2));
  }
}

/* ==========================================================================
   ESTADOS ESPECIALES Y DETALLES FINALES
   ========================================================================== */

/* --- Selección de texto con colores del tema --- */
::selection {
  background-color: var(--oro-oscuro);
  color: var(--texto-claro);
}

::-moz-selection {
  background-color: var(--oro-oscuro);
  color: var(--texto-claro);
}

/* --- Focus visible accesible con anillo dorado --- */
:focus-visible {
  outline: 2px solid var(--oro-envejecido);
  outline-offset: 3px;
}

/* --- Eliminar outline genérico en navegadores viejos --- */
:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   ESTILOS ADICIONALES
   Elementos del HTML que necesitan cobertura.
   ========================================================================== */

/* --- Contenedor genérico centrado --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Logo del eyebrow en el hero --- */
.hero__eyebrow-logo {
  max-width: 160px;
  margin: 0 auto 10px;
  opacity: 0.9;
  filter: brightness(1.1);
}

.hero__eyebrow-text {
  display: block;
}

/* --- Botón de audio del hero --- */
.hero__audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(192, 192, 192, 0.25);
  border-radius: 50px;
  color: var(--plata-metalico);
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.hero__audio-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--oro-envejecido);
  color: var(--oro-envejecido);
}

.hero__audio-btn.playing {
  border-color: var(--oro-envejecido);
  color: var(--oro-envejecido);
  background: rgba(184, 134, 11, 0.1);
}

.hero__audio-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.audio-btn__text {
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* --- Indicador de scroll del hero --- */
.hero__scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 2s ease-in-out infinite;
  color: rgba(192, 192, 192, 0.4);
}

.hero__scroll-indicator svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* --- Etiqueta opcional en el formulario --- */
.form-optional {
  font-weight: 300;
  font-size: 0.65rem;
  color: rgba(192, 192, 192, 0.6);
  text-transform: lowercase;
}

/* --- Botón submit (ancho completo en el formulario) --- */
.btn-submit {
  width: 100%;
  margin-top: 12px;
}

/* --- Texto del sorteo --- */
.sorteo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--texto-claro);
  max-width: 560px;
  margin: 0 auto 36px;
  text-align: center;
  line-height: 1.7;
}

.sorteo-content {
  max-width: 640px;
  margin: 0 auto;
}

/* --- Ícono dentro de botón secundario --- */
.btn-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-right: 6px;
  vertical-align: middle;
}

/* --- Botón cerrar del overlay de confirmación --- */
.confirmacion__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--plata-metalico);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.confirmacion__close:hover {
  color: var(--oro-envejecido);
  background: rgba(255, 255, 255, 0.08);
}

.confirmacion__close svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}


/* --- Nota del sorteo en confirmación --- */
.confirmacion__sorteo-note {
  background: rgba(75, 54, 33, 0.25);
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--texto-claro);
  line-height: 1.6;
}

.confirmacion__sorteo-note a {
  color: var(--oro-envejecido);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

.confirmacion__sorteo-note a:hover {
  color: var(--oro-claro);
}

/* --- Estilo SVG del check de confirmación --- */
.confirmacion__check-svg {
  width: 52px;
  height: 52px;
}

.confirmacion__check-circle {
  stroke: var(--oro-envejecido);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: confirmCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

.confirmacion__check-path {
  stroke: var(--oro-envejecido);
  stroke-width: 2;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: confirmCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 1.1s forwards;
}

@keyframes confirmCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes confirmCheck {
  to { stroke-dashoffset: 0; }
}

/* --- Footer copyright --- */
.footer__copyright {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  color: var(--plata-metalico);
  opacity: 0.5;
  margin-top: 12px;
}

/* --- Countdown "¡ES HOY!" --- */
.countdown__hoy {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.5rem;
  color: var(--oro-envejecido);
  text-shadow: 0 0 30px rgba(184, 134, 11, 0.4);
}

/* --- Canvas Spotlight Effect --- */
#spotlight-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}
