/* ==========================================================================
   Sorteos AM - Estilos Principales (Dark Theme)
   ========================================================================== */

:root {
  --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-color: #0a0a0d;
  --bg-card: rgba(20, 20, 25, 0.6);
  --primary-color: #ff3333;
  --gold-primary: #FFD700;
  --gold-secondary: #FF8C00;
  --text-main: #ffffff;
  --text-muted: #b0b0b0;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 50px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #040406;
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container-app {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   Header
   ========================================================================== */

.app-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(10, 10, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.app-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-style: italic;
}

.btn-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #FF1E1E 0%, #C0181A 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(192, 24, 26, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 30, 30, 0.65), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn-search:active {
  transform: scale(0.97);
}

/* ==========================================================================
   Hero Section & Banner
   ========================================================================== */

.free-hero-section {
  position: relative;
  width: 100%;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 15px 30px 15px;
  overflow: hidden;
  color: #ffffff;
}

.free-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

/* Banner de Plan de Premios */
.free-raffle-banner-container {
  width: 100%;
  max-width: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 0.5rem auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 255, 100, 0.2), 0 10px 30px rgba(0, 0, 0, 0.7);
}

.free-raffle-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 18px;
}

/* Botón Neón Espectacular Ultra Premium */
.cta-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.neon-reserve-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: linear-gradient(115deg, #FF1E1E 0%, #E01015 25%, #C0181A 50%, #E01015 75%, #FF1E1E 100%);
  background-size: 250% 100%;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 16px 48px;
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 
    0 0 0 0 rgba(255, 30, 30, 0.65),
    0 0 25px rgba(255, 30, 30, 0.55),
    0 0 50px rgba(192, 24, 26, 0.35),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.5),
    inset 0 -3px 5px rgba(0, 0, 0, 0.4);
  animation: 
    premiumPulse 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite,
    gradientFlow 4s ease infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  will-change: transform, box-shadow, background-position;
}

.neon-reserve-btn .btn-text,
.neon-reserve-btn span {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

/* Brillo de cristal en la parte superior */
.neon-reserve-btn::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 8px;
  right: 8px;
  height: 44%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 1;
}

/* Rayo láser de brillo dinámico que cruza el botón */
.neon-reserve-btn::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -130%;
  width: 55%;
  height: 220%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 25%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.25) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 2;
  animation: premiumShine 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.neon-reserve-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 0 0 6px rgba(255, 30, 30, 0.25),
    0 0 45px rgba(255, 30, 30, 0.9),
    0 0 85px rgba(192, 24, 26, 0.65),
    inset 0 2px 3px rgba(255, 255, 255, 0.7),
    inset 0 -2px 5px rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

.neon-reserve-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 
    0 0 20px rgba(255, 30, 30, 0.8),
    0 0 40px rgba(192, 24, 26, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    inset 0 2px 4px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

/* Animación de pulso respiración + onda expansiva de halo */
@keyframes premiumPulse {
  0% {
    transform: scale(1);
    box-shadow: 
      0 0 0 0 rgba(255, 30, 30, 0.65),
      0 0 25px rgba(255, 30, 30, 0.55),
      0 0 50px rgba(192, 24, 26, 0.35),
      inset 0 1.5px 2px rgba(255, 255, 255, 0.5),
      inset 0 -3px 5px rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 
      0 0 0 15px rgba(255, 30, 30, 0),
      0 0 40px rgba(255, 30, 30, 0.85),
      0 0 75px rgba(192, 24, 26, 0.55),
      inset 0 1.5px 3px rgba(255, 255, 255, 0.65),
      inset 0 -3px 5px rgba(0, 0, 0, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 
      0 0 0 0 rgba(255, 30, 30, 0),
      0 0 25px rgba(255, 30, 30, 0.55),
      0 0 50px rgba(192, 24, 26, 0.35),
      inset 0 1.5px 2px rgba(255, 255, 255, 0.5),
      inset 0 -3px 5px rgba(0, 0, 0, 0.4);
  }
}

/* Animación del rayo de luz deslumbrante */
@keyframes premiumShine {
  0% {
    left: -130%;
  }
  28% {
    left: 160%;
  }
  100% {
    left: 160%;
  }
}

/* Flujo continuo del gradiente dorado-fuego */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.free-hero-wave {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

.free-hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Social Section & WhatsApp Groups
   ========================================================================== */

.social-section {
  width: 100%;
  padding: 1rem 1.25rem 1.5rem;
  background: transparent;
  border-top: 1px solid rgba(192, 24, 26, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 0 auto;
  box-sizing: border-box;
}

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

.section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #9A9A9A;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  max-width: 550px;
  margin: 0 auto 0.75rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: #1a1a1a;
  border-radius: 50px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(192, 24, 26, 0.3);
  min-width: 105px;
  justify-content: center;
  box-sizing: border-box;
}

.social-pill:hover {
  transform: translateY(-2px);
  background-color: #C0181A;
  border-color: #C0181A;
}

.pill-icon {
  flex-shrink: 0;
}

.card-blue {
  background: #1a1a1a;
  border-color: rgba(192, 24, 26, 0.3);
}
.card-blue .pill-icon {
  color: #3b82f6;
  fill: #3b82f6;
}

.card-red {
  background: #1a1a1a;
  border-color: rgba(192, 24, 26, 0.3);
}
.card-red .pill-icon {
  color: #ef4444;
  fill: #ef4444;
}

.card-yellow {
  background: #1a1a1a;
  border-color: rgba(192, 24, 26, 0.3);
}
.card-yellow .pill-icon {
  color: #fbbf24;
  fill: #fbbf24;
}

.card-green {
  background: #1a1a1a;
  border-color: rgba(192, 24, 26, 0.3);
}
.card-green .pill-icon {
  color: #07b92e;
  fill: #07b92e;
}

.social-networks {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.btn-facebook {
  background: linear-gradient(135deg, #1877F2, #0d5ec4);
}

.btn-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
  width: 100%;
  padding: 24px 16px;
  background: #060608;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--gold-primary);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: color 0.2s ease;
}

.footer-link-btn:hover {
  color: #ffffff;
}

.powered-by {
  font-size: 0.8rem;
  color: #71717a;
}

.powered-by a {
  color: #a1a1aa;
  text-decoration: none;
}

.powered-by a:hover {
  color: #ffffff;
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */

.whatsapp-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.whatsapp-link:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.04);
}

.whatsapp-text {
  display: inline-flex;
  align-items: center;
  padding: 0px 16px;
  line-height: 1.6;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 10px;
  margin: 0 10px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
}

.whatsapp-button {
  background-color: #25D366;
  padding: 14px;
  border-radius: 50%;
  box-shadow: 0px 0px 11px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.whatsapp-button svg {
  pointer-events: none;
  display: block;
  width: 30px;
  height: 30px;
}

@media (max-width: 480px) {
  .whatsapp-container {
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-text {
    font-size: 13px;
    padding: 0px 12px;
    margin: 0 8px;
  }

  .whatsapp-button {
    width: 50px;
    height: 50px;
    padding: 10px;
  }

  .whatsapp-button svg {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   Coming Soon & Finished State Views
   ========================================================================== */

.cs-container {
  width: 100%;
  max-width: 600px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  margin-bottom: 20px;
}

.cs-badge--finished {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.cs-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 10px;
  background: linear-gradient(to right, #ffffff, #9A9A9A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cs-description {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* ==========================================================================
   Terms Page
   ========================================================================== */

.terms-container {
  width: 100%;
  max-width: 800px;
  padding: 30px 20px;
  margin: 0 auto;
}

.terms-page {
  background: rgba(20, 20, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.terms-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--gold-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.terms-section {
  margin-bottom: 24px;
}

.terms-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.terms-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin: 12px 0 8px 0;
}

.terms-section p, .terms-section ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.terms-section ul {
  padding-left: 20px;
}

.terms-section a {
  color: var(--gold-primary);
  text-decoration: underline;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (max-width: 600px) {
  .app-header {
    padding: 10px 16px;
  }
  
  .brand-name {
    font-size: 1.1rem;
  }

  .btn-search {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .social-list {
    grid-template-columns: 1fr;
  }

  .neon-reserve-btn {
    font-size: 1.55rem;
    padding: 16px 25px;
    width: 92%;
    letter-spacing: 1.5px;
  }

  .terms-page {
    padding: 20px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .neon-reserve-btn,
  .neon-reserve-btn::before {
    animation: none;
  }
}

