/* --- ESTILOS PÁGINA FAQ --- */

.faq-page {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
    padding-top: 100px;
    /* Header spacing */
    padding-bottom: 80px;
    color: #333;
}

/* Header */
.faq-header {
    text-align: center;
    padding: 40px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-subtitle {
    display: inline-block;
    color: #0d47a1;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    background: #e3f2fd;
    padding: 5px 12px;
    border-radius: 20px;
}

.faq-header h1 {
    font-size: 2.8rem;
    margin: 0 0 15px;
    color: #1a1a1a;
}

.faq-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Layout Grid */
.faq-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    padding: 0 20px;
}

/* Sidebar */
.faq-sidebar {
    position: sticky;
    top: 120px;
    /* Ajustar según la altura de tu header fijo */
    height: fit-content;
}

.faq-sidebar nav {
    display: flex;
    flex-direction: column;
    border-left: 2px solid #eee;
}

.faq-nav-link {
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    margin-left: -2px;
}

.faq-nav-link:hover,
.faq-nav-link.active {
    color: #0d47a1;
    border-left-color: #0d47a1;
    background: linear-gradient(90deg, #f0f7ff 0%, transparent 100%);
}

.faq-contact-box {
    margin-top: 40px;
    background: #0d47a1;
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.faq-contact-box h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.faq-contact-box p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-contact-small {
    display: inline-block;
    background: white;
    color: #0d47a1;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.btn-contact-small:hover {
    transform: translateY(-2px);
}

/* Content Sections */
.faq-section {
    margin-bottom: 60px;
    scroll-margin-top: 120px;
}

.faq-section h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Accordion */
.faq-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: #0d47a1;
}

.faq-question .icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: #0d47a1;
    transition: transform 0.3s;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-question {
    color: #0d47a1;
    background: #fdfdfd;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
    color: #555;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
    max-height: 500px;
    /* Altura máxima suficiente */
}

/* Listas dentro de respuestas */
.faq-answer ul,
.faq-answer ol {
    padding-left: 20px;
    margin: 10px 0;
}

.faq-answer li {
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    .faq-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-sidebar {
        position: static;
        height: auto;
    }

    .faq-sidebar nav {
        flex-direction: row;
        border-left: none;
        border-bottom: 2px solid #eee;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .faq-nav-link {
        border-left: none;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
        margin-left: 0;
        margin-bottom: -12px;
    }

    .faq-nav-link:hover,
    .faq-nav-link.active {
        border-left: none;
        border-bottom-color: #0d47a1;
        background: none;
    }

    .faq-contact-box {
        display: none;
    }

    /* Ocultar box lateral en móvil */
}