/* FAQ Styles - Consistente con el diseño de arrobaMail */

/* Header - Usa el mismo estilo que otras páginas (fondo oscuro como precios) */
#site-header {
    background-color: #151515 !important;
    padding: 10rem 0 4rem 0;
}

#site-header .section-description h1 {
    font-size: 3.8rem;
    color: #fefefe;
    font-weight: 600;
}

#site-header .section-description p {
    font-size: 1.8rem;
    color: #fefefe;
}

.faq-intro {
    margin-bottom: 3rem;
    text-align: center;
}

.faq-intro .lead {
    font-size: 1.8rem;
    color: #333333;
}

.faq-intro a {
    color: var(--primary);
    text-decoration: none;
}

.faq-intro a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Container de FAQs */
.faq-container {
    margin-bottom: 3rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.6rem;
    margin-bottom: 2rem;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, .1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, .15);
    border-color: var(--primary);
}

.faq-item.expanded {
    border-color: var(--primary);
    box-shadow: 0px 4px 20px 0px rgba(248, 165, 50, 0.2);
}

/* Pregunta */
.faq-question {
    display: flex;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-item.expanded .faq-question {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

/* Número de pregunta - Usa gradiente naranja del sitio */
.faq-number {
    flex-shrink: 0;
    width: 6rem;
    height: 6rem;
    background: #FDC830;
    background: -webkit-linear-gradient(to top, #F37335, #FDC830);
    background: linear-gradient(to top, #F37335, #FDC830);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 2.4rem;
    margin-right: 2rem;
}

/* Texto de la pregunta */
.faq-question-text {
    flex: 1;
    min-width: 0;
}

.faq-question-text h3 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
}

/* Toggle (flecha) */
.faq-toggle {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-toggle i {
    transition: transform 0.3s ease;
    font-size: 1.6rem;
}

/* Respuesta */
.faq-answer-wrapper {
    padding: 0 2rem 2rem 2rem;
}

.faq-resumen {
    padding-top: 1.5rem;
}

.faq-resumen p {
    color: #6c757d;
    line-height: 1.8;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.btn-ver-mas {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.6rem;
    text-decoration: none;
    transition: all 0.2s ease;
    background: none;
    border: none;
    padding: 0;
}

.btn-ver-mas:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.btn-ver-mas i {
    transition: transform 0.2s ease;
    font-size: 1.2rem;
}

.btn-ver-mas:hover i {
    transform: translateX(3px);
}

.faq-answer {
    padding-top: 1.5rem;
}

.faq-content {
    color: #333333;
    line-height: 1.8;
    font-size: 1.6rem;
}

.faq-content h4 {
    color: #333333;
    font-size: 2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.faq-content h4:first-child {
    margin-top: 0;
}

.faq-content ul,
.faq-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.faq-content li {
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    line-height: 1.8;
}

.faq-content p {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    line-height: 1.8;
}

.faq-content strong {
    font-weight: 600;
    color: #333333;
}

/* Imágenes */
.faq-image {
    text-align: center;
    margin: 2.5rem 0;
}

.faq-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.6rem;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, .1);
}

.faq-image p {
    font-size: 1.4rem;
    color: #6c757d;
    margin-top: 1rem;
}

/* Videos */
.faq-video {
    margin: 2.5rem 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0.6rem;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, .1);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Alertas (info, success, etc) */
.faq-content .alert {
    border-radius: 0.6rem;
    font-size: 1.6rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.faq-content .alert-info {
    background-color: #d7edff;
    border-color: #d7edff;
    color: #34abff;
}

.faq-content .alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Compartir */
.faq-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    margin-top: 2rem;
}

.faq-share .small {
    font-size: 1.4rem;
    color: #6c757d;
}

.faq-share .btn {
    font-size: 1.4rem;
    padding: 0.6rem 1.2rem;
}

/* CTA al final */
.faq-cta {
    background: #f8f9fa;
    border-radius: 0.6rem;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.faq-cta h4 {
    font-size: 2.6rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 1rem;
}

.faq-cta p {
    font-size: 1.6rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.faq-cta .btn {
    margin: 0 0.5rem;
    font-size: 1.6rem;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-question {
        padding: 1.5rem;
    }
    
    .faq-number {
        width: 5rem;
        height: 5rem;
        font-size: 2rem;
        margin-right: 1.5rem;
    }
    
    .faq-question-text h3 {
        font-size: 1.8rem;
    }
    
    .faq-answer-wrapper {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .faq-content h4 {
        font-size: 1.8rem;
    }
    
    .faq-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .faq-share .btn {
        margin-top: 0.8rem;
        margin-left: 0 !important;
    }
    
    .faq-cta {
        padding: 2rem 1.5rem;
    }
    
    .faq-cta h4 {
        font-size: 2.2rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer {
    animation: fadeIn 0.3s ease;
}

/* Accesibilidad */
.faq-question:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .faq-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .faq-item.expanded {
        border: 1px solid #000;
    }
    
    .faq-answer {
        display: block !important;
    }
    
    .faq-resumen {
        display: none !important;
    }
    
    .faq-toggle,
    .btn-ver-mas,
    .faq-share {
        display: none !important;
    }
}
