/* ─── Bingo LATAM Official Marketing Website Stylesheet ─── */
:root {
  --bg-dark: #0D0B26;
  --bg-dark-alt: #070517;
  --bg-card: rgba(26, 15, 60, 0.72);
  --bg-card-hover: rgba(36, 20, 85, 0.85);
  --bg-header: rgba(13, 11, 38, 0.85);

  --primary-purple: #8B5CF6;
  --primary-magenta: #D946EF;
  --primary-pink: #EC4899;
  --accent-cyan: #00F5FF;
  --accent-gold: #FFD700;
  --accent-amber: #F59E0B;
  --accent-green: #10B981;
  --whatsapp-green: #22C55E;

  --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #D946EF 50%, #FF007A 100%);
  --gradient-card: linear-gradient(145deg, rgba(32, 17, 78, 0.8) 0%, rgba(13, 11, 38, 0.95) 100%);
  --gradient-gold: linear-gradient(135deg, #FFD700 0%, #F59E0B 100%);
  --gradient-cyan: linear-gradient(135deg, #00F5FF 0%, #3B82F6 100%);

  --text-main: #FFFFFF;
  --text-muted: #CBD5E1;
  --text-dim: #94A3B8;
  --text-lavender: #C4B5FD;

  --border-glass: rgba(139, 92, 246, 0.25);
  --border-glow: rgba(217, 70, 239, 0.4);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.18);
  --shadow-glow-magenta: 0 0 25px rgba(217, 70, 239, 0.55);
  --shadow-glow-cyan: 0 0 25px rgba(0, 245, 255, 0.45);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --container-width: 1180px;
}

/* ── Reset & Base ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(124, 58, 237, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 90% 40%, rgba(217, 70, 239, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(0, 245, 255, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(217, 70, 239, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(217, 70, 239, 0.65);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-magenta);
  transform: translateY(-2px);
}

/* ── Navigation Header ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
  transition: background 0.3s;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 52px;
  max-width: 220px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-link:hover {
  color: #FFFFFF;
  text-shadow: 0 0 12px rgba(217, 70, 239, 0.7);
}

/* ── Section Titles ── */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  background: rgba(139, 92, 246, 0.2);
  color: var(--primary-magenta);
  border: 1px solid rgba(217, 70, 239, 0.35);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Nunito', sans-serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 10px auto 0;
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
}

/* Full-Width Floating Balls Background Track */
.hero-balls-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 15;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 15, 60, 0.8);
  border: 1px solid var(--border-glow);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-lavender);
  margin-bottom: 20px;
}

.hero-pill-sparkle {
  color: var(--accent-gold);
}

.hero-title {
  font-family: 'Nunito', sans-serif;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  position: relative;
  z-index: 20;
}

.app-store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 20;
}

.app-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  border-radius: 14px;
  color: #FFFFFF;
  transition: all 0.3s;
  cursor: pointer;
}

.app-badge-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--primary-magenta);
  transform: translateY(-2px);
}

.app-badge-text span:first-child {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.app-badge-text span:last-child {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

/* ── Hero Visual ── */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  z-index: 10;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(124, 58, 237, 0.3);
  border: 2px solid rgba(217, 70, 239, 0.4);
  background: var(--bg-card);
}

.hero-frame img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.01);
}

/* ── Floating 3D Balls (Full-Width Horizontal Drift) ── */
.floating-ball {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #1E0B36;
  z-index: 1;
  pointer-events: none;
  will-change: transform, left;
}

.ball-inner-disk {
  width: 32px;
  height: 32px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ball 23 - Neon Pink / Magenta (Drifts Left to Right, Top area) */
.ball-23 {
  top: 14%;
  background: radial-gradient(circle at 35% 35%, #FF80BF 0%, #D946EF 60%, #831843 100%);
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.65);
  animation: horizontalFloatLtoR1 24s linear infinite;
  animation-delay: -6s;
}

/* Ball 7 - Electric Cyan / Green (Drifts Right to Left, Lower-Mid area) */
.ball-7 {
  top: 68%;
  background: radial-gradient(circle at 35% 35%, #6EE7B7 0%, #00F5FF 60%, #065F46 100%);
  box-shadow: 0 6px 20px rgba(0, 245, 255, 0.65);
  animation: horizontalFloatRtoL1 34s linear infinite;
  animation-delay: -14s;
}

/* Ball 55 - Golden Amber / Orange (Drifts Left to Right, Mid-Upper area) */
.ball-55 {
  top: 36%;
  background: radial-gradient(circle at 35% 35%, #FDE047 0%, #F59E0B 60%, #92400E 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.65);
  animation: horizontalFloatLtoR2 40s linear infinite;
  animation-delay: -22s;
}

/* Ball 14 - Royal Violet / Lavender (Drifts Right to Left, Lower area) */
.ball-14 {
  top: 84%;
  background: radial-gradient(circle at 35% 35%, #C4B5FD 0%, #7C3AED 60%, #311075 100%);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.65);
  animation: horizontalFloatRtoL2 28s linear infinite;
  animation-delay: -2s;
}

/* ── Keyframes for Horizontal Panning + Vertical Sine-Wave Bobbing ── */
@keyframes horizontalFloatLtoR1 {
  0% {
    left: -80px;
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-24px) rotate(90deg);
  }
  50% {
    transform: translateY(18px) rotate(180deg);
  }
  75% {
    transform: translateY(-16px) rotate(270deg);
  }
  100% {
    left: calc(100% + 80px);
    transform: translateY(0px) rotate(360deg);
  }
}

@keyframes horizontalFloatRtoL1 {
  0% {
    left: calc(100% + 80px);
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(22px) rotate(-90deg);
  }
  50% {
    transform: translateY(-20px) rotate(-180deg);
  }
  75% {
    transform: translateY(16px) rotate(-270deg);
  }
  100% {
    left: -80px;
    transform: translateY(0px) rotate(-360deg);
  }
}

@keyframes horizontalFloatLtoR2 {
  0% {
    left: -80px;
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(18px) rotate(90deg);
  }
  50% {
    transform: translateY(-26px) rotate(180deg);
  }
  75% {
    transform: translateY(14px) rotate(270deg);
  }
  100% {
    left: calc(100% + 80px);
    transform: translateY(0px) rotate(360deg);
  }
}

@keyframes horizontalFloatRtoL2 {
  0% {
    left: calc(100% + 80px);
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-18px) rotate(-90deg);
  }
  50% {
    transform: translateY(20px) rotate(-180deg);
  }
  75% {
    transform: translateY(-12px) rotate(-270deg);
  }
  100% {
    left: -80px;
    transform: translateY(0px) rotate(-360deg);
  }
}

/* ── Trust Strip ── */
.trust-strip {
  padding: 24px 0;
  margin-top: -20px;
  margin-bottom: 60px;
}

.trust-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-item-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.trust-item-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.trust-item-desc {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── Game Modes Section ── */
.modes-section {
  padding: 60px 0;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.mode-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.mode-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-magenta);
  box-shadow: var(--shadow-glow-magenta);
}

.mode-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.mode-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.mode-card:hover .mode-img-wrapper img {
  transform: scale(1.05);
}

.mode-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(13, 11, 38, 0.85);
  border: 1px solid var(--primary-magenta);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
}

.mode-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mode-title {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.mode-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ── Rooms Section ── */
.rooms-section {
  padding: 60px 0;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.room-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.room-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.room-thumb {
  height: 160px;
  overflow: hidden;
}

.room-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-body {
  padding: 20px;
}

.room-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.room-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.room-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-lavender);
}

/* ── Features Grid ── */
.features-section {
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.3s, border-color 0.3s;
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary-magenta);
}

.feature-icon-circle {
  width: 50px;
  height: 50px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(217, 70, 239, 0.4);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.feature-heading {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Testimonials & FAQ ── */
.faq-section {
  padding: 60px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 20px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* ── Pre-Footer Promo Banner ── */
.promo-banner {
  padding: 50px 0 80px;
}

.promo-card {
  background: radial-gradient(circle at 10% 20%, #3B1673 0%, #150938 100%);
  border: 2px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  box-shadow: var(--shadow-glow-magenta);
}

.promo-title {
  font-family: 'Nunito', sans-serif;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.2;
}

.promo-desc {
  font-size: 16px;
  color: var(--text-lavender);
  margin-bottom: 24px;
}

/* ── Footer ── */
.footer {
  background: var(--bg-dark-alt);
  border-top: 1px solid var(--border-glass);
  padding: 50px 0 25px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-col-title {
  font-weight: 800;
  font-size: 15px;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--primary-magenta);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Responsive Mobile Adjustments ── */
@media (max-width: 900px) {
  .hero-grid,
  .promo-card,
  .faq-grid,
  .modes-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-card,
  .rooms-grid,
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 34px;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .trust-card,
  .rooms-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 28px;
  }

  .promo-card {
    padding: 28px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
