/* REINICIO DE MÁRGENES DEL DOCUMENTO */
html,
body {
    margin  : 0;
    padding : 0;
}

/* =========================================================
   JUEGOS RECREATIVOS MÉXICO | PALETA CENTRALIZADA
   Cambia estas tres variables para personalizar la marca:
   --jrm-primario, --jrm-secundario y --jrm-acento.
========================================================= */
:root {
    --jrm-primario: #0879d4;
    --jrm-secundario: #ffcc18;
    --jrm-acento: #ff8614;
    --jrm-texto: #243447;
    --jrm-fondo: #ffffff;
    --jrm-superficie: #f5f9fc;
    --jrm-borde: #dfe8f0;
    --jrm-muted: #617184;
    --jrm-font: 'Poppins', sans-serif;
}

.jrm-header {
    position    : relative !important;
    top         : auto !important;
    left        : auto !important;
    z-index     : 1000;
    background  : var(--jrm-fondo);
    color       : var(--jrm-texto);
    font-family : var(--jrm-font);
    box-shadow  : 0 4px 24px rgba(0,0,0,.07);
    padding     : 0;
    width       : 100%;
}

.jrm-header *, .jrm-header *::before, .jrm-header *::after {
    box-sizing : border-box;
}

.jrm-header a {
    text-decoration : none;
}

.jrm-header button, .jrm-header input {
    font : inherit;
}

.jrm-header .jrm-container {
    max-width : 1440px;
    margin    : auto;
    padding   : 0 26px;
}

.jrm-sr-only {
    position    : absolute;
    width       : 1px;
    height      : 1px;
    padding     : 0;
    overflow    : hidden;
    clip        : rect(0,0,0,0);
    white-space : nowrap;
}

.jrm-topbar {
    background : var(--jrm-primario);
    color      : #fff;
}

.jrm-topbar-inner {
    min-height      : 38px;
    display         : flex;
    align-items     : center;
    justify-content : space-between;
    gap             : 16px;
    font-size       : 12px;
}

.jrm-topbar i {
    color        : var(--jrm-secundario);
    margin-right : 7px;
}

.jrm-topbar-contact {
    display : flex;
    gap     : 24px;
}

.jrm-topbar-contact a {
    color : #fff;
}

.jrm-topbar-contact a:hover {
    color : var(--jrm-secundario);
}

.jrm-mainbar-inner {
    display     : flex;
    align-items : center;
    gap         : 30px;
    min-height  : 112px;
}

.jrm-brand {
    display         : flex;
    align-items     : center;
    justify-content : flex-start;
    flex            : 0 0 155px;
}

.jrm-brand img {
    display    : block;
    width      : auto;
    max-width  : 100%;
    max-height : 100px;
    object-fit : contain;
}

.jrm-search {
    display       : flex;
    align-items   : stretch;
    flex          : 1;
    min-width     : 0;
    height        : 52px;
    background    : var(--jrm-superficie);
    border        : 1px solid var(--jrm-borde);
    border-radius : 12px;
    overflow      : hidden;
}

.jrm-search:focus-within {
    border-color : var(--jrm-primario);
    box-shadow   : 0 0 0 3px color-mix(in srgb, var(--jrm-primario), transparent 88%);
}

.jrm-search input {
    flex       : 1;
    min-width  : 0;
    border     : 0;
    outline    : 0;
    background : transparent;
    color      : var(--jrm-texto);
    padding    : 0 16px;
    font-size  : 13px;
}

.jrm-search input::placeholder {
    color : var(--jrm-muted);
}

.jrm-search button {
    border        : 0;
    border-radius : 0;
    background    : var(--jrm-primario);
    color         : white;
    padding       : 0 22px;
    cursor        : pointer;
    display       : flex;
    align-items   : center;
    gap           : 9px;
    font-size     : 13px;
    font-weight   : 600;
}

.jrm-search button:hover {
    background : color-mix(in srgb, var(--jrm-primario), black 16%);
}

.jrm-actions {
    display     : flex;
    gap         : 18px;
    align-items : center;
    white-space : nowrap;
}

.jrm-action {
    color       : var(--jrm-texto);
    display     : inline-flex;
    align-items : center;
    gap         : 7px;
    font-weight : 600;
    font-size   : 12px;
}

.jrm-action i {
    color     : var(--jrm-primario);
    font-size : 23px;
}

.jrm-action:hover {
    color : var(--jrm-primario);
}

.jrm-menu-trigger, .jrm-search-mobile {
    display : none;
}

.jrm-desktop-nav {
    border-top : 1px solid var(--jrm-borde);
}

.jrm-nav-inner {
    display     : flex;
    align-items : stretch;
    gap         : 4px;
    min-height  : 55px;
}

.jrm-nav-link, .jrm-nav-catalog-trigger {
    display     : inline-flex;
    align-items : center;
    gap         : 10px;
    min-height  : 55px;
    padding     : 0 20px;
    color       : var(--jrm-texto);
    background  : transparent;
    border      : 0;
    font-size   : 13px;
    font-weight : 600;
    cursor      : pointer;
    white-space : nowrap;
}

.jrm-nav-link:hover {
    color : var(--jrm-primario);
}

.jrm-nav-catalog-trigger {
    color      : white;
    background : var(--jrm-primario);
}

.jrm-nav-catalog-trigger:hover {
    background : color-mix(in srgb, var(--jrm-primario), black 15%);
}

.jrm-nav-catalog-trigger > i:last-child {
    font-size : 10px;
}

.jrm-nav-spacer {
    flex : 1;
}

.jrm-nav-assurance {
    display     : inline-flex;
    align-items : center;
    gap         : 8px;
    font-size   : 12px;
    font-weight : 600;
    color       : var(--jrm-muted);
}

.jrm-nav-assurance i {
    color : var(--jrm-acento);
}

.jrm-menu-overlay {
    position   : fixed;
    inset      : 0;
    background : rgba(10,19,34,.56);
    z-index    : 1050;
}

.jrm-menu-overlay[hidden] {
    display : none !important;
}

.jrm-menu {
    display        : flex;
    flex-direction : column;
    position       : fixed;
    top            : 0;
    left           : 0;
    bottom         : 0;
    height         : 100dvh;
    width          : min(390px, 91vw);
    transform      : translateX(-103%);
    transition     : transform .24s ease;
    background     : var(--jrm-fondo);
    color          : var(--jrm-texto);
    z-index        : 1051;
    box-shadow     : 10px 0 30px rgba(0,0,0,.18);
    overflow       : hidden;
}

.jrm-menu.is-open {
    transform : translateX(0);
}

.jrm-menu-head {
    min-height      : 106px;
    display         : flex;
    align-items     : center;
    justify-content : space-between;
    padding         : 12px 20px;
    border-bottom   : 3px solid var(--jrm-secundario);
}

.jrm-menu-head a {
    display   : block;
    max-width : 95px;
}

.jrm-menu-head img {
    width      : 100%;
    max-height : 78px;
    object-fit : contain;
}

.jrm-menu-head button {
    border        : 0;
    border-radius : 8px;
    width         : 40px;
    height        : 40px;
    color         : var(--jrm-texto);
    background    : var(--jrm-superficie);
    cursor        : pointer;
}

.jrm-menu-scroll {
    overflow-y          : auto;
    flex                : 1;
    padding             : 12px 18px 36px;
    overscroll-behavior : contain;
}

.jrm-menu-link, .jrm-department > summary, .jrm-category > summary {
    display         : flex;
    align-items     : center;
    justify-content : space-between;
    gap             : 10px;
    width           : 100%;
    padding         : 15px 10px;
    border-bottom   : 1px solid var(--jrm-borde);
    color           : var(--jrm-texto);
    font-size       : 14px;
    font-weight     : 600;
    cursor          : pointer;
    list-style      : none;
}

.jrm-department > summary::-webkit-details-marker, .jrm-category > summary::-webkit-details-marker {
    display : none;
}

.jrm-department > summary::marker, .jrm-category > summary::marker {
    content : '';
}

.jrm-department[open] > summary {
    color : var(--jrm-primario);
}

.jrm-category > summary {
    font-size    : 13px;
    padding-left : 18px;
}

.jrm-department[open] > summary i, .jrm-category[open] > summary i {
    transform : rotate(180deg);
}

.jrm-menu-title {
    font-size      : 12px;
    font-weight    : 700;
    text-transform : uppercase;
    letter-spacing : .6px;
    color          : var(--jrm-primario);
    background     : var(--jrm-superficie);
    border-left    : 4px solid var(--jrm-acento);
    padding        : 13px 12px;
    margin         : 12px 0 2px;
}

.jrm-menu-children a {
    display       : block;
    padding       : 12px 14px 12px 22px;
    font-size     : 13px;
    color         : var(--jrm-texto);
    border-bottom : 1px solid var(--jrm-borde);
}

.jrm-menu-children-last a {
    padding-left : 32px;
    font-size    : 12px;
}

.jrm-menu-children a:hover, .jrm-menu-link:hover, .jrm-category > summary:hover {
    color      : var(--jrm-primario);
    background : var(--jrm-superficie);
}

.jrm-menu-children a.jrm-view-all {
    font-weight : 700;
    color       : var(--jrm-primario);
}

.jrm-menu-whatsapp {
    display       : block;
    margin-top    : 24px;
    text-align    : center;
    background    : var(--jrm-primario);
    color         : #fff;
    border-radius : 10px;
    font-size     : 13px;
    font-weight   : 600;
    padding       : 14px 12px;
}

.jrm-menu-locked {
    overflow : hidden;
}

@media (max-width: 1000px) {
    .jrm-mainbar-inner {
        gap : 17px;
    }

    .jrm-actions {
        gap : 12px;
    }

    .jrm-action span {
        display : none;
    }

}
@media (max-width: 760px) {
    .jrm-topbar {
        display : none;
    }

    .jrm-mainbar-inner {
        min-height      : 85px;
        padding         : 0 16px !important;
        justify-content : space-between;
    }

    .jrm-menu-trigger {
        display    : block;
        background : transparent;
        color      : var(--jrm-primario);
        border     : 0;
        font-size  : 24px;
        cursor     : pointer;
        padding    : 12px;
    }

    .jrm-brand {
        flex : 0 1 95px;
    }

    .jrm-brand img {
        max-height : 74px;
    }

    .jrm-mainbar-inner > .jrm-search, .jrm-desktop-nav {
        display : none;
    }

    .jrm-actions {
        gap : 12px;
    }

    .jrm-search-mobile {
        display : flex;
        height  : 44px;
        margin  : 0 16px 12px;
    }

    .jrm-search-mobile input {
        font-size : 12px;
    }

    .jrm-search-mobile button {
        padding : 0 18px;
    }

}

/* Barra superior: dirección visible en escritorio, compacta en móvil. */
.jrm-topbar-address {
    white-space : nowrap;
}

@media (max-width: 1050px) {
    .jrm-topbar-address {
        display : none;
    }

}
