/* =========================================================
   MOTOGRAPHIX V9 — INFO MOBILE HUB
   Landing móvil · Liquid Glass claro
   ========================================================= */

:root {
    --mgx-info-red: #e30613;
    --mgx-info-red-bright: #ff2735;
    --mgx-info-green: #20c968;

    --mgx-info-bg: #f2f3f5;
    --mgx-info-text: #101114;
    --mgx-info-muted: rgba(16,17,20,.57);
    --mgx-info-muted-soft: rgba(16,17,20,.38);

    --mgx-info-line: rgba(16,17,20,.075);

    --mgx-info-glass:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.74));

    --mgx-info-shadow:
        inset 0 1px 0 rgba(255,255,255,.98),
        0 10px 30px rgba(20,25,38,.075),
        0 2px 7px rgba(20,25,38,.035);
}


/* =========================================================
   BASE
   ========================================================= */

html {
    margin: 0 !important;
    background: var(--mgx-info-bg);
}

body.mgx-info-mobile-body {
    margin: 0 !important;
    min-height: 100vh;
    overflow-x: hidden;

    color: var(--mgx-info-text);
    background:
        radial-gradient(circle at 50% -7%, rgba(227,6,19,.055), transparent 23%),
        linear-gradient(180deg, #f9fafb 0%, #f1f2f4 48%, #eceef1 100%);

    font-family: var(--mgx-font-ui);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color-scheme: light;
}

body.mgx-info-mobile-body #wpadminbar {
    display: none !important;
}

html:has(body.mgx-info-mobile-body) {
    margin-top: 0 !important;
}

body.mgx-info-mobile-body *,
body.mgx-info-mobile-body *::before,
body.mgx-info-mobile-body *::after {
    box-sizing: border-box;
}

body.mgx-info-mobile-body a,
body.mgx-info-mobile-body button {
    -webkit-tap-highlight-color: transparent;
}

.mgx-info-mobile {
    position: relative;

    width: min(100%, 520px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 12px max(28px, env(safe-area-inset-bottom));
}


/* =========================================================
   HERO / BRAND
   ========================================================= */

.mgx-info-hero {
    position: relative;
    overflow: hidden;

    margin: 0 -12px;
    padding: max(26px, env(safe-area-inset-top)) 24px 16px;

    isolation: isolate;
}

.mgx-info-hero__bg {
    position: absolute;
    z-index: -3;
    top: 0;
    right: -26%;
    width: 102%;
    height: 245px;

    display: block;

    object-fit: cover;
    object-position: center;
    opacity: .14;

    filter: grayscale(1) contrast(.86);
    transform: scale(1.04);
}

.mgx-info-hero__veil {
    position: absolute;
    z-index: -2;
    inset: 0 0 auto;
    height: 285px;

    background:
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(249,250,251,.78) 54%, #f7f8fa 100%),
        linear-gradient(90deg, #f8f9fb 7%, rgba(248,249,251,.72) 58%, rgba(248,249,251,.30));
}

.mgx-info-brand {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mgx-info-brand a {
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
}

.mgx-info-brand img {
    width: auto;
    height: 34px;
    max-width: 270px;
    display: block;
    object-fit: contain;
}

.mgx-info-brand > span {
    margin: 7px 0 0;

    color: rgba(16,17,20,.45);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 5px;
    white-space: nowrap;
    text-align: center;
}


/* =========================================================
   INTRO
   ========================================================= */

.mgx-info-intro {
    position: relative;
    z-index: 2;
    margin-top: 25px;
    text-align: center;
}

.mgx-info-intro h1 {
    margin: 0;

    color: #08090b;
    font-size: clamp(36px, 10vw, 48px);
    line-height: .94;
    font-weight: 900;
    letter-spacing: -1.35px;
}

.mgx-info-intro p {
    max-width: 320px;
    margin: 8px auto 0;

    color: rgba(16,17,20,.64);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}


/* =========================================================
   MAIN ACTIONS
   ========================================================= */

.mgx-info-main-actions {
    position: relative;
    z-index: 2;

    margin-top: 17px;
    display: grid;
    gap: 9px;
}

.mgx-info-action {
    min-height: 92px;
    padding: 11px 12px;

    display: grid;
    grid-template-columns: 58px minmax(0,1fr) 42px;
    align-items: center;
    gap: 12px;

    border-radius: 22px;
    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}

.mgx-info-action--catalog {
    position: relative;
    overflow: hidden;

    color: #fff;

    background:
        radial-gradient(circle at 72% 45%, rgba(255,255,255,.12), transparent 36%),
        linear-gradient(145deg, #f10919, #c7000d 72%);

    border: 1px solid rgba(255,255,255,.18);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.20),
        0 14px 28px rgba(227,6,19,.22);
}

.mgx-info-action--catalog::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,.035) 0 1px,
            transparent 1px 16px
        );
}

.mgx-info-action--whatsapp {
    color: var(--mgx-info-text);

    background: var(--mgx-info-glass);

    border: 1px solid rgba(255,255,255,.90);

    box-shadow: var(--mgx-info-shadow);

    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
}

.mgx-info-action__icon {
    position: relative;
    z-index: 2;

    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 18px;
}

.mgx-info-action--catalog .mgx-info-action__icon {
    color: #fff;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.11);
}

.mgx-info-action--whatsapp .mgx-info-action__icon {
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255,255,255,.14), transparent 42%),
        #22c968;

    border: 1px solid rgba(255,255,255,.42);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.30),
        0 8px 18px rgba(34,201,104,.15);
}

.mgx-info-action__icon .mgx-info-icon {
    width: 31px;
    height: 31px;
}

.mgx-info-action__copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.mgx-info-action__copy strong,
.mgx-info-action__copy small {
    display: block;
}

.mgx-info-action__copy strong {
    overflow: hidden;

    font-size: 17px;
    line-height: 1.08;
    font-weight: 850;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mgx-info-action__copy small {
    margin-top: 5px;

    overflow: hidden;

    color: currentColor;
    opacity: .70;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.mgx-info-action__arrow {
    position: relative;
    z-index: 2;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 50%;
}

.mgx-info-action--catalog .mgx-info-action__arrow {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.12);
}

.mgx-info-action--whatsapp .mgx-info-action__arrow {
    color: rgba(16,17,20,.70);
    background: rgba(243,244,246,.90);
    border: 1px solid rgba(16,17,20,.055);
}

.mgx-info-action__arrow .mgx-info-icon {
    width: 21px;
    height: 21px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.mgx-info-group {
    margin-top: 20px;
}

.mgx-info-group__title {
    margin: 0 5px 9px;

    display: grid;
    grid-template-columns: auto minmax(30px,1fr);
    align-items: center;
    gap: 10px;
}

.mgx-info-group__title h2 {
    margin: 0;

    color: rgba(16,17,20,.62);
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 3.2px;
    white-space: nowrap;
}

.mgx-info-group__title > span {
    height: 1px;
    display: block;
    background: rgba(16,17,20,.16);
}


/* =========================================================
   LIST
   ========================================================= */

.mgx-info-list {
    display: grid;
    gap: 8px;
}

.mgx-info-row {
    width: 100%;
    min-height: 62px;
    padding: 8px 9px 8px 11px;

    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 34px;
    align-items: center;
    gap: 10px;

    color: var(--mgx-info-text);

    background: var(--mgx-info-glass);

    border: 1px solid rgba(255,255,255,.92);
    border-radius: 17px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,1),
        0 7px 18px rgba(20,25,38,.055);

    text-decoration: none;
    text-align: left;
    font: inherit;

    cursor: pointer;

    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.mgx-info-row__icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    color: #c90a15;
}

.mgx-info-row__icon .mgx-info-icon {
    width: 26px;
    height: 26px;
    stroke-width: 1.85;
}

.mgx-info-row > strong {
    min-width: 0;

    color: #121316;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
}

.mgx-info-row__arrow {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    color: rgba(16,17,20,.72);
    background: rgba(244,245,247,.88);
    border: 1px solid rgba(16,17,20,.045);
    border-radius: 50%;
}

.mgx-info-row__arrow .mgx-info-icon {
    width: 16px;
    height: 16px;
}

.mgx-info-list--compact {
    gap: 6px;
}

.mgx-info-list--compact .mgx-info-row {
    min-height: 54px;
    grid-template-columns: 42px minmax(0,1fr) 32px;
}

.mgx-info-list--compact .mgx-info-row__icon .mgx-info-icon {
    width: 23px;
    height: 23px;
}

.mgx-info-list--compact .mgx-info-row > strong {
    font-size: 13px;
    font-weight: 650;
}


/* =========================================================
   ICONS
   ========================================================= */

.mgx-info-icon {
    width: 22px;
    height: 22px;

    display: block;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   SOCIAL
   ========================================================= */

.mgx-info-social-section {
    margin-top: 22px;
}

.mgx-info-socials {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 7px;
}

.mgx-info-socials a {
    min-width: 0;
    min-height: 50px;
    padding: 7px 5px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    color: var(--mgx-info-text);

    background: var(--mgx-info-glass);
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 14px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,1),
        0 6px 16px rgba(20,25,38,.045);

    text-decoration: none;

    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

.mgx-info-socials .mgx-info-icon {
    width: 22px;
    height: 22px;
}

.mgx-info-socials a:nth-child(1) .mgx-info-icon {
    color: #1877f2;
}

.mgx-info-socials a:nth-child(2) .mgx-info-icon {
    color: #e1306c;
}

.mgx-info-socials a:nth-child(3) .mgx-info-icon {
    color: #101114;
}

.mgx-info-socials a:nth-child(4) .mgx-info-icon {
    color: #ff0033;
}

.mgx-info-socials span {
    overflow: hidden;

    color: rgba(16,17,20,.78);
    font-size: 9px;
    font-weight: 600;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   FOOTER CARD
   ========================================================= */

.mgx-info-footer {
    margin: 18px 0 0;
    padding: 14px 14px 10px;

    background:
        linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.62));

    border: 1px solid rgba(255,255,255,.92);
    border-radius: 20px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,1),
        0 10px 28px rgba(20,25,38,.06);

    text-align: center;

    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
}

.mgx-info-footer__main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.mgx-info-footer__main > span,
.mgx-info-footer__main > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #17181b;
    text-decoration: none;
}

.mgx-info-footer__main .mgx-info-icon {
    width: 18px;
    height: 18px;
}

.mgx-info-footer__main > a .mgx-info-icon {
    color: var(--mgx-info-green);
}

.mgx-info-footer__main strong {
    font-size: 11px;
    font-weight: 650;
}

.mgx-info-footer__main > i {
    width: 1px;
    height: 20px;
    background: rgba(16,17,20,.17);
}

.mgx-info-footer > small {
    display: block;
    margin-top: 8px;

    color: rgba(16,17,20,.44);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 2px;
}

.mgx-info-footer__accent {
    margin: 11px auto 0;

    display: flex;
    justify-content: center;
    gap: 3px;
}

.mgx-info-footer__accent span {
    width: 18px;
    height: 5px;
    display: block;

    background: var(--mgx-info-red);
    transform: skewX(-28deg);
}


/* =========================================================
   HOURS SHEET
   ========================================================= */

.mgx-info-sheet[hidden] {
    display: none !important;
}

.mgx-info-sheet {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mgx-info-sheet__backdrop {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    appearance: none !important;
    -webkit-appearance: none !important;

    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;

    background: rgba(18,20,24,.34) !important;

    box-shadow: none !important;
    transform: none !important;
    clip-path: none !important;

    -webkit-backdrop-filter: blur(9px) saturate(105%);
    backdrop-filter: blur(9px) saturate(105%);

    cursor: default;
}

.mgx-info-sheet__backdrop::before,
.mgx-info-sheet__backdrop::after {
    content: none !important;
    display: none !important;
}


.mgx-info-sheet__panel {
    position: relative;
    z-index: 2;

    width: min(500px, calc(100% - 16px));
    margin: 0 8px max(8px, env(safe-area-inset-bottom));
    padding: 15px 18px 19px;

    color: var(--mgx-info-text);

    background:
        linear-gradient(180deg, rgba(255,255,255,.99), rgba(255,255,255,.87));

    border: 1px solid rgba(255,255,255,.96);
    border-radius: 26px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,1),
        0 30px 90px rgba(16,17,20,.22);

    -webkit-backdrop-filter: blur(30px) saturate(160%);
    backdrop-filter: blur(30px) saturate(160%);

    animation: mgxInfoSheetIn .24s cubic-bezier(.2,.8,.2,1) both;
}

.mgx-info-sheet__handle {
    width: 42px;
    height: 4px;
    margin: 0 auto 13px;

    background: rgba(16,17,20,.17);
    border-radius: 999px;
}

.mgx-info-sheet__close {
    position: absolute;
    top: 13px;
    right: 13px;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    color: var(--mgx-info-text);
    background: rgba(243,244,246,.88);
    border: 1px solid rgba(16,17,20,.06);
    border-radius: 50%;

    cursor: pointer;
}

.mgx-info-sheet__close .mgx-info-icon {
    width: 18px;
    height: 18px;
}

.mgx-info-sheet__kicker {
    display: block;

    color: var(--mgx-info-red);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1.1px;
}

.mgx-info-sheet__panel h2 {
    margin: 5px 50px 15px 0;

    color: var(--mgx-info-text);
    font-size: 25px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.45px;
}

.mgx-info-hours {
    border-top: 1px solid rgba(16,17,20,.08);
}

.mgx-info-hours > div {
    padding: 13px 0;

    display: grid;
    gap: 5px;

    border-bottom: 1px solid rgba(16,17,20,.07);
}

.mgx-info-hours > div:last-child {
    border-bottom: 0;
}

.mgx-info-hours strong {
    color: var(--mgx-info-text);
    font-size: 14px;
    font-weight: 700;
}

.mgx-info-hours span {
    color: var(--mgx-info-muted);
    font-size: 13px;
    font-weight: 500;
}

.mgx-info-hours .is-closed span {
    color: var(--mgx-info-red);
}


/* =========================================================
   DESKTOP PREVIEW
   Solo centra la versión móvil. /info/ sigue siendo mobile-first.
   ========================================================= */

@media (min-width: 700px) {
    body.mgx-info-mobile-body {
        background:
            radial-gradient(circle at 50% -10%, rgba(227,6,19,.06), transparent 28%),
            #e8eaee;
    }

    .mgx-info-mobile {
        margin-top: 20px;
        margin-bottom: 20px;

        background:
            linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,247,249,.92));

        border: 1px solid rgba(255,255,255,.92);
        border-radius: 32px;

        box-shadow:
            0 30px 90px rgba(20,25,38,.14),
            inset 0 1px 0 rgba(255,255,255,1);

        overflow: hidden;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 390px) {
    .mgx-info-mobile {
        padding-left: 9px;
        padding-right: 9px;
    }

    .mgx-info-hero {
        margin-left: -9px;
        margin-right: -9px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .mgx-info-brand img {
        height: 30px;
        max-width: 238px;
    }

    .mgx-info-brand > span {
        letter-spacing: 4px;
        font-size: 7px;
        text-align: center;
    }

    .mgx-info-intro h1 {
        font-size: 34px;
    }

    .mgx-info-intro p {
        font-size: 13px;
    }

    .mgx-info-action {
        grid-template-columns: 52px minmax(0,1fr) 38px;
        min-height: 84px;
        padding-left: 9px;
        padding-right: 9px;
        gap: 9px;
    }

    .mgx-info-action__icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .mgx-info-action__copy strong {
        font-size: 15px;
    }

    .mgx-info-action__copy small {
        font-size: 10px;
    }

    .mgx-info-row > strong {
        font-size: 12px;
    }

    .mgx-info-socials {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .mgx-info-socials a {
        min-height: 46px;
    }

    .mgx-info-footer__main {
        gap: 9px;
    }

    .mgx-info-footer__main strong {
        font-size: 10px;
    }
}


/* =========================================================
   INTERACTION
   ========================================================= */

@media (hover:hover) and (pointer:fine) {
    .mgx-info-action:hover,
    .mgx-info-row:hover,
    .mgx-info-socials a:hover {
        transform: translateY(-2px);
    }

    .mgx-info-action--catalog:hover {
        filter: brightness(1.035);
    }

    .mgx-info-row:hover {
        border-color: rgba(227,6,19,.15);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,1),
            0 11px 24px rgba(20,25,38,.07);
    }
}

@keyframes mgxInfoSheetIn {
    from {
        opacity: 0;
        transform: translateY(26px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mgx-info-action,
    .mgx-info-row,
    .mgx-info-socials a,
    .mgx-info-sheet__panel {
        animation: none !important;
        transition: none !important;
    }
}
