/* ========================================
   FAQ - DISEÑO MODERNO
   Speck Developers - Paleta Azul y Blanco
   ======================================== */

/* Sección principal */
.faq-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

/* Header */
.faq-section .section-header h2 {
  color: #1E5F8C !important;
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 15px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  text-align: center;
}

.faq-section .section-header p {
  color: #555555;
  font-size: 18px;
  line-height: 1.6;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  text-align: center;
  margin-bottom: 50px;
}

/* Contenedor de FAQs */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Item individual de FAQ */
.faq-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 20px rgba(30, 95, 140, 0.15);
  transform: translateY(-2px);
}

/* Pregunta */
.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.faq-question:hover {
  background: #f8f9fa;
  border-left-color: #1E5F8C;
}

.faq-question h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1E5F8C;
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  line-height: 1.4;
  flex: 1;
}

/* Icono */
.faq-icon {
  font-size: 24px;
  color: #1E5F8C;
  transition: transform 0.3s ease;
  min-width: 24px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Respuesta */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 30px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 30px 25px 30px;
}

.faq-answer p {
  font-size: 16px;
  color: #666666;
  line-height: 1.8;
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* Estado activo */
.faq-item.active .faq-question {
  background: linear-gradient(to right, #f0f7fb, #ffffff);
  border-left-color: #1E5F8C;
  border-left-width: 4px;
}

/* ========================================
   SECCIÓN CTA AL FINAL DEL FAQ
   (Versión dentro de faq-section)
   ======================================== */

.faq-cta-section {
  background: #ffffff;
  padding: 60px 0;
  margin-top: 60px;
  text-align: center;
  border-top: 2px solid rgba(30, 95, 140, 0.1);
}

.faq-cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1E5F8C;
  margin-bottom: 15px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.faq-cta-section p {
  font-size: 18px;
  color: #666666;
  margin-bottom: 30px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-faq-cta {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, #1E5F8C 0%, #2B7BA9 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  box-shadow: 0 5px 15px rgba(30, 95, 140, 0.3);
}

.btn-faq-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(30, 95, 140, 0.4);
  color: #ffffff;
  background: linear-gradient(135deg, #2B7BA9 0%, #1E5F8C 100%);
}

/* ========================================
   SECCIÓN CTA INDEPENDIENTE
   (Versión fuera de faq-section, en el HTML principal)
   ======================================== */

.cta-section {
  background: linear-gradient(135deg, #1E5F8C 0%, #2B7BA9 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 35px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  padding: 16px 45px;
  background: #ffffff;
  color: #1E5F8C;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  color: #1E5F8C;
  background: #f0f7fb;
  border-color: #ffffff;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 991px) {
  .faq-section {
    padding: 60px 0;
  }

  .faq-section .section-header h2 {
    font-size: 28px;
  }

  .faq-section .section-header p {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .faq-question h3 {
    font-size: 17px;
  }

  .faq-cta-section {
    padding: 50px 0;
    margin-top: 50px;
  }

  .faq-cta-section h2 {
    font-size: 28px;
  }

  .faq-cta-section p {
    font-size: 16px;
  }

  .cta-section {
    padding: 70px 20px;
  }

  .cta-section h2 {
    font-size: 32px;
  }

  .cta-section p {
    font-size: 17px;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .faq-section {
    padding: 50px 0;
  }

  .faq-section .section-header h2 {
    font-size: 26px;
  }

  .faq-section .section-header p {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .faq-question {
    padding: 20px 20px;
  }

  .faq-question h3 {
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
  }

  .faq-answer p {
    font-size: 15px;
  }

  .faq-icon {
    font-size: 20px;
    min-width: 20px;
  }

  .faq-container {
    gap: 12px;
  }

  .faq-cta-section {
    padding: 40px 20px;
    margin-top: 40px;
  }

  .faq-cta-section h2 {
    font-size: 26px;
  }

  .faq-cta-section p {
    font-size: 15px;
  }

  .btn-faq-cta {
    padding: 14px 35px;
    font-size: 15px;
  }

  .cta-section {
    padding: 60px 20px;
  }

  .cta-section h2 {
    font-size: 28px;
  }

  .cta-section p {
    font-size: 16px;
    padding: 0 10px;
  }

  .btn-cta {
    padding: 14px 35px;
    font-size: 16px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .faq-section .section-header h2 {
    font-size: 24px;
  }

  .faq-question {
    padding: 18px 15px;
  }

  .faq-question h3 {
    font-size: 15px;
  }

  .faq-answer p {
    font-size: 14px;
  }

  .faq-cta-section h2 {
    font-size: 24px;
  }

  .faq-cta-section p {
    font-size: 14px;
    padding: 0 10px;
  }

  .btn-faq-cta {
    padding: 12px 30px;
    font-size: 14px;
  }

  .cta-section h2 {
    font-size: 26px;
  }

  .cta-section p {
    font-size: 15px;
  }

  .btn-cta {
    padding: 12px 30px;
    font-size: 15px;
  }
}