/**
 * FAQ V2 Page Styles
 * Estilos modernos para la página de preguntas frecuentes
 * Reutiliza design tokens y componentes base del sistema
 */

/* ===== HERO SECTION ===== */
.faq-hero {
  position: relative;
  padding: calc(118px + var(--space-3xl)) 0 var(--space-4xl);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.08) 0%, rgba(59, 130, 246, 0.16) 100%);
  overflow: hidden;
}

.faq-hero::before,
.faq-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.faq-hero::before {
  top: -20%;
  left: -15%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle,
    rgba(59, 130, 246, 0.14) 0%,
    rgba(59, 130, 246, 0.06) 45%,
    transparent 70%
  );
}

.faq-hero::after {
  bottom: -20%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle,
    rgba(14, 116, 144, 0.1) 0%,
    transparent 60%
  );
}

.faq-hero__container {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.faq-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(14, 116, 144, 0.12);
  color: var(--color-ds160-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.faq-hero__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.faq-hero__title {
  margin: 0 0 var(--space-lg);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
}

.faq-hero__subtitle {
  margin: 0 auto var(--space-xl);
  max-width: 720px;
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.faq-hero__cta {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.faq-hero__cta .btn-link {
  font-weight: var(--weight-semibold);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.faq-hero__cta .btn-link:hover,
.faq-hero__cta .btn-link:focus {
  color: var(--color-full-primary);
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: var(--space-4xl) 0 var(--space-5xl);
  background: var(--color-bg-primary);
}

.faq-section__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-3xl);
}

.faq-section__title {
  margin: 0 0 var(--space-md);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
}

.faq-section__subtitle {
  margin: 0;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.faq-item[open] {
  box-shadow: var(--shadow-lg);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::marker,
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-full-primary);
  background-image: linear-gradient(var(--color-full-primary), var(--color-full-primary));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 8px 8px;
  transform: rotate(0deg);
  transition: transform var(--transition-base);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.4);
  outline-offset: 4px;
}

.faq-item__content {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  display: grid;
  gap: var(--space-sm);
}

.faq-item__content p {
  margin: 0;
}

.faq-item__content a {
  color: var(--color-full-primary);
  text-decoration: underline;
  font-weight: var(--weight-semibold);
}

.faq-item__content a:hover,
.faq-item__content a:focus {
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .faq-hero {
    padding: calc(96px + var(--space-2xl)) 0 var(--space-3xl);
  }

  .faq-hero__title {
    font-size: var(--text-3xl);
  }

  .faq-hero__subtitle {
    font-size: var(--text-base);
  }

  .faq-item summary {
    font-size: var(--text-base);
    padding: var(--space-lg) var(--space-xl);
  }

  .faq-item__content {
    padding: 0 var(--space-xl) var(--space-lg);
  }
}

@media (max-width: 480px) {
  .faq-hero__title {
    font-size: var(--text-2xl);
  }

  .faq-hero__eyebrow {
    font-size: var(--text-2xs);
  }

  .faq-hero__cta {
    flex-direction: column;
  }
}
