/* ==========================================================================
   Markad Publicidad Estudio — Vitrina de soluciones
   ========================================================================== */

.mk-solutions {
    --solutions-dark: #091238;
    --solutions-dark-soft: #111d50;
    --solutions-accent: var(--color-accent, #bd32d4);
    --solutions-accent-dark: #9523b5;
    --solutions-text: #171c31;
    --solutions-muted: #667085;
    --solutions-line: #e1e5ef;
    --solutions-surface: #ffffff;
    --solutions-soft: #f6f7fb;
    --solutions-success: #16794b;
    --solutions-warning: #9a6700;
    --solutions-radius: 1.35rem;
    --solutions-shadow:
        0 1.2rem 3rem rgb(12 20 57 / 8%);

    position: relative;
    display: block;
    width: 100%;
    overflow: clip;
    color: var(--solutions-text);
    background: var(--solutions-surface);
    isolation: isolate;
}

.mk-solutions,
.mk-solutions *,
.mk-solutions *::before,
.mk-solutions *::after {
    box-sizing: border-box;
}


/* ==========================================================================
   Blindaje tipográfico
   ========================================================================== */

.mk-solutions h1,
.mk-solutions h2,
.mk-solutions h3,
.mk-solutions p,
.mk-solutions ul {
    padding: 0;
}

.mk-solutions h1,
.mk-solutions h2,
.mk-solutions h3 {
    color: inherit;
    font-family: inherit;
    text-transform: none;
}

.mk-solutions a {
    text-decoration: none;
}

.mk-solutions button,
.mk-solutions a {
    -webkit-tap-highlight-color: transparent;
}

.mk-solutions button {
    font: inherit;
}


/* ==========================================================================
   Hero
   ========================================================================== */

.mk-solutions .mk-solutions__hero {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    padding: clamp(5rem, 9vw, 8.5rem) 0;
    color: #ffffff;
    background-color: var(--solutions-dark);
    background-image: none;
}

.mk-solutions .mk-solutions__hero::before,
.mk-solutions .mk-solutions__hero::after {
    display: none;
    content: none;
}

.mk-solutions
.mk-solutions__hero
.mk-solutions__hero-container {
    position: relative;
    z-index: 1;
    display: block;
    width: min(calc(100% - 3rem), 1240px);
    max-width: 1240px;
    margin-inline: auto;
    padding: 0;
}


/* ==========================================================================
   Etiqueta del hero
   ========================================================================== */

.mk-solutions
.mk-solutions__hero-container
> .mk-solutions__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 1.3rem;
    padding: 0;
    color: var(--solutions-accent);
    background: transparent;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    line-height: 1.3;
    text-transform: uppercase;
}

.mk-solutions
.mk-solutions__hero-container
> .mk-solutions__eyebrow::before {
    display: block;
    width: 2rem;
    height: 2px;
    flex: 0 0 2rem;
    background: currentColor;
    content: "";
}


/* ==========================================================================
   Título del hero
   ========================================================================== */

.mk-solutions
.mk-solutions__hero-container
> .mk-solutions__title {
    display: block;
    width: 100%;
    max-width: 1050px;
    margin: 0;
    padding: 0;
    color: #ffffff;
    background: transparent;
    font-size: clamp(3rem, 6.3vw, 6.25rem);
    font-weight: 650;
    letter-spacing: -0.06em;
    line-height: 0.98;
    text-wrap: balance;
}

.mk-solutions
.mk-solutions__hero-container
> .mk-solutions__description {
    display: block;
    width: 100%;
    max-width: 760px;
    margin: 1.75rem 0 0;
    padding: 0;
    color: rgb(255 255 255 / 74%);
    background: transparent;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    font-weight: 500;
    line-height: 1.75;
}


/* ==========================================================================
   Acciones generales
   ========================================================================== */

.mk-solutions .mk-solutions__hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    margin: 2.35rem 0 0;
    padding: 0;
}

.mk-solutions .mk-solutions__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-height: 3.35rem;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 0.55rem 0.65rem 0.55rem 1.35rem;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color 220ms ease,
        background-color 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.mk-solutions .mk-solutions__button--primary {
    color: #ffffff;
    background: var(--solutions-accent);
    border-color: var(--solutions-accent);
}

.mk-solutions .mk-solutions__button--primary:hover,
.mk-solutions .mk-solutions__button--primary:focus-visible {
    color: #ffffff;
    background: var(--solutions-accent-dark);
    border-color: var(--solutions-accent-dark);
    box-shadow: 0 0.85rem 2rem rgb(189 50 212 / 24%);
    transform: translateY(-2px);
}

.mk-solutions .mk-solutions__button--secondary {
    padding-inline: 1.35rem;
    color: #ffffff;
    background: transparent;
    border-color: rgb(255 255 255 / 24%);
}

.mk-solutions .mk-solutions__button--secondary:hover,
.mk-solutions .mk-solutions__button--secondary:focus-visible {
    color: #ffffff;
    background: rgb(255 255 255 / 7%);
    border-color: rgb(255 255 255 / 48%);
    transform: translateY(-2px);
}


/* ==========================================================================
   Iconos de botones
   ========================================================================== */

.mk-solutions .mk-solutions__button-icon {
    display: grid;
    place-items: center;
    width: 2.15rem;
    min-width: 2.15rem;
    max-width: 2.15rem;
    height: 2.15rem;
    min-height: 2.15rem;
    max-height: 2.15rem;
    flex: 0 0 2.15rem;
    border-radius: 50%;
    color: currentColor;
    background: rgb(255 255 255 / 12%);
}

.mk-solutions .mk-solutions__button-icon svg {
    display: block;
    width: 1rem;
    max-width: 1rem;
    height: 1rem;
    max-height: 1rem;
}

.mk-solutions .mk-solutions__button-icon svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================================
   Catálogo
   ========================================================================== */

.mk-solutions .mk-solutions__catalog {
    position: relative;
    display: block;
    width: 100%;
    padding: clamp(5rem, 8vw, 8rem) 0;
    color: var(--solutions-text);
    background: var(--solutions-surface);
}

.mk-solutions
.mk-solutions__catalog
> .mk-container {
    display: block;
}


/* ==========================================================================
   Encabezado del catálogo
   ========================================================================== */

.mk-solutions .mk-solutions__catalog-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    align-items: end;
    gap: 3rem;
    width: 100%;
    margin: 0 0 2.5rem;
}

.mk-solutions .mk-solutions__catalog-heading > div {
    min-width: 0;
}

.mk-solutions .mk-solutions__catalog-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: fit-content;
    margin: 0 0 1rem;
    color: var(--solutions-accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    line-height: 1.3;
    text-transform: uppercase;
}

.mk-solutions .mk-solutions__catalog-eyebrow::before {
    width: 1.75rem;
    height: 2px;
    flex: 0 0 1.75rem;
    background: currentColor;
    content: "";
}

.mk-solutions .mk-solutions__catalog-heading h2 {
    max-width: 760px;
    margin: 0;
    color: var(--solutions-dark);
    font-size: clamp(2.25rem, 4.5vw, 4.3rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.03;
    text-wrap: balance;
}

.mk-solutions .mk-solutions__catalog-heading > p {
    max-width: 440px;
    margin: 0;
    color: var(--solutions-muted);
    font-size: 1rem;
    line-height: 1.75;
}


/* ==========================================================================
   Filtros
   ========================================================================== */

.mk-solutions .mk-solutions__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin: 0 0 2.5rem;
    padding: 0;
}

.mk-solutions .mk-solutions__filter {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    width: auto;
    margin: 0;
    padding: 0.65rem 1.15rem;
    border: 1px solid var(--solutions-line);
    border-radius: 999px;
    color: var(--solutions-muted);
    background: #ffffff;
    box-shadow: none;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.mk-solutions .mk-solutions__filter:hover,
.mk-solutions .mk-solutions__filter:focus-visible {
    color: var(--solutions-dark);
    border-color: rgb(189 50 212 / 34%);
    transform: translateY(-1px);
}

.mk-solutions .mk-solutions__filter.is-active {
    color: #ffffff;
    background: var(--solutions-dark);
    border-color: var(--solutions-dark);
    box-shadow: 0 0.65rem 1.4rem rgb(9 18 56 / 15%);
}


/* ==========================================================================
   Cuadrícula
   ========================================================================== */

.mk-solutions .mk-solutions__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.5rem;
    width: 100%;
    margin: 0;
    padding: 0;
    perspective: 1400px;
}


/* ==========================================================================
   Tarjeta
   ========================================================================== */

.mk-solutions .mk-solution-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--solutions-line);
    border-radius: var(--solutions-radius);
    color: var(--solutions-text);
    background: #ffffff;
    box-shadow: 0 0.7rem 2rem rgb(12 20 57 / 5%);
    transform: translateZ(0);
    transform-style: preserve-3d;
    transition:
        opacity 320ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease,
        transform 260ms ease;
}

.mk-solutions .mk-solution-card:hover,
.mk-solutions .mk-solution-card:focus-within {
    border-color: rgb(189 50 212 / 26%);
    box-shadow: var(--solutions-shadow);
    transform:
        perspective(1100px)
        rotateX(1deg)
        rotateY(-1.25deg)
        translateY(-5px);
}

.mk-solutions .mk-solution-card.is-hidden {
    display: none;
}

.mk-solutions .mk-solution-card.is-filter-entering {
    animation:
        mk-solution-enter
        460ms
        cubic-bezier(0.22, 1, 0.36, 1)
        both;
}


/* ==========================================================================
   Imagen
   ========================================================================== */

.mk-solutions .mk-solution-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--solutions-soft);
}

.mk-solutions .mk-solution-card__media > img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
    transform: scale(1.001);
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mk-solutions .mk-solution-card:hover .mk-solution-card__media > img,
.mk-solutions .mk-solution-card:focus-within .mk-solution-card__media > img {
    transform: scale(1.045);
}


/* ==========================================================================
   Placeholder
   ========================================================================== */

.mk-solutions .mk-solution-card__placeholder {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.75rem;
    width: 100%;
    height: 100%;
    padding: 2rem;
    color: var(--solutions-dark);
    background: var(--solutions-soft);
    text-align: center;
}

.mk-solutions .mk-solution-card__placeholder > span {
    display: grid;
    place-items: center;
    width: 4.2rem;
    height: 4.2rem;
    border: 1px solid rgb(189 50 212 / 24%);
    border-radius: 1.2rem;
    color: var(--solutions-accent);
    background: #ffffff;
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    box-shadow: 0 0.8rem 2rem rgb(12 20 57 / 7%);
}

.mk-solutions .mk-solution-card__placeholder > small {
    color: var(--solutions-muted);
    font-size: 0.78rem;
    font-weight: 700;
}


/* ==========================================================================
   Etiquetas
   ========================================================================== */

.mk-solutions .mk-solution-card__badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.55rem;
    pointer-events: none;
}

.mk-solutions .mk-solution-card__category,
.mk-solutions .mk-solution-card__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.4rem 0.72rem;
    border: 1px solid rgb(9 18 56 / 10%);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.mk-solutions .mk-solution-card__category {
    color: var(--solutions-dark);
    background: rgb(255 255 255 / 92%);
    backdrop-filter: blur(8px);
}

.mk-solutions .mk-solution-card__status {
    color: var(--solutions-dark);
    background: #ffffff;
}

.mk-solutions
.mk-solution-card__status[data-status="available"] {
    color: var(--solutions-success);
    border-color: rgb(22 121 75 / 20%);
    background: #effaf4;
}

.mk-solutions
.mk-solution-card__status[data-status="development"] {
    color: var(--solutions-warning);
    border-color: rgb(154 103 0 / 20%);
    background: #fff8e7;
}

.mk-solutions
.mk-solution-card__status[data-status="customizable"] {
    color: var(--solutions-accent-dark);
    border-color: rgb(189 50 212 / 20%);
    background: #fbf1fd;
}


/* ==========================================================================
   Contenido de tarjeta
   ========================================================================== */

.mk-solutions .mk-solution-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.4rem, 3vw, 2rem);
    background: #ffffff;
    transform: translateZ(12px);
}

.mk-solutions .mk-solution-card__content > h2 {
    margin: 0 0 0.85rem;
    color: var(--solutions-dark);
    font-size: clamp(1.35rem, 2.3vw, 1.85rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.18;
    text-wrap: balance;
}

.mk-solutions .mk-solution-card__summary {
    margin: 0;
    color: var(--solutions-muted);
    font-size: 0.94rem;
    line-height: 1.7;
}


/* ==========================================================================
   Funcionalidades
   ========================================================================== */

.mk-solutions .mk-solution-card__features {
    display: grid;
    gap: 0.65rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.mk-solutions .mk-solution-card__features > li {
    display: grid;
    grid-template-columns: 1.15rem minmax(0, 1fr);
    align-items: start;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    color: var(--solutions-text);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.45;
}

.mk-solutions .mk-solution-card__features > li > span {
    display: grid;
    place-items: center;
    width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    color: #ffffff;
    background: var(--solutions-accent);
    font-size: 0.58rem;
    line-height: 1;
}


/* ==========================================================================
   Enlace de tarjeta
   ========================================================================== */

.mk-solutions .mk-solution-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    width: fit-content;
    max-width: 100%;
    margin: auto 0 0;
    padding-top: 1.5rem;
    color: var(--solutions-dark);
    background: transparent;
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
}

.mk-solutions .mk-solution-card__link-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    min-width: 2rem;
    max-width: 2rem;
    height: 2rem;
    min-height: 2rem;
    max-height: 2rem;
    flex: 0 0 2rem;
    border: 1px solid var(--solutions-line);
    border-radius: 50%;
    color: #ffffff;
    background: var(--solutions-dark);
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.mk-solutions .mk-solution-card__link-icon svg {
    display: block;
    width: 0.9rem;
    max-width: 0.9rem;
    height: 0.9rem;
    max-height: 0.9rem;
}

.mk-solutions .mk-solution-card__link-icon svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mk-solutions .mk-solution-card__link:hover,
.mk-solutions .mk-solution-card__link:focus-visible {
    color: var(--solutions-accent-dark);
}

.mk-solutions
.mk-solution-card__link:hover
.mk-solution-card__link-icon,
.mk-solutions
.mk-solution-card__link:focus-visible
.mk-solution-card__link-icon {
    border-color: var(--solutions-accent);
    background: var(--solutions-accent);
    transform: translateX(3px);
}


/* ==========================================================================
   Desarrollo personalizado
   ========================================================================== */

.mk-solutions .mk-solutions__custom {
    position: relative;
    display: block;
    width: 100%;
    padding: clamp(4.5rem, 7vw, 7rem) 0;
    color: #ffffff;
    background: var(--solutions-dark-soft);
}

.mk-solutions
.mk-solutions__custom
> .mk-container {
    display: block;
}

.mk-solutions .mk-solutions__custom-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.mk-solutions .mk-solutions__custom-inner > div {
    min-width: 0;
}

.mk-solutions .mk-solutions__custom-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: fit-content;
    margin: 0 0 1rem;
    color: var(--solutions-accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mk-solutions .mk-solutions__custom-eyebrow::before {
    width: 1.75rem;
    height: 2px;
    flex: 0 0 1.75rem;
    background: currentColor;
    content: "";
}

.mk-solutions .mk-solutions__custom-inner h2 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.25rem, 4.5vw, 4.3rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.03;
    text-wrap: balance;
}

.mk-solutions .mk-solutions__custom-inner p {
    max-width: 720px;
    margin: 1.25rem 0 0;
    color: rgb(255 255 255 / 70%);
    font-size: 1rem;
    line-height: 1.75;
}

.mk-solutions .mk-solutions__button--custom {
    color: #ffffff;
    background: var(--solutions-accent);
    border-color: var(--solutions-accent);
}

.mk-solutions .mk-solutions__button--custom:hover,
.mk-solutions .mk-solutions__button--custom:focus-visible {
    color: #ffffff;
    background: var(--solutions-accent-dark);
    border-color: var(--solutions-accent-dark);
    box-shadow: 0 0.85rem 2rem rgb(189 50 212 / 24%);
    transform: translateY(-2px);
}


/* ==========================================================================
   Accesibilidad
   ========================================================================== */

.mk-solutions a:focus-visible,
.mk-solutions button:focus-visible {
    outline: 3px solid rgb(189 50 212 / 35%);
    outline-offset: 4px;
}


/* ==========================================================================
   Animación de filtrado
   ========================================================================== */

@keyframes mk-solution-enter {
    from {
        opacity: 0;
        transform:
            perspective(1000px)
            scale(0.94)
            rotateZ(-1deg)
            translateY(12px);
    }

    to {
        opacity: 1;
        transform:
            perspective(1000px)
            scale(1)
            rotateZ(0)
            translateY(0);
    }
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 980px) {
    .mk-solutions .mk-solutions__catalog-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .mk-solutions .mk-solutions__catalog-heading > p {
        max-width: 650px;
    }

    .mk-solutions .mk-solutions__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mk-solutions .mk-solutions__custom-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
}


/* ==========================================================================
   Móvil
   ========================================================================== */

@media (max-width: 640px) {
    .mk-solutions .mk-solutions__hero {
        padding: 4.5rem 0 5rem;
    }

    .mk-solutions
    .mk-solutions__hero
    .mk-solutions__hero-container {
        width: min(calc(100% - 2rem), 1240px);
    }

    .mk-solutions
    .mk-solutions__hero-container
    > .mk-solutions__title {
        font-size: clamp(2.6rem, 13vw, 4rem);
        line-height: 1;
    }

    .mk-solutions .mk-solutions__hero-actions {
        align-items: stretch;
    }

    .mk-solutions .mk-solutions__button {
        width: 100%;
    }

    .mk-solutions .mk-solutions__filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: -1rem;
        padding: 0 1rem 0.75rem;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
    }

    .mk-solutions .mk-solutions__filter {
        flex: 0 0 auto;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .mk-solutions .mk-solution-card__badges {
        top: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
    }

    .mk-solutions .mk-solution-card__content {
        padding: 1.35rem;
    }

    .mk-solutions .mk-solutions__custom-inner {
        gap: 1.75rem;
    }
}


/* ==========================================================================
   Movimiento reducido
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .mk-solutions *,
    .mk-solutions *::before,
    .mk-solutions *::after {
        scroll-behavior: auto;
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }

    .mk-solutions .mk-solution-card:hover,
    .mk-solutions .mk-solution-card:focus-within {
        transform: none;
    }
}