/*
Theme Name: Diario del Soconusco Child
Template: hello-elementor
Version: 1.0.1
Text Domain: diariodelsoconusco-child
*/

@media (max-width: 767px) {
    .elementor-41940 .elementor-element-4d110f7 > .elementor-container > .elementor-column > .elementor-widget-wrap {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .elementor-41940 .elementor-element-7ba3e16 {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
    }

    .elementor-41940 .elementor-element-14a201a {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
    }

    .elementor-41940 .elementor-element-20a2c85 img {
        width: min(65vw, 260px) !important;
        height: auto;
    }

    .elementor-41940 .elementor-element-c447014 {
        grid-column: 1;
        grid-row: 2;
        align-self: center;
        justify-self: start;
        width: 44px !important;
        max-width: 44px;
        margin: 0 0 0 12px !important;
        z-index: 10010;
    }

    .elementor-41940 .elementor-element-c447014 > .elementor-widget-container {
        height: auto !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
    }

    .elementor-41940 .elementor-element-c447014 .elementor-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 8px;
        color: #242424 !important;
        background: transparent !important;
        border-radius: 0;
    }

    .elementor-41940 .elementor-element-c447014 .elementor-menu-toggle svg {
        width: 27px;
        height: 27px;
        fill: #242424 !important;
    }

    .elementor-41940 .elementor-element-c447014 .elementor-menu-toggle.elementor-active svg {
        fill: #f8fafc !important;
    }

    .elementor-41940 .elementor-element-c447014 .elementor-nav-menu--dropdown {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        width: min(82vw, 320px) !important;
        max-width: 320px !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        padding: 60px 0 16px;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        background: #111827 !important;
        box-shadow: 8px 0 24px rgb(0 0 0 / 18%);
        z-index: 10011 !important;
    }

    .elementor-41940 .elementor-element-c447014 .elementor-nav-menu--dropdown[aria-hidden="false"] {
        animation: dds-menu-slide-in 220ms ease-out both;
    }

    .elementor-41940 .elementor-element-c447014 .elementor-nav-menu--dropdown::before {
        content: "MENÚ";
        position: absolute;
        top: 21px;
        left: 20px;
        color: #94a3b8;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .12em;
    }

    .elementor-41940 .elementor-element-c447014 .elementor-nav-menu--dropdown .elementor-item {
        padding: 15px 22px !important;
        color: #f8fafc !important;
        background: transparent !important;
        border-bottom: 1px solid rgb(255 255 255 / 11%);
        font-size: 16px;
        font-weight: 500;
        line-height: 1.25;
    }

    .elementor-41940 .elementor-element-c447014 .elementor-nav-menu--dropdown .elementor-item:hover,
    .elementor-41940 .elementor-element-c447014 .elementor-nav-menu--dropdown .elementor-item:focus {
        color: #fff !important;
        background: #253247 !important;
    }

    .elementor-41940 .elementor-element-c447014 .elementor-menu-toggle.elementor-active {
        position: fixed !important;
        top: 7px;
        left: calc(min(82vw, 320px) - 53px);
        margin: 0 !important;
        color: #f8fafc !important;
        z-index: 10012;
    }

    .dds-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 10000;
        background: rgb(0 0 0 / 55%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 220ms ease, visibility 220ms ease;
    }

    body.dds-mobile-menu-open {
        overflow: hidden;
    }

    body.dds-mobile-menu-open .dds-menu-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    @keyframes dds-menu-slide-in {
        from { transform: translateX(-100%); }
        to { transform: translateX(0); }
    }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .elementor-41940 .elementor-element-c447014 .elementor-nav-menu--dropdown[aria-hidden="false"] {
        animation: none;
    }
    .dds-menu-backdrop { transition: none; }
}
