/* ========================================
   FAQ - TESOROS DEL CARIBE
   Estilos para la sección de preguntas frecuentes
   ======================================== */

/* =================== FAQ SECTION =================== */
.faq-section {
    background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark));
    position: relative;
}

/* Hacer el container transparente en la sección FAQ */
.faq-section .container {
    background-color: transparent !important;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

/* Sobreescribir colores específicos para FAQ debido al fondo oscuro */
.faq-section .section-title {
    color: var(--white-pure);
}

.faq-section .section-subtitle {
    color: var(--white-pure);
    opacity: 0.9;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white-pure);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-elegant);
    overflow: hidden;
    border: 1px solid transparent;
}

.faq-item:hover {
    box-shadow: var(--shadow-elegant);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.faq-item.active {
    box-shadow: var(--shadow-gold);
    border-color: var(--gold-primary);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--space-xl);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-primary);
    transition: var(--transition-smooth);
    -webkit-tap-highlight-color: transparent;
    min-height: 60px;
}

.faq-question-text {
    flex: 1;
    line-height: 1.3;
}

.faq-toggle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    min-width: 40px;
    min-height: 40px;
}

.faq-toggle i {
    font-size: 1.2rem;
    color: var(--white-pure);
    transition: var(--transition-smooth);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    background: linear-gradient(135deg, var(--navy-primary), var(--navy-dark));
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

.faq-answer-content {
    padding: 0 clamp(var(--space-sm), 4vw, var(--space-xl)) clamp(var(--space-sm), 4vw, var(--space-xl));
    color: var(--gray-charcoal);
    line-height: 1.7;
    font-size: clamp(0.8rem, 2.5vw, 1.1rem);
}

.faq-answer-content p {
    margin-bottom: var(--space-md);
    font-size: clamp(0.8rem, 2.5vw, 1.1rem);
    line-height: 1.6;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* =================== FAQ RESPONSIVE =================== */

/* Tablet Portrait (768px y abajo) */
@media (max-width: 768px) {
    .faq-list {
        gap: var(--space-md);
    }
    
    .faq-question {
        padding: var(--space-md);
        font-size: 1.1rem;
        gap: var(--space-md);
        min-height: 64px;
    }
    
    .faq-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .faq-toggle i {
        font-size: 1.1rem;
    }
    
    .faq-answer-content {
        padding: 0 var(--space-md) var(--space-md);
        font-size: 0.9rem;
    }
    
    .faq-item.active .faq-answer {
        max-height: 450px;
    }
}

/* Mobile Large (480px y abajo) */
@media (max-width: 480px) {
    .faq-list {
        gap: var(--space-sm);
    }
    
    .faq-question {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.95rem;
        gap: var(--space-sm);
        min-height: 70px;
        line-height: 1.2;
    }
    
    .faq-toggle {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
    
    .faq-toggle i {
        font-size: 1rem;
    }
    
    .faq-answer-content {
        padding: 0 var(--space-sm) var(--space-sm);
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .faq-item.active .faq-answer {
        max-height: 500px;
    }
}

/* Mobile Medium (360px y abajo) */
@media (max-width: 360px) {
    .faq-question {
        padding: 12px;
        font-size: 0.9rem;
        gap: 8px;
        min-height: 72px;
    }
    
    .faq-toggle {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
    }
    
    .faq-toggle i {
        font-size: 0.9rem;
    }
    
    .faq-answer-content {
        padding: 0 12px 12px;
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .faq-item.active .faq-answer {
        max-height: 550px;
    }
} 