/* ========================================
   FAQ PROYECTOS
======================================== */

.faq-proyectos {
    background-color: var(--color-background);
    display: flex;
}

.faq-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 100px 30px 0px 30px;
    padding: 0px 0 100px 0;
    border-top: 1px solid var(--color-light-grey);
    border-bottom: 1px solid var(--color-light-grey);
}

.faq-titulo {
    flex: 1;
    display: flex;
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 100;
    letter-spacing: -1px;
    color: var(--color-dark);
    padding-top: 15px;
    margin: 0 0 60px 0;
    text-align: center;
}

.faq-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* border-top: 1px solid var(--color-light-grey); */
}

/* Item individual */
.faq-item {
    border-bottom: 1px solid var(--color-light-grey);
}

/* Pregunta (botón) */
.faq-pregunta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    
    font-family: var(--font-texts);
    font-size: 18px;
    font-weight: 300;
    color: var(--color-dark);
    letter-spacing: -1x;
    
    transition: color 0.3s ease;
}

.faq-pregunta:hover {
    color: var(--color-dark);
}

/* Icono */
.faq-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

/* Respuesta */
.faq-respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-respuesta {
    max-height: 1000px; /* Ajusta según necesites */
    padding-bottom: 30px;
}

/* Estilos del contenido de la respuesta */
.faq-respuesta p {
    font-family: var(--font-texts);
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-medium-grey);
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
    font-weight: 100 !important;
}

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

.faq-respuesta a {
    color: var(--color-medium-grey);
    text-decoration: none;
    border-bottom: 1px solid var(--color-medium-grey);
    padding-bottom: 0.5px;
    transition: all 0.3s ease;
}

.faq-respuesta a:hover {
    border-bottom-style: dashed;
}

.faq-respuesta strong {
    font-weight: 100 !important;
}

.faq-respuesta em {
    font-style: italic;
}

/* ========================================
   RESPONSIVE TABLET
======================================== */

@media (max-width: 1024px) {
    .faq-container {
        flex-direction: column;
        margin: 80px 30px 0px 30px;
        padding: 0px 0 80px 0;
    }
    
    .faq-titulo {
        flex: none;
        font-size: 42px;
        margin: 0 0 40px 0;
        padding-top: 40px;
        text-align: left;
    }
    
    .faq-list {
        flex: none;
    }
    
    .faq-pregunta {
        font-size: 17px;
        padding: 18px 0;
    }
    
    .faq-icon {
        width: 22px;
        height: 22px;
    }
    
    .faq-respuesta p {
        font-size: 15px;
    }
    
    .faq-item.active .faq-respuesta {
        padding-bottom: 25px;
    }
}

/* ========================================
   RESPONSIVE MÓVIL
======================================== */

@media (max-width: 768px) {
    .faq-container {
        margin: 60px 20px 0px 20px;
        padding: 0px 0 60px 0;
    }
    
    .faq-titulo {
        font-size: 38px;
        margin: 0 0 30px 0;
        padding-top: 30px;
    }
    
    .faq-pregunta {
        font-size: 16px;
        padding: 15px 0;
    }
    
    .faq-icon {
        width: 20px;
        height: 20px;
    }
    
    .faq-respuesta p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .faq-item.active .faq-respuesta {
        padding-bottom: 20px;
    }
}

/* ========================================
   RESPONSIVE MÓVIL PEQUEÑO
======================================== */

@media (max-width: 480px) {
    .faq-container {
        margin: 50px 20px 0px 20px;
        padding: 0px 0 50px 0;
    }
    
    .faq-titulo {
        font-size: 32px;
        margin: 0 0 25px 0;
        padding-top: 25px;
    }
    
    .faq-pregunta {
        font-size: 15px;
        padding: 12px 0;
        gap: 10px;
    }
    
    .faq-icon {
        width: 18px;
        height: 18px;
    }
    
    .faq-respuesta p {
        font-size: 14px;
    }
    
    .faq-item.active .faq-respuesta {
        padding-bottom: 15px;
    }
}