/* Estilos para la página de Preguntas Frecuentes */
:root {
    --fenix-red: #dd2629;
    --fenix-dark: #1c1c1c;
    --fenix-light: #f8f9fa;
    --fenix-blue: #00aeef;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, h6, .nav-link, .btn {
    font-family: 'Montserrat', sans-serif;
}

/* Navbar */
.navbar {
    background-color: var(--fenix-dark);
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 70px;
}

.nav-link {
    color: white !important;
    font-weight: 600;
    padding: 1.5rem 1rem;
    transition: all 0.3s;
    position: relative;
    font-size: calc(0.7rem + 0.2vw);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--fenix-red);
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--fenix-red) !important;
}

.navbar .btn-cliente {
    background-color: transparent;
    border: 2px solid var(--fenix-red);
    color: var(--fenix-red);
    font-weight: 700;
    transition: all 0.3s;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
}

.navbar .btn-cliente:hover {
    background-color: var(--fenix-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(221, 38, 41, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/img/banner-bg1.gif') center/cover;
    color: white;
    padding: 100px 0 70px;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.page-header h1 {
    font-weight: 800;
    margin-bottom: 1rem;
    animation: slideInUp 0.8s ease-out;
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    animation: slideInUp 0.8s ease-out 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Breadcrumb */
.custom-breadcrumb {
    background-color: transparent;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

.custom-breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s;
}

.custom-breadcrumb a:hover {
    color: var(--fenix-red);
}

/* FAQ Container */
.faq-container {
    padding: 80px 0;
}

/* FAQ Sidebar */
.faq-sidebar {
    position: sticky;
    top: 100px;
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    width: 100%;
    overflow: hidden;
    animation: slideInLeft 1s ease-out;
}

.faq-sidebar h3 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--fenix-dark);
    border-bottom: 2px solid rgba(221, 38, 41, 0.1);
    padding-bottom: 1rem;
}

.faq-categories {
    list-style: none;
    padding: 0;
}

.faq-categories li {
    margin-bottom: 0.3rem;
}

.faq-categories li a {
    display: block;
    padding: 0.8rem 1rem;
    color: #444;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.faq-categories li a:hover,
.faq-categories li a.active {
    background-color: rgba(221, 38, 41, 0.1);
    color: var(--fenix-red);
    transform: translateX(5px);
}

.faq-categories li a i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s;
}

.faq-categories li a:hover i,
.faq-categories li a.active i {
    color: var(--fenix-red);
}

/* Search Box */
.search-box {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease-out;
}

.search-box h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--fenix-dark);
}

.search-form {
    position: relative;
}

.search-form .form-control {
    padding-right: 45px;
    border-radius: 50px;
    border: 1px solid #ddd;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.search-form .btn {
    position: absolute;
    right: 0;
    top: 0;
    padding: 0.6rem 1rem;
    border-radius: 0 50px 50px 0;
    background-color: var(--fenix-red);
    border-color: var(--fenix-red);
    color: white;
    transition: all 0.3s;
}

.search-form .btn:hover {
    background-color: #b61e21;
}

.search-form .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(221, 38, 41, 0.25);
    border-color: var(--fenix-red);
}

/* Contact Widget */
.contact-widget {
    background-color: var(--fenix-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--fenix-red);
    animation: slideInLeft 1s ease-out 0.4s;
    animation-fill-mode: forwards;
    opacity: 0;
}

.contact-widget h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--fenix-dark);
}

.contact-widget p {
    margin-bottom: 1.5rem;
}

.contact-widget .btn {
    width: 100%;
    transition: all 0.3s;
}

.contact-widget .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-red {
    background-color: var(--fenix-red);
    border-color: var(--fenix-red);
    color: white !important;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-red:hover {
    background-color: #b61e21;
    border-color: #b61e21;
    color: white !important;
}

/* FAQ Content */
.faq-content h2 {
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    color: var(--fenix-dark);
    border-bottom: 2px solid rgba(221, 38, 41, 0.1);
    animation: slideInUp 0.8s ease-out;
}

/* Accordion FAQ */
.faq-accordion {
    margin-bottom: 3rem;
}

.faq-accordion .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    animation: slideInRight 0.8s ease-out;
    animation-fill-mode: forwards;
    opacity: 0;
}

.faq-accordion .accordion-item:nth-child(1) {
    animation-delay: 0.1s;
}

.faq-accordion .accordion-item:nth-child(2) {
    animation-delay: 0.2s;
}

.faq-accordion .accordion-item:nth-child(3) {
    animation-delay: 0.3s;
}

.faq-accordion .accordion-item:nth-child(4) {
    animation-delay: 0.4s;
}

.faq-accordion .accordion-item:nth-child(5) {
    animation-delay: 0.5s;
}

.faq-accordion .accordion-button {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--fenix-dark);
    background-color: white;
    transition: all 0.3s;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--fenix-red);
    background-color: white;
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(221, 38, 41, 0.1);
}

.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23dd2629'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: all 0.3s;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.faq-accordion .accordion-body {
    padding: 1.5rem;
    background-color: white;
    color: #444;
    line-height: 1.7;
}

.faq-accordion .accordion-body p {
    margin-bottom: 1rem;
}

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

.faq-accordion .accordion-body li {
    margin-bottom: 0.5rem;
}

.faq-accordion mark {
    background-color: rgba(221, 38, 41, 0.2);
    color: var(--fenix-dark);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

/* Popular Questions */
.popular-questions {
    margin-top: 3rem;
    animation: fadeIn 1s ease-out;
}

.popular-questions h3 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--fenix-dark);
    text-align: center;
}

.question-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-left: 3px solid var(--fenix-red);
    height: 100%;
    animation: scaleIn 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.question-card:nth-child(1) {
    animation-delay: 0.1s;
}

.question-card:nth-child(2) {
    animation-delay: 0.2s;
}

.question-card:nth-child(3) {
    animation-delay: 0.3s;
}

.question-card:nth-child(4) {
    animation-delay: 0.4s;
}

.question-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.question-card h4 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--fenix-dark);
}

.question-card p {
    color: #666;
    margin-bottom: 0;
}

/* Not Found Your Question Section */
.not-found-question {
    margin-top: 4rem;
    text-align: center;
    background-color: var(--fenix-light);
    border-radius: 10px;
    padding: 3rem 2rem;
    animation: fadeIn 1s ease-out;
}

.not-found-question h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--fenix-dark);
}

.not-found-question p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #666;
}

.not-found-question .btn-red {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.not-found-question .btn-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(221, 38, 41, 0.3);
}

/* FAQ Stats */
.faq-stats {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out;
}

.stat-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    margin-bottom: 2rem;
    animation: scaleIn 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.3s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.5s;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--fenix-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    color: #666;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--fenix-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: #b61e21;
    box-shadow: 0 8px 20px rgba(221, 38, 41, 0.4);
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: transparent;
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background-color: var(--fenix-red);
    width: 0%;
    transition: width 0.2s;
}

/* Ask Question Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background-color: var(--fenix-red);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: none;
    padding: 1.5rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 5px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(221, 38, 41, 0.25);
    border-color: var(--fenix-red);
}

/* Footer */
footer {
    background-color: var(--fenix-dark);
    color: white;
    padding: 80px 0 20px;
    margin-top: 80px;
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

footer h5::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--fenix-red);
    bottom: -10px;
    left: 0;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

footer ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    min-width: 20px;
    margin-right: 10px;
    margin-top: 5px;
    color: var(--fenix-red);
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    color: rgba(255,255,255,0.7);
    margin-right: 1rem;
    font-size: 1.5rem;
    transition: all 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--fenix-red);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: var(--fenix-dark);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .faq-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .stat-item {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .faq-content h2 {
        text-align: center;
    }
    
    .popular-questions h3 {
        text-align: center;
    }
    
    .stat-item {
        flex: 0 0 100%;
    }
    
    footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    footer h5 {
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
}