/* ════════════════════════════════════
   INDEX PAGE — Specific Styles
════════════════════════════════════ */

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 2rem 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(to bottom,
      rgba(8,8,8,0.78) 0%,
      rgba(8,8,8,0.42) 35%,
      rgba(8,8,8,0.65) 70%,
      rgba(8,8,8,1.00) 100%
    ),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(200,160,64,0.12) 0%, transparent 60%),
    url('../images/hero-bg.jpg') center 40% / cover no-repeat;
}

.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(200,160,64,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,160,64,0.035) 1px, transparent 1px);
  background-size: 65px 65px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 10%, transparent 80%);
}

#hero-particles {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 820px;
}

.hero-pill {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem; letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,160,64,0.35);
  padding: 0.4rem 1.5rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s both;
}

.hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1.05;
  text-shadow: 0 0 70px rgba(240,192,64,0.35), 0 0 130px rgba(200,160,64,0.15);
  animation: fadeUp 0.8s 0.12s both;
}

.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.8rem, 2vw, 1rem);
  letter-spacing: 7px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
  animation: fadeUp 0.8s 0.22s both;
}

.hero-desc {
  max-width: 500px;
  margin: 2rem auto;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.85;
  animation: fadeUp 0.8s 0.32s both;
}

.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s 0.42s both;
}

.hero-meta {
  margin-top: 3.5rem;
  display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s 0.52s both;
}

.hero-meta-item {
  text-align: center;
}
.hero-meta-item .num {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.7rem;
  color: var(--gold-light);
  line-height: 1;
}
.hero-meta-item .lbl {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* ── APERTURA (countdown) ── */
#apertura {
  background: var(--dark1);
  padding: 5rem 0;
}

.apertura-inner {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--dark2);
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.apertura-inner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.apertura-inner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 200px;
  background: radial-gradient(ellipse, rgba(200,160,64,0.07), transparent 65%);
  pointer-events: none;
}

.apertura-date {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ── TRAILER ── */
#trailer {
  background: var(--black);
}

.trailer-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--dark1);
}

.trailer-inner {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.trailer-inner iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.trailer-placeholder {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--dark2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.trailer-placeholder-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.2rem;
  z-index: 1;
}

.play-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(200,160,64,0.15);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition);
}
.trailer-placeholder:hover .play-btn {
  background: rgba(200,160,64,0.3);
  transform: scale(1.08);
  box-shadow: 0 0 40px rgba(200,160,64,0.3);
}

.trailer-bg-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(4rem, 12vw, 10rem);
  color: rgba(200,160,64,0.05);
  position: absolute;
  user-select: none;
  letter-spacing: 5px;
}

.trailer-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trailer-feature {
  padding: 1.4rem;
  text-align: center;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.trailer-feature:last-child { border-right: none; }

.trailer-feature img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.7rem;
  border: 1px solid var(--border);
  background: var(--dark3);
}
.trailer-feature-placeholder {
  width: 100%;
  height: 120px;
  border-radius: 6px;
  margin-bottom: 0.7rem;
  border: 1px solid var(--border);
  background: var(--dark3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

.trailer-feature p {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── CONNECT SECTION ── */
#connect {
  background: var(--dark1);
}

.connect-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--dark2);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.connect-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.ip-copy-btn {
  display: inline-flex;
  align-items: center; gap: 0.8rem;
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--gold-light);
  background: rgba(200,160,64,0.07);
  border: 1px solid rgba(200,160,64,0.35);
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  margin: 1.5rem 0 2rem;
}
.ip-copy-btn:hover {
  background: rgba(200,160,64,0.14);
  border-color: var(--gold);
}

/* ── TIKTOK SECTION ── */
#tiktok {
  background: var(--black);
}

.tiktok-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tiktok-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark2);
  transition: var(--transition);
}
.tiktok-card:hover {
  border-color: var(--border-h);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.tiktok-video-wrap {
  position: relative;
  padding-bottom: 177.77%; /* 9:16 */
  background: var(--dark3);
  overflow: hidden;
}

.tiktok-video-wrap blockquote {
  position: absolute; inset: 0;
  display: flex;
  align-items: stretch;
}
.tiktok-video-wrap blockquote,
.tiktok-video-wrap blockquote * {
  width: 100%;
  min-height: 100%;
}

.tiktok-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: var(--dark3);
  gap: 1rem;
  padding: 2rem;
}
.tiktok-placeholder .tt-icon { font-size: 2.5rem; }
.tiktok-placeholder p {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-align: center;
}
.tiktok-placeholder a {
  font-size: 0.78rem;
  color: var(--gold);
  text-decoration: underline;
}

.tiktok-caption {
  padding: 1rem 1.2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── TEAM ── */
#team {
  background: var(--dark1);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark2);
  text-align: center;
  transition: var(--transition);
}
.team-card:hover {
  border-color: var(--border-h);
  transform: translateY(-5px);
}

.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: var(--dark3);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}
.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 1.2rem;
  border-top: 1px solid var(--border);
}
.team-info h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}
.team-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.team-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--gold);
  margin-top: 0.5rem;
}

/* ── WHY RUMBA ── */
#why {
  background: var(--black);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  padding: 2rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--dark2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 0;
  background: linear-gradient(to top, rgba(200,160,64,0.05), transparent);
  transition: height 0.4s;
}
.why-card:hover::after { height: 100%; }
.why-card:hover {
  border-color: rgba(200,160,64,0.4);
  transform: translateY(-5px);
}

.why-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}
.why-card h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}
.why-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── TIENDA ── */
#tienda {
  background: var(--dark1);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.shop-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--dark2);
  overflow: hidden;
  transition: var(--transition);
}
.shop-card:hover {
  border-color: var(--border-h);
  transform: translateY(-5px);
}

.shop-icon-wrap {
  height: 140px;
  background: var(--dark3);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.shop-icon-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.shop-card:hover .shop-icon-wrap::after { opacity: 1; }

.shop-body {
  padding: 1.4rem;
}
.shop-body h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}
.shop-body p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.shop-price {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.shop-cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ── MEDAL / CLIPS ── */
#clips {
  background: var(--black);
}

.medal-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--dark2);
}

.medal-info {
  padding: 3rem;
  display: flex; flex-direction: column; justify-content: center;
}

.medal-preview {
  background: var(--dark3);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
  min-height: 280px;
  border-left: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.medal-preview::before {
  content: 'MEDAL';
  position: absolute;
  font-family: 'Cinzel Decorative', serif;
  font-size: 5rem;
  color: rgba(200,160,64,0.04);
  letter-spacing: 8px;
  user-select: none;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* ── RESPONSIVE INDEX ── */
@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid  { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .tiktok-grid { grid-template-columns: repeat(2, 1fr); }
  .trailer-features { grid-template-columns: repeat(2, 1fr); }
  .medal-card { grid-template-columns: 1fr; }
  .medal-preview { border-left: none; border-top: 1px solid var(--border); min-height: 180px; }
}

@media (max-width: 600px) {
  .why-grid, .shop-grid, .tiktok-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .trailer-features { grid-template-columns: repeat(2, 1fr); }
}
