/* /assets/css/faq_modern.css */

.faq-modern-wrapper {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.animated-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(125deg, #CAF0F8, #D8BBFF, #CAF0F8);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    z-index: -1;
}
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}
.faq-header .pre-title {
    font-weight: bold;
    color: var(--primary-color);
}
.faq-header h1 {
    font-size: 3rem;
}
.search-box {
    position: relative;
    max-width: 600px;
    margin: 30px auto 0 auto;
}
.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}
.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: none;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.faq-accordion-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: background-color 0.3s ease;
}
.faq-item:hover {
    background: rgba(255, 255, 255, 0.7);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}
.faq-question i {
    font-size: 1rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto de rebote */
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr; /* Inicia colapsado */
    transition: grid-template-rows 0.4s ease-out;
}
.faq-answer > p {
    overflow: hidden;
}
.faq-answer p {
    padding: 0 25px 20px 25px;
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
}
.faq-answer a {
    color: var(--accent-purple);
    font-weight: bold;
}

/* Estado Activo */
.faq-item.active .faq-question i {
    transform: rotate(45deg);
}
.faq-item.active .faq-answer {
    grid-template-rows: 1fr; /* Expande al tamaño del contenido */
}

.no-results {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
}