.contenedor-preguntas {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.encabezado-preguntas {
    background: var(--color-secondary);
    color: white;
    padding: 40px;
    text-align: center;
}

.encabezado-preguntas h1 {
    font-size: 2em;
    font-weight: 300;
    letter-spacing: 1px;
}

.contenedor-list-preguntas {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 120px);
    padding: 80px 40px;  /* ← aquí, no dentro del media query */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

/* Imagen de fondo transparente */
.contenedor-list-preguntas::before {
    content: '';
    position: absolute;
    top: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    background-color: var(--color-gray);
    background-image: url('../image/circulos_sesea.png');
    background-size: 710px 710px;
    background-repeat: no-repeat;
    background-position: right top;
    opacity: 0.16;
    z-index: 0;
}

.lista-preguntas-frecuentes {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;  /* ← agregar esto */
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 46px;
}


.pregunta-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: none;
}

.pregunta-cabecera {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    background: white;
    border-left: 8px solid var(--color-secondary);
}

.pregunta-cabecera:hover {
    background-color: #f9f9f9;
}

.icono-pregunta {
    width: 45px;
    height: 45px;
    background-color: #6b9e8f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 20px;
    flex-shrink: 0;
}

.texto-pregunta {
    flex: 1;
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 500;
}

.icono-expandir {
    width: 50px;
    height: 50px;
    background-color: #d4e5df;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

/* Flecha hacia abajo usando Bootstrap Icons */
.icono-expandir::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #6b9e8f;
    transition: transform 0.3s ease;
}

/* Cuando está activo, la flecha apunta hacia arriba */
.pregunta-item.activo .icono-expandir::before {
    transform: rotate(180deg);
}

.respuesta-contenedor {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fafafa;
}

.respuesta-contenido {
    display: flex;
    padding: 0 30px;
}

.icono-respuesta {
    width: 45px;
    height: 45px;
    background-color: #888;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 10px;
    flex-shrink: 0;
}

.texto-respuesta {
    flex: 1;
    color: #848181;
    text-align: justify;
    line-height: 1.6;
    font-size: 13px;
    padding: 15px;
}

.pregunta-item.activo .respuesta-contenedor {
    max-height: 500px;
}

.texto-respuesta ul {
    list-style: none;
    padding-left: 0;
}

.texto-respuesta li {
    padding: 5px 0;
}

.texto-respuesta li::before {
    content: "• ";
    color: var(--color-gray);
    font-weight: bold;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .encabezado-preguntas h1 {
        font-size: 1.5em;
    }
    
    .contenedor-list-preguntas {
        padding: 40px 15px;
    }
    
    .lista-preguntas-frecuentes {
        max-width: 100%;
    }
    
    .pregunta-cabecera {
        padding: 20px 15px;
    }
    
    .pregunta-item {
        margin-bottom: 8px;
    }
    
    .icono-pregunta,
    .icono-respuesta {
        width: 35px;
        height: 35px;
        font-size: 1em;
        margin-right: 15px;
    }
    
    .icono-expandir {
        width: 40px;
        height: 40px;
    }
    
    .respuesta-contenido {
        padding: 0 15px;
    }
}