/* ============================================================
 * faq.css — Override profesional para la sección FAQ
 * Cargado DESPUÉS de styles.css, claim.css y claim-v2.css para
 * que sus reglas ganen por especificidad / orden.
 *
 * Mejoras vs. el CSS base:
 *   - Contraste real: el background de los items pasa de
 *     rgba(255,255,255,0.04) (casi invisible) a un gradient
 *     sutil con backdrop-blur y borde más definido.
 *   - Tipografía: 16px (no 15), line-height 1.5, color #fff
 *     para el título de la pregunta y #c9d4e8 para la respuesta.
 *   - Chevron: 22px explícito con stroke-width 2.5, animación
 *     rotate(180deg) y cambio de color al abrir.
 *   - Estado abierto: borde-izquierdo azul, sombra más profunda,
 *     fondo intensificado para que se note qué item está abierto.
 *   - Hover: sutil highlight gris-azul.
 *   - Mobile: padding reducido, font-size 15px (no rompe diseño).
 * ============================================================ */

.faq-section {
  /* contenedor: ya está limitado por .container del styles.css */
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* ITEM ===================================================== */

.faq-item {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.08) 0%,
    rgba(167, 139, 250, 0.06) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 3px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease,
              background 0.25s ease,
              box-shadow 0.25s ease,
              transform 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.12) 0%,
    rgba(167, 139, 250, 0.09) 100%
  );
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.faq-item.open {
  border-left-color: var(--accent-blue, #60a5fa);
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.14) 0%,
    rgba(167, 139, 250, 0.11) 100%
  );
  box-shadow: 0 8px 26px rgba(96, 165, 250, 0.18);
}

/* QUESTION (button) ======================================== */

.faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  line-height: 1.45;
  letter-spacing: -0.005em;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #dbeafe;
}

.faq-question > span {
  flex: 1;
  min-width: 0;
}

/* chevron SVG: tamaño y rotación explícitos */
.faq-question svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #93c5fd;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease, color 0.25s ease;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
  color: #60a5fa;
}

/* ANSWER =================================================== */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner,
.faq-answer > p {
  margin: 0;
  padding: 0 22px 20px 22px;
  color: #c9d4e8;
  font-size: 15px;
  line-height: 1.65;
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-answer-inner strong,
.faq-answer > p strong {
  color: #ffffff;
  font-weight: 600;
}

.faq-answer code,
.faq-item code {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.30);
  padding: 1px 6px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: #c7d2fe;
}

.faq-item p strong {
  color: #fbbf24;
  font-weight: 700;
}

/* META (pie de respuesta opcional) ========================== */

.faq-meta {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: var(--text-muted, #6b7da3);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* FOOTER CTA =============================================== */

.faq-footer-cta {
  text-align: center;
  margin-top: 36px;
  color: var(--text-secondary, #a3b8d9);
  font-size: 14px;
}

.faq-footer-cta a {
  color: var(--accent-blue, #60a5fa);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted currentColor;
}
.faq-footer-cta a:hover {
  color: #93c5fd;
}

/* NUMBER badge (si existe en algunos items) ================== */

.faq-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, rgba(96,165,250,0.25), rgba(34,211,238,0.18));
  color: #dbeafe;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
  letter-spacing: 0;
  border: 1px solid rgba(96,165,250,0.30);
}

/* ACCESSIBILITY: keyboard focus visible ==================== */

.faq-question:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: -2px;
  border-radius: 14px 14px 0 0;
}

/* MOTION: respeto al usuario que prefiere menos animación ==== */

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-question,
  .faq-question svg,
  .faq-answer {
    transition: none !important;
  }
}

/* MOBILE =================================================== */

@media (max-width: 600px) {
  .faq-list {
    gap: 10px;
  }
  .faq-question {
    padding: 15px 16px;
    font-size: 15px;
    gap: 12px;
  }
  .faq-question svg {
    width: 20px;
    height: 20px;
  }
  .faq-answer-inner,
  .faq-answer > p {
    padding: 0 16px 16px 16px;
    font-size: 14px;
  }
  .faq-number {
    width: 26px;
    height: 26px;
    font-size: 12px;
    margin-right: 10px;
  }
}
