/* ═══════════════════════════════════════════════════════════
   MAGIC TECNO — capa de diseño de la marca
   Va al final (después de base.css y de la hoja de cada página).
   Colores del logo: celeste (Magic) + rosa (Tecno) + azul marino.
   ═══════════════════════════════════════════════════════════ */
:root {
  --navy: #0f2a5c;
  --blue: #1e9be8;
  --pink: #e6197d;
  --pink-2: #ff5fa8;
  --pink-osc: #c81170;
  --bg: #f6f4fb;
  --card: #ffffff;
  --ink: #15224a;
  --mute: #6b7497;
  --line: #e7e5f1;
  --soft: #fdeaf4;

  /* Tokens de base.css (los usan carrito, checkout, cuenta y panel) */
  --tinta: #ffffff;
  --tinta-2: #f6f4fb;
  --tinta-3: #efedf7;
  --tinta-4: #e7e5f1;
  --linea: #e7e5f1;
  --linea-fuerte: #cfcbe2;
  --papel: #15224a;
  --papel-2: #2d3b6b;
  --apagado: #6b7497;
  --volt: #e6197d;
  --volt-oscuro: #c81170;
  --rojo: #e6197d;
  --verde: #1fa855;
  --ff-titulo: "Plus Jakarta Sans", system-ui, sans-serif;
  --ff-script: "Pacifico", cursive;
  --ff-texto: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radio: 12px;
  --ancho: 1480px;
  --alto-header: 112px;
}

body { background: var(--bg); color: var(--ink); font-weight: 500; padding-top: env(safe-area-inset-top, 0px); }
::selection { background: var(--pink); color: #fff; }

/* Títulos de las páginas heredadas: sin mayúsculas condensadas */
.titulo { font-family: var(--ff-texto); font-weight: 800; text-transform: none; letter-spacing: -0.01em; line-height: 1.1; color: var(--navy); }
.titulo em, .resaltado, h1 em, h2 em { font-family: var(--ff-texto); font-weight: 800; font-size: 1em; line-height: inherit; color: var(--pink); }
.precio { font-family: var(--ff-texto); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.btn { letter-spacing: 0.02em; text-transform: none; font-size: 14px; }
.btn--volt:hover { background: var(--pink-osc); border-color: var(--pink-osc); }
.enlace { text-transform: none; letter-spacing: 0; }
.migas { text-transform: none; letter-spacing: 0; font-size: 13px; padding: 4px 0 8px; }
.toast { text-transform: none; letter-spacing: 0; background: var(--navy); bottom: 90px; }
.chip { border-radius: 999px; }
.cuenta__link, .cuenta__salir { text-transform: none; letter-spacing: 0; }
.contenedor { max-width: var(--ancho); }
.whatsapp { bottom: 22px; }

.mt-wrap { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }

/* ── Logo (la imagen trae margen blanco: se recorta) ─────── */
.marca-img { position: relative; display: block; width: var(--logo-w, 150px); aspect-ratio: 770 / 500; overflow: hidden; }
.marca-img img { position: absolute; max-width: none; width: 133%; height: auto; left: -14.9%; top: -51%; }

/* ── Barra superior ──────────────────────────────────────── */
.mt-top { background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; }
.mt-top .mt-wrap { display: flex; justify-content: center; gap: 22px; padding: 8px 16px; flex-wrap: wrap; }

/* ── Header ──────────────────────────────────────────────── */
.mt-header { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgba(15, 42, 92, 0.05); }
.mt-hrow { display: flex; align-items: center; gap: 18px; padding-top: 8px; padding-bottom: 8px; }
.mt-logo { --logo-w: 112px; flex: none; }
.mt-search { position: relative; flex: 1; display: flex; max-width: 620px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.mt-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 155, 232, 0.15); }
.mt-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 12px 18px; outline: 0; font-size: 14px; }
.mt-search input::-webkit-search-cancel-button { display: none; }
.mt-search > button { display: flex; align-items: center; gap: 6px; margin: 4px; padding: 0 20px; border-radius: 999px; background: var(--pink); color: #fff; font-weight: 800; font-size: 14px; }
.mt-search > button svg { width: 18px; height: 18px; }
.mt-search > button:hover { background: var(--pink-osc); }
.mt-sug { position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 40px rgba(15, 42, 92, 0.16); max-height: 70vh; overflow: auto; z-index: 70; }
.sugerencia__nombre { text-transform: none; letter-spacing: 0; }
.sugerencia__precio { font-family: var(--ff-texto); font-weight: 800; font-size: 15px; color: var(--pink); text-align: right; }
.sugerencia__precio small { display: block; font-size: 10px; color: var(--mute); font-weight: 700; }
.mt-acciones { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mt-icono { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 10px; border-radius: 12px; color: var(--ink); }
.mt-icono:hover { background: var(--soft); color: var(--pink); }
.mt-icono svg { width: 24px; height: 24px; }
.mt-icono small { font-size: 11px; font-weight: 700; }
.mt-icono .contador { top: 0; right: 6px; background: var(--pink); }
.mt-icono .cuenta__inicial { width: 24px; height: 24px; font-size: 12px; background: var(--pink); }
.mt-catbtn { display: none; align-items: center; gap: 6px; flex: none; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--pink); color: #fff; font-weight: 800; font-size: 12px; box-shadow: 0 4px 10px rgba(230, 25, 125, 0.3); }
.mt-catbtn svg { width: 18px; height: 18px; }
.mt-cats { border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.mt-cats::-webkit-scrollbar { display: none; }
.mt-cats .mt-wrap { display: flex; gap: 6px; padding-top: 7px; padding-bottom: 7px; white-space: nowrap; }
.mt-cats a { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); }
.mt-cats a:hover, .mt-cats a.on { background: var(--pink); color: #fff; }

/* ── Estructura con menú lateral ─────────────────────────── */
.mt-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 18px; margin-bottom: 36px; }
.mt-content { min-width: 0; }

.mt-side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 80; width: min(340px, 86%); overflow: auto; scrollbar-width: thin; overscroll-behavior: contain; background: var(--card); border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform 0.25s ease; padding-top: env(safe-area-inset-top, 0px); box-shadow: 12px 0 40px rgba(15, 42, 92, 0.18); }
.cats-abiertas .mt-side { transform: none; }
.mt-ov { position: fixed; inset: 0; z-index: 75; background: rgba(15, 42, 92, 0.45); }
.cats-abiertas .mt-ov { display: block; }
html.cats-abiertas, html.cats-abiertas body { overflow: hidden; }
.mt-side__cab { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; background: var(--pink); color: #fff; font-weight: 800; }
.mt-side__cab button { display: none; color: #fff; font-size: 18px; }
.mt-si { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13.5px; font-weight: 700; border-bottom: 1px solid var(--line); transition: background 0.15s, color 0.15s; }
.mt-si i { font-style: normal; font-size: 18px; width: 24px; text-align: center; }
.mt-si em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--mute); }
.mt-si:hover, .mt-si.on { background: var(--soft); color: var(--pink); }
.mt-si--extra { display: none; }
.mt-side__lista.abierta .mt-si--extra { display: flex; animation: mt-aparece 0.25s ease both; }
@keyframes mt-aparece { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mt-side__mas { display: block; width: calc(100% - 24px); margin: 12px; padding: 10px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; font-size: 13px; }
.mt-side__mas:hover { background: var(--pink); }
.mt-side__pie { display: grid; gap: 8px; padding: 6px 16px 16px; font-size: 12px; font-weight: 700; color: var(--mute); }
.mt-side__pie a:hover { color: var(--pink); }
.mt-ov { display: none; }

/* ── Portada ─────────────────────────────────────────────── */
.mt-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.mt-hero__main { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 300px; padding: 30px; border-radius: 22px; background: linear-gradient(120deg, #ffe3f1 0%, #e4f1ff 100%); }
.mt-tag { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 800; }
.mt-hero__main h1 { max-width: 380px; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.1; font-weight: 800; color: var(--navy); }
.mt-hero__main h1 em { display: block; font-style: normal; color: var(--pink); }
.mt-hero__main p { max-width: 340px; font-size: 14px; color: #2d3b6b; }
.mt-cta { align-self: flex-start; padding: 12px 22px; border-radius: 999px; background: var(--pink); color: #fff; font-weight: 800; box-shadow: 0 6px 16px rgba(230, 25, 125, 0.3); transition: transform 0.15s; }
.mt-cta:hover { transform: translateY(-2px); }
.mt-hero__main > *:not(.mt-hero__art) { position: relative; z-index: 1; }
.mt-hero__art { position: absolute; right: 16px; bottom: 10px; font-size: clamp(54px, 6.4vw, 104px); opacity: 0.95; line-height: 1; filter: drop-shadow(0 8px 10px rgba(15, 42, 92, 0.2)); pointer-events: none; }
.mt-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mt-mini { display: flex; flex-direction: column; justify-content: space-between; min-height: 140px; padding: 14px; border-radius: 18px; color: #fff; transition: transform 0.15s; }
.mt-mini:hover { transform: translateY(-3px); }
.mt-mini span { font-size: 11px; font-weight: 800; opacity: 0.9; }
.mt-mini b { font-size: 14px; line-height: 1.25; }
.mt-mini i { align-self: flex-end; font-style: normal; font-size: 34px; }
.m1 { background: var(--navy); } .m2 { background: var(--pink); } .m3 { background: var(--blue); } .m4 { background: linear-gradient(135deg, #7a3bd6, #b44ad8); }

.mt-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.mt-perk { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.mt-perk i { font-style: normal; font-size: 26px; }
.mt-perk b { display: block; font-size: 13px; }
.mt-perk small { color: var(--mute); font-size: 12px; }

/* ── Secciones ───────────────────────────────────────────── */
.mt-sec { margin-top: 28px; }
.mt-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.titulo-mt { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.titulo-mt::before { content: "★"; color: var(--pink); }
.titulo-mt--grande { font-size: clamp(22px, 3vw, 30px); }
.titulo-mt--grande::before { display: none; }
.mt-head__nota { font-size: 13px; font-weight: 800; color: var(--pink); }
.mt-head__nota--gris { color: var(--mute); font-weight: 700; }
.mt-head__nota strong { color: var(--ink); }
.mt-head__link { font-size: 13px; font-weight: 800; color: var(--blue); }
.mt-head__link:hover { color: var(--pink); }
.mt-center { display: flex; justify-content: center; margin-top: 18px; }

.mt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; background: var(--pink); color: #fff; font-weight: 800; font-size: 14px; border: 2px solid var(--pink); transition: background 0.15s, transform 0.15s; }
.mt-btn:hover { background: var(--pink-osc); border-color: var(--pink-osc); transform: translateY(-1px); }
.mt-btn--linea { background: #fff; color: var(--navy); border-color: var(--line); }
.mt-btn--linea:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.mt-btn--blanco { background: #fff; color: var(--navy); border-color: #fff; }
.mt-btn--blanco:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.mt-btn--wa { background: #1fa855; border-color: #1fa855; }
.mt-btn--wa:hover { background: #178a45; border-color: #178a45; }

/* Ofertas (carrusel horizontal) */
.mt-hs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 2px 10px; scrollbar-width: thin; }
.mt-of { position: relative; flex: 0 0 176px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.mt-of__img { display: grid; place-items: center; height: 120px; border-radius: 12px; background: #fff; overflow: hidden; }
.mt-of__img img { width: 100%; height: 100%; object-fit: contain; }
.mt-of__off { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 3px 8px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; }
.mt-of h4 { min-height: 34px; font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-of h4 a:hover { color: var(--pink); }
.mt-of s { color: var(--mute); font-size: 12px; }
.mt-of b { display: block; font-size: 17px; color: var(--pink); }
.mt-of small { color: var(--mute); font-size: 11px; font-weight: 700; }
.mt-of button { margin-top: auto; padding: 9px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; font-size: 12px; }
.mt-of button:hover { background: var(--pink); }

/* Categorías (tarjetas) */
.mt-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 12px; }
.mt-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-align: center; font-weight: 800; font-size: 14px; line-height: 1.2; transition: border-color 0.15s, transform 0.15s; }
.mt-tile i { font-style: normal; font-size: 40px; margin-bottom: 6px; }
.mt-tile small { font-size: 11px; font-weight: 700; color: var(--mute); margin-top: 2px; }
.mt-tile:hover { border-color: var(--pink); transform: translateY(-2px); }
.mt-tile--extra { display: none; }
.mt-tiles.abierta .mt-tile--extra { display: flex; animation: mt-aparece 0.25s ease both; }

/* Banner por mayor */
.mt-mayor { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; padding: 20px 26px; border-radius: 20px; background: linear-gradient(100deg, #ffd3e8, #d6ebff); }
.mt-mayor__big { font-size: 48px; }
.mt-mayor__txt { flex: 1; min-width: 200px; }
.mt-mayor h3 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: var(--navy); }
.mt-mayor h3 em { font-style: normal; color: var(--pink); }
.mt-mayor p { margin-top: 3px; font-size: 13px; color: #2d3b6b; }
.mt-pill { padding: 10px 20px; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 800; transform: rotate(-2deg); }

/* Chips de atajos */
.mt-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px 0; }
.mt-chips::-webkit-scrollbar { display: none; }
.mt-chip { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 13px; white-space: nowrap; }
.mt-chip:hover { border-color: var(--pink); color: var(--pink); }
.mt-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── Tarjeta de producto ─────────────────────────────────── */
.mt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mt-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; transition: box-shadow 0.2s, border-color 0.2s; }
.mt-card:hover { background: #fff3f9; color: var(--ink); border-color: #f6c3dc; box-shadow: 0 12px 28px rgba(230, 25, 125, 0.12); }
.mt-card:hover .precio, .mt-card:hover .tarjeta__nombre a { color: var(--ink); }
.mt-card:hover .mt-card__cat { color: var(--blue); }
.mt-card__img { display: grid; place-items: center; height: 170px; border-radius: 14px; background: #fff; overflow: hidden; }
.mt-card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.mt-card:hover .mt-card__img img { transform: scale(1.05); }
.mt-card__promo { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; }
.mt-card__promo--gris { background: var(--mute); }
.mt-card__fav { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); }
.mt-card__fav svg { width: 19px; height: 19px; fill: transparent; stroke: var(--navy); stroke-width: 2; transition: fill 0.2s, transform 0.2s; }
.mt-card__fav[aria-pressed="true"] svg { fill: var(--pink); stroke: var(--pink); }
.mt-card__fav:hover svg { transform: scale(1.12); }
.mt-card__cat { font-size: 11px; font-weight: 800; color: var(--blue); text-align: center; text-transform: uppercase; letter-spacing: 0.04em; }
.mt-card .tarjeta__nombre { min-height: 35px; font-family: var(--ff-texto); font-size: 14px; font-weight: 700; line-height: 1.25; text-align: center; text-transform: none; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-card .tarjeta__nombre a:hover { color: var(--pink); }
.precios-mt { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-size: 12px; color: var(--mute); }
.precios-mt > div:first-child { border-right: 1px solid var(--line); }
.precios-mt b { display: block; font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.precios-mt small { font-size: 11.5px; font-weight: 700; }
.precios-mt__mayor b { color: var(--pink); }
.mt-add { margin-top: auto; padding: 11px; border-radius: 999px; background: var(--pink); color: #fff; font-weight: 800; font-size: 13px; transition: background 0.15s; }
.mt-add:hover { background: var(--pink-osc); }
.mt-add[disabled] { background: var(--line); color: var(--mute); cursor: not-allowed; }

/* Ficha del producto */
.precios-mt--ficha { margin: 18px 0 10px; padding: 14px 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.precios-mt--ficha small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.precios-mt--ficha small em { font-style: normal; color: #fff; background: var(--pink); padding: 1px 7px; border-radius: 999px; letter-spacing: 0; }
.precios-mt--ficha b { font-size: clamp(26px, 3.2vw, 36px); }
.ficha__mayor-aviso { padding: 10px 14px; border-radius: 14px; background: var(--soft); font-size: 13.5px; color: var(--navy); }
.ficha__nombre { font-size: clamp(24px, 3vw, 36px); }
.galeria__principal { background: #fff; border-radius: 20px; }
.galeria__principal img { object-fit: contain !important; }
.galeria__mini img { object-fit: contain !important; background: #fff; }

/* Catálogo */
.mt-head--cat { margin-bottom: 4px; }
.mt-aviso-mayor { margin: 8px 0 4px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(100deg, #ffe3f1, #e4f1ff); font-size: 13px; color: var(--navy); }
.catalogo { padding-block: 8px 10px; }
.barra-filtros { top: var(--alto-header); background: rgba(246, 244, 251, 0.95); margin-bottom: 16px; border-bottom-color: var(--line); }
.filtro-chip { border-width: 1px; border-color: var(--line); background: #fff; text-transform: none; letter-spacing: 0; font-size: 13px; }
.filtro-chip.activo { background: var(--navy); border-color: var(--navy); color: #fff; }
.orden select { text-transform: none; letter-spacing: 0; border-width: 1px; background-color: #fff; font-size: 13px; }
.vacio { text-align: center; padding: 40px 10px; display: grid; justify-items: center; gap: 10px; }
.vacio .titulo-mt::before { display: none; }

/* Carrito: barra del precio por mayor */
.envio-barra { border-radius: 16px; background: var(--soft); border: 0; }
.envio-barra--ok { background: #e6f7ec; }
.envio-barra--ok .envio-barra__riel span { background: var(--verde); }
.envio-barra__riel span { background: var(--pink); }
.item__unitario s { color: var(--mute); }

/* ── Instagram / WhatsApp + pie ──────────────────────────── */
.mt-news { background: linear-gradient(90deg, var(--blue), var(--pink)); color: #fff; }
.mt-news .mt-wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.mt-news b { display: block; font-size: 18px; }
.mt-news span { font-size: 14px; }
.mt-news span a { font-weight: 800; text-decoration: underline; }
.mt-news__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.mt-footer { background: var(--navy); color: #cfd8f5; font-size: 13px; }
.mt-footer__grilla { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 26px; padding-top: 32px; padding-bottom: 32px; }
.mt-footer__grilla > div { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.mt-footer b { color: #fff; font-size: 14px; margin-bottom: 4px; }
.mt-footer a:hover { color: #fff; text-decoration: underline; }
.mt-footer__logo { --logo-w: 150px; padding: 8px 12px; background: #fff; border-radius: 16px; margin-bottom: 6px; }
.mt-footer p { line-height: 1.6; max-width: 360px; }
.mt-footer__redes { display: flex; gap: 14px; font-weight: 800; color: #fff; }
.mt-footer__arrep { color: #ff9cc9; font-weight: 800; }
.mt-footer__copy { padding: 14px 16px; border-top: 1px solid #ffffff1f; text-align: center; font-size: 12px; }

/* Barra inferior (celular) */
.mt-bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; justify-content: space-around; padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(15, 42, 92, 0.06); }
.mt-bnav a, .mt-bnav button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--ink); }
.mt-bnav i { font-style: normal; font-size: 21px; line-height: 1.1; }
.mt-bnav .on { color: var(--pink); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .mt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mt-tiles { grid-template-columns: repeat(3, 1fr); }
  .mt-perks { grid-template-columns: 1fr 1fr; }
  .mt-footer__grilla { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --alto-header: 106px; }
  body { padding-bottom: 72px; }
  .mt-top span:nth-child(2) { display: none; }
  .mt-cats { display: none; }
  .mt-hrow { flex-wrap: wrap; gap: 10px; padding-top: 8px; padding-bottom: 10px; }
  .mt-catbtn { display: inline-flex; }
  .mt-logo { --logo-w: 104px; margin: 0 auto; }
  .mt-acciones { margin-left: 0; }
  .mt-solo-pc { display: none; }
  .mt-icono small { display: none; }
  .mt-search { order: 5; flex: 1 0 100%; max-width: none; }
  .mt-shell { display: block; margin-top: 14px; }
  .mt-side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 80; width: min(320px, 86%); max-height: none; border-radius: 0 18px 18px 0; transform: translateX(-102%); transition: transform 0.25s ease; padding-top: env(safe-area-inset-top, 0px); }
  .mt-side__cab { border-radius: 0 18px 0 0; }
  .mt-side__cab button { display: block; }
  .cats-abiertas .mt-side { transform: none; }
  .mt-ov { position: fixed; inset: 0; z-index: 75; background: rgba(15, 42, 92, 0.45); }
  .cats-abiertas .mt-ov { display: block; }
  .cats-abiertas { overflow: hidden; }
  .mt-hero { grid-template-columns: 1fr; }
  .mt-minis { grid-template-columns: repeat(4, 1fr); }
  .mt-mini { min-height: 110px; }
  .mt-mini i { font-size: 26px; }
  .mt-bnav { display: flex; }
  .whatsapp { bottom: 86px; width: 50px; height: 50px; }
  .toast { bottom: 140px; }
  .barra-filtros { top: var(--alto-header); }
}
@media (max-width: 640px) {
  .mt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mt-card { padding: 9px; border-radius: 16px; gap: 6px; }
  .mt-card__img { height: 120px; }
  .mt-card__promo { top: 12px; left: 12px; font-size: 10px; padding: 2px 8px; }
  .mt-card__fav { top: 8px; right: 8px; width: 30px; height: 30px; }
  .mt-card .tarjeta__nombre { font-size: 12.5px; min-height: 32px; }
  .precios-mt b { font-size: 14.5px; }
  .precios-mt small { font-size: 10.5px; }
  .mt-add { font-size: 11.5px; padding: 10px 6px; }
  .mt-minis { grid-template-columns: 1fr 1fr; }
  .mt-hero__main { padding: 22px; min-height: 0; }
  .mt-hero__main h1 { max-width: none; }
  .mt-hero__art { position: static; align-self: flex-end; font-size: 60px; margin: -8px 0 -6px; }
  .mt-tiles { gap: 8px; }
  .mt-tile { padding: 12px 4px; font-size: 12px; }
  .mt-tile i { font-size: 32px; }
  .mt-perks { padding: 12px; }
  .mt-perk i { font-size: 22px; }
  .mt-mayor { padding: 16px; }
  .mt-mayor__big { font-size: 34px; }
  .mt-footer__grilla { grid-template-columns: 1fr; }
  .mt-top .mt-wrap { gap: 12px; }
  .mt-top span:nth-child(3) { display: none; }
  .barra-filtros { flex-wrap: wrap; gap: 8px; }
}

/* ── Ajustes en el celular ───────────────────────────────── */
@media (max-width: 900px) {
  /* Menú de categorías: borde recto y la página de fondo no se mueve */
  .mt-side, .mt-side__cab { border-radius: 0; }
  .mt-side { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  html.cats-abiertas, html.cats-abiertas body { overflow: hidden; }
  .mt-ov { touch-action: none; }
}
@media (max-width: 640px) {
  /* Ficha del producto: precios más grandes */
  .precios-mt.precios-mt--ficha { padding: 18px 0; margin-top: 20px; }
  .precios-mt.precios-mt--ficha b { font-size: 28px; margin-top: 4px; }
  .precios-mt.precios-mt--ficha small { font-size: 12px; }
}

/* Panel de categorías en páginas sin menú lateral: solo existe en el celular */

/* ── Panel admin: barra de arriba blanca, a juego con el logo ── */
.adm { background: var(--bg); }
.adm-top { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgba(15, 42, 92, 0.06); }
.adm-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--pink)); }
@media (min-width: 1101px) { .adm-top__fila { height: 78px; } }
.adm-marca > span { width: auto; }
.adm-marca .marca-img { width: var(--logo-w); }
.adm-marca .marca-img { --logo-w: 104px; }
.adm-marca small { background: var(--pink); }
.adm-nav { background: var(--bg); border: 1px solid var(--line); }
.adm-nav a { color: var(--mute); letter-spacing: 0.04em; }
.adm-nav a:hover { color: var(--pink); background: var(--soft); }
.adm-nav a.activo { color: #fff; background: var(--pink); box-shadow: 0 4px 10px rgba(230, 25, 125, 0.25); }
.adm-top .icono-btn { color: var(--navy); }
.adm-top .icono-btn:hover { background: var(--soft); color: var(--pink); }
.adm-usuario summary { background: var(--bg); border: 1px solid var(--line); }
.adm-usuario summary:hover { background: var(--soft); }
.adm-usuario__inicial { background: var(--pink); color: #fff; }
.adm-usuario__nombre small { color: var(--mute); }
@media (max-width: 900px) {
  .adm-nav { background: transparent; border: 0; }
  .adm-nav a { background: var(--bg); }
  .adm-marca .marca-img { --logo-w: 86px; }
}

/* ═══════════ Versión 2: PC a todo lo ancho, sin columna lateral, íconos de línea ═══════════ */
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.mt-page { margin-top: 20px; margin-bottom: 40px; padding-left: clamp(16px, 2.4vw, 32px); padding-right: clamp(16px, 2.4vw, 32px); }
.mt-header .mt-wrap, .mt-top .mt-wrap, .mt-news .mt-wrap, .mt-footer .mt-wrap { padding-left: clamp(16px, 2.4vw, 32px); padding-right: clamp(16px, 2.4vw, 32px); }
.mt-top span { display: inline-flex; align-items: center; gap: 6px; }
.mt-top .ico { color: #7cc7f5; }
.mt-catbtn .ico { width: 18px; height: 18px; }

/* Barra de atajos: botón de categorías + links */
.mt-cats .mt-wrap { align-items: center; }
.mt-cats__todas { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; margin-right: 6px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; font-size: 13px; }
.mt-cats__todas:hover { background: var(--pink); }
.mt-cats__todas .ico { width: 17px; height: 17px; }
.mt-cats a { display: inline-flex; align-items: center; gap: 6px; }
.mt-cats__oferta { color: var(--pink) !important; }
.mt-cats__oferta:hover { color: #fff !important; }

/* Panel de categorías */
.mt-si i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--bg); color: var(--navy); font-size: 18px; }
.mt-si:hover i, .mt-si.on i { background: #fff; color: var(--pink); }
.mt-side__pie a, .mt-side__pie span { display: flex; align-items: center; gap: 8px; }
.mt-side__cab { border-radius: 0; }
.mt-side__cab button { display: block; }

/* Portada con fotos reales */
.mt-hero { grid-template-columns: 1.55fr 1fr; gap: 16px; }
.mt-hero__main { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; min-height: 340px; padding: 34px 40px; }
.mt-hero__txt { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.mt-hero__main h1 { max-width: 460px; font-size: clamp(28px, 3.2vw, 48px); }
.mt-hero__main p { max-width: 380px; font-size: 15px; }
.mt-cta { display: inline-flex; align-items: center; gap: 8px; }
.mt-hero__fotos { position: relative; flex: none; width: clamp(220px, 24vw, 380px); aspect-ratio: 1; }
.mt-hero__foto { position: absolute; display: grid; place-items: center; overflow: hidden; background: #fff; border-radius: 22px; box-shadow: 0 16px 36px rgba(15, 42, 92, 0.16); }
.mt-hero__foto img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.mt-hero__foto--1 { inset: 0 28% 28% 0; z-index: 2; transform: rotate(-4deg); }
.mt-hero__foto--2 { inset: 34% 0 0 38%; z-index: 3; transform: rotate(5deg); }
.mt-hero__foto--3 { inset: 4% 0 52% 62%; z-index: 1; transform: rotate(8deg); }
.mt-minis { grid-template-columns: 1fr 1fr; gap: 16px; }
.mt-mini { position: relative; overflow: hidden; flex-direction: row; align-items: stretch; gap: 8px; min-height: 162px; padding: 16px; }
.mt-mini__txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.mt-mini__txt small { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.mt-mini__txt b { font-size: 17px; line-height: 1.2; }
.mt-mini__txt em { font-style: normal; font-size: 13px; font-weight: 700; opacity: 0.9; }
.mt-mini__foto { position: absolute; right: 10px; bottom: 10px; width: 46%; aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); transform: rotate(-4deg); transition: transform 0.2s; }
.mt-mini:hover .mt-mini__foto { transform: rotate(0) scale(1.04); }
.mt-mini__foto img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.mt-perk i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--soft); color: var(--pink); font-size: 22px; }
.mt-perk:nth-child(even) i { background: #e4f1ff; color: var(--blue); }

/* Ofertas más grandes en PC */
.mt-of { flex: 0 0 210px; }
.mt-of__img { height: 150px; }

/* Categorías: 8 en una fila */
.mt-tiles { grid-template-columns: repeat(8, 1fr); }
.mt-tile { gap: 4px; padding: 18px 8px; font-size: 13.5px; }
.mt-tile i { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 18px; background: var(--bg); color: var(--navy); font-size: 28px; transition: background 0.15s, color 0.15s; }
.mt-tile:hover i { background: var(--soft); color: var(--pink); }
.mt-mayor__big { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #fff; color: var(--pink); font-size: 34px; }

/* Grilla de productos más ancha */
.mt-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mt-card__img { height: 200px; }
.mt-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.mt-add .ico { width: 17px; height: 17px; }

/* Avisos con ícono */
.mt-aviso-mayor, .ficha__mayor-aviso { display: flex; align-items: center; gap: 10px; }
.mt-aviso-mayor .ico, .ficha__mayor-aviso .ico { width: 22px; height: 22px; color: var(--pink); }
.mt-h-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: 4px; border-radius: 14px; background: var(--soft); color: var(--pink); font-size: 24px; }

/* Pie y banda de redes */
.mt-btn .ico { width: 18px; height: 18px; }
.mt-footer__grilla a, .mt-footer__grilla span { display: inline-flex; align-items: center; gap: 7px; }
.mt-footer__grilla .ico { color: #7cc7f5; }
.mt-bnav .ico { width: 23px; height: 23px; }

@media (max-width: 1300px) {
  .mt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mt-tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
  .mt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mt-hero { grid-template-columns: 1fr; }
  .mt-minis { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .mt-page { margin-top: 14px; }
  .mt-hero__main { flex-direction: column; align-items: stretch; min-height: 0; padding: 24px; }
  .mt-hero__fotos { width: 200px; align-self: flex-end; margin-top: -10px; }
  .mt-minis { grid-template-columns: 1fr 1fr; }
  .mt-mini { min-height: 130px; }
  .mt-mini__foto { width: 42%; }
  .mt-tiles { grid-template-columns: repeat(3, 1fr); }
  /* En el celular se ven 6 categorías (2 filas) hasta tocar "Mostrar todas" */
  .mt-tiles:not(.abierta) .mt-tile:nth-child(n + 7) { display: none; }
}
@media (max-width: 640px) {
  .mt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-card__img { height: 120px; }
  .mt-hero__main h1 { font-size: 28px; }
  .mt-hero__fotos { width: 160px; }
  .mt-mini__txt b { font-size: 15px; }
  .mt-tile i { width: 44px; height: 44px; font-size: 22px; }
  .mt-of { flex-basis: 168px; }
  .mt-of__img { height: 120px; }
}

/* Al saltar a una sección, que no quede debajo del header */
.mt-page section[id] { scroll-margin-top: calc(var(--alto-header) + 14px); }

/* Banner de portada (imagen) */
.mt-banner { margin-bottom: 18px; }
.mt-banner a { display: block; border-radius: 22px; overflow: hidden; box-shadow: 0 12px 30px rgba(15, 42, 92, 0.12); }
.mt-banner img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .mt-banner a { border-radius: 14px; } }

/* Barra azul de arriba: un mensaje a la vez, rotando */
.mt-top .mt-top__rota { display: grid; place-items: center; gap: 0; flex-wrap: nowrap; overflow: hidden; }
.mt-top .mt-top__rota > span { grid-area: 1 / 1; display: inline-flex; opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; white-space: nowrap; pointer-events: none; }
.mt-top .mt-top__rota > span.on { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .mt-top .mt-top__rota > span { transition: none; transform: none; } }
@media (max-width: 380px) { .mt-top .mt-top__rota > span { font-size: 11px; } }

/* Franja de Instagram en un solo azul; logo del pie sin fondo con borde blanco */
.mt-news { background: var(--blue); color: #fff; }
.mt-footer__logo { padding: 0; background: none; border-radius: 0; }
.mt-footer__logo img { display: block; width: 170px; height: auto;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff); }

/* Chips de filtros: que se deslicen dentro del ancho de la pantalla (sin desbordar) */
.barra-filtros__chips { flex: 1 1 auto; min-width: 0; max-width: 100%; }
@media (max-width: 900px) {
  .barra-filtros__chips { flex-basis: 100%; }
  .barra-filtros__acciones { flex: 1 1 100%; min-width: 0; }
  .barra-filtros__acciones .orden { flex: 1; min-width: 0; }
  .barra-filtros__acciones .orden select { width: 100%; }
}
