/* ==========================================================================
   Markad Publicidad Estudio — Preguntas frecuentes
   ========================================================================== */


/* ==========================================================================
   Sección
   ========================================================================== */

.mk-faqs {
    position: relative;
    overflow: hidden;
    color: var(--mk-text-primary);
    background: var(--mk-white);
}


/* --------------------------------------------------------------------------
   Contenedor
   -------------------------------------------------------------------------- */

.mk-faqs__container {
    padding-block: clamp(88px, 9vw, 140px);
}


/* ==========================================================================
   Encabezado
   ========================================================================== */

.mk-faqs__header {
    width: min(900px, 100%);
    margin-inline: auto;
    text-align: center;
}


/* --------------------------------------------------------------------------
   Etiqueta con líneas
   -------------------------------------------------------------------------- */

.mk-faqs__eyebrow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mk-faqs__eyebrow-line {
    display: block;
    width: 66px;
    height: 2px;
    border-radius: 2px;
    background: var(--mk-magenta-600);
}

.mk-faqs__eyebrow {
    color: var(--mk-magenta-700);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* --------------------------------------------------------------------------
   Título
   -------------------------------------------------------------------------- */

.mk-faqs__title {
    max-width: 900px;
    margin: 0 auto;
    color: var(--mk-indigo-950);
    font-family: var(--mk-font-heading);
    font-size: clamp(2.2rem, 4vw, 3.65rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.038em;
    text-wrap: balance;
}


/* --------------------------------------------------------------------------
   Descripción
   -------------------------------------------------------------------------- */

.mk-faqs__description {
    max-width: 720px;
    margin: 22px auto 0;
    color: var(--mk-text-secondary);
    font-size: 1.04375rem;
    line-height: 1.7;
    text-wrap: balance;
}


/* ==========================================================================
   Lista
   ========================================================================== */

.mk-faqs__list {
    width: min(960px, 100%);
    margin:
        clamp(48px, 5vw, 68px)
        auto
        0;
    overflow: hidden;
    border: 1px solid rgba(16, 26, 69, 0.14);
    border-radius: 8px;
    background: var(--mk-white);
    box-shadow:
        0 14px 38px
        rgba(8, 13, 38, 0.045);
}


/* ==========================================================================
   Elemento
   ========================================================================== */

.mk-faqs__item {
    position: relative;
    background: var(--mk-white);
}

.mk-faqs__item:not(:last-child) {
    border-bottom: 1px solid rgba(16, 26, 69, 0.12);
}


/* --------------------------------------------------------------------------
   Encabezado de la pregunta
   -------------------------------------------------------------------------- */

.mk-faqs__question-heading {
    margin: 0;
    font: inherit;
}


/* --------------------------------------------------------------------------
   Botón de pregunta
   -------------------------------------------------------------------------- */

.mk-faqs__question {
    display: flex;
    width: 100%;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 12px 14px 22px;
    border: 0;
    color: var(--mk-indigo-950);
    background: var(--mk-white);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        color 260ms ease,
        background-color 260ms ease;
}

.mk-faqs__question:hover {
    color: var(--mk-magenta-700);
    background: rgba(16, 26, 69, 0.025);
}

.mk-faqs__question:focus-visible {
    position: relative;
    z-index: 2;
    outline: 3px solid rgba(163, 44, 204, 0.28);
    outline-offset: -3px;
}

.mk-faqs__question-text {
    flex: 1 1 auto;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.45;
}


/* ==========================================================================
   Icono
   ========================================================================== */

.mk-faqs__icon {
    position: relative;
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 26, 69, 0.12);
    border-radius: 50%;
    color: var(--mk-white);
    background: var(--mk-indigo-900);
    box-shadow:
        0 7px 18px
        rgba(8, 13, 38, 0.12);
    transition:
        border-color 280ms ease,
        background-color 280ms ease,
        box-shadow 280ms ease,
        transform 320ms cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.mk-faqs__icon-line {
    position: absolute;
    width: 13px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
        opacity 260ms ease,
        transform 320ms ease;
}

.mk-faqs__icon-line:nth-child(2) {
    transform: rotate(90deg);
}


/* --------------------------------------------------------------------------
   Icono abierto
   -------------------------------------------------------------------------- */

.mk-faqs__item.is-open
.mk-faqs__icon {
    border-color: var(--mk-magenta-700);
    color: var(--mk-white);
    background: var(--mk-magenta-700);
    box-shadow:
        0 9px 21px
        rgba(163, 44, 204, 0.22);
    transform: rotate(180deg);
}

.mk-faqs__item.is-open
.mk-faqs__icon-line:nth-child(2) {
    opacity: 0;
    transform: rotate(90deg) scaleX(0);
}

.mk-faqs__item.is-open
.mk-faqs__question {
    color: var(--mk-magenta-700);
}


/* ==========================================================================
   Respuesta
   ========================================================================== */

/*
| Sin JavaScript las respuestas permanecen visibles.
| La clase has-faqs-js activa el comportamiento de acordeón.
*/

.mk-faqs__answer {
    display: block;
}

.mk-faqs__answer-inner {
    padding:
        0
        74px
        24px
        22px;
}

.mk-faqs__answer-inner p {
    max-width: 780px;
    margin: 0;
    color: var(--mk-text-secondary);
    font-size: 0.96rem;
    line-height: 1.72;
}


/* --------------------------------------------------------------------------
   Acordeón cuando JavaScript está activo
   -------------------------------------------------------------------------- */

.mk-faqs.has-faqs-js
.mk-faqs__answer {
    height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
        height 420ms cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),
        opacity 280ms ease,
        visibility 280ms ease;
}

.mk-faqs.has-faqs-js
.mk-faqs__item.is-open
.mk-faqs__answer {
    opacity: 1;
    visibility: visible;
}


/* ==========================================================================
   Detalle lateral activo
   ========================================================================== */

.mk-faqs__item::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--mk-magenta-600);
    content: "";
    opacity: 0;
    transform: scaleY(0);
    transform-origin: center;
    transition:
        opacity 280ms ease,
        transform 360ms ease;
}

.mk-faqs__item.is-open::before {
    opacity: 1;
    transform: scaleY(1);
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 820px) {

    .mk-faqs__container {
        padding-block: 78px;
    }

    .mk-faqs__header {
        width: min(720px, 100%);
    }

    .mk-faqs__list {
        margin-top: 48px;
    }

    .mk-faqs__question {
        min-height: 62px;
    }

}


/* ==========================================================================
   Móvil
   ========================================================================== */

@media (max-width: 600px) {

    .mk-faqs__container {
        padding-block: 64px;
    }

    .mk-faqs__eyebrow-row {
        gap: 9px;
        margin-bottom: 17px;
    }

    .mk-faqs__eyebrow-line {
        width: 36px;
    }

    .mk-faqs__eyebrow {
        font-size: 0.7rem;
    }

    .mk-faqs__title {
        font-size: clamp(2rem, 9vw, 2.7rem);
    }

    .mk-faqs__description {
        margin-top: 19px;
        font-size: 1rem;
    }

    .mk-faqs__list {
        margin-top: 40px;
        border-radius: 6px;
    }

    .mk-faqs__question {
        min-height: 68px;
        gap: 15px;
        padding:
            13px
            11px
            13px
            17px;
    }

    .mk-faqs__question-text {
        font-size: 0.9rem;
        line-height: 1.42;
    }

      .mk-faqs__icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .mk-faqs__answer-inner {
        padding:
            0
            17px
            22px;
    }

    .mk-faqs__answer-inner p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

}


/* ==========================================================================
   Móvil pequeño
   ========================================================================== */

@media (max-width: 390px) {

    .mk-faqs__title {
        font-size: 2rem;
    }

    .mk-faqs__question {
        padding-left: 15px;
    }

    .mk-faqs__question-text {
        font-size: 0.86rem;
    }

    .mk-faqs__answer-inner {
        padding-inline: 15px;
    }

}


/* ==========================================================================
   Movimiento reducido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .mk-faqs__question,
    .mk-faqs__icon,
    .mk-faqs__icon-line,
    .mk-faqs__answer,
    .mk-faqs__item::before {
        transition: none;
    }

}