/* ============================================================
   GSC FAQ Accordion — style.css v1.0.0
   BEM: .nc-faq
   Breakpoint mobile: ≤ 767px
   ============================================================ */

/* ---- Variables ---- */
.nc-faq {
    --faq-bg:           #171669;
    --faq-white:        #FAFAFA;
    --faq-white-80:     rgba(250, 250, 250, 0.8);
    --faq-white-40:     rgba(250, 250, 250, 0.4);
    --faq-blue:         #2F3BE4;
    --faq-label-border: #2F3BE4;
    --faq-label-bg:     rgba(42, 52, 203, 0.1);
    --faq-font:         'Quicksand', sans-serif;
    --faq-radius-card:  24px;
    --faq-radius-label: 16px;
    --faq-radius-btn:   100px;
}

/* ---- Wrapper externo ---- */
.nc-faq {
    box-sizing: border-box;
    padding: 56px 72px;
    font-family: var(--faq-font);
}

/* ---- Card ---- */
.nc-faq__card {
    background-color: var(--faq-bg);
    border-radius: var(--faq-radius-card);
    padding: 56px 72px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   COLUMNA IZQUIERDA
   ============================================================ */
.nc-faq__left {
    display: flex;
    flex-direction: column;
    gap: 64px;
    align-items: flex-start;
    flex-shrink: 0;
}

/* Encabezado: badge + título */
.nc-faq__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

/* Badge / Label */
.nc-faq__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--faq-label-bg);
    border: 1px solid var(--faq-label-border);
    border-radius: var(--faq-radius-label);
    padding: 10px 20px;
    color: var(--faq-white);
    font-family: var(--faq-font);
    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Título */
.nc-faq__title {
    color: var(--faq-white);
    font-family: var(--faq-font);
    font-size: 40px;
    font-weight: 500;
    line-height: 44px;
    letter-spacing: -0.8px;
    max-width: 416px;
    margin: 0;
    padding: 0;
}

/* Footer izquierdo: subtítulo + botón desktop */
.nc-faq__footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.nc-faq__subtitle {
    color: var(--faq-white-80);
    font-family: var(--faq-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin: 0;
    padding: 0;
}

/* ============================================================
   BOTÓN (desktop + mobile)
   ============================================================ */
.nc-faq__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--faq-white);
    border-radius: var(--faq-radius-btn);
    padding: 12px 24px;
    color: var(--faq-blue);
    font-family: var(--faq-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: -0.2px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    transition: opacity 0.2s ease;
}

.nc-faq__btn:hover {
    opacity: 0.9;
    text-decoration: none;
    color: var(--faq-blue);
}

/* En desktop: botón desktop visible, botón mobile oculto */
.nc-faq__btn--mobile {
    display: none;
}

/* ============================================================
   LISTA DE PREGUNTAS (columna derecha desktop)
   ============================================================ */
.nc-faq__list {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    max-width: 636px;
}

/* Item */
.nc-faq__item {
    width: 100%;
    border-bottom: 1px solid var(--faq-white-40);
    padding-bottom: 32px;
    padding-top: 0;
    margin-top: 24px;
}

.nc-faq__item:first-child {
    margin-top: 0;
}

.nc-faq__item:last-child {
    border-bottom: none;
}

/* Botón de pregunta (row: texto + icono) */
.nc-faq .nc-faq__question {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    background: none !important;
    background-color: transparent !important;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    box-shadow: none !important;
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.nc-faq .nc-faq__question:hover,
.nc-faq .nc-faq__question:focus,
.nc-faq .nc-faq__question:active {
    background: none !important;
    background-color: transparent !important;
    color: var(--faq-white) !important;
    box-shadow: none !important;
    outline: none !important;
}

.nc-faq__question-text {
    color: var(--faq-white);
    font-family: var(--faq-font);
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    flex: 1 0 0;
}

/* Iconos */
.nc-faq__icon {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--faq-white);
    transition: transform 0.2s ease;
}

/* Por defecto: plus visible, minus oculto */
.nc-faq__icon--plus  { display: block; }
.nc-faq__icon--minus { display: none; }

/* Estado abierto */
.nc-faq__item--open .nc-faq__icon--plus  { display: none; }
.nc-faq__item--open .nc-faq__icon--minus { display: block; }

/* Respuesta */
.nc-faq__answer {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding-top 0.25s ease;
    padding-top: 0;
}

.nc-faq__item--open .nc-faq__answer {
    max-height: 400px;
    opacity: 1;
    padding-top: 8px;
}

.nc-faq__answer p {
    color: var(--faq-white-80);
    font-family: var(--faq-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin: 0;
    padding: 0;
}



/* ============================================================
   MOBILE — ≤ 767px
   ============================================================ */
@media (max-width: 767px) {

    /* Sección exterior */
    .nc-faq {
        padding: 48px 16px;
    }

    /* Card: columna única */
    .nc-faq__card {
        flex-direction: column;
        padding: 16px;
        gap: 40px;
    }

    /* Columna izquierda: ahora solo header (badge + título) */
    .nc-faq__left {
        gap: 24px;
        width: 100%;
    }

    /* Badge sin fondo, borde más claro */
    .nc-faq__label {
        background-color: transparent;
        border-color: #4450DB;
    }

    /* Título más pequeño */
    .nc-faq__title {
        font-size: 24px;
        line-height: 24px;
        letter-spacing: -0.48px;
        max-width: 100%;
    }

    /* Footer (subtítulo + btn desktop) oculto en mobile */
    .nc-faq__footer {
        display: none;
    }

    /* Lista ocupa todo el ancho */
    .nc-faq__list {
        width: 100%;
    }

    /* Item: padding-bottom menor */
    .nc-faq__item {
        padding-bottom: 24px;
        margin-top: 24px;
    }

    .nc-faq__item:first-child {
        margin-top: 0;
    }

    /* Pregunta: icono centrado verticalmente */
    .nc-faq .nc-faq__question {
        align-items: center;
        gap: 20px;
    }

    /* Pregunta: texto más pequeño */
    .nc-faq__question-text {
        font-size: 16px;
    }

    /* Botón mobile: visible y ancho completo */
    .nc-faq__btn--mobile {
        display: flex;
        width: 100%;
        text-align: center;
        justify-content: center;
        line-height: 20px;
    }
}
