:root {
  --color-primary: #182233;
  --color-accent: #c62828;
  --color-success: #1E5E4A;
  --color-muted: #6B7280;
  --color-white: #FFFFFF;
  --color-bg: #f8f9fb;
}

.site-main:has(.faq-hero) {
  padding-top: 82px;
}

.faq-hero .container,
.faq-block .container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ===== HERO ===== */
.faq-hero {
  padding: 32px 0 64px;
  background: linear-gradient(135deg, rgba(24, 34, 51, 0.96) 0%, rgba(24, 34, 51, 0.86) 100%);
  color: var(--color-white);
}

.faq-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dbe4ef;
}

.faq-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(25px, 4.2vw, 42px);
  line-height: 1.1;
  font-weight: 800;
}

.faq-lead {
  margin: 14px 0 0;
  max-width: 800px;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
  color: #f1f5f9;
}

.faq-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.faq-anchor-nav a {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: .2s ease;
}

.faq-anchor-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ===== BLOQUES ===== */
.faq-block {
  background: var(--color-bg);
  padding: 48px 0 8px;
  scroll-margin-top: 80px;
}

.faq-block:last-of-type {
  padding-bottom: 64px;
}

.faq-block__header {
  margin-bottom: 20px;
}

.faq-block__header h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.15;
  color: var(--color-primary);
}

.faq-block__header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
}

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.faq-card {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.faq-summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
  border-radius: 12px;
}

.faq-number {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff1f1;
  color: var(--color-accent);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-summary__text {
  margin: 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.3;
}

.faq-summary__toggle {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.faq-summary__toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -2px;
}

.faq-disclosure[open] .faq-summary {
  border-bottom: 1px solid #edf1f5;
}

.faq-disclosure[open] .faq-summary__toggle {
  color: var(--color-success);
}

.faq-disclosure[open] .faq-summary__toggle::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.faq-content {
  padding: 14px 18px 18px 72px;
}

.faq-content p,
.faq-content li {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

.faq-content p {
  margin: 0 0 10px;
}

.faq-content ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.faq-tip {
  margin-bottom: 0 !important;
  padding: 10px 12px;
  background: #f1f7f4;
  border-left: 3px solid var(--color-success);
  border-radius: 8px;
}

/* ===== RESPUESTAS RAPIDAS / ENLACES ===== */
.faq-quick {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.faq-quick li {
  background: #fff;
  border: 1px solid #e8edf2;
  border-left: 4px solid var(--color-success);
  border-radius: 12px;
  padding: 14px 18px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
}

.faq-quick strong {
  color: var(--color-primary);
}

.faq-links {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8edf2;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: .2s ease;
}

.faq-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ===== CTA ===== */
.faq-cta {
  padding: 28px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(24, 34, 51, 0.96) 0%, rgba(24, 34, 51, 0.86) 100%);
  color: var(--color-white);
}

.faq-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}

.faq-cta p {
  margin: 0;
  max-width: 760px;
  color: #f1f5f9;
  line-height: 1.55;
}

.faq-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.faq-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .2s ease;
}

.faq-btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 8px 18px rgba(198, 40, 40, 0.28);
}

.faq-btn--primary:hover {
  filter: brightness(1.05);
}

.faq-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.faq-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.faq-legal-note {
  margin: 16px 2px 0;
  color: var(--color-muted);
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .site-main:has(.faq-hero) {
    padding-top: 72px;
  }
}

@media (max-width: 900px) {
  .faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .faq-hero {
    padding: 12px 0 48px;
  }

  .faq-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .faq-summary {
    grid-template-columns: 40px 1fr;
  }

  .faq-summary__toggle {
    grid-column: 2 / 3;
    justify-self: start;
  }

  .faq-content {
    padding: 12px 16px 16px;
  }
}
