/* ============================================================
   Elite Play Guide — components.css
   Age gate, cookie banner, comparador de distritos, FAQ, etc.
   ============================================================ */

/* ---------- Age gate ---------- */
.agegate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 22, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--space-2);
}
.agegate-overlay[hidden] { display: none; }

.agegate-modal {
  background: var(--color-bg-light);
  color: var(--color-text-on-light);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: var(--space-3);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.agegate-modal h2 { margin-top: 0; }
.agegate-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: var(--space-2);
}
.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}
.btn-ghost {
  background: transparent;
  border: 1px solid #9a9890;
  color: var(--color-text-on-light);
}
.btn-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.agegate-declined {
  max-width: 640px;
  margin: var(--space-5) auto;
  padding: var(--space-3);
  text-align: center;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-surface);
  color: var(--color-text-on-dark);
  z-index: 1500;
  padding: var(--space-2);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.3);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.cookie-banner p { margin: 0; font-size: 0.92rem; max-width: 42rem; }
.cookie-banner__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.9rem; }

/* ---------- Comparador de Distritos ---------- */
.comparador {
  background: var(--color-surface);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}
.comparador h2, .comparador h3 { color: var(--color-text-on-dark); }

.slider-row {
  margin-bottom: var(--space-3);
}
.slider-row__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.slider-row__value {
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-size: 1.1rem;
}
.slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--color-accent);
  height: 1.6rem;
}
.slider-row__numeric {
  margin-top: 0.4rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}
.slider-row__numeric input[type="number"] {
  width: 5rem;
  padding: 0.4rem;
  border-radius: var(--radius-md);
  border: 1px solid #9a9890;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .slider-row__numeric { display: flex; }
}

.weights-sum {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: -0.3rem;
}
.weights-sum[data-ok="false"] {
  color: #ffb199;
  font-weight: 700;
}

.comparador__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: var(--space-2) 0;
}

.ranking {
  list-style: none;
  padding: 0;
  margin: var(--space-2) 0 0;
  display: grid;
  gap: 0.6rem;
}
.ranking__item {
  background: var(--color-bg-light);
  color: var(--color-text-on-light);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-left: 5px solid var(--color-accent);
}
.ranking__item--top {
  border-left-color: var(--color-success);
}
.ranking__pos {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  width: 2rem;
}
.ranking__name { font-weight: 700; flex: 1; }
.ranking__score {
  font-family: var(--font-heading);
  font-weight: 700;
}
.ranking__note {
  font-size: 0.82rem;
  color: var(--color-warning);
  display: block;
}

.comparador__status {
  font-size: 0.9rem;
  opacity: 0.85;
}

.sr-copy-feedback {
  font-size: 0.9rem;
  color: var(--color-success);
  font-weight: 600;
}

.noscript-table-notice {
  margin-top: var(--space-2);
}

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid #e3e1d6;
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}
.faq summary {
  font-weight: 700;
  font-family: var(--font-heading);
}
.faq details[open] summary { color: var(--color-success); }

/* ---------- Tabla resumen distritos (sin JS / reserva) ---------- */
.table-wrap { overflow-x: auto; }
