/* =========================================
   🚀 MÓDULO FAQ (Estilo Anáhuac / Cotizador)
   ========================================= */

:root {
  --naranja-anahuac: #FF5900;
  --naranja-suave: rgba(255, 89, 0, 0.05);
  --texto-oscuro: #231F20;
  --texto-gris: #555555;
  --borde-claro: #EBEBEB;
}

.faq-section {
  width: 100%; /* 🔥 Ocupa el 100% del espacio disponible */
  padding: 40px 21px;
  font-family: Arial, Helvetica, sans-serif
  background-color: #ffffff;
}

.faq-container {
  width: 100%;
  max-width: 1200px; /* 🔥 Alineado exactamente con el ancho del Cotizador */
  margin: 0 auto;
}

.faq-main-title {
  text-align: center;
  font-size: 36px; /* Tamaño impactante como en el Hero */
  font-weight: 800; /* Negritas potentes */
  color: #ff5900
  margin-bottom: 50px;
  letter-spacing: -1px;
}

.faq-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Un poco más de aire entre preguntas */
  width: 100%; /* Estira las cajas al 100% del contenedor */
}

.faq-item {
  width: 100%;
  background: #ffffff;
  border: 2px solid var(--borde-claro);
  border-radius: 16px; /* Esquinas modernas */
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Misma transición suave del botón */
}

/* Efecto Hover estilo "Pro" */
.faq-item:hover {
  border-color: var(--naranja-anahuac);
  box-shadow: 0 10px 25px rgba(255, 89, 0, 0.1); /* Sombra naranja sutil */
  transform: translateY(-2px); /* Pequeño salto flotante como el botón */
}

.faq-question {
  width: 100%;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 19px;
  font-weight: bold;
  color: var(--texto-oscuro);
  transition: all 0.3s ease;
}

/* Cuando el acordeón está abierto */
.faq-item.active {
  background-color: #fff;
  border-color: var(--naranja-anahuac);
}

.faq-item.active .faq-question {
  color: var(--naranja-anahuac);
}

/* Icono de + y x */
.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--naranja-anahuac); /* Ícono siempre naranja para dar acento */
}

.faq-icon .line {
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-icon .line:nth-child(1) {
  width: 100%;
  height: 3px; /* Más grueso y visible */
  top: 10.5px;
  left: 0;
}

.faq-icon .line:nth-child(2) {
  width: 3px;
  height: 100%;
  top: 0;
  left: 10.5px;
}

/* Gira 135 grados para hacer una "X" con mucho estilo */
.faq-item.active .faq-icon .line:nth-child(1) { transform: rotate(135deg); }
.faq-item.active .faq-icon .line:nth-child(2) { transform: rotate(135deg); }

/* Animación de respuesta */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Cierre y apertura ultra suaves */
}

.faq-answer-content {
  padding: 0 30px 30px 30px;
  color: var(--texto-gris);
  line-height: 1.6;
  font-size: 17px;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .faq-main-title {
    font-size: 36px;
  }
  .faq-question {
    font-size: 17px;
    padding: 20px;
  }
  .faq-answer-content {
    padding: 0 20px 24px 20px;
    font-size: 16px;
  }
}