/* MediaLab: estilos de componentes, tarjetas y animaciones. Los colores y tipografías base viven en theme.json. */
:root {
	--ml-paper: var(--wp--preset--color--paper, #F3F1EF);
	--ml-paper-2: var(--wp--preset--color--paper-2, #E7E2DA);
	--ml-ink: var(--wp--preset--color--ink, #0B0B0B);
	--ml-grafito: var(--wp--preset--color--grafito, #262422);
	--ml-grafito-2: var(--wp--preset--color--grafito-2, #34312E);
	--ml-sand: var(--wp--preset--color--sand, #CDBB9E);
	--ml-accent: var(--wp--preset--color--accent, #1F4257);
	--ml-serif: var(--wp--preset--font-family--serif, Georgia, serif);
	--ml-ease: cubic-bezier(.2, .7, .2, 1);
}

body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.ml-main > * + * { margin-block-start: 0; }

/* Itálica de marca */
h1 em, h2 em, h3 em, .ml-it {
	font-family: var(--ml-serif);
	font-weight: 400;
	letter-spacing: -0.01em;
	color: var(--ml-accent);
}
.ml-dark h1 em, .ml-dark h2 em, .ml-dark h3 em { color: var(--ml-sand); }

/* Barra de aviso y menú */
.ml-annc { background: var(--ml-accent); color: var(--ml-paper); padding-block: 10px; font-size: 16px; }
.ml-annc p { margin: 0; }
.ml-annc a { color: var(--ml-paper); font-weight: 600; text-underline-offset: 3px; margin-left: 12px; }
.ml-annc a:hover { color: var(--ml-sand); }
.ml-nav { padding-block: 22px; padding-inline: clamp(16px, 3vw, 40px); max-width: 1440px; margin-inline: auto; }
.ml-logo { margin: 0; }
.ml-logo img { height: 40px; width: auto !important; }
.ml-menu a { text-decoration: none; font-size: 17px; font-weight: 500; color: var(--ml-ink); }
.ml-menu a:hover, .ml-menu .current-menu-item a { color: var(--ml-accent); }

/* Botones */
.wp-block-button__link { transition: transform .2s var(--ml-ease), background-color .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button__link:active { transform: translateY(1px) scale(.98); }
.ml-btn-ink .wp-block-button__link { background: var(--ml-ink); color: var(--ml-paper); }
.ml-btn-ink .wp-block-button__link:hover { background: var(--ml-grafito); color: var(--ml-paper); }
.ml-btn-sand .wp-block-button__link { background: var(--ml-sand); color: var(--ml-ink); }
.ml-btn-sand .wp-block-button__link:hover { background: #DCCDB4; color: var(--ml-ink); }
:where(a, .wp-block-button__link):focus-visible { outline: 3px solid var(--ml-accent); outline-offset: 3px; }

/* Secciones */
.ml-center { text-align: center; }
.ml-hero { padding-top: 56px; }
.ml-top { padding-top: 56px; }
.ml-sec { padding-block: clamp(64px, 7vw, 112px); }
.ml-dark { background: var(--ml-grafito); color: var(--ml-paper); padding-block: clamp(64px, 7vw, 112px); margin-top: clamp(48px, 5vw, 80px); }
.ml-dark a { color: var(--ml-paper); }
.ml-warm { background: var(--ml-paper-2); }
.ml-lede { font-size: var(--wp--preset--font-size--large); max-width: 40ch; margin-inline: auto !important; }
.ml-pills { gap: 8px; margin-top: 28px !important; }
/* Páginas de texto (Cómo comprar, políticas): lectura a la izquierda y títulos a escala de lectura. Carrito, checkout y cuenta quedan aparte. */
body:not(.woocommerce-page) .ml-page { padding-block: 56px clamp(64px, 7vw, 112px); }
body:not(.woocommerce-page) .ml-page > .wp-block-post-title, body:not(.woocommerce-page) .ml-page > .wp-block-post-content { max-width: 680px; margin-inline: auto !important; }
body:not(.woocommerce-page) .ml-page .wp-block-post-title { text-align: left; font-size: clamp(40px, 5vw, 72px); line-height: 1; margin-bottom: 28px; }
body:not(.woocommerce-page) .ml-page .wp-block-post-content > * { margin-inline: 0 !important; }
body:not(.woocommerce-page) .ml-page .ml-lede { max-width: 48ch; margin-bottom: 8px; }
body:not(.woocommerce-page) .ml-page .wp-block-post-content h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; line-height: 1.15; margin-top: 2em; margin-bottom: .4em; }
body:not(.woocommerce-page) .ml-page .wp-block-post-content li + li { margin-top: .5em; }
body:not(.woocommerce-page) .ml-page .wp-block-post-content a { color: var(--ml-accent); text-underline-offset: 3px; }
.ml-pill { margin: 0; font-size: 16px; font-weight: 500; background: var(--ml-paper-2); padding: 8px 14px; border-radius: 999px; }
.ml-sec-foot { margin-top: 40px !important; }
.ml-disclosure { font-size: 16px; color: #3F3C38; background: var(--ml-paper-2); padding: 16px 20px; max-width: 720px; margin: 36px auto 0 !important; }
.ml-note { font-size: 17px; color: #3F3C38; max-width: 46ch; margin-inline: auto !important; }

/* Redes en la portada */
.ml-socials { display: grid; grid-template-columns: 178fr 100fr 56fr; gap: 16px; align-items: end; width: min(100%, max(640px, 80vw)); max-width: 1360px; margin: 48px auto 0 !important; text-align: left; }
.ml-socials-2 { grid-template-columns: 178fr 100fr; width: min(100%, max(560px, 64vw)); }
.ml-socials-1 { grid-template-columns: 1fr; width: min(100%, 760px); }
.ml-soc { background: var(--ml-grafito); color: var(--ml-paper); overflow: hidden; transition: transform .35s var(--ml-ease); }
.ml-soc:hover { transform: translateY(-6px); }
.ml-soc > * { margin: 0 !important; }
.ml-soc-media { position: relative; overflow: hidden; margin: 0; background: #111; }
.ml-soc-yt .ml-soc-media { aspect-ratio: 16 / 9; }
.ml-soc-ig .ml-soc-media { aspect-ratio: 1 / 1; }
.ml-soc-tt .ml-soc-media { aspect-ratio: 9 / 16; }
.ml-soc-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-ig-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 2px !important; }
.ml-ig-grid figure { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.ml-ig-grid img { width: 100%; height: 100%; object-fit: cover; }
.ml-soc-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; font-size: 15px; line-height: 1.3; }
.ml-soc-bar strong { margin-right: 4px; }
.ml-soc-go { margin-left: auto; background: var(--ml-sand); color: var(--ml-ink) !important; font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; }

/* Tarjetas de video */
.ml-lv, .ml-short { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.ml-lv > *, .ml-short > * { margin: 0 !important; }
.ml-pic { position: relative; overflow: hidden; background: #111; }
.ml-lv .ml-pic { aspect-ratio: 16 / 9; }
.ml-short .ml-pic { aspect-ratio: 9 / 16; }
.ml-pic > * { margin: 0 !important; }
.ml-pic .wp-block-image, .ml-pic .wp-block-image a, .ml-pic .ml-preview { position: absolute; inset: 0; display: block; }
.ml-pic img, .ml-pic video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-pic img { transition: transform .8s var(--ml-ease); }
.ml-pic .ml-preview { opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.ml-hover.is-on .ml-preview { opacity: 1; }
.ml-hover:hover .ml-pic img { transform: scale(1.05); }
.ml-pic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--ml-sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%230B0B0B'/%3E%3C/svg%3E") center / 30px no-repeat; transition: transform .3s var(--ml-ease), opacity .3s ease; pointer-events: none; z-index: 2; }
.ml-hover:hover .ml-pic::after { transform: scale(1.12); }
.ml-hover.is-on .ml-pic::after { opacity: 0; transform: scale(.6); }
.ml-short .ml-pic::after { width: 44px; height: 44px; margin: -22px 0 0 -22px; background-size: 22px; }
.ml-dur { position: absolute !important; right: 8px; bottom: 8px; z-index: 2; background: rgba(11, 11, 11, .85); color: #F3F1EF; font-size: 13px; font-weight: 600; padding: 3px 7px; border-radius: 4px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ml-soon { position: absolute !important; left: 12px; top: 12px; z-index: 2; background: var(--ml-ink); color: var(--ml-paper); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.is-soon .ml-pic::after { display: none; }
.is-soon .ml-pic img { filter: saturate(.6); }
.ml-card-title { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.ml-card-title a { color: inherit; text-decoration: none; }
.ml-card-meta { font-size: 15px; color: #4A4743; }
.ml-dark .ml-card-meta { color: var(--ml-sand); }
.ml-lv-feat .ml-card-title { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.02em; }
.ml-short .ml-card-title { font-size: 16px; }

/* Home: videos largos */
.ml-longs { margin-top: 48px !important; gap: 24px; align-items: stretch !important; }
.ml-longs > .wp-block-column:first-child { display: flex; }
.ml-longs > .wp-block-column:first-child > .ml-lv { flex: 1; }
.ml-lv-feat .ml-pic { aspect-ratio: auto; flex: 1 1 auto; min-height: 300px; }
.ml-longs-side { display: flex; flex-direction: column; gap: 32px; }
.ml-shorts-h { font-size: clamp(28px, 3vw, 44px); margin-top: 72px !important; }
.ml-shorts-row { max-width: 600px; margin: 32px auto 0 !important; gap: 20px !important; }

/* Página Videos */
.ml-featl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); width: min(100%, 1280px); margin: 48px auto 0 !important; background: var(--ml-grafito); color: var(--ml-paper); text-align: left; }
.ml-featl > * { margin: 0 !important; }
.ml-featl .ml-lv { gap: 0; }
.ml-featl .ml-lv .ml-card-title, .ml-featl .ml-lv .ml-card-meta { display: none; }
.ml-featl .ml-lv-feat .ml-pic { min-height: 0; aspect-ratio: 16 / 9; }
.ml-featl-txt { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 2.5vw, 36px); }
.ml-featl-txt > * { margin: 0 !important; }
.ml-featl-txt .ml-card-meta { color: var(--ml-sand); }
.ml-featl-txt .wp-block-buttons { margin-top: auto !important; }
.ml-list { padding-bottom: clamp(64px, 7vw, 112px); }
.ml-list-h { font-size: clamp(28px, 3vw, 44px); margin-top: 64px !important; }
.ml-longs-grid { margin-top: 32px !important; gap: 32px 24px !important; }
.ml-shorts-grid { margin-top: 32px !important; gap: 28px 14px !important; }

/* Equipo */
.ml-gear { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 32px !important; }
/* WordPress pone margin-top a cada hijo de un grupo; en grillas y filas eso desalinea, el espacio lo da gap. */
/* Portada: últimos videos, compacto. Encabezado en fila y Shorts en una franja. */
.ml-dark.ml-vids { padding-block: clamp(56px, 6vw, 88px); }
.ml-vids-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.ml-vids-head > *, .ml-vids-intro > *, .ml-shorts-strip > *, .ml-shorts-label > * { margin: 0 !important; }
.ml-vids-head h2 { text-align: left; }
.ml-vids-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; font-size: 19px; line-height: 1.45; max-width: 46ch; justify-self: end; }
.ml-vids .ml-longs { margin-top: 36px !important; }
.ml-shorts-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 40px !important; align-items: start; }
.ml-shorts-label { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; text-align: left; }
.ml-vids .ml-shorts-h { font-size: clamp(22px, 2vw, 30px); line-height: 1.15; text-align: left; }
.ml-shorts-strip .ml-short .ml-pic { aspect-ratio: 3 / 4; }
.ml-shorts-strip .ml-short .ml-card-meta { display: none; }
/* Quiz de equipo (página Equipo). */
.ml-quiz { max-width: 1040px; margin: clamp(48px, 5vw, 80px) auto 0; padding: 0 var(--wp--style--root--padding-right, 24px); scroll-margin-top: 24px; }
.ml-quiz-head { text-align: center; margin-bottom: 32px; }
.ml-quiz-head h2 { margin: 6px 0 12px; }
.ml-quiz-head > p:last-child { max-width: 52ch; margin: 0 auto; font-size: 19px; }
.ml-quiz-kicker { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ml-accent); }
.ml-quiz-card { background: var(--ml-paper-2); padding: clamp(24px, 4vw, 48px); position: relative; }
.ml-quiz-progress { height: 4px; background: rgba(11, 11, 11, .08); margin-bottom: 28px; }
.ml-quiz-progress span { display: block; height: 100%; width: 0; background: var(--ml-accent); transition: width .4s var(--ml-ease); }
.ml-quiz-step { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.ml-quiz-step legend { padding: 0; margin-bottom: 20px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.ml-quiz-count { display: block; font-size: 15px; font-weight: 500; letter-spacing: 0; color: #5A5650; margin-bottom: 6px; }
.ml-quiz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ml-quiz-opt { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--ml-paper); border: 2px solid transparent; cursor: pointer; transition: border-color .2s ease, transform .2s var(--ml-ease); }
.ml-quiz-opt:hover { border-color: rgba(31, 66, 87, .35); }
.ml-quiz-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ml-quiz-opt strong { font-size: 19px; }
.ml-quiz-opt span { font-size: 16px; color: #3F3C38; }
.ml-quiz-opt:has(input:checked) { border-color: var(--ml-accent); }
.ml-quiz-opt:has(input:focus-visible) { outline: 3px solid var(--ml-accent); outline-offset: 3px; }
.ml-quiz-nav { min-height: 24px; }
.ml-quiz-back, .ml-quiz-again { background: none; border: 0; padding: 0; font: inherit; font-size: 16px; color: var(--ml-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ml-quiz-back[hidden] { display: none; }
.ml-quiz:not(.is-js) .ml-quiz-nav, .ml-quiz:not(.is-js) .ml-quiz-progress { display: none; }
.ml-quiz-result h3 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.02em; margin: 6px 0 20px; outline: none; }
.ml-quiz-sub { font-weight: 600; margin: 24px 0 10px; }
.ml-quiz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: kit; }
.ml-quiz-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; background: var(--ml-paper); padding: 12px 16px 12px 12px; }
.ml-quiz-item img { width: 112px; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.ml-quiz-item strong { font-size: 18px; }
.ml-quiz-item p { margin: 4px 0 8px; font-size: 16px; line-height: 1.45; }
.ml-quiz-buy { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: var(--ml-ink); color: var(--ml-paper) !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.ml-quiz-buy:hover { background: var(--ml-grafito); }
.ml-quiz-list.is-later .ml-quiz-item { background: transparent; border: 1px solid rgba(11, 11, 11, .1); }
.ml-quiz-note { font-size: 14px; color: #5A5650; margin: 20px 0 0; }
.ml-quiz-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 20px; }
.ml-quiz-actions a { color: var(--ml-ink); font-size: 16px; }
.ml-jump .ml-jump-quiz { background: var(--ml-accent); color: var(--ml-paper); }
.ml-jump .ml-jump-quiz:hover { background: var(--ml-ink); }
.ml-svc-item h3 a { color: inherit; text-decoration: none; }
.ml-svc-item p a { color: var(--ml-accent); font-weight: 600; white-space: nowrap; }
/* Portada: con esto grabo. Texto a la izquierda, 9 piezas a la derecha. */
.ml-kit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ml-kit > *, .ml-kit-txt > *, .ml-kit-grid > * { margin: 0 !important; }
.ml-kit-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; text-align: left; }
.ml-kit-txt .wp-block-buttons { margin-top: 12px !important; }
.ml-kit-lede { font-size: var(--wp--preset--font-size--large); max-width: 34ch; }
.ml-kit-note { font-size: 15px; color: #5A5650; }
.ml-kit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ml-kit-tile { background: #fff; aspect-ratio: 4 / 3; overflow: hidden; box-shadow: 0 1px 2px rgba(11, 11, 11, .05), 0 10px 28px -12px rgba(11, 11, 11, .18); transition: transform .35s var(--ml-ease), box-shadow .35s var(--ml-ease); }
.ml-kit-tile a, .ml-kit-tile img { display: block; width: 100%; height: 100%; }
.ml-kit-tile img { object-fit: contain; }
.ml-kit-tile:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11, 11, 11, .06), 0 18px 36px -14px rgba(11, 11, 11, .24); }
/* Un solo respiro antes de una franja oscura: si viene después de una sección, su padding ya separa. */
#equipo.ml-sec { padding-bottom: clamp(56px, 6vw, 88px); }
.ml-sec + .ml-dark { margin-top: 0; }
.ml-gear > *, .ml-socials > *, .ml-longs-side > * { margin: 0 !important; }
.ml-gear-item { width: calc((100% - 48px) / 3); background: var(--ml-paper-2); display: flex; flex-direction: column; overflow: hidden; text-align: left; }
.ml-gear-item > * { margin: 0 !important; }
.ml-gear-pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ml-grafito); }
.ml-gear-pic > * { margin: 0 !important; }
.ml-gear-pic .wp-block-image { position: absolute; inset: 0; }
.ml-gear-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ml-ease); }
.ml-gear-item:hover .ml-gear-pic img { transform: scale(1.06); }
.ml-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ml-sand); }
.ml-gear-pic .ml-ph { font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-style: italic; font-size: 26px; padding: 12px; text-align: center; line-height: 1.15; }
.ml-gear-pic--prod { background: #fff; }
.ml-gear-pic--prod img { object-fit: contain; }
.ml-tag { position: absolute !important; left: 12px; top: 12px; background: var(--ml-accent); color: var(--ml-paper); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; z-index: 2; }
.ml-gear-txt { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.ml-gear-txt > * { margin: 0 !important; }
.ml-gear-name { font-size: 22px !important; letter-spacing: -0.01em; line-height: 1.2 !important; }
.ml-gear-txt p { font-size: 17px; line-height: 1.45; }
.ml-gear-txt .ml-card-meta { font-size: 15px; }
.ml-gear-links { margin-top: auto !important; padding-top: 14px; gap: 10px; }
.ml-gear-links .wp-block-button__link { font-size: 15px; padding: 10px 16px; }
.ml-cat { padding-top: clamp(64px, 6vw, 96px); scroll-margin-top: 24px; }
.ml-cat-desc { color: #3F3C38; }
.ml-jump { margin-top: 28px !important; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ml-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ml-paper-2); color: var(--ml-ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.ml-jump a:hover { background: var(--ml-accent); color: var(--ml-paper); }

/* Marcas */
.ml-brands { list-style: none; margin: 48px auto 0 !important; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ml-brands li { margin: 0; min-height: 132px; background: var(--ml-grafito-2); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--ml-paper); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.ml-brands img { display: block; max-height: 68px; max-width: 86%; width: auto; height: auto; }
.ml-brands .ml-brand-person { padding: 16px 10px; gap: 12px; justify-content: center; text-align: left; }
.ml-brands .ml-brand-person img { flex: none; height: 110px; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); width: auto; max-width: none; max-height: none; filter: drop-shadow(0 0 3px rgba(243, 241, 239, .28)) drop-shadow(0 0 12px rgba(243, 241, 239, .12)); }
.ml-brands .ml-brand-person span { flex: none; width: min-content; }

/* Servicios */
.ml-svc { margin-top: 48px !important; gap: 24px !important; }
.ml-svc-item { background: var(--ml-paper); padding: 32px 24px; }
.ml-svc-item h3 { font-size: 23px; letter-spacing: -0.01em; margin: 0 0 8px; }
.ml-svc-item p { margin: 0; }

/* Tienda (WooCommerce) */
.ml-shop { padding-bottom: clamp(64px, 7vw, 112px); }
.ml-shop .woocommerce-products-header, .ml-shop .woocommerce-breadcrumb { display: none; }
.ml-shop ul.products { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 24px; margin-top: 40px !important; }
.ml-shop ul.products::before, .ml-shop ul.products::after { display: none !important; }
.ml-shop ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.ml-shop ul.products li.product img { aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ml-ease); }
.ml-shop ul.products li.product .woocommerce-loop-product__title { font-size: 18px; font-weight: 700; }
.ml-shop .price { color: var(--ml-ink) !important; font-weight: 700; }
.ml-shop .button, .ml-shop button.single_add_to_cart_button { background: var(--ml-accent) !important; color: var(--ml-paper) !important; border-radius: 999px !important; }
.ml-shop .onsale { background: var(--ml-accent); border-radius: 999px; }
/* Encabezado de la tienda: título de sección, no de portada, para que los productos asomen en la primera pantalla. */
.ml-shop-intro h1 { font-size: var(--wp--preset--font-size--x-large); }
.ml-shop-intro .ml-lede { margin-top: 16px !important; max-width: 46ch; }
/* Tarjeta: título, estado y precio arriba; el botón siempre al pie aunque el título ocupe tres líneas. */
.ml-shop ul.products li.product { display: flex; flex-direction: column; }
.ml-shop ul.products li.product > a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; }
.ml-shop ul.products li.product .ml-card-cond { order: 1; margin: 2px 0 6px; font-size: 14px; color: var(--ml-grafito-2); }
.ml-shop ul.products li.product .price { order: 2; margin-top: auto; }
/* Ficha: "Lo quiero" por WhatsApp. */
.ml-product .ml-quiero { margin: 8px 0 0; }
.ml-product .ml-quiero__btn { display: inline-block; padding: 16px 40px !important; font-size: 17px !important; font-weight: 700; text-decoration: none; transition: background-color .2s var(--ml-ease); }
.ml-product .ml-quiero__btn:hover { background: var(--ml-ink) !important; }
.ml-product .ml-quiero__btn:focus-visible { outline: 2px solid var(--ml-accent); outline-offset: 3px; }
.ml-product .ml-quiero__nota { margin: 10px 0 0; font-size: 14px; color: var(--ml-grafito-2); }
.ml-product .ml-vendido { display: inline-block; margin: 8px 0 0; padding: 12px 24px; border-radius: 999px; background: var(--ml-paper-2); font-weight: 700; color: var(--ml-grafito-2); }
.ml-product .product_title { font-size: clamp(26px, 2vw, 36px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 12px; }
.ml-product .ml-gallery-col { margin-bottom: 2em; }
.ml-product div.product .ml-gallery-col div.images { float: none; width: 100%; margin-bottom: 0; }
.ml-product .ml-sku { margin: 10px 0 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ml-grafito-2); opacity: .7; }
.ml-product .ml-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ml-product .ml-kicker a { color: var(--ml-accent); text-decoration: none; }
.ml-product .ml-kicker a:hover { text-decoration: underline; }
@media (min-width: 769px) {
	.ml-product div.product { --ml-gal: min(46%, max(320px, calc(66vh * 2 / 3))); }
	.ml-product .ml-gallery-col { float: left; width: var(--ml-gal); }
	.ml-product div.product div.summary { width: calc(100% - var(--ml-gal) - 56px); }
}
.ml-product .ml-incluye { margin: 0 0 1.6em; padding-top: 1.1em; border-top: 1px solid var(--ml-paper-2); }
.ml-product .ml-incluye__t { margin: 0 0 .5em; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ml-accent); }
.ml-product .ml-incluye ul { margin: 0; padding-left: 1.1em; }
.ml-product .ml-incluye li { margin: .15em 0; }
.ml-product .ml-cond { margin: -.4em 0 1.2em; font-size: 16px; color: var(--ml-grafito-2); }
.ml-product .ml-cond strong { color: var(--ml-ink); }
/* Pago, entrega y devoluciones: tres filas cortas bajo el botón. */
.ml-product .ml-compra { display: grid; gap: 10px; margin: 1.6em 0 0; padding-top: 1.1em; border-top: 1px solid var(--ml-paper-2); font-size: 15px; line-height: 1.45; }
.ml-product .ml-compra > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; }
.ml-product .ml-compra dt { font-weight: 700; color: var(--ml-ink); }
.ml-product .ml-compra dd { margin: 0; color: var(--ml-grafito-2); }
.ml-product .ml-compra-link { margin: 14px 0 1.6em; font-size: 15px; }
.ml-product .ml-compra-link a { color: var(--ml-accent); text-underline-offset: 3px; }
@media (max-width: 420px) {
	.ml-product .ml-compra > div { grid-template-columns: 1fr; gap: 2px; }
}
.ml-product div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 6px; }
.ml-product div.product div.images .flex-control-thumbs li { width: auto; margin: 0; }
/* Cierre de la tienda: cuatro columnas cortas con el título de cada condición en negrita. */
.ml-howto { margin-top: clamp(56px, 6vw, 88px); padding-top: 32px; border-top: 1px solid var(--ml-paper-2); }
.ml-howto__h { margin: 0 0 24px; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; line-height: 1.15; }
.ml-howto__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; margin: 0; }
.ml-howto__grid dt { margin-bottom: 6px; font-size: 16px; font-weight: 700; color: var(--ml-ink); }
.ml-howto__grid dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ml-grafito-2); }
.ml-howto__grid a { color: var(--ml-accent); text-underline-offset: 3px; }
@media (max-width: 900px) { .ml-howto__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ml-howto__grid { grid-template-columns: 1fr; } }

/* Pie */
.ml-foot { background: var(--ml-accent); color: var(--ml-paper); padding-block: 48px 28px; margin-top: 0; }
.ml-foot a { color: var(--ml-paper); }
.ml-foot a:hover { color: var(--ml-sand); }
.ml-foot-row > * { margin: 0 !important; }
.ml-foot-word { font-size: clamp(52px, 8vw, 120px); font-weight: 700; letter-spacing: -0.05em; line-height: .85; }
.ml-foot-word em { font-family: var(--ml-serif); font-weight: 400; color: var(--ml-sand); }
.ml-foot-links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 17px; }
.ml-foot-legal { font-size: 15px; color: #C3D3DA; margin-top: 28px !important; }

/* Animaciones */
@keyframes ml-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes ml-rise { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes ml-zoom { from { transform: scale(1.3); } to { transform: scale(1); } }
@keyframes ml-reveal { from { clip-path: inset(7% 4% 0 4% round 40px); } to { clip-path: inset(0 0 0 0 round 0); } }
@media (prefers-reduced-motion: no-preference) {
	.ml-in { animation: ml-in .9s var(--ml-ease) both; }
	.ml-in-2 { animation-delay: .12s; }
	.ml-in-3 { animation-delay: .24s; }
	.ml-in-4 { animation-delay: .36s; }
	.ml-in-5 { animation-delay: .5s; }
	@supports (animation-timeline: view()) {
		.ml-rise { animation: ml-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
		.ml-reveal { animation: ml-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
		.ml-zoom img { animation: ml-zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
		.ml-hover:hover .ml-zoom img, .ml-gear-item:hover .ml-zoom img { transform: none; }
	}
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
/* El editor muestra todo sin animación para poder editar cómodo */
.editor-styles-wrapper .ml-in, .editor-styles-wrapper .ml-rise, .editor-styles-wrapper .ml-reveal, .editor-styles-wrapper .ml-zoom img { animation: none !important; opacity: 1 !important; clip-path: none !important; }

/* Tablet y celular */
@media (max-width: 1100px) {
	.ml-gear-item { width: calc((100% - 24px) / 2); }
	.ml-shorts-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
	.ml-shop ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.ml-socials { grid-template-columns: 1fr 1fr; width: 100%; gap: 10px; }
	.ml-soc-yt { grid-column: 1 / -1; }
	.ml-soc-tt .ml-soc-media { aspect-ratio: 1 / 1; }
	.ml-soc-bar { font-size: 13px; padding: 10px; }
	.ml-lv-feat .ml-pic { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
	.ml-longs-side { gap: 24px; }
	.ml-featl, .ml-longs-grid, .ml-svc { grid-template-columns: 1fr !important; }
	.ml-shorts-grid, .ml-shorts-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px 10px !important; }
	.ml-short .ml-card-title { font-size: 13px; }
	.ml-short .ml-card-meta { display: none; }
	.ml-short .ml-pic::after { width: 36px; height: 36px; margin: -18px 0 0 -18px; background-size: 18px; }
	.ml-gear { gap: 10px; }
	.ml-gear-item { width: 100%; display: grid; grid-template-columns: 112px minmax(0, 1fr); }
	.ml-gear-pic { aspect-ratio: auto; min-height: 112px; }
	.ml-gear-txt { padding: 12px 14px 14px; }
	.ml-gear-name { font-size: 18px !important; }
	.ml-gear-txt p { font-size: 15px; }
	.ml-tag { left: 6px; top: 6px; font-size: 11px; padding: 4px 8px; }
	.ml-gear-pic .ml-ph { font-size: 16px; }
	.ml-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px !important; }
	.ml-brands li { min-height: 100px; font-size: 20px; }
	.ml-brands img { max-height: 48px; }
	.ml-brands .ml-brand-person { flex-direction: column-reverse; justify-content: center; padding: 12px 8px; gap: 8px; font-size: 16px; text-align: center; }
	.ml-brands .ml-brand-person img { align-self: center; height: 72px; }
	.ml-brands .ml-brand-person span { width: auto; }
	.ml-kit { grid-template-columns: 1fr; gap: 32px; }
	.ml-quiz-opts { grid-template-columns: 1fr; gap: 8px; }
	.ml-quiz-opt { padding: 14px 16px; }
	.ml-quiz-item { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px; }
	.ml-quiz-item img { width: 76px; }
	.ml-vids-head { grid-template-columns: 1fr; gap: 16px; }
	.ml-vids-intro { justify-self: start; font-size: 17px; }
	.ml-vids .ml-longs { margin-top: 32px !important; }
	.ml-shorts-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 40px !important; }
	.ml-shorts-label { grid-column: 1 / -1; }
	.ml-shorts-strip > .ml-short:nth-child(n+5) { display: none; }
	.ml-kit-grid { gap: 8px; }
	.ml-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
}
