/* ============================================================
   Página: Preguntas Frecuentes
   Colores institucionales: #00C1D7, #005481, #FFC700, #FFFFFF
   ============================================================ */

/* Cabecera / Hero */
.faq-hero {
    background: linear-gradient(135deg, #005481 0%, #00C1D7 100%);
    color: #ffffff;
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}

.faq-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 240px;
    height: 240px;
    background: rgba(255, 199, 0, 0.20);
    border-radius: 50%;
}

.faq-hero::before {
    content: "";
    position: absolute;
    left: -60px;
    top: -70px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}

.faq-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.faq-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.faq-hero h1 {
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 2.1rem;
    margin-bottom: 0.75rem;
}

.faq-hero p {
    opacity: 0.95;
    max-width: 640px;
    margin: 0 auto;
}

/* Contenedor principal */
.faq-wrapper {
    max-width: 1000px;
    margin: -42px auto 0;
    position: relative;
    z-index: 2;
    padding: 0 15px 60px;
}

.faq-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 44px rgba(0, 84, 129, 0.12);
    border: 1px solid #eef2f6;
    padding: 1.25rem 1.25rem;
}

/* Acordeón */
.faq-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #eef2f6;
}

.faq-accordion .accordion-item:last-child {
    border-bottom: none;
}

.faq-accordion .accordion-button {
    font-weight: 700;
    font-size: 1.02rem;
    color: #005481;
    background: #ffffff;
    padding: 1.1rem 1rem 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: none;
}

.faq-accordion .accordion-button .faq-num {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #00C1D7;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
}

.faq-accordion .accordion-button::after {
    margin-left: auto;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: #005481;
    background: #f8fafc;
}

.faq-accordion .accordion-button:not(.collapsed) .faq-num {
    background: #FFC700;
    color: #005481;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-accordion .accordion-body {
    color: #3f4a57;
    line-height: 1.8;
    padding: 0 1.5rem 1.4rem 4.4rem;
}

.faq-accordion .accordion-body p {
    margin-bottom: 0.85rem;
    text-align: justify;
}

.faq-accordion .accordion-body p:last-child {
    margin-bottom: 0;
}

.faq-accordion .accordion-body a {
    color: #005481;
    font-weight: 700;
    text-decoration: none;
}

.faq-accordion .accordion-body a:hover {
    color: #00C1D7;
    text-decoration: underline;
}

/* CTA de contacto */
.faq-cta {
    margin-top: 1.75rem;
    background: linear-gradient(135deg, #005481 0%, #0076a8 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 1.6rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.faq-cta h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.faq-cta p {
    margin: 0;
    opacity: 0.92;
    font-size: 0.9rem;
}

.faq-cta .btn {
    background: #FFC700;
    color: #005481;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    padding: 0.55rem 1.3rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.faq-cta .btn:hover {
    transform: translateY(-2px);
    color: #005481;
}

/* Botón volver */
.faq-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: #005481;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-back:hover {
    color: #00C1D7;
}

/* Responsive */
@media (max-width: 575.98px) {
    .faq-hero {
        padding: 48px 0 64px;
    }

    .faq-hero h1 {
        font-size: 1.5rem;
    }

    .faq-wrapper {
        margin-top: -30px;
    }

    .faq-accordion .accordion-body {
        padding: 0 1.1rem 1.2rem 1.1rem;
    }

    .faq-cta {
        text-align: center;
        justify-content: center;
    }
}
