/* ========================================
   CasinosColombia — Tropical Bold Theme
   Deep Green + Yellow + Dark
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #070d08;
  --primary: #facc15;
  --secondary: #16a34a;
  --accent: #ef4444;
  --text: #e8ede8;
  --muted: #6b7c6e;
  --surface: #0e1a10;
  --border: #1a2e1c;
  --primary-dark: #d4a90e;
  --font: 'Archivo', sans-serif;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-pad {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Diagonal Stripe Decoration --- */
.stripe-decor {
  position: relative;
}

.stripe-decor::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(250, 204, 21, 0.015) 40px,
    rgba(250, 204, 21, 0.015) 42px
  );
  pointer-events: none;
  z-index: 0;
}

.stripe-decor > * {
  position: relative;
  z-index: 1;
}

/* --- Section Divider (Geometric) --- */
.section-divider {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 20%, var(--secondary) 50%, var(--primary) 80%, transparent 100%);
  opacity: 0.4;
  margin: 0;
}

.section-divider-small {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 16px auto;
  border-radius: 2px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
  color: var(--text);
  opacity: 0.9;
}

.highlight {
  color: var(--primary);
}

.section-number {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
  display: block;
  margin-bottom: -30px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 13, 8, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.nav-logo span {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 0;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, rgba(22, 163, 74, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(250, 204, 21, 0.05) 0%, transparent 50%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 60px,
    rgba(250, 204, 21, 0.012) 60px,
    rgba(250, 204, 21, 0.012) 62px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 .highlight {
  display: block;
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(250, 204, 21, 0.1);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

.btn-green {
  background: var(--secondary);
  color: #fff;
}

.btn-green:hover {
  background: #15803d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.25);
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--primary);
  padding: 32px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--secondary);
}

/* --- Ranking Cards --- */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ranking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px;
  transition: all 0.3s ease;
}

.ranking-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--secondary);
}

.ranking-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  text-align: center;
  line-height: 1;
}

.ranking-info h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.ranking-info .ranking-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.ranking-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px;
}

.badge-green {
  background: rgba(22, 163, 74, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.badge-yellow {
  background: rgba(250, 204, 21, 0.1);
  color: var(--primary);
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.badge-red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.ranking-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.ranking-bonus {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

/* --- Comparison Table --- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 32px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison-table thead th {
  background: var(--primary);
  color: var(--bg);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 20px;
  text-align: left;
  white-space: nowrap;
}

.comparison-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: middle;
}

.comparison-table tbody tr {
  background: var(--surface);
  transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(250, 204, 21, 0.03);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.table-check {
  color: var(--secondary);
  font-weight: 700;
}

.table-cross {
  color: var(--accent);
  font-weight: 700;
}

/* --- Regulation Section --- */
.regulation {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.regulation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.regulation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.regulation-item {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(7, 13, 8, 0.5);
}

.regulation-item .reg-icon {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 12px;
  font-weight: 900;
}

.regulation-item h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.regulation-item p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* --- Payment Methods --- */
.payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.payment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--primary);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.payment-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.payment-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.payment-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* --- Articles Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--primary);
  padding: 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-card .article-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.article-card h3 a {
  color: var(--text);
  transition: color 0.3s ease;
}

.article-card h3 a:hover {
  color: var(--primary);
}

.article-card p {
  font-size: 0.9rem;
  color: var(--muted);
  flex-grow: 1;
}

.article-card .article-link {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 16px;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .faq-icon {
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  font-weight: 900;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 80px;
}

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

.footer-brand .nav-logo {
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 16px;
}

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

.footer-col ul li a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.7;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Article Page --- */
.article-hero {
  padding: 140px 0 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.article-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.article-hero .breadcrumb a {
  color: var(--muted);
}

.article-hero .breadcrumb a:hover {
  color: var(--primary);
}

.article-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.article-body {
  padding: 60px 0;
}

.article-body h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.article-body h3 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-body p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

.article-body ul, .article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  opacity: 0.9;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  margin: 24px 0;
  background: rgba(250, 204, 21, 0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}

.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

.info-box h4 {
  color: var(--secondary);
  margin-bottom: 8px;
  font-size: 1rem;
}

.info-box p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* --- CTA Box (in articles) --- */
.cta-box {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.08), rgba(22, 163, 74, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin: 40px 0;
  text-align: center;
}

.cta-box h3 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* --- TOC (Table of Contents) --- */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin: 32px 0;
}

.toc h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 16px;
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.toc a:hover {
  color: var(--primary);
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(7, 13, 8, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.4s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .ranking-card {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }

  .ranking-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .section-pad {
    padding: 50px 0;
  }

  .hero {
    padding: 120px 0 70px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    text-align: center;
    justify-content: center;
  }

  .ranking-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ranking-number {
    font-size: 2rem;
  }

  .ranking-badges {
    justify-content: center;
  }

  .ranking-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .regulation {
    padding: 32px 20px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 28px 20px;
  }

  h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .card, .article-card, .payment-card {
    padding: 24px 20px;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 12px 14px;
    font-size: 0.8rem;
  }
}
