/* =====================================================================
   MENÚ CON FOTOS (2026-12-01) — layout/partials/header-menu-fotos.php
   Diseño 2 (elegido por el usuario el 2026-12-01, prototipo
   https://claude.ai/artifact/42BL3zU8cN4FsYoDJdDz4u):
   - desplegable a todo el ancho, como el header (container-full-2), con más aire abajo;
   - foto con los 4 bordes redondeados y el nombre corto en texto oscuro debajo
     (sin bloque de color ni cantidad de productos);
   - Golosinas: 11 columnas como máximo, mínimo 124 px (2 filas en pantallas anchas);
   - "Estás acá": fondo gris + sombra, etiqueta blanca dentro de la foto;
   - destacados en tarjetas blancas; en Figuritas y Juguetes, al costado (.wmf--lado);
   - marcas como "Marcas destacadas" del home; las que no tienen logo, en nombres;
   - arriba de los productos: categorías hermanas en texto (.wmf-herm).
   Clases wmf-. Sin color-mix (Chrome 109 de Windows 7).
   ===================================================================== */

/* El contenido de texto de siempre queda en el HTML (menú ☰ del celular) pero no se ve */
.wowco-mm.wmf-on > .container > :not(.wmf) { display: none !important; }
/* Mientras se escribe en el buscador del menú, el desplegable no se cierra */
.wowco-mm-item:has(.wmf-bus input:focus) > .sub-menu.wmf-on {
    -webkit-transform: scale(1);
    transform: scale(1);
    pointer-events: all;
    opacity: 1;
    visibility: visible;
}

/* Desplegable a todo el ancho (mismos márgenes que el header) y separado de la página */
@media (min-width: 1200px) {
    .wowco-mm.wmf-on.mega-menu {
        padding-top: 22px;
        border-radius: 0 0 24px 24px;
        box-shadow: 0 34px 60px -26px rgba(17, 28, 58, 0.5);
    }
    .wowco-mm.wmf-on > .container { max-width: 1920px; padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 1600px) {
    .wowco-mm.wmf-on > .container { padding-left: 40px; padding-right: 40px; }
}

.wmf {
    --wmf-c: #d42e7d;
    color: #111c3a;
    text-align: left;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* 12 px de margen para que las sombras y "Estás acá" no se corten; 44 px de aire abajo */
    margin: 0 -12px;
    padding: 10px 12px 44px;
    scrollbar-width: thin;
}
.wmf-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 16px; }
.wmf .wmf-t { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; color: #111c3a; letter-spacing: -0.01em; }
.wmf-bus {
    margin: 0 0 0 auto;
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 999px;
    padding: 0 16px;
    height: 42px;
    flex: 0 1 320px;
    color: #6b7280;
    cursor: text;
}
.wmf-bus svg { flex: none; }
.wmf-bus input,
.wmf-bus input[type="search"] {
    border: 0 !important;
    outline: 0;
    background: none !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 15px;
    color: #111;
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 !important;
    margin: 0;
}
.wmf-bus:focus-within { border-color: #d42e7d; box-shadow: 0 0 0 3px rgba(212, 46, 125, 0.13); }
.wmf .wmf-todo { color: #9d1a5a; font-weight: 800; font-size: 15px; white-space: nowrap; text-decoration: none; }
.wmf .wmf-todo:hover { color: #d42e7d; text-decoration: underline; }
.wmf-cerrar {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0; line-height: 1;
    border: 1px solid #d6dbe4; background: #fff; border-radius: 999px;
    color: #1b2a3d; font-size: 15px; cursor: pointer;
}

/* Filtros de Golosinas */
.wmf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.wmf-chip {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 1.5px solid #dfe3ea; background: #fff; color: #111c3a;
    border-radius: 999px; padding: 8px 15px; margin: 0;
    font-weight: 700; font-size: 14px; line-height: 1; cursor: pointer;
}
.wmf-chip:hover { border-color: #b9c1cf; }
.wmf-chip.is-on { background: #111c3a; border-color: #111c3a; color: #fff; }

/* ---------- Tarjetas: foto redondeada + nombre debajo ---------- */
.wmf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; }
@media (min-width: 1200px) {
    /* Hasta 11 columnas, nunca menos de 124 px: en 1800 px las 22 de Golosinas entran en 2 filas */
    .wmf .wmf-grid { grid-template-columns: repeat(auto-fill, minmax(max(124px, calc((100% - 200px) / 11)), 1fr)); gap: 22px 20px; }
}
.wmf a.wmf-tile {
    position: relative;
    display: block;
    border-radius: 18px;
    color: #111c3a;
    text-decoration: none;
}
.wmf-tile.wmf-fuera { display: none !important; }
.wmf-ph {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f7;
    box-shadow: 0 1px 2px rgba(17, 28, 58, 0.06), 0 6px 16px rgba(17, 28, 58, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
@supports not (aspect-ratio: 1 / 1) { .wmf-ph { height: 0; padding-bottom: 100%; } }
.wmf-ph img {
    position: absolute; top: 0; left: 0;
    width: 100% !important; height: 100% !important; max-width: none;
    object-fit: cover; display: block;
    transition: transform 0.4s ease, opacity 0.2s ease;
}
.wmf-ph img.wmf-prov { object-fit: contain; padding: 9%; background: #fff; }
.wmf-ph img:not([src]) { visibility: hidden; }
.wmf-ph img.wmf-dif { opacity: 0; }
.wmf-ph img.wmf-dif.wmf-ok { opacity: 1; }
/* Sin foto (ej. carpeta exclusiva): cuadro del color de la sección con el nombre */
.wmf-ph--sin { background: var(--wmf-c); }
.wmf-ph-txt {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 12px; color: #fff; font-weight: 800; font-size: 15px; line-height: 1.2;
}
.wmf-nom {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 10px;
    font-weight: 800;
    font-size: 14.5px;
    line-height: 1.25;
    color: #111c3a;
    transition: color 0.2s ease;
}
@media (hover: hover) {
    .wmf a.wmf-tile:hover .wmf-ph { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(17, 28, 58, 0.17); }
    .wmf a.wmf-tile:hover .wmf-ph img { transform: scale(1.05); }
    .wmf a.wmf-tile:hover .wmf-nom { color: var(--wmf-c); }
}
.wmf-et {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    font-style: normal; color: #fff; background: #3e9a5b;
    font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; line-height: 1;
}
.wmf-et--oferta { background: #e11d48; }
/* Dónde estás: fondo gris + sombra (sin el borde negro de antes) */
.wmf a.wmf-tile.is-aqui {
    background: #eef1f6;
    box-shadow: 0 0 0 9px #eef1f6, 0 12px 26px 6px rgba(17, 28, 58, 0.12);
}
.wmf a.wmf-tile.is-aqui .wmf-ph { box-shadow: 0 8px 20px rgba(17, 28, 58, 0.16); }
.wmf-aqui {
    position: absolute; left: 8px; bottom: 8px; z-index: 2;
    display: flex; align-items: center; gap: 6px;
    font-style: normal; font-size: 12px; font-weight: 800; line-height: 1;
    color: #3b4459; background: rgba(255, 255, 255, 0.94);
    border-radius: 999px; padding: 5px 10px 5px 8px;
    box-shadow: 0 4px 12px rgba(17, 28, 58, 0.18);
}
.wmf-aqui::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #8b95a9; }

/* ---------- Destacados / Recién llegadas ---------- */
.wmf-bajo { margin-top: 22px; padding-top: 18px; border-top: 1px solid #eef0f4; }
.wmf-bloque-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.wmf .wmf-st { margin: 0; font-size: 17px; font-weight: 800; color: #111c3a; letter-spacing: 0; text-transform: none; }
.wmf a.wmf-bloque-l { margin-left: auto; color: #9d1a5a; font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.wmf a.wmf-bloque-l:hover { color: #d42e7d; text-decoration: underline; }
.wmf-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
@media (min-width: 1200px) {
    /* Una sola fila de 6 */
    .wmf .wmf-bajo .wmf-prods { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.wmf a.wmf-prod {
    display: flex; gap: 12px; align-items: center;
    background: #fff; border: 1px solid #edf0f5; border-radius: 16px;
    padding: 10px 12px 10px 10px;
    box-shadow: 0 4px 14px rgba(17, 28, 58, 0.06);
    color: #111c3a; text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (hover: hover) {
    .wmf a.wmf-prod:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(17, 28, 58, 0.13); }
}
.wmf-prod-img {
    flex: none; width: 64px; height: 64px;
    border-radius: 12px; background: #f5f6f9;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
@media (min-width: 1500px) { .wmf-prod-img { width: 78px; height: 78px; } }
.wmf-prod-img img { max-width: 86%; max-height: 86%; width: auto; height: auto; object-fit: contain; }
.wmf-prod-img img:not([src]) { visibility: hidden; }
.wmf-prod-tx { display: block; min-width: 0; }
.wmf-prod-nom { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 700; line-height: 1.28; }
.wmf-prod-pr { display: block; font-weight: 800; font-size: 15px; margin-top: 4px; }
.wmf-prod-bd {
    display: inline-block; font-style: normal; font-size: 11px; font-weight: 800; line-height: 1.1;
    color: #fff; background: #3e9a5b; border-radius: 999px; padding: 3px 8px; margin-bottom: 5px;
}
.wmf-prod-bd--sale { background: #e11d48; }

/* Pocas categorías (Figuritas, Juguetes y más): destacados al costado, en la misma fila */
@media (min-width: 1500px) {
    .wmf--lado .wmf-cuerpo {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(max(124px, calc((100% - 200px) / 11)), 1fr));
        gap: 22px 20px;
        align-items: start;
    }
    .wmf--lado .wmf-cuerpo > .wmf-grid { display: contents; }
    .wmf--lado .wmf-bajo {
        grid-column: var(--wmf-col, auto / span 4);
        align-self: stretch;
        margin: 0;
        padding: 0 0 0 30px;
        border-top: 0;
        border-left: 1px solid #eef0f4;
    }
    .wmf--lado .wmf-bajo .wmf-prods { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}

/* ---------- Marcas (como "Marcas destacadas" del home) ---------- */
.wmf--marcas .wmf-h .wmf-todo { margin-left: auto; }
.wmf-tiendas { display: flex; flex-wrap: wrap; gap: 8px 9px; align-items: center; margin: 0 0 20px; }
.wmf .wmf-tiendas .wmf-st { margin: 0 6px 0 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #1e3a8a; }
.wmf a.wmf-tienda { border-radius: 999px; padding: 10px 17px; font-weight: 800; font-size: 14px; line-height: 1; text-decoration: none; }
.wmf-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.wmf a.wmf-logo {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    height: 88px; padding: 14px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(0, 74, 144, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    color: #1b2a4a; text-decoration: none; font-weight: 800; font-size: 15px; text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wmf a.wmf-logo::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 3;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.3) 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
    transform: translateX(-130%);
    transition: transform 0.7s ease;
    pointer-events: none;
}
.wmf a.wmf-logo::after {
    content: '';
    position: absolute; left: -40px; bottom: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(70, 203, 255, 0.18), transparent 70%);
    pointer-events: none;
}
.wmf-logo img { position: relative; z-index: 2; max-width: 100%; max-height: 46px; width: auto; height: auto; object-fit: contain; transition: transform 0.25s ease; }
.wmf-logo img:not([src]) { visibility: hidden; }
@media (hover: hover) {
    .wmf a.wmf-logo:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 74, 144, 0.16); }
    .wmf a.wmf-logo:hover::before { transform: translateX(130%); }
    .wmf a.wmf-logo:hover img { transform: scale(1.05); }
}
.wmf .wmf-mas-t { margin: 26px 0 12px; font-size: 16px; font-weight: 800; color: #111c3a; }
.wmf-mas { display: flex; flex-wrap: wrap; gap: 8px; }
.wmf a.wmf-marca-n {
    border: 1px solid #e3e7ee; border-radius: 999px; padding: 9px 15px;
    background: #fff; color: #111c3a; text-decoration: none;
    font-weight: 700; font-size: 14px; line-height: 1.1;
    box-shadow: 0 2px 6px rgba(17, 28, 58, 0.04);
}
.wmf a.wmf-marca-n:hover { border-color: #b9c1cf; box-shadow: 0 6px 14px rgba(17, 28, 58, 0.1); }

/* Resultados del buscador */
.wmf-res .wmf-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.wmf-res a.wmf-logo { width: 150px; }
.wmf .wmf-vacio { margin: 4px 0; color: #6b7280; font-size: 14px; }

/* ---------- Celular y tablet: el mismo panel debajo de la fila de categorías ---------- */
.wmf-movil { background: #fff; border-bottom: 1px solid #e3e7ee; border-radius: 0 0 22px 22px; box-shadow: 0 14px 26px rgba(17, 28, 58, 0.14); padding: 14px 14px 22px; }
.wmf-movil .wmf { max-height: none; overflow: visible; margin: 0; padding: 0; }
.wmf-movil .wmf-h { gap: 8px 10px; margin-bottom: 12px; }
.wmf-movil .wmf-t { flex: 1 1 auto; font-size: 20px; order: 1; }
.wmf-movil .wmf-cerrar { order: 2; }
.wmf-movil .wmf-bus { order: 3; flex: 1 1 100%; margin: 0; height: 40px; }
.wmf-movil .wmf-todo { order: 4; font-size: 13.5px; }
.wmf-movil .wmf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
.wmf-movil .wmf-ph { border-radius: 14px; }
.wmf-movil .wmf-nom { font-size: 13.5px; margin-top: 8px; }
.wmf-movil .wmf-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 16px; padding: 0 14px; }
.wmf-movil .wmf-chips::-webkit-scrollbar { display: none; }
.wmf-movil .wmf-chip { flex: none; font-size: 13px; padding: 7px 12px; }
.wmf-movil .wmf-bajo { margin-top: 20px; padding-top: 16px; }
.wmf-movil .wmf-prods { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px 10px; }
.wmf-movil .wmf-prods::-webkit-scrollbar { display: none; }
.wmf-movil a.wmf-prod { flex: 0 0 250px; }
.wmf-movil .wmf-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wmf-movil a.wmf-logo { height: 64px; padding: 10px; border-radius: 14px; }
.wmf-movil .wmf-logo img { max-height: 30px; }
.wmf-movil a.wmf-tienda { font-size: 13px; padding: 8px 12px; }
.wmf-movil a.wmf-marca-n { font-size: 13px; padding: 7px 12px; }
@media (min-width: 768px) {
    .wmf-movil .wmf-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .wmf-movil .wmf-logos { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
.wowco-cats-movil__fila a[aria-expanded="true"] { background: #ffffff; color: #b81d68; }

/* ---------- Arriba de los productos: categorías hermanas en texto ---------- */
.wmf-herm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.wmf-herm-t { font-size: 14.5px; color: #5f6a85; font-weight: 700; margin-right: 4px; }
.wmf-herm a {
    background: #fff; border: 1px solid #dfe3ea; border-radius: 999px;
    padding: 8px 15px; color: #111c3a; text-decoration: none;
    font-weight: 700; font-size: 14.5px; line-height: 1.1;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wmf-herm a:hover { border-color: #b9c1cf; box-shadow: 0 6px 14px rgba(17, 28, 58, 0.1); color: #111c3a; }
.wmf-herm a.is-aqui { background: #eef1f6; border-color: #d6dbe4; box-shadow: 0 6px 14px rgba(17, 28, 58, 0.12); font-weight: 800; }
.wmf-herm a.wmf-herm-todas { border: 0; background: none; box-shadow: none; color: #9d1a5a; font-weight: 800; padding-left: 6px; }
.wmf-herm a.wmf-herm-todas:hover { color: #d42e7d; text-decoration: underline; }
@media (min-width: 1200px) {
    /* Con la barra lateral abierta (el cliente prefiere la lista) ya ve las categorías ahí */
    .wcp-lay:not(.is-plegado) .wmf-herm { display: none; }
}
/* En celular y tablet reemplazan a los chips de categorías hermanas de carpeta-ver */
.wcp-lay.wmf-modo .wcv-hermanas { display: none !important; }
@media (max-width: 1199px) {
    .wmf-herm { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -15px; margin-right: -15px; padding: 2px 15px 8px; }
    .wmf-herm::-webkit-scrollbar { display: none; }
    .wmf-herm a { flex: none; font-size: 13.5px; padding: 8px 13px; }
    .wmf-herm-t, .wmf-lg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .wmf-ph, .wmf-ph img, .wmf-nom, .wmf a.wmf-prod, .wmf a.wmf-logo, .wmf a.wmf-logo::before, .wmf-logo img { transition: none; }
}
