/* ============================================
   ORETANA LOGISTICA - PAGINA DE FAQ
   Diseño moderno, limpio y accesible
   ============================================ */

/* ==========================================
   HEADER FAQ - Simple y Centrado
   ========================================== */
.faq-header {
  padding: 140px 0 4rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.faq-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
  pointer-events: none;
}

.faq-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.faq-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  animation: fadeInUp 0.6s ease-out;
}

.faq-header-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.faq-header-subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-300);
  line-height: 1.7;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   CONTENIDO FAQ - Acordeón Bootstrap
   ========================================== */
.faq-content-section {
  padding: 9rem 0 5rem 0;
  background: var(--color-white);
}

[data-bs-theme="dark"] .faq-content-section {
  background: var(--color-gray-900);
}

/* Título principal FAQ */
.faq-main-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--color-gray-900);
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.2;
}

[data-bs-theme="dark"] .faq-main-title {
  color: var(--color-white);
}

/* Acordeón personalizado */
.faq-accordion {
  margin-top: 2rem;
}

.faq-item {
  border: none;
  background: transparent;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

[data-bs-theme="dark"] .faq-item {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .faq-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Botón pregunta */
.faq-item .accordion-button {
  background: var(--color-white);
  color: var(--color-gray-900);
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 1.5rem 4rem 1.5rem 1.5rem;
  border: 2px solid transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
}

[data-bs-theme="dark"] .faq-item .accordion-button {
  background: var(--color-gray-800);
  color: var(--color-white);
}

.faq-item .accordion-button:not(.collapsed) {
  background: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-accent);
  font-weight: 700;
}

[data-bs-theme="dark"] .faq-item .accordion-button:not(.collapsed) {
  background: var(--color-gray-800);
  color: var(--color-success);
  border-color: var(--color-success);
}

/* Icono flecha personalizado */
.faq-item .accordion-button::after {
  content: '';
  width: 2rem;
  height: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 1.5rem;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
  position: absolute;
  right: 1.5rem;
}

.faq-item .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-bs-theme="dark"] .faq-item .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.faq-item .accordion-button:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-300);
}

[data-bs-theme="dark"] .faq-item .accordion-button:hover {
  background: var(--color-gray-700);
  border-color: var(--color-gray-600);
}

.faq-item .accordion-button:not(.collapsed):hover {
  background: var(--color-white);
  border-color: var(--color-accent-hover);
}

[data-bs-theme="dark"] .faq-item .accordion-button:not(.collapsed):hover {
  background: var(--color-gray-800);
  border-color: var(--color-success);
}

.faq-item .accordion-button:focus {
  box-shadow: none;
  outline: none;
}

/* Respuesta */
.faq-answer {
  background: var(--color-white);
  color: var(--color-gray-700);
  font-size: 1rem;
  line-height: 1.8;
  padding: 1.5rem;
  border-top: 1px solid var(--color-gray-200);
}

[data-bs-theme="dark"] .faq-answer {
  background: var(--color-gray-800);
  color: var(--color-gray-300);
  border-top-color: var(--color-gray-700);
}

.faq-answer strong {
  color: var(--color-accent);
  font-weight: 600;
}

[data-bs-theme="dark"] .faq-answer strong {
  color: var(--color-success);
}

/* ==========================================
   CTA FINAL - ¿Aún tienes dudas?
   ========================================== */
.faq-cta-section {
  padding: 5rem 0;
  background: var(--color-white);
}

[data-bs-theme="dark"] .faq-cta-section {
  background: var(--color-gray-900);
}

.faq-cta-card {
  background: var(--color-gray-50);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  border: 2px solid var(--color-gray-200);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
}

.faq-cta-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--color-success);
}

[data-bs-theme="dark"] .faq-cta-card {
  background: var(--color-gray-800);
  border-color: var(--color-gray-700);
}

[data-bs-theme="dark"] .faq-cta-card:hover {
  border-color: var(--color-success);
}

.faq-cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
}

[data-bs-theme="dark"] .faq-cta-title {
  color: var(--color-white);
}

.faq-cta-text {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  margin: 0;
  line-height: 1.6;
}

[data-bs-theme="dark"] .faq-cta-text {
  color: var(--color-gray-400);
}

.btn-faq-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-faq-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-faq-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  color: var(--color-white);
}

.btn-faq-cta:hover::before {
  left: 100%;
}

.btn-faq-cta i {
  font-size: 1.25rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Tablets */
@media (max-width: 992px) {
  .faq-header {
    padding: 120px 0 3rem 0;
  }

  .faq-header-title {
    font-size: 2rem;
  }

  .faq-content-section {
    padding: 4rem 0;
  }

  .faq-cta-card {
    padding: 2.5rem;
  }

  .faq-cta-title {
    font-size: 1.5rem;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .faq-header {
    padding: 100px 0 2.5rem 0;
  }

  .faq-header-title {
    font-size: 1.75rem;
  }

  .faq-header-subtitle {
    font-size: 1rem;
  }

  .faq-content-section {
    padding: 3rem 0;
  }

  .faq-item .accordion-button {
    font-size: 0.9375rem;
    padding: 1.25rem 3.5rem 1.25rem 1.25rem;
  }

  .faq-item .accordion-button i {
    font-size: 1.25rem;
  }

  .faq-item .accordion-button::after {
    right: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    background-size: 1.25rem;
  }

  .faq-answer {
    font-size: 0.9375rem;
    padding: 1.25rem;
  }

  .faq-cta-section {
    padding: 3rem 0;
  }

  .faq-cta-card {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .faq-cta-card .row {
    display: block !important;
  }

  .faq-cta-card .col-lg-8,
  .faq-cta-card .col-lg-4 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .faq-cta-card .col-lg-4 {
    margin-top: 1.5rem;
  }

  .faq-cta-card .text-lg-end {
    text-align: center !important;
  }

  .faq-cta-title {
    font-size: 1.35rem;
    text-align: center;
  }

  .faq-cta-text {
    font-size: 0.9375rem;
    text-align: center;
  }

  .btn-faq-cta {
    display: inline-flex;
    margin: 0 auto;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .faq-item .accordion-button {
    font-size: 0.875rem;
    padding: 1rem 3rem 1rem 1rem;
    gap: 0.75rem;
  }

  .faq-item .accordion-button i {
    font-size: 1.125rem;
  }

  .faq-answer {
    font-size: 0.875rem;
  }
}

/* ==========================================
   ANIMACIONES DE ENTRADA
   ========================================== */
.faq-item {
  animation: fadeInUp 0.5s ease-out backwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.15s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.25s; }
.faq-item:nth-child(5) { animation-delay: 0.3s; }
.faq-item:nth-child(6) { animation-delay: 0.35s; }
.faq-item:nth-child(7) { animation-delay: 0.4s; }
.faq-item:nth-child(8) { animation-delay: 0.45s; }
.faq-item:nth-child(9) { animation-delay: 0.5s; }
