:root {
  --primary: #cd503a;
  --primary-dark: #a43222;
  --primary-bg: rgba(205,80,58,.08);
  --dark: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; }

body, html { margin-bottom: 0; padding-bottom: 0; background: #fff; color: var(--text); }

body { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }

#footer { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text); }

a { color: var(--primary); }
a:hover, a:focus { color: var(--primary-dark); }
a:visited { color: #d87563; }

/* ── Hero / Header ── */
.header {
  background: linear-gradient(135deg, #a43222 0%, #cd503a 100%);
  color: #fff;
  margin-bottom: 0;
  padding-bottom: 0;
}
.header h1, .header h2, .header h3 { color: #fff; }
.header .lead { color: rgba(255,255,255,.9); }

/* ── Content ── */
.content { position: relative; z-index: 1; margin-bottom: 0; }
.content .lead { color: var(--text); }

.space-before { padding-top: 2rem; }
.space-after  { padding-bottom: 2rem; }

/* ── Sections ── */
.section-alt { background: var(--surface); }
.section-hero {
  background: linear-gradient(135deg, #a43222 0%, #cd503a 100%);
  padding: 60px 0 50px;
  color: #fff;
}
.section-dark {
  background: var(--dark);
  color: #fff;
  padding: 60px 0;
}

/* ── Cards ── */
.card-modern {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-modern-lg {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.card-accent-top::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #a43222, #cd503a);
}

/* ── Feature cards ── */
.feature-card {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  border: none;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

/* ── Sala badges ── */
.sala-badge {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  border: 1.5px solid #e8c5c0;
  border-radius: 50px;
  padding: 5px 14px;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .18s;
  white-space: nowrap;
}
.sala-badge:hover, .sala-badge:focus {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(205,80,58,.3);
  text-decoration: none;
}

/* ── Rules list ── */
.rule-list { list-style: none; padding: 0; margin: 0; }
.rule-list li {
  display: flex; gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .925rem;
  color: var(--text);
}
.rule-list li:last-child { border-bottom: none; }
.rule-list .ri { color: #2eaa5f; margin-top: 3px; flex-shrink: 0; }

/* ── Stat blocks ── */
.stat-block .stat-num { font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-block .stat-label { font-size: .8rem; opacity: .75; color: #fff; }

/* ── Images ── */
.img-feature {
  border: 6px solid rgba(255,255,255,.15);
  border-radius: 50%;
  width: 100%; max-width: 260px;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* ── Pagination ── */
.page-link { color: var(--primary); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-link:hover { color: var(--primary-dark); }

/* ── Accordion (FAQ) ── */
.accordion-button:not(.collapsed) { background: var(--primary-bg); color: var(--primary); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(205,80,58,.25); }

/* ── Responsive ── */
@media (max-width: 767px) {
  .section-hero { padding: 40px 0 35px; }
  .section-hero h1 { font-size: 1.7rem; }
}
