/* ========== FAQ COMPONENT STYLES ========== */

/* Contenedor de enlaces FAQ en login modal */
.faq-links-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

/* Enlaces FAQ en login modal */
.faq-link {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
}

.faq-link:hover {
    color: #ff6b9d;
    background: rgba(255, 107, 157, 0.1);
    transform: translateY(-1px);
}

/* Estilo especial para el enlace de contacto */
.contact-link {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: rgba(46, 204, 113, 0.9) !important;
    font-weight: 600;
}

.contact-link:hover {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71 !important;
    border-color: #2ecc71;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

/* Modal principal FAQ */
.faq-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 15000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-modal.show {
    display: flex;
    opacity: 1;
}

.faq-modal-content {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 107, 157, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.faq-modal.show .faq-modal-content {
    transform: scale(1);
}

/* Header del modal FAQ */
.faq-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 107, 157, 0.3);
    flex-shrink: 0;
}

.faq-modal-title {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.faq-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-close-btn:hover {
    background: rgba(255, 107, 157, 0.2);
    color: #ff6b9d;
    transform: rotate(90deg);
}

/* Cuerpo del modal con scroll */
.faq-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Selector de idioma en FAQ */
.faq-language-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.faq-lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.faq-lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.faq-lang-btn.active {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: #ffffff;
    border-color: #ff6b9d;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

/* Sección del botón scroll - NUEVA */
.faq-scroll-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

/* Contenido de idiomas */
.faq-content {
    display: none;
}

.faq-content.active {
    display: block;
}

/* Preguntas y respuestas */
.faq-item {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 107, 157, 0.05);
    border-color: rgba(255, 107, 157, 0.2);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 16px;
    font-weight: bold;
    color: #ff6b9d;
    margin-bottom: 10px;
    line-height: 1.4;
}

.faq-answer {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Sección de contacto */
.faq-contact-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(196, 69, 105, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 157, 0.3);
}

.faq-contact-title {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b9d;
    text-align: center;
    margin-bottom: 20px;
}

.faq-contact-intro {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 14px;
}

/* Botón para ir al formulario */
.scroll-to-form-btn {
    display: block;
    margin: 0 auto;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.scroll-to-form-btn:hover {
    background: linear-gradient(135deg, #58d68d, #2ecc71);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

/* Formulario de contacto */
.faq-contact-form {
    display: grid;
    gap: 15px;
}

.faq-form-group {
    display: flex;
    flex-direction: column;
}

.faq-form-label {
    color: #ff6b9d;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.faq-form-input,
.faq-form-textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.faq-form-input:focus,
.faq-form-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

.faq-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.faq-form-input::placeholder,
.faq-form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.faq-submit-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.faq-submit-btn:hover {
    background: linear-gradient(135deg, #58d68d, #2ecc71);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

.faq-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Estados del formulario */
.form-sending {
    opacity: 0.7;
    pointer-events: none;
}

.form-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
}

.form-error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .faq-modal-header {
        padding: 20px;
    }
    
    .faq-modal-title {
        font-size: 20px;
    }
    
    .faq-modal-body {
        padding: 20px;
    }
    
    .faq-language-selector {
        flex-direction: column;
        gap: 8px;
    }
    
    .faq-lang-btn {
        padding: 10px 15px;
    }
    
    .faq-item {
        padding: 15px;
    }
    
    .faq-contact-section {
        padding: 20px;
    }
    
    .faq-links-container {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .faq-modal-content {
        width: 98%;
        border-radius: 15px;
    }
    
    .faq-modal-header {
        padding: 15px;
    }
    
    .faq-modal-title {
        font-size: 18px;
    }
    
    .faq-modal-body {
        padding: 15px;
    }
    
    .faq-question {
        font-size: 15px;
    }
    
    .faq-answer {
        font-size: 13px;
    }
    
    .faq-link {
        font-size: 13px;
        padding: 6px;
    }
}