/* ==========================================================================
   Markad Publicidad Estudio — Normalización global
   ========================================================================== */


/* --------------------------------------------------------------------------
   Modelo de caja
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   Documento
   -------------------------------------------------------------------------- */

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--mk-background);
}


/* --------------------------------------------------------------------------
   Márgenes predeterminados
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}


/* --------------------------------------------------------------------------
   Listas
   -------------------------------------------------------------------------- */

ul,
ol {
    margin: 0;
    padding: 0;
}

ul[role='list'],
ol[role='list'] {
    list-style: none;
}


/* --------------------------------------------------------------------------
   Enlaces
   -------------------------------------------------------------------------- */

a {
    color: inherit;
    text-decoration: none;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}


/* --------------------------------------------------------------------------
   Imágenes y multimedia
   -------------------------------------------------------------------------- */

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img,
video {
    height: auto;
}

img {
    font-style: italic;
}

svg {
    flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   Formularios
   -------------------------------------------------------------------------- */

button,
input,
textarea,
select {
    margin: 0;
    color: inherit;
    font: inherit;
}

button,
select {
    text-transform: none;
}

button,
input[type='button'],
input[type='submit'],
input[type='reset'] {
    cursor: pointer;
}

button {
    padding: 0;
    border: 0;
    background: transparent;
}

input,
textarea,
select {
    border-radius: 0;
}

textarea {
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--mk-text-muted);
    opacity: 1;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}


/* --------------------------------------------------------------------------
   Tablas
   -------------------------------------------------------------------------- */

table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}


/* --------------------------------------------------------------------------
   Elementos interactivos
   -------------------------------------------------------------------------- */

summary {
    cursor: pointer;
}

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}


/* --------------------------------------------------------------------------
   Elementos ocultos
   -------------------------------------------------------------------------- */

[hidden] {
    display: none !important;
}


/* --------------------------------------------------------------------------
   Enfoque accesible
   -------------------------------------------------------------------------- */

:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--mk-magenta-500);
    outline-offset: 4px;
}


/* --------------------------------------------------------------------------
   Selección
   -------------------------------------------------------------------------- */

::selection {
    background: var(--mk-magenta-600);
    color: var(--mk-white);
}


/* --------------------------------------------------------------------------
   Scrollbar
   -------------------------------------------------------------------------- */

* {
    scrollbar-width: thin;
    scrollbar-color:
        var(--mk-indigo-700)
        var(--mk-gray-100);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--mk-gray-100);
}

::-webkit-scrollbar-thumb {
    border: 2px solid var(--mk-gray-100);
    border-radius: var(--mk-border-radius-pill);
    background: var(--mk-indigo-700);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mk-magenta-700);
}


/* --------------------------------------------------------------------------
   Movimiento reducido
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}