/* ==========================================================================
   Markad Publicidad Estudio — Widget híbrido de contacto
   ========================================================================== */


/* ==========================================================================
   Componente
   ========================================================================== */

.mk-contact-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    color: var(--mk-text-primary);
    font-family: var(--mk-font-body);
}


/* ==========================================================================
   Botón flotante
   ========================================================================== */

.mk-contact-widget__launcher {
    position: relative;
    z-index: 2;
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 7px 20px 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--mk-border-radius-pill);
    color: var(--mk-white);
    background: var(--mk-indigo-900);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow:
        0 18px 42px
        rgba(8, 13, 38, 0.26);
    transition:
        border-color 280ms ease,
        background-color 280ms ease,
        box-shadow 280ms ease,
        transform 280ms ease;
}

.mk-contact-widget__launcher:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: var(--mk-magenta-700);
    box-shadow:
        0 20px 45px
        rgba(8, 13, 38, 0.3);
    transform: translateY(-2px);
}

.mk-contact-widget__launcher:focus-visible {
    outline: 3px solid rgba(189, 57, 220, 0.42);
    outline-offset: 4px;
}


/* --------------------------------------------------------------------------
   Icono del botón
   -------------------------------------------------------------------------- */

.mk-contact-widget__launcher-icon {
    position: relative;
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--mk-indigo-950);
    background: var(--mk-white);
}

.mk-contact-widget__launcher-icon svg {
    position: absolute;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition:
        opacity 240ms ease,
        transform 300ms ease;
}

.mk-contact-widget__icon-chat {
    opacity: 1;
    transform:
        scale(1)
        rotate(0);
}

.mk-contact-widget__icon-close {
    opacity: 0;
    transform:
        scale(0.65)
        rotate(-45deg);
}

.mk-contact-widget.is-open
.mk-contact-widget__icon-chat {
    opacity: 0;
    transform:
        scale(0.65)
        rotate(45deg);
}

.mk-contact-widget.is-open
.mk-contact-widget__icon-close {
    opacity: 1;
    transform:
        scale(1)
        rotate(0);
}


/* ==========================================================================
   Panel
   ========================================================================== */

.mk-contact-widget__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 16px);
    display: flex;
    width: min(420px, calc(100vw - 32px));
    max-height: min(720px, calc(100vh - 120px));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: var(--mk-white);
    box-shadow:
        0 30px 80px
        rgba(8, 13, 38, 0.3);
    opacity: 0;
    visibility: hidden;
    transform:
        translate3d(0, 16px, 0)
        scale(0.975);
    transform-origin: right bottom;
    transition:
        opacity 280ms ease,
        visibility 280ms ease,
        transform 360ms cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.mk-contact-widget__panel[hidden] {
    display: none;
}

.mk-contact-widget.is-open
.mk-contact-widget__panel {
    opacity: 1;
    visibility: visible;
    transform:
        translate3d(0, 0, 0)
        scale(1);
}


/* ==========================================================================
   Encabezado del panel
   ========================================================================== */

.mk-contact-widget__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 18px;
    color: var(--mk-white);
    background: var(--mk-indigo-950);
}


/* --------------------------------------------------------------------------
   Marca
   -------------------------------------------------------------------------- */

.mk-contact-widget__brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.mk-contact-widget__brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--mk-white);
    background: var(--mk-indigo-800);
    font-family: var(--mk-font-heading);
    font-size: 1.05rem;
    font-weight: 500;
}

.mk-contact-widget__brand-mark span {
    color: var(--mk-magenta-500);
}

.mk-contact-widget__brand-name,
.mk-contact-widget__availability {
    display: block;
}

.mk-contact-widget__brand-name {
    color: var(--mk-white);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
}

.mk-contact-widget__availability {
    position: relative;
    margin-top: 3px;
    padding-left: 12px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
}

.mk-contact-widget__availability::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mk-magenta-500);
    content: "";
    transform: translateY(-50%);
}


/* --------------------------------------------------------------------------
   Cerrar
   -------------------------------------------------------------------------- */

.mk-contact-widget__close {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    color: var(--mk-white);
    background: transparent;
    cursor: pointer;
    transition:
        border-color 260ms ease,
        background-color 260ms ease,
        transform 260ms ease;
}

.mk-contact-widget__close svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.mk-contact-widget__close:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(4deg);
}

.mk-contact-widget__close:focus-visible {
    outline: 3px solid rgba(189, 57, 220, 0.42);
    outline-offset: 3px;
}


/* ==========================================================================
   Cuerpo desplazable
   ========================================================================== */

.mk-contact-widget__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 21px;
    overscroll-behavior: contain;
    scrollbar-color:
        rgba(16, 26, 69, 0.25)
        transparent;
    scrollbar-width: thin;
}

.mk-contact-widget__body::-webkit-scrollbar {
    width: 6px;
}

.mk-contact-widget__body::-webkit-scrollbar-track {
    background: transparent;
}

.mk-contact-widget__body::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(16, 26, 69, 0.22);
}


/* ==========================================================================
   Introducción
   ========================================================================== */

.mk-contact-widget__introduction {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.mk-contact-widget__avatar {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--mk-white);
    background: var(--mk-magenta-700);
    font-family: var(--mk-font-heading);
    font-size: 0.9rem;
    font-weight: 700;
}

.mk-contact-widget__welcome {
    min-width: 0;
    padding: 14px 15px;
    border-radius: 4px 17px 17px 17px;
    background: rgba(16, 26, 69, 0.055);
}

.mk-contact-widget__heading {
    margin: 0;
    color: var(--mk-indigo-950);
    font-family: var(--mk-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.mk-contact-widget__welcome-message {
    margin: 7px 0 0;
    color: var(--mk-text-secondary);
    font-size: 0.83rem;
    line-height: 1.55;
}


/* ==========================================================================
   Formulario
   ========================================================================== */

.mk-contact-widget__form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}


/* ==========================================================================
   Servicios
   ========================================================================== */

.mk-contact-widget__services {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.mk-contact-widget__legend {
    margin-bottom: 10px;
    color: var(--mk-indigo-950);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
}

.mk-contact-widget__service-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}


/* --------------------------------------------------------------------------
   Selector de servicio
   -------------------------------------------------------------------------- */

.mk-contact-widget__service {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.mk-contact-widget__service-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.mk-contact-widget__service-label {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid rgba(16, 26, 69, 0.13);
    border-radius: var(--mk-border-radius-pill);
    color: var(--mk-indigo-900);
    background: var(--mk-white);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    transition:
        border-color 240ms ease,
        color 240ms ease,
        background-color 240ms ease,
        box-shadow 240ms ease,
        transform 240ms ease;
}

.mk-contact-widget__service:hover
.mk-contact-widget__service-label {
    border-color: rgba(163, 44, 204, 0.48);
    color: var(--mk-magenta-700);
    transform: translateY(-1px);
}

.mk-contact-widget__service-input:checked
+ .mk-contact-widget__service-label {
    border-color: var(--mk-indigo-900);
    color: var(--mk-white);
    background: var(--mk-indigo-900);
    box-shadow:
        0 8px 18px
        rgba(16, 26, 69, 0.14);
}

.mk-contact-widget__service-input:focus-visible
+ .mk-contact-widget__service-label {
    outline: 3px solid rgba(163, 44, 204, 0.3);
    outline-offset: 2px;
}


/* ==========================================================================
   Campos
   ========================================================================== */

.mk-contact-widget__field {
    display: grid;
    gap: 7px;
}

.mk-contact-widget__label {
    color: var(--mk-indigo-950);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.3;
}

.mk-contact-widget__control {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid rgba(16, 26, 69, 0.14);
    border-radius: 11px;
    outline: 0;
    color: var(--mk-indigo-950);
    background: var(--mk-white);
    font: inherit;
    font-size: 0.86rem;
    line-height: 1.4;
    transition:
        border-color 240ms ease,
        box-shadow 240ms ease,
        background-color 240ms ease;
}

.mk-contact-widget__control::placeholder {
    color: rgba(16, 26, 69, 0.48);
}

.mk-contact-widget__control:hover {
    border-color: rgba(16, 26, 69, 0.26);
}

.mk-contact-widget__control:focus {
    border-color: var(--mk-magenta-600);
    box-shadow:
        0 0 0 4px
        rgba(163, 44, 204, 0.1);
}

.mk-contact-widget__control[aria-invalid="true"] {
    border-color: #c43d53;
    background: rgba(196, 61, 83, 0.035);
}

.mk-contact-widget__textarea {
    min-height: 106px;
    resize: vertical;
}


/* --------------------------------------------------------------------------
   Mensajes de validación
   -------------------------------------------------------------------------- */

.mk-contact-widget__field-error {
    display: block;
    min-height: 0;
    color: #a8293d;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
}

.mk-contact-widget__field-error:empty {
    display: none;
}


/* ==========================================================================
   Privacidad
   ========================================================================== */

.mk-contact-widget__privacy {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.mk-contact-widget__privacy-input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 2px 0 0;
    accent-color: var(--mk-magenta-700);
}

.mk-contact-widget__privacy-label {
    color: var(--mk-text-secondary);
    font-size: 0.7rem;
    line-height: 1.5;
}

.mk-contact-widget__privacy-label a {
    color: var(--mk-magenta-700);
    font-weight: 800;
    text-decoration: none;
}

.mk-contact-widget__privacy-label a:hover {
    text-decoration: underline;
}

.mk-contact-widget__privacy-input:focus-visible {
    outline: 3px solid rgba(163, 44, 204, 0.3);
    outline-offset: 3px;
}


/* ==========================================================================
   Campo antispam
   ========================================================================== */

.mk-contact-widget__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* ==========================================================================
   Botón de envío
   ========================================================================== */

.mk-contact-widget__submit {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 7px 7px 19px;
    border: 1px solid var(--mk-magenta-700);
    border-radius: var(--mk-border-radius-pill);
    color: var(--mk-white);
    background: var(--mk-magenta-700);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow:
        0 12px 28px
        rgba(163, 44, 204, 0.2);
    transition:
        border-color 260ms ease,
        color 260ms ease,
        background-color 260ms ease,
        box-shadow 260ms ease,
        transform 260ms ease;
}

.mk-contact-widget__submit-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--mk-magenta-700);
    background: var(--mk-white);
    transition:
        color 260ms ease,
        background-color 260ms ease,
        transform 260ms ease;
}

.mk-contact-widget__submit-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mk-contact-widget__submit:hover {
    border-color: var(--mk-indigo-900);
    background: var(--mk-indigo-900);
    box-shadow:
        0 15px 32px
        rgba(8, 13, 38, 0.2);
    transform: translateY(-1px);
}

.mk-contact-widget__submit:hover
.mk-contact-widget__submit-icon {
    color: var(--mk-indigo-900);
    transform: translateX(2px);
}

.mk-contact-widget__submit:focus-visible {
    outline: 3px solid rgba(163, 44, 204, 0.34);
    outline-offset: 4px;
}

.mk-contact-widget__submit:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}


/* --------------------------------------------------------------------------
   Estado de carga
   -------------------------------------------------------------------------- */

.mk-contact-widget__submit.is-loading
.mk-contact-widget__submit-icon {
    animation:
        mkContactWidgetPulse
        900ms
        ease-in-out
        infinite;
}

@keyframes mkContactWidgetPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.86);
    }

}


/* ==========================================================================
   Estado general
   ========================================================================== */

.mk-contact-widget__status {
    display: none;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
}

.mk-contact-widget__status:not(:empty) {
    display: block;
}

.mk-contact-widget__status.is-success {
    color: #17603a;
    background: #edf9f2;
}

.mk-contact-widget__status.is-error {
    color: #9f283c;
    background: #fff0f2;
}

.mk-contact-widget__status.is-info {
    color: var(--mk-indigo-900);
    background: rgba(16, 26, 69, 0.07);
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 820px) {

    .mk-contact-widget {
        right: 18px;
        bottom: 18px;
    }

    .mk-contact-widget__panel {
        max-height: calc(100vh - 105px);
    }

}


/* ==========================================================================
   Móvil
   ========================================================================== */

@media (max-width: 600px) {

    .mk-contact-widget {
        right: 12px;
        bottom:
            max(
                12px,
                env(safe-area-inset-bottom)
            );
        left: 12px;
    }

    .mk-contact-widget__launcher {
        min-height: 54px;
        margin-left: auto;
        padding: 6px;
        border-radius: 50%;
    }

    .mk-contact-widget__launcher-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .mk-contact-widget__launcher-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .mk-contact-widget__panel {
        right: 0;
        bottom: calc(100% + 12px);
        width: 100%;
        max-height:
            calc(
                100dvh
                - 94px
                - env(safe-area-inset-bottom)
            );
        border-radius: 19px;
        transform-origin: right bottom;
    }

    .mk-contact-widget__header {
        padding: 15px 16px;
    }

    .mk-contact-widget__body {
        padding: 18px 17px 20px;
    }

    .mk-contact-widget__welcome {
        padding: 13px 14px;
    }

    .mk-contact-widget__service-options {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 2px 2px 8px;
        scroll-padding-inline: 2px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .mk-contact-widget__service-options::-webkit-scrollbar {
        display: none;
    }

    .mk-contact-widget__service {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

}


/* ==========================================================================
   Móvil pequeño
   ========================================================================== */

@media (max-width: 390px) {

    .mk-contact-widget {
        right: 8px;
        left: 8px;
    }

    .mk-contact-widget__body {
        padding-inline: 15px;
    }

    .mk-contact-widget__heading {
        font-size: 1rem;
    }

    .mk-contact-widget__welcome-message {
        font-size: 0.8rem;
    }

}


/* ==========================================================================
   Movimiento reducido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .mk-contact-widget__launcher,
    .mk-contact-widget__launcher-icon svg,
    .mk-contact-widget__panel,
    .mk-contact-widget__close,
    .mk-contact-widget__service-label,
    .mk-contact-widget__control,
    .mk-contact-widget__submit,
    .mk-contact-widget__submit-icon {
        animation: none;
        transition: none;
    }

}

/* ==========================================================================
   Mensaje proactivo del widget
   ========================================================================== */

.mk-contact-widget__attention {
    position: absolute;
    right: 0;
    bottom: calc(100% + 16px);
    width: min(330px, calc(100vw - 32px));
    pointer-events: none;
}

.mk-contact-widget__attention[hidden],
.mk-contact-widget__typing[hidden],
.mk-contact-widget__attention-message[hidden] {
    display: none;
}


/* ==========================================================================
   Estado “Markad está escribiendo”
   ========================================================================== */

.mk-contact-widget__typing {
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 10px 14px 10px 10px;
    border: 1px solid rgba(16, 26, 69, 0.11);
    border-radius: 18px 18px 4px 18px;
    background: var(--mk-white);
    box-shadow:
        0 18px 42px
        rgba(8, 13, 38, 0.16);
    opacity: 0;
    transform:
        translate3d(0, 10px, 0)
        scale(0.97);
    transform-origin: right bottom;
    transition:
        opacity 280ms ease,
        transform 360ms cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.mk-contact-widget__typing.is-visible {
    opacity: 1;
    transform:
        translate3d(0, 0, 0)
        scale(1);
}


/* --------------------------------------------------------------------------
   Avatar
   -------------------------------------------------------------------------- */

.mk-contact-widget__typing-avatar,
.mk-contact-widget__attention-avatar {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--mk-white);
    background: var(--mk-magenta-700);
    font-family: var(--mk-font-heading);
    font-size: 0.82rem;
    font-weight: 700;
}


/* --------------------------------------------------------------------------
   Información de escritura
   -------------------------------------------------------------------------- */

.mk-contact-widget__typing-content {
    display: flex;
    align-items: center;
    gap: 9px;
}

.mk-contact-widget__typing-label {
    color: var(--mk-indigo-900);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
}


/* --------------------------------------------------------------------------
   Puntos animados
   -------------------------------------------------------------------------- */

.mk-contact-widget__typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mk-contact-widget__typing-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mk-magenta-600);
    animation:
        mkContactTypingDot
        1.1s
        ease-in-out
        infinite;
}

.mk-contact-widget__typing-dots span:nth-child(2) {
    animation-delay: 140ms;
}

.mk-contact-widget__typing-dots span:nth-child(3) {
    animation-delay: 280ms;
}

@keyframes mkContactTypingDot {

    0%,
    60%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }

}


/* ==========================================================================
   Mensaje proactivo
   ========================================================================== */

.mk-contact-widget__attention-message {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid rgba(16, 26, 69, 0.11);
    border-radius: 20px 20px 4px 20px;
    color: var(--mk-indigo-950);
    background: var(--mk-white);
    font: inherit;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
    box-shadow:
        0 20px 48px
        rgba(8, 13, 38, 0.18);
    opacity: 0;
    transform:
        translate3d(0, 12px, 0)
        scale(0.965);
    transform-origin: right bottom;
    transition:
        border-color 280ms ease,
        box-shadow 280ms ease,
        opacity 280ms ease,
        transform 380ms cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.mk-contact-widget__attention-message.is-visible {
    opacity: 1;
    transform:
        translate3d(0, 0, 0)
        scale(1);
}

.mk-contact-widget__attention-message:hover {
    border-color: rgba(163, 44, 204, 0.35);
    box-shadow:
        0 22px 52px
        rgba(8, 13, 38, 0.21);
    transform:
        translate3d(0, -2px, 0)
        scale(1);
}

.mk-contact-widget__attention-message:focus-visible {
    outline: 3px solid rgba(163, 44, 204, 0.32);
    outline-offset: 4px;
}


/* --------------------------------------------------------------------------
   Texto
   -------------------------------------------------------------------------- */

.mk-contact-widget__attention-text {
    flex: 1 1 auto;
    color: var(--mk-indigo-950);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.48;
}


/* --------------------------------------------------------------------------
   Flecha
   -------------------------------------------------------------------------- */

.mk-contact-widget__attention-arrow {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--mk-white);
    background: var(--mk-indigo-900);
    transition:
        color 260ms ease,
        background-color 260ms ease,
        transform 260ms ease;
}

.mk-contact-widget__attention-arrow svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mk-contact-widget__attention-message:hover
.mk-contact-widget__attention-arrow {
    color: var(--mk-white);
    background: var(--mk-magenta-700);
    transform: translateX(2px);
}


/* ==========================================================================
   Pulso sutil del botón
   ========================================================================== */

.mk-contact-widget.has-attention
.mk-contact-widget__launcher {
    animation:
        mkContactLauncherAttention
        1.8s
        ease-in-out
        2;
}

.mk-contact-widget.has-attention
.mk-contact-widget__launcher-icon {
    animation:
        mkContactLauncherIcon
        1.8s
        ease-in-out
        2;
}

@keyframes mkContactLauncherAttention {

    0%,
    100% {
        box-shadow:
            0 18px 42px
            rgba(8, 13, 38, 0.26);
        transform: translateY(0);
    }

    45% {
        box-shadow:
            0 20px 48px
            rgba(163, 44, 204, 0.3);
        transform: translateY(-2px);
    }

}

@keyframes mkContactLauncherIcon {

    0%,
    100% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.06);
    }

}


/* ==========================================================================
   Móvil
   ========================================================================== */

@media (max-width: 600px) {

    .mk-contact-widget__attention {
        right: 0;
        bottom: calc(100% + 12px);
        width: min(310px, calc(100vw - 24px));
    }

    .mk-contact-widget__typing {
        padding: 9px 12px 9px 9px;
    }

    .mk-contact-widget__typing-label {
        font-size: 0.69rem;
    }

    .mk-contact-widget__attention-message {
        padding: 11px;
        border-radius: 18px 18px 4px 18px;
    }

    .mk-contact-widget__attention-text {
        font-size: 0.76rem;
    }

}


/* ==========================================================================
   Movimiento reducido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .mk-contact-widget__typing,
    .mk-contact-widget__attention-message,
    .mk-contact-widget.has-attention
    .mk-contact-widget__launcher,
    .mk-contact-widget.has-attention
    .mk-contact-widget__launcher-icon,
    .mk-contact-widget__typing-dots span {
        animation: none;
        transition: none;
    }

    .mk-contact-widget__typing.is-visible,
    .mk-contact-widget__attention-message.is-visible {
        opacity: 1;
        transform: none;
    }

}