/* ============================================================
   NAYA FÁCIL – DESIGN SYSTEM v1.0
   Premium Influencer Website
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --pink:       #FF2D87;
  --pink-glow:  #FF2D8780;
  --pink-light: #ff6eb4;
  --gold:       #FFD700;
  --gold-light: #ffe766;
  --silver:     #C0C0C0;
  --bronze:     #CD7F32;
  --copper:     #B87333;
  --neon-blue:  #00F0FF;
  --purple:     #8B2FC9;

  /* Dark theme (default) */
  --bg:         #0a0a0f;
  --bg2:        #12121a;
  --bg3:        #1a1a28;
  --surface:    rgba(255,255,255,0.05);
  --surface2:   rgba(255,255,255,0.09);
  --border:     rgba(255,45,135,0.2);
  --text:       #f0f0f8;
  --text-muted: #9999bb;
  --navbar-bg:  rgba(10,10,15,0.92);
  --card-bg:    rgba(18,18,26,0.85);
  --input-bg:   rgba(255,255,255,0.06);

  --radius:     1rem;
  --radius-sm:  0.5rem;
  --radius-lg:  1.5rem;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-pink: 0 0 30px rgba(255,45,135,0.35);
  --shadow-gold: 0 0 30px rgba(255,215,0,0.35);
}

/* Light theme */
[data-theme="light"] {
  --bg:         #fdf4f8;
  --bg2:        #fff0f6;
  --bg3:        #ffe5f1;
  --surface:    rgba(255,45,135,0.06);
  --surface2:   rgba(255,45,135,0.1);
  --border:     rgba(255,45,135,0.25);
  --text:       #1a0a14;
  --text-muted: #6b3a55;
  --navbar-bg:  rgba(253,244,248,0.95);
  --card-bg:    rgba(255,255,255,0.9);
  --input-bg:   rgba(255,45,135,0.05);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 99px; }

/* ── Utility ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section-py { padding: 6rem 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }

/* ── Typography ── */
.heading-xl {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
}
.heading-lg {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}
.heading-md {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
}
.gradient-text {
  background: linear-gradient(135deg, var(--pink), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.neon-text {
  color: var(--pink);
  text-shadow: 0 0 10px var(--pink-glow), 0 0 30px var(--pink-glow);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink), #c4006a);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,45,135,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(255,45,135,0.6);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e6a800);
  color: #000;
  box-shadow: 0 4px 20px rgba(255,215,0,0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(255,215,0,0.6);
}
.btn-outline {
  background: transparent;
  color: var(--pink);
  border: 2px solid var(--pink);
}
.btn-outline:hover {
  background: var(--pink);
  color: #fff;
  box-shadow: var(--shadow-pink);
}
.btn-glass {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: var(--surface2);
  border-color: var(--pink);
}

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition);
  overflow: hidden;
}
.card:hover {
  border-color: var(--pink);
  box-shadow: var(--shadow-pink);
  transform: translateY(-4px);
}
.card-body { padding: 2rem; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(255,45,135,0.5);
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,45,135,0.5); }
  50% { box-shadow: 0 0 35px rgba(255,45,135,0.8), 0 0 60px rgba(255,45,135,0.3); }
}
.logo-text { font-weight: 800; font-size: 1.2rem; }
.navbar-nav { display: flex; align-items: center; gap: 0.25rem; }
.navbar-nav a {
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
  color: var(--text-muted);
}
.navbar-nav a:hover, .navbar-nav a.active { color: var(--pink); }
.navbar-nav a.active { background: rgba(255,45,135,0.1); }
.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--surface2); border-color: var(--pink); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Mobile nav ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all var(--transition);
}
.mobile-menu a:hover { background: var(--surface); color: var(--pink); }

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(10,10,15,0.75) 0%,
    rgba(139,47,201,0.25) 50%,
    rgba(10,10,15,0.85) 100%
  );
}
[data-theme="light"] .hero-bg::after {
  background: linear-gradient(135deg,
    rgba(253,244,248,0.6) 0%,
    rgba(255,45,135,0.15) 50%,
    rgba(253,244,248,0.7) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,45,135,0.15);
  border: 1px solid rgba(255,45,135,0.4);
  border-radius: 99px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}
.hero-title {
  animation: fadeInUp 0.7s 0.1s ease both;
  margin-bottom: 1.25rem;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s 0.3s ease both;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  animation: fadeInUp 0.7s 0.4s ease both;
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.hero-image-container {
  position: relative;
  animation: fadeInRight 0.8s 0.2s ease both;
}
.hero-image-wrapper {
  position: relative;
  width: 420px;
  height: 520px;
  margin: 0 auto;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 2rem 2rem 6rem 2rem;
  border: 3px solid rgba(255,45,135,0.4);
  box-shadow: 0 30px 80px rgba(255,45,135,0.3), inset 0 0 30px rgba(255,45,135,0.05);
}
.hero-glow-ring {
  position: absolute;
  inset: -20px;
  border-radius: 2.5rem 2.5rem 6.5rem 2.5rem;
  background: conic-gradient(from 0deg, transparent, var(--pink), transparent, var(--gold), transparent);
  animation: spin 6s linear infinite;
  opacity: 0.4;
  z-index: -1;
}
.hero-floating-card {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.hero-floating-card.card-1 {
  top: 10%; right: -10%;
  animation: float 3s ease-in-out infinite;
}
.hero-floating-card.card-2 {
  bottom: 20%; left: -15%;
  animation: float 3.5s 1s ease-in-out infinite;
}
.card-1 .card-icon { font-size: 1.5rem; margin-bottom: 0.25rem; }
.card-val { font-size: 1.3rem; color: var(--pink); }

/* ── Floating particles ── */
.particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0;
  animation: particleAnim var(--dur) var(--delay) linear infinite;
}
@keyframes particleAnim {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1.5); }
}

/* ── Section Headers ── */
.section-label {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 99px;
  background: rgba(255,45,135,0.1);
  border: 1px solid rgba(255,45,135,0.3);
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.section-title { margin-bottom: 0.75rem; }
.section-desc { color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* ── About Section ── */
.about-section { position: relative; overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-images { position: relative; }
.about-img-main {
  width: 100%;
  border-radius: 2rem;
  border: 2px solid var(--border);
  box-shadow: 0 20px 60px rgba(255,45,135,0.2);
}
.about-img-accent {
  position: absolute;
  width: 55%;
  bottom: -2rem; right: -2rem;
  border-radius: 1.5rem;
  border: 3px solid var(--gold);
  box-shadow: 0 10px 40px rgba(255,215,0,0.3);
}
.about-badge-float {
  position: absolute;
  top: -1.5rem; left: -1.5rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(255,45,135,0.4);
}
.about-badge-float .big-num {
  font-size: 2.2rem;
  font-weight: 900;
  display: block;
  line-height: 1;
}
.timeline { margin: 2rem 0; }
.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.timeline-dot {
  width: 14px; height: 14px;
  min-width: 14px;
  border-radius: 50%;
  background: var(--pink);
  margin-top: 0.4rem;
  box-shadow: 0 0 10px var(--pink-glow);
}
.timeline-content h4 { font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.timeline-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.social-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}
.social-link.instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); color: white; }
.social-link.tiktok { background: #000; color: white; border: 1px solid #fff2; }
.social-link.youtube { background: #ff0000; color: white; }
.social-link:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

/* ── Sorteos Section ── */
.sorteos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.sorteo-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(20px);
}
.sorteo-card:hover {
  transform: translateY(-6px);
  border-color: var(--pink);
  box-shadow: 0 20px 60px rgba(255,45,135,0.25);
}
.sorteo-card-header {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.sorteo-card-header img { width: 100%; height: 100%; object-fit: cover; }
.sorteo-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.95), transparent);
}
.sorteo-prize-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: linear-gradient(135deg, var(--gold), #e6a800);
  color: #000;
  border-radius: 0.5rem;
  padding: 0.4rem 0.8rem;
  font-weight: 800;
  font-size: 0.9rem;
  z-index: 2;
}
.sorteo-live-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(255,0,0,0.9);
  color: white;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  font-size: 0.8rem;
  z-index: 2;
  display: flex; align-items: center; gap: 0.4rem;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: white;
  animation: blink 1s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.sorteo-card-body { padding: 1.5rem; }
.sorteo-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.sorteo-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.sorteo-progress { margin-bottom: 1rem; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.progress-bar {
  height: 8px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  transition: width 1s ease;
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.sorteo-nums { font-size: 0.85rem; margin-bottom: 1.25rem; color: var(--text-muted); }
.sorteo-nums span { color: var(--pink); font-weight: 700; }
.sorteo-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 99px;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}
.ticker {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner { animation: scrollTicker 12s linear infinite; display: inline-block; }
@keyframes scrollTicker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ── Live Ticker ── */
.live-ticker-bar {
  background: linear-gradient(90deg, #1a0a14, var(--pink), #1a0a14);
  padding: 0.6rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-content {
  display: inline-block;
  animation: tickerMove 25s linear infinite;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}
@keyframes tickerMove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Contact / Empresas ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.input-group { margin-bottom: 1.25rem; }
.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,45,135,0.15);
  background: var(--input-bg);
}
.input-group textarea { min-height: 120px; resize: vertical; }
.input-group select option { background: var(--bg2); color: var(--text); }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all var(--transition);
}
.contact-info-card:hover { border-color: var(--pink); }
.contact-info-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,45,135,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.contact-info-card h4 { font-weight: 700; margin-bottom: 0.2rem; }
.contact-info-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Galería ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255,45,135,0.8), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex; align-items: flex-end; padding: 1rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* ── Login Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  transform: translateY(20px) scale(0.97);
  transition: all var(--transition);
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--pink); color: white; }
.modal-logo { text-align: center; margin-bottom: 1.5rem; }
.modal-logo .logo-icon { width: 60px; height: 60px; font-size: 1.8rem; margin: 0 auto 0.75rem; }
.modal-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.75rem; }
.modal-tab {
  flex: 1;
  padding: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.modal-tab.active { color: var(--pink); border-color: var(--pink); }
.modal-tab-content { display: none; }
.modal-tab-content.active { display: block; }
.modal-separator { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin: 1rem 0; position: relative; }
.modal-separator::before, .modal-separator::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.modal-separator::before { left: 0; }
.modal-separator::after { right: 0; }
.user-type-select { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; }
.user-type-btn {
  flex: 1;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
}
.user-type-btn.selected {
  border-color: var(--pink);
  background: rgba(255,45,135,0.1);
  color: var(--pink);
}

/* ── Club Facilines Section ── */
.ranks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.rank-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius-lg);
  border: 2px solid;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.rank-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background: radial-gradient(circle at top, var(--rank-color), transparent 70%);
}
.rank-card:hover { transform: translateY(-6px); }
.rank-card.bronze { --rank-color: var(--bronze); border-color: var(--bronze); }
.rank-card.silver { --rank-color: var(--silver); border-color: var(--silver); }
.rank-card.gold   { --rank-color: var(--gold);   border-color: var(--gold); }
.rank-card.diamond { --rank-color: #a8edfd; border-color: #a8edfd; }
.rank-card.gold { box-shadow: 0 10px 40px rgba(255,215,0,0.2); }
.rank-icon { font-size: 3rem; margin-bottom: 0.75rem; display: block; }
.rank-name { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.5rem; }
.rank-card.bronze .rank-name { color: var(--bronze); }
.rank-card.silver .rank-name { color: var(--silver); }
.rank-card.gold   .rank-name { color: var(--gold); }
.rank-card.diamond .rank-name { color: #a8edfd; }
.rank-req { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.rank-perks { font-size: 0.82rem; color: var(--text-muted); text-align: left; }
.rank-perks li { padding: 0.2rem 0; display: flex; gap: 0.4rem; align-items: flex-start; }
.rank-perks li::before { content: '✓'; color: var(--pink); font-weight: 900; margin-top: 1px; }

/* ── FAQ ── */
.faq-list { max-width: 800px; margin: 2.5rem auto 0; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item.open { border-color: var(--pink); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
}
.faq-icon { font-size: 1.2rem; transition: transform var(--transition); color: var(--pink); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 1.5rem 1.25rem; }

/* ── Footer ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-top: 0.75rem; max-width: 280px; }
.footer-col h4 { font-weight: 700; margin-bottom: 1rem; font-size: 0.95rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--pink); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--pink); border-color: var(--pink); color: white; }

/* ── Backgrounds for sections ── */
.bg-section-1 {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
}
.bg-section-2 {
  background: var(--bg2);
  position: relative;
}
.bg-section-2::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,45,135,0.07) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(139,47,201,0.07) 0%, transparent 60%);
}
.bg-section-3 {
  background: linear-gradient(135deg, var(--bg) 0%, rgba(139,47,201,0.08) 50%, var(--bg) 100%);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Mobile-first complete overhaul
   ════════════════════════════════════════════════════ */

/* Tablet landscape ≤ 1200 */
@media (max-width: 1200px) {
  .container { padding: 0 1.5rem; }
  .sorteos-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
  .heading-xl { font-size: clamp(2rem, 5vw, 3.5rem); }
}

/* Tablet ≤ 1024 */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-stats { justify-content: center; }
  .hero-image-container { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ranks-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .sorteos-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .sorteo-card-header { height: 160px; }
  .sorteo-card-body { padding: 1.1rem; }
  .sorteo-title { font-size: 1rem; }
}

/* Mobile large ≤ 768 */
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .hamburger { display: flex; }
  .navbar-inner { padding: 0.75rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .ranks-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .rank-card { padding: 1.1rem 0.9rem; }
  .rank-name { font-size: 1rem; }
  .rank-perks { font-size: 0.78rem; }
  .section-py { padding: 3rem 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .gallery-item.wide { grid-column: span 1; }

  /* Hero text reflow */
  .heading-xl { font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.1; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-stat-num { font-size: 1.4rem; }
  .hero-stat-label { font-size: 0.7rem; }

  /* Sorteos: card más compacta */
  .sorteos-grid { grid-template-columns: 1fr; gap: 1rem; }
  .sorteo-card-header { height: 130px; }
  .sorteo-card-header > div[style*="font-size:5rem"] { font-size: 3rem !important; }
  .sorteo-card-body { padding: 1rem; }
  .sorteo-title { font-size: 1rem; margin-bottom: 0.4rem; }
  .sorteo-desc { font-size: 0.82rem; margin-bottom: 0.75rem; }
  .sorteo-price-badge { font-size: 0.8rem; padding: 0.35rem 0.6rem; }
  .sorteo-nums { font-size: 0.78rem; }
  .sorteo-live-badge, .sorteo-prize-badge { font-size: 0.7rem; padding: 0.25rem 0.5rem; }
  .progress-label { font-size: 0.72rem; }

  /* Botones */
  .btn { padding: 0.7rem 1rem; font-size: 0.85rem; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }

  /* Live ticker más fino */
  .live-ticker-bar { font-size: 0.75rem; padding: 0.35rem 0; }

  /* Modal full width */
  .modal { max-width: 95vw; padding: 1.5rem 1.25rem; max-height: 90vh; overflow-y: auto; }

  /* About section */
  .timeline-content h4 { font-size: 0.95rem; }
  .timeline-content p { font-size: 0.85rem; }

  /* Lightbox */
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

}

/* Mobile ≤ 540 */
@media (max-width: 540px) {
  .container { padding: 0 1rem; }
  .ranks-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 0.75rem; }
  .hero-stats > div { flex: 1 1 30%; min-width: 80px; }
  .hero-stat-num { font-size: 1.25rem; }
  .hero-actions { flex-direction: column; gap: 0.6rem; }
  .hero-actions .btn { width: 100%; }
  .section-label { font-size: 0.7rem; }
  .heading-lg { font-size: clamp(1.5rem, 6vw, 2rem); }
  .heading-md { font-size: 1.2rem; }
  .navbar-logo img { height: 30px !important; }
  .navbar-actions .btn { padding: 0.5rem 0.85rem !important; font-size: 0.75rem !important; }

  /* Footer compacto */
  footer .footer-grid { gap: 1.25rem; }
  .footer-col h4 { font-size: 0.9rem; }
  .footer-col ul li a { font-size: 0.85rem; }

  /* Sorteos: aún más compactos */
  .sorteo-card-header { height: 110px; }
  .sorteo-card-body { padding: 0.85rem; }
  .sorteo-card-header > div[style*="font-size:5rem"] { font-size: 2.5rem !important; }

  /* FAQ */
  .faq-question { font-size: 0.9rem; padding: 1rem; }
  .faq-answer-inner { font-size: 0.82rem; padding: 0 1rem 1rem; }

  /* Live ticker top offset */
  .live-ticker-bar { font-size: 0.7rem; }
}

/* Anti-overflow horizontal global
   IMPORTANTE: NO usar overflow-x:hidden en html/body porque rompe position:sticky
   (necesario para el efecto Apple-scroll del hero). En su lugar contenemos los
   elementos potencialmente desbordantes y dejamos el scroll en el root. */
body { overflow-x: clip; } /* clip no crea scroll container, sticky sigue funcionando */
img, video, canvas, svg { max-width: 100%; height: auto; }
.container { max-width: min(100%, 1280px); }
/* El hero scroll-container debe quedar SIEMPRE aislado y no ser limitado por reglas
   genéricas que cambien su altura. */
.hero-video-scroll-container { isolation: isolate; }
.hero-video-sticky { isolation: isolate; }
