/* ==========================================================================
   Jugando con Santa Claus - Hoja de Estilos Principal (styles.css)
   Arquitectura: Mobile-First, CRO & Responsive Grid System
   ========================================================================== */

/* 1. Variables Globales & Paleta de Color */
:root {
  --primary-red: #B22222;
  --dark-red: #8B0000;
  --gold-primary: #DAA520;
  --gold-light: #FFD700;
  --bg-dark: #090D16;
  --bg-card: #131B2E;
  --bg-card-hover: #1E293B;
  --text-light: #F8FAFC;
  --text-muted: #94A3B8;
  --border-gold: rgba(218, 165, 32, 0.3);
  --max-width: 1200px;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --transition: all 0.3s ease-in-out;
}

/* 2. Reseteo y Estilos Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 3. Estilos de Navegaci贸n & Header */
header {
  background: rgba(9, 13, 22, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--border-gold);
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.logo-text span {
  color: var(--primary-red);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-links a:hover, 
.nav-links a.active {
  color: var(--gold-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 1.8rem;
  cursor: pointer;
}

/* 4. Estilos de Secciones y Contenedores */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--gold-primary);
  margin-bottom: 0.8rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1rem;
}

/* 5. Componentes de Tarjetas (Grid System) */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.card-title {
  font-family: var(--font-heading);
  color: var(--gold-primary);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card-price {
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 1rem 0;
}

/* 6. Botones y Llamados a la Acci贸n (CTA) */
.btn-primary {
  display: inline-block;
  background: var(--primary-red);
  color: #FFFFFF;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 15px rgba(178, 34, 34, 0.4);
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(178, 34, 34, 0.6);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--gold-primary);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--gold-primary);
  transition: var(--transition);
  text-align: center;
}

.btn-secondary:hover {
  background: var(--gold-primary);
  color: var(--bg-dark);
}

/* 7. Formularios Optimizado para Conversi贸n */
.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  font-weight: 700;
}

.form-control {
  width: 100%;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  background: #0B111E;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px rgba(218, 165, 32, 0.3);
}

.btn-submit {
  width: 100%;
  background: var(--gold-primary);
  color: var(--bg-dark);
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--gold-light);
}

/* 8. Badges y Prueba Social */
.badge-trust {
  display: inline-block;
  background: rgba(218, 165, 32, 0.15);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 9. Footer */
footer {
  border-top: 1px solid var(--border-gold);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background-color: #060911;
}

/* 10. Adaptabilidad Mobile-First */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-gold);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .section-title {
    font-size: 1.8rem;
  }

  .container {
    padding: 2.5rem 1rem;
  }
}
/* ==========================================
   ANIMACIÓN DE BANDEROLA INFINITA (MARQUEE)
   ========================================== */

@keyframes marqueeAnimation {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-wrapper {
    display: flex;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeAnimation 25s linear infinite;
    will-change: transform;
}

/* Pausa suave al pasar el cursor (UX mejora lectura) */
.marquee-track:hover {
    animation-play-state: paused;
}