/* Estilos para la sección de preguntas frecuentes */
#faq-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    clear: both; /* Asegura que no interfiera con elementos flotantes */
}

#faq-section h2 {
    color: #003C81;
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category h3 {
    color: #003C81;
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #003C81;
    padding-bottom: 10px;
}

.faq-item {
    margin-bottom: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.faq-question {
    background-color: #003C81;
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1.1em;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: #002a5c;
}

.faq-question .toggle-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.faq-question.active .toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 20px;
    color: #555;
    line-height: 1.6;
    display: none;
    border-top: 1px solid #eee;
}

.faq-answer.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    #faq-section {
        padding: 40px 0;
    }
    
    #faq-section h2 {
        font-size: 2em;
    }
    
    .faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }
    
    .faq-answer {
        padding: 15px;
    }
}

/* Animación suave para el despliegue */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer.active {
    max-height: 500px;
    transition: max-height 0.3s ease-in, padding 0.3s ease-in;
}

/* Asegurar que no interfiera con el layout existente */
#faq-section .container {
    position: relative;
    z-index: 1;
}

#faq-section .row {
    margin-left: 0;
    margin-right: 0;
}

/* Respetar el espaciado de Bootstrap */
#faq-section + .content-section-b {
    margin-top: 0;
}

/* Evitar conflictos con clases existentes */
#faq-section * {
    box-sizing: border-box;
}

