/* ================================================
   FAQ SECTION - Preguntas frecuentes interactivas
   ================================================ */

.faq-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Elementos decorativos */
.faq-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.faq-section::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 6s ease-in-out infinite reverse;
}

/* Contenedor principal */
.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
    
}

/* Títulos principales */
.faq-title {
    font-family: 'Oswald', sans-serif;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #404144 0%, #6a6a6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 1s ease-out;
}

.faq-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Elementos FAQ individuales */
.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
    animation: fadeInUp 0.6s ease-out both;
}

/* Colores específicos para cada pregunta */
.faq-item:nth-child(1) .faq-question {
    background: linear-gradient(135deg, #91c87a 0%, #7db968 100%);
    color: white;
}

.faq-item:nth-child(2) .faq-question {
    background: linear-gradient(135deg, #fde47f 0%, #f9db5a 100%);
    color: #2c3e50;
}

.faq-item:nth-child(3) .faq-question {
    background: linear-gradient(135deg, #b2c5e5 0%, #9bb7dd 100%);
    color: white;
}

.faq-item:nth-child(4) .faq-question {
    background: linear-gradient(135deg, #d46464 0%, #c85555 100%);
    color: white;
}

.faq-item:nth-child(5) .faq-question {
    background: linear-gradient(135deg, #91c87a 0%, #7db968 100%);
    color: white;
}

.faq-item:nth-child(6) .faq-question {
    background: linear-gradient(135deg, #fde47f 0%, #f9db5a 100%);
    color: #2c3e50;
}

.faq-item:nth-child(7) .faq-question {
    background: linear-gradient(135deg, #b2c5e5 0%, #9bb7dd 100%);
    color: white;
}

.faq-item:nth-child(8) .faq-question {
    background: linear-gradient(135deg, #d46464 0%, #c85555 100%);
    color: white;
}

/* Animación escalonada */
.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.faq-item.active {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

/* Pregunta clickeable */
.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo al hover */
.faq-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.faq-question:hover::before {
    left: 100%;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.faq-item:hover .faq-question {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Icono de expansión */
.faq-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: white;
    transition: all 0.3s ease;
}

.faq-icon::before {
    width: 14px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 14px;
}

/* Iconos especiales para pregunta amarilla */
.faq-item:nth-child(2) .faq-icon::before,
.faq-item:nth-child(2) .faq-icon::after {
    background: #2c3e50;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-icon::after {
    opacity: 0;
}

/* Respuesta desplegable */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #f8f9fa;
}

.faq-answer.active {
    max-height: 200px !important;
    padding: 25px 30px;
}

.faq-answer p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* ================================================
   CTA WHATSAPP
   ================================================ */

.cta-container {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 0.8s both;
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.cta-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.whatsapp-button {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.whatsapp-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-button:hover::before {
    left: 100%;
}

.whatsapp-button:active {
    transform: translateY(-1px) scale(1.02);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #25d366;
    animation: bounce 2s infinite;
}

/* ================================================
   ANIMACIONES
   ================================================ */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    .faq-title {
        font-size: 2.5rem;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-answer.active {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }

    .cta-text {
        font-size: 1.3rem;
    }

    .whatsapp-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 2rem;
    }

    .faq-section {
        padding: 60px 15px;
    }

    .faq-question {
        padding: 15px;
    }

    .faq-answer.active {
        padding: 15px;
    }
}