:root {
  --bg: #050608;
  --bg-elevated: #101218;
  --accent: #f9ce3c;
  --accent-soft: rgba(249, 206, 60, 0.18);
  --text: #f5f5f5;
  --muted: #9ca3af;
  --border: #1f2933;
  --danger: #f97373;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --transition-fast: 0.18s ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Light Theme */
:root[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --accent: #d97706;
  --accent-soft: rgba(217, 119, 6, 0.1);
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  background: radial-gradient(circle at top, var(--bg-elevated) 0, var(--bg) 55%);
}

.page-wrapper {
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ========== HEADER ========== */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.brand-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast),
    background-color var(--transition-fast);
}

.nav-link:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
  background-color: var(--accent-soft);
}

/* Language Selector */
.language-selector {
  background-color: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.language-selector:hover {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}

.language-selector:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Theme Toggle */
.theme-toggle {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--accent-soft);
  border-color: var(--accent);
  transform: rotate(20deg);
}

.theme-icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* RESPONSIVE HEADER */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* ========== DISCLAIMER BANNER ========== */

.disclaimer-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

:root[data-theme="light"] .disclaimer-banner {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
  border-color: rgba(217, 119, 6, 0.3);
}

.disclaimer-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
  line-height: 1.5;
}

.disclaimer-text strong {
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.official-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.official-link:hover {
  border-bottom-color: var(--accent);
}

@media (max-width: 768px) {
  .disclaimer-text {
    font-size: 0.8rem;
  }
}

/* ========== LAYOUT PRINCIPAL ========== */

.main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.section-countdown {
  flex-wrap: wrap;
}

.section-full {
  display: block;
  width: 100%;
}

/* Tarjetas */

.card {
  flex: 2;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.4rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.card h1,
.card h2 {
  margin: 0 0 0.75rem;
  color: var(--text);
}

.card h1 {
  font-size: 1.6rem;
}

.card h2 {
  font-size: 1.35rem;
}

.section-intro {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.release-info {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.release-note {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

/* ========== TIMER ========== */

.timer {
  margin: 1.4rem 0 0.9rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.time-box {
  flex: 1;
  min-width: 80px;
  padding: 0.8rem 0.6rem;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.time-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
}

.time-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.sub-text {
  margin: 0;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ========== BOTONES ========== */

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.btn {
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  background-color: var(--accent-soft);
  color: var(--accent);
  transition: background-color var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
  background-color: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background-color: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg-elevated);
  border-color: var(--accent);
}

/* ========== ADS ========== */

.ad-slot {
  background-color: var(--bg-elevated);
  border-radius: 16px;
  border: 1px dashed var(--border);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ad-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
}

.ad-placeholder-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}

.ads-column {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ad-banner {
  background-color: var(--bg-elevated);
  border-radius: 16px;
  border: 1px dashed var(--border);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ad-sticky {
  position: sticky;
  top: 1rem;
}

@media (max-width: 768px) {
  .ad-leaderboard {
    display: none;
  }
}

.body-ads-hidden .ad-banner,
.body-ads-hidden .ad-slot {
  display: none;
}

/* ========== PLATFORMS GRID ========== */

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.platform-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-fast);
}

.platform-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.platform-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.platform-card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: var(--text);
}

.platform-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ========== FEATURES GRID ========== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all var(--transition-fast);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin: 0.5rem 0 0.75rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ========== NEWS SECTION ========== */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.news-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all var(--transition-fast);
}

.news-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.news-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.news-item h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0 0.75rem;
  color: var(--text);
}

.news-item p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ========== FAQ SECTION ========== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--accent-soft);
  background-color: var(--accent-soft);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-item h3::before {
  content: "❓";
  font-size: 1.2rem;
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ========== FOOTER ========== */

.footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-small {
  margin-top: 0.3rem;
}

/* ========== RESPONSIVE GENERAL ========== */

@media (max-width: 768px) {
  .section {
    flex-direction: column;
  }

  .ads-column {
    width: 100%;
  }

  .ad-sticky {
    position: static;
  }

  .platforms-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .platform-card,
  .feature-card {
    min-width: 100%;
  }
}