@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* --- ESTILOS GENERALES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}



.faq-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 700px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-title {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
}

/* --- ESTILOS DE CADA ITEM DE FAQ --- */
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.faq-item:last-child {
    border-bottom: none;
}

/* Botón de la Pregunta */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    text-align: left;
    padding: 18px 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #34495e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #AECB04;
}

/* Flecha usando SVG */
.faq-arrow {
    width: 16px;
    height: 16px;
    fill: #7f8c8d;
    transition: transform 0.3s ease, fill 0.3s ease;
}

.faq-question:hover .faq-arrow {
    fill: #AECB04;
}

/* Rotación de la flecha cuando está activo */
.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    fill: #AECB04;
}

.faq-item.active .faq-question {
    color: #AECB04;
}

/* Respuesta / Contenido desplegable */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 10px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 400;
    padding-bottom: 18px;
}