#main-header .header-html-inner,
#main-header .mdg-header-tools {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

#mondragon-idiomas {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 120px !important;
    height: 38px !important;
    flex: 0 0 auto !important;
    position: relative !important;
    z-index: 2 !important;
}
/* OCULTAR FLEXBOX EN CELULARES Y TABLETAS */
@media screen and (max-width: 1024px) {

  .mdg-ocultar-tablet-movil {
    display: none !important;
  }
}

/* BOTÓN ORIGINAL */
.mdg-login-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 155px !important;
    height: 38px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    background: #D9A316 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 1 !important;
}

#main-header .header-button-wrap a,
#main-header .kadence-header-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 155px !important;
    height: 38px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-align: center !important;
}

/* TRADUCTOR */
#mondragon-idiomas #conveythis-wrapper,
#mondragon-idiomas .conveythis-widget,
#mondragon-idiomas .ctwrapper {
    position: static !important;
    margin: 0 !important;
    transform: none !important;
}

#main-header .site-header-section-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
}


/* ==========================================
   2. TEXTOS Y RESPONSIVE GENERAL
========================================== */

.elementor-heading-title,
.wp-block-heading,
h1, h2, h3, h4, h5, h6 {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

p, li, a, span, div {
    overflow-wrap: break-word;
}

@media (min-width: 1025px) {

    .elementor-button,
    .wp-block-button__link,
    button,
    a.elementor-button-link {
        white-space: nowrap !important;
    }

    .elementor-widget-container,
    .elementor-icon-box-wrapper,
    .elementor-image-box-wrapper,
    .elementor-counter,
    .elementor-post__text,
    .elementor-tab-content,
    .elementor-accordion-content {
        height: auto !important;
        min-height: 0 !important;
    }

    .elementor-column,
    .elementor-container,
    .e-con,
    .e-con-inner,
    .elementor-element {
        min-height: unset !important;
    }
}

@media (max-width: 1024px) {

    .elementor-button,
    .wp-block-button__link,
    button,
    a.elementor-button-link {
        white-space: normal !important;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .elementor-widget-text-editor > .elementor-widget-container,
    .elementor-widget-heading > .elementor-widget-container,
    .elementor-widget-text-editor .elementor-widget-container {
        height: auto !important;
    }

    .elementor .e-con,
    .elementor .e-con-inner {
        min-width: 0;
    }

    #main-header .header-html-inner,
    #main-header .mdg-header-tools {
        gap: 6px !important;
    }

    #mondragon-idiomas {
        min-width: 95px !important;
    }

    .mdg-login-btn,
    #main-header .header-button-wrap a,
    #main-header .kadence-header-button {
        width: auto !important;
        min-width: 130px !important;
        padding: 0 10px !important;
    }
}

.elementor-widget-heading,
.elementor-widget-text-editor {
    overflow: visible !important;
}

.slick-slide,
.swiper-slide,
.owl-item {
    height: auto !important;
}

.elementor-price-table,
.elementor-price-table__features-list,
.elementor-widget-price-table,
.elementor-widget-icon-box,
.elementor-widget-text-editor {
    height: auto !important;
}

.notranslate {
    translate: no;
}

@media (max-width: 767px) {

    #main-header .header-html-inner,
    #main-header .mdg-header-tools,
    #main-header .site-header-section-right {
        flex-wrap: wrap !important;
        white-space: normal !important;
        gap: 6px !important;
        min-width: 0;
        max-width: 100%;
    }

    #main-header .site-header-section-right {
        justify-content: flex-end !important;
    }

    #mondragon-idiomas {
        min-width: 0 !important;
        max-width: 100%;
    }

    .mdg-login-btn,
    #main-header .header-button-wrap a,
    #main-header .kadence-header-button {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100%;
        padding: 0 9px !important;
        font-size: 12px !important;
    }
}


/* ==========================================
   3. POPUPS ELEMENTOR
========================================== */

.elementor-popup-modal {
    z-index: 999999 !important;
}

.elementor-popup-modal .dialog-widget-content {
    height: 400px !important;
    max-height: 400px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.elementor-popup-modal .dialog-message {
    display: block !important;
    height: 400px !important;
    max-height: 400px !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    pointer-events: auto !important;
}

.elementor-popup-modal .dialog-message * {
    touch-action: pan-y;
}

.elementor-popup-modal .dialog-message > * {
    flex-shrink: 0;
}

/* BOTONES EN POPUPS */
.elementor-popup-modal .elementor-button,
.elementor-popup-modal button {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
}

.elementor-popup-modal .elementor-widget-button {
    width: auto !important;
    max-width: max-content !important;
}

.elementor-popup-modal .elementor-button {
    max-width: 150px !important;
    justify-content: center !important;
    padding: 6px 14px !important;
}

.elementor-popup-modal .dialog-widget-content button,
.elementor-popup-modal .dialog-widget-content a,
.elementor-popup-modal .dialog-message button,
.elementor-popup-modal .dialog-message a {
    flex: 0 0 auto !important;
    width: fit-content !important;
    min-width: 0 !important;
    max-width: 150px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}

.elementor-popup-modal .dialog-widget-content .dialog-close-button,
.elementor-popup-modal .dialog-widget-content .elementor-button,
.elementor-popup-modal .dialog-widget-content button,
.elementor-popup-modal .dialog-widget-content a {
    width: auto !important;
    min-width: 0 !important;
    max-width: 130px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}


/* ==========================================
   4. POPUPS PREMIUM Y BLOG
========================================== */

.premium-modal-box-modal-lower-close {
    display: block !important;
    width: fit-content !important;
    min-width: 0 !important;
    max-width: 130px !important;
    height: auto !important;
    padding: 5px 14px !important;
    margin: 2px auto !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
}

.premium-modal-box-modal-lower {
    padding: 2px 8px !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.premium-modal-box,
.premium-modal-box-modal,
.premium-modal-box-overlay {
    z-index: 2147483647 !important;
}

.blog-Mondragon .premium-modal-box-modal-dialog {
    height: 520px !important;
    max-height: 90vh !important;
    margin-top: 0 !important;
    top: 0 !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
}

.blog-Mondragon .premium-modal-box-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

.blog-Mondragon .premium-modal-box-modal-body h2,
.blog-Mondragon .premium-modal-box-modal-body h3 {
    min-height: 7.5em;
}

.popup-blog-exterior {
    max-height: 85vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

.popup-blog-interior,
.popup-blog-interior > .elementor-widget-container {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

@media (max-width: 767px) {

    .elementor-popup-modal .dialog-widget-content,
    .elementor-popup-modal .dialog-message {
        height: min(400px, 80dvh) !important;
        max-height: 80dvh !important;
    }

    .blog-Mondragon .premium-modal-box-modal-dialog {
        height: auto !important;
        max-height: 85dvh !important;
    }
}


/* ==========================================
   5. EFECTOS DE BOTONES
========================================== */

.boton-plus-hover:is(a, button),
.boton-plus-hover a,
.boton-plus-hover button {
    position: relative;
    overflow: hidden;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background-color .3s ease;
}

.boton-plus-hover:is(a, button)::before,
.boton-plus-hover a::before,
.boton-plus-hover button::before {
    content: "";
    position: absolute;
    top: -65%;
    left: -85%;
    width: 45%;
    height: 230%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,235,165,.45),
        transparent
    );
    transform: rotate(18deg);
    transition: left .65s ease;
    pointer-events: none;
}

.boton-plus-hover:is(a, button):hover,
.boton-plus-hover a:hover,
.boton-plus-hover button:hover {
    transform: translateY(-5px) scale(1.035);
    box-shadow:
        0 12px 25px rgba(28,36,75,.35),
        0 0 16px rgba(213,166,42,.25);
}

.boton-plus-hover:is(a, button):hover::before,
.boton-plus-hover a:hover::before,
.boton-plus-hover button:hover::before {
    left: 140%;
}

@media (prefers-reduced-motion: reduce) {
    .boton-plus-hover:is(a, button),
    .boton-plus-hover a,
    .boton-plus-hover button,
    .boton-plus-hover a::before,
    .boton-plus-hover button::before {
        transition: none;
    }
}


/* ==========================================
   6. INSTAGRAM EN PIE DE PÁGINA
========================================== */

.site-footer .social-link-instagram:hover,
.site-footer .social-link-instagram:focus-visible {
    background: linear-gradient(
        45deg,
        #FEDA75,
        #FA7E1E,
        #D62976,
        #962FBF,
        #4F5BD5
    ) !important;
    color: #FFFFFF !important;
    border-radius: 50% !important;
}

.site-footer .social-link-instagram:hover svg,
.site-footer .social-link-instagram:focus-visible svg {
    fill: currentColor !important;
}


/* ==========================================
   7. BIBLIOTECA DE DOCUMENTOS
========================================== */

#mdg-biblioteca {
    --mdg-azul: #1C244B;
    --mdg-azul-hover: #293861;
    --mdg-azul-abierto: #344673;
    --mdg-dorado: #C59B27;
    --mdg-blanco: #FFFFFF;
    background-color: #FFFFFF;
    color: #1C244B;
}

/* TÍTULO PRINCIPAL */
#mdg-biblioteca .mdg-doc-titulo {
    position: relative;
    width: 100%;
    padding: 26px 12px 22px;
    margin-bottom: 22px;
    text-align: center !important;
    background: transparent !important;
}

#mdg-biblioteca .mdg-doc-titulo::before {
    content: "CENTRO DE SOPORTE";
    display: block;
    width: 100%;
    margin: 0 0 12px;
    color: #A47D26 !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.5;
    text-align: center;
}

#mdg-biblioteca .mdg-doc-titulo,
#mdg-biblioteca .mdg-doc-titulo :is(
    h1, h2, h3, h4,
    .elementor-heading-title,
    .e-heading-base,
    .e-heading-title
) {
    color: #1C244B !important;
    font-size: clamp(24px, 3vw, 32px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -.5px;
    text-align: center !important;
}

#mdg-biblioteca .mdg-doc-titulo::after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    margin: 17px auto 0;
    border-radius: 20px;
    background: linear-gradient(
        90deg,
        #A57D20,
        #E9C875,
        #C59B27
    );
}

/* ACORDEÓN PRINCIPAL */
#mdg-biblioteca .mdg-doc-principal
.e-accordion-item-base:not(
    .mdg-doc-interior .e-accordion-item-base
) {
    margin-bottom: 12px;
    background: #FFFFFF;
    border: 1px solid #DDE3ED;
    border-radius: 12px;
    overflow: hidden;
    transition:
        border-color .4s ease,
        box-shadow .4s ease;
}

#mdg-biblioteca .mdg-doc-principal
.e-accordion-item-base:not(
    .mdg-doc-interior .e-accordion-item-base
) > .e-accordion-item-header-base {
    position: relative;
    background: #1C244B !important;
    background-color: #1C244B !important;
    background-image: none !important;
    color: #FFFFFF !important;
    padding: 17px 20px;
    border-radius: 0;
    cursor: pointer;
    transition:
        background-color .45s ease,
        box-shadow .4s ease;
}

#mdg-biblioteca .mdg-doc-principal
.e-accordion-item-base:not(
    .mdg-doc-interior .e-accordion-item-base
) > summary .e-accordion-item-title-base {
    color: #FFFFFF !important;
    font-size: 16px;
    font-weight: 700;
}

#mdg-biblioteca .mdg-doc-principal
.e-accordion-item-base:not(
    .mdg-doc-interior .e-accordion-item-base
) > summary .e-accordion-item-title-base
:is(span, .e-heading-base, h2, h3) {
    color: #FFFFFF !important;
}

#mdg-biblioteca .mdg-doc-principal
.e-accordion-item-base:not(
    .mdg-doc-interior .e-accordion-item-base
) > summary :is(
    .e-accordion-item-icon-base,
    .e-accordion-item-icon-open-base
) {
    color: #E8C570 !important;
}

#mdg-biblioteca .mdg-doc-principal
.e-accordion-item-base:not(
    .mdg-doc-interior .e-accordion-item-base
) > summary:hover {
    background: #293861 !important;
    background-color: #293861 !important;
}

#mdg-biblioteca .mdg-doc-principal
.e-accordion-item-base:not(
    .mdg-doc-interior .e-accordion-item-base
)[open] > summary {
    background: #344673 !important;
    background-color: #344673 !important;
}

#mdg-biblioteca .mdg-doc-principal
.e-accordion-item-base:not(
    .mdg-doc-interior .e-accordion-item-base
)[open] {
    border-color: #C59B27;
    box-shadow: 0 8px 22px rgba(28,36,75,.11);
}

#mdg-biblioteca .mdg-doc-principal
.e-accordion-item-base:not(
    .mdg-doc-interior .e-accordion-item-base
) > summary::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        90deg,
        #95711C,
        #E8C875,
        #C59B27
    );
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .45s ease;
    pointer-events: none;
}

#mdg-biblioteca .mdg-doc-principal
.e-accordion-item-base:not(
    .mdg-doc-interior .e-accordion-item-base
)[open] > summary::after {
    transform: scaleX(1);
}

/* ACORDEÓN INTERIOR */
#mdg-biblioteca .mdg-doc-interior
.e-accordion-item-base {
    margin-bottom: 8px;
    background: #FFFFFF;
    border: 1px solid #E1E6EF;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: none;
    transition:
        border-color .3s ease,
        box-shadow .3s ease;
}

#mdg-biblioteca .mdg-doc-interior
.e-accordion-item-base >
.e-accordion-item-header-base {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    color: #1C244B !important;
    padding: 13px 15px;
    transition: background-color .3s ease;
}

#mdg-biblioteca .mdg-doc-interior
.e-accordion-item-base > summary
.e-accordion-item-title-base {
    color: #1C244B !important;
    font-size: 14px;
    font-weight: 600;
}

#mdg-biblioteca .mdg-doc-interior
.e-accordion-item-base > summary
.e-accordion-item-title-base
:is(span, .e-heading-base, h2, h3) {
    color: #1C244B !important;
}

#mdg-biblioteca .mdg-doc-interior
.e-accordion-item-base > summary
:is(
    .e-accordion-item-icon-base,
    .e-accordion-item-icon-open-base
) {
    color: #C59B27 !important;
}

#mdg-biblioteca .mdg-doc-interior
.e-accordion-item-base > summary:hover {
    background: #F3F5F9 !important;
}

#mdg-biblioteca .mdg-doc-interior
.e-accordion-item-base[open] {
    border-color: #D5B76B;
    box-shadow: 0 4px 12px rgba(28,36,75,.05);
}

#mdg-biblioteca .mdg-doc-interior
.e-accordion-item-base[open] > summary {
    background: #F6F7FA !important;
}

#mdg-biblioteca .mdg-doc-interior
.e-accordion-item-base > summary::after {
    content: none !important;
}

/* BOTONES DE DOCUMENTOS */
#mdg-biblioteca .mdg-doc-boton:is(
    a, button, .elementor-button, .e-button
),
#mdg-biblioteca .mdg-doc-boton :is(
    a, button, .elementor-button, .e-button
),
#mdg-biblioteca .mdg-doc-interior :is(
    a.elementor-button,
    a.e-button,
    button.e-button,
    .elementor-widget-button a
) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px;
    width: auto;
    max-width: 100%;
    min-height: 44px;
    padding: 11px 19px !important;
    background: #1C244B !important;
    background-color: #1C244B !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border: 1px solid #C59B27 !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 3px 9px rgba(28,36,75,.12) !important;
    transition:
        background-color .35s ease,
        border-color .35s ease,
        color .35s ease,
        box-shadow .35s ease,
        transform .35s ease !important;
}

#mdg-biblioteca .mdg-doc-boton:is(
    a, button, .elementor-button, .e-button
) span,
#mdg-biblioteca .mdg-doc-boton :is(
    a, button, .elementor-button, .e-button
) span,
#mdg-biblioteca .mdg-doc-interior :is(
    a.elementor-button,
    a.e-button,
    button.e-button,
    .elementor-widget-button a
) span {
    color: #FFFFFF !important;
}

#mdg-biblioteca .mdg-doc-boton:is(
    a, button, .elementor-button, .e-button
) :is(i, svg),
#mdg-biblioteca .mdg-doc-boton :is(
    a, button, .elementor-button, .e-button
) :is(i, svg),
#mdg-biblioteca .mdg-doc-interior :is(
    a.elementor-button,
    a.e-button,
    button.e-button,
    .elementor-widget-button a
) :is(i, svg) {
    color: #E8C570 !important;
}

/* HOVER BOTONES BIBLIOTECA */
#mdg-biblioteca .mdg-doc-boton:is(
    a, button, .elementor-button, .e-button
):hover,
#mdg-biblioteca .mdg-doc-boton :is(
    a, button, .elementor-button, .e-button
):hover,
#mdg-biblioteca .mdg-doc-interior :is(
    a.elementor-button:hover,
    a.e-button:hover,
    button.e-button:hover,
    .elementor-widget-button a:hover
) {
    background: #344673 !important;
    background-color: #344673 !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border-color: #E7C66D !important;
    transform: translateY(-2px);
    box-shadow:
        0 6px 16px rgba(28,36,75,.20),
        0 0 0 1px rgba(197,155,39,.20) !important;
}

#mdg-biblioteca .mdg-doc-boton:hover :is(
    .elementor-button-text,
    .e-button-text,
    span
),
#mdg-biblioteca .mdg-doc-interior :is(
    a.elementor-button:hover,
    a.e-button:hover,
    button.e-button:hover,
    .elementor-widget-button a:hover
) span {
    color: #FFFFFF !important;
}

#mdg-biblioteca .mdg-doc-boton:hover :is(i, svg),
#mdg-biblioteca .mdg-doc-interior :is(
    a.elementor-button:hover,
    a.e-button:hover,
    button.e-button:hover,
    .elementor-widget-button a:hover
) :is(i, svg) {
    color: #F0D58A !important;
}

#mdg-biblioteca .mdg-doc-boton:is(
    a, button, .elementor-button, .e-button
):focus-visible,
#mdg-biblioteca .mdg-doc-boton :is(
    a, button, .elementor-button, .e-button
):focus-visible,
#mdg-biblioteca .mdg-doc-interior
a.elementor-button:focus-visible {
    outline: 2px solid #C59B27 !important;
    outline-offset: 3px;
}

/* RESPONSIVE BIBLIOTECA */
@media (max-width: 767px) {

    #mdg-biblioteca .mdg-doc-titulo {
        padding: 20px 6px 16px;
    }

    #mdg-biblioteca .mdg-doc-principal
    .e-accordion-item-base:not(
        .mdg-doc-interior .e-accordion-item-base
    ) > summary {
        padding: 14px 13px;
    }

    #mdg-biblioteca .mdg-doc-principal
    .e-accordion-item-base:not(
        .mdg-doc-interior .e-accordion-item-base
    ) > summary .e-accordion-item-title-base {
        font-size: 15px;
    }

    #mdg-biblioteca .mdg-doc-interior
    .e-accordion-item-base > summary {
        padding: 12px 10px;
    }

    #mdg-biblioteca .mdg-doc-interior
    .e-accordion-item-base > summary
    .e-accordion-item-title-base {
        font-size: 13px;
    }

    #mdg-biblioteca .mdg-doc-boton:is(
        a, button, .elementor-button, .e-button
    ),
    #mdg-biblioteca .mdg-doc-boton :is(
        a, button, .elementor-button, .e-button
    ),
    #mdg-biblioteca .mdg-doc-interior :is(
        a.elementor-button,
        a.e-button,
        button.e-button,
        .elementor-widget-button a
    ) {
        padding: 10px 14px !important;
        font-size: 12px !important;
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    #mdg-biblioteca .mdg-doc-principal *,
    #mdg-biblioteca .mdg-doc-interior * {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

    #mdg-biblioteca .mdg-doc-boton,
    #mdg-biblioteca .mdg-doc-boton * {
        transition: none !important;
        transform: none !important;
    }
}

/* TAMAÑO FINAL DE TÍTULOS INTERIORES */
#mdg-biblioteca .mdg-doc-interior
.e-accordion-item-base > summary
.e-accordion-item-title-base {
    font-size: 13px;
}


/* ==========================================
   8. MENÚ DESPLEGABLE INICIAR SESIÓN
   VERSIÓN FINAL CORREGIDA
========================================== */

/* CONTENEDOR DEL HEADER */
#mdg-access-header {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    position: relative !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    max-width: 100%;
}

/* CONTENEDOR DEL MENÚ */
#mdg-login-menu {
    position: relative !important;
    display: block !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 99999 !important;
}

/* BOTÓN AMARILLO */
#mdg-login-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    width: 155px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    background: #DDA511 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    list-style: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background .25s ease;
}

/* ELIMINAR MARCADOR DE DETAILS */
#mdg-login-trigger::-webkit-details-marker {
    display: none !important;
}

#mdg-login-trigger::marker {
    content: "";
}

#mdg-login-trigger:hover,
#mdg-login-menu[open] #mdg-login-trigger {
    background: #C4930D !important;
}

/* FLECHA DEL BOTÓN */
#mdg-login-caret {
    font-size: 17px !important;
    color: #FFFFFF !important;
    line-height: 1 !important;
    transition: transform .25s ease;
}

#mdg-login-menu[open] #mdg-login-caret {
    transform: rotate(180deg);
}

/* PANEL DESPLEGABLE */
#mdg-login-popup {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;
    width: 330px !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 14px !important;
    margin: 0 !important;
    background: #FFFFFF !important;
    border: 1px solid #E4E8F0 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 35px rgba(28,36,75,.16) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    white-space: normal !important;
    z-index: 999999 !important;
}

/* OCULTAR MENÚ CUANDO ESTÁ CERRADO */
#mdg-login-menu:not([open]) #mdg-login-popup {
    display: none !important;
}

/* MOSTRAR SOLO CUANDO ESTÁ ABIERTO */
#mdg-login-menu[open] #mdg-login-popup {
    display: block !important;
    animation: mdgMenuEntrada .2s ease;
}

@keyframes mdgMenuEntrada {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

/* CONTROLAR CAJAS INTERNAS */
#mdg-login-popup,
#mdg-login-popup * {
    box-sizing: border-box !important;
}

/* ENCABEZADO DEL SUBMENÚ */
#mdg-login-title {
    padding: 3px 4px 12px !important;
    margin: 0 !important;
}

#mdg-login-title strong {
    display: block !important;
    color: #1C244B !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

#mdg-login-title small {
    display: block !important;
    color: #778093 !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    margin-top: 3px !important;
}

/* TARJETAS DE ACCESO */
#mdg-fact-card,
#mdg-plan-card,
#mdg-quick-card {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 11px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 70px !important;
    padding: 9px 11px !important;
    margin: 0 0 8px 0 !important;
    background: #FAFBFE !important;
    border: 1px solid #E6EAF2 !important;
    border-radius: 9px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    cursor: pointer !important;
    transition: all .25s ease !important;
}

/* ÚLTIMA TARJETA */
#mdg-login-popup > a:last-child {
    margin-bottom: 0 !important;
}

/* CONTENEDORES DE LOGOS */
#mdg-fact-logo,
#mdg-plan-logo,
#mdg-quick-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 54px !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding: 5px !important;
    margin: 0 !important;
    background: #FFFFFF !important;
    border: 1px solid #EDF0F5 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* IMÁGENES DE FACTURADOR Y PLANILLA */
#mdg-fact-logo img,
#mdg-plan-logo img {
    display: block !important;
    position: static !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* LOGO TEMPORAL QUICKBOOKS */
#mdg-quick-logo {
    background: #2CA01C !important;
    color: #FFFFFF !important;
    border: none !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    letter-spacing: -2px !important;
    text-transform: lowercase !important;
    line-height: 1 !important;
}

/* INFORMACIÓN DE TARJETAS */
#mdg-fact-info,
#mdg-plan-info,
#mdg-quick-info {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 3px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* NOMBRES DE PLATAFORMAS */
#mdg-login-popup > a strong {
    display: block !important;
    color: #1C244B !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* DESCRIPCIONES */
#mdg-login-popup > a small {
    display: block !important;
    color: #798396 !important;
    font-size: 10.5px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* FLECHAS DE ACCESO */
#mdg-login-popup > a > span:last-child {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    color: #C4A15A !important;
    font-size: 17px !important;
    font-weight: 500 !important;
}

/* EFECTOS DE LAS TARJETAS */
#mdg-fact-card:hover,
#mdg-plan-card:hover,
#mdg-quick-card:hover {
    background: #FFFFFF !important;
    border-color: #C4A15A !important;
    box-shadow: 0 4px 14px rgba(28,36,75,.09) !important;
    transform: translateX(2px) !important;
}

/* ACCESIBILIDAD */
#mdg-login-trigger:focus-visible,
#mdg-login-popup > a:focus-visible {
    outline: 2px solid #C59B27 !important;
    outline-offset: 3px;
}

/* EVITAR RECORTES DEL MENÚ */
#main-header,
#main-header .site-header-row-container,
#main-header .site-header-row-container-inner,
#main-header .site-header-section,
#main-header .header-html-inner {
    overflow: visible !important;
}

#main-header {
    position: relative;
    z-index: 9999;
}


/* ==========================================
   9. RESPONSIVE DEL MENÚ
========================================== */

@media (max-width: 1024px) {

    #mdg-login-trigger {
        width: auto !important;
        min-width: 130px !important;
        padding: 0 10px !important;
    }
}

@media (max-width: 767px) {

    #mdg-access-header {
        gap: 7px !important;
        flex-wrap: wrap !important;
    }

    #mdg-login-trigger {
        width: auto !important;
        min-width: 125px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 9px !important;
        font-size: 12px !important;
    }

    #mdg-login-popup {
        width: 300px !important;
        max-width: calc(100vw - 24px) !important;
        padding: 11px !important;
    }

    #mdg-fact-card,
    #mdg-plan-card,
    #mdg-quick-card {
        min-height: 64px !important;
        padding: 8px !important;
        gap: 9px !important;
    }

    #mdg-fact-logo,
    #mdg-plan-logo,
    #mdg-quick-logo {
        flex-basis: 46px !important;
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
    }

    #mdg-fact-logo img,
    #mdg-plan-logo img {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }

    #mdg-login-popup > a strong {
        font-size: 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    #mdg-login-popup {
        animation: none !important;
    }

    #mdg-login-popup > a,
    #mdg-login-caret {
        transition: none !important;
    }
}

/* ============================================
   MONDRAGÓN & ASOCIADOS
   CORRECCIÓN SOPORTE Y ENCUESTA
   TABLETAS Y CELULARES
   NO MODIFICA COMPUTADORA
============================================ */

@media screen and (max-width: 1024px) {

  /* CONTENEDOR QUE AGRUPA LAS DOS COLUMNAS */
  .mdg-seccion-encuesta,
  .mdg-seccion-encuesta > .e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 24px !important;

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

    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
  }

  /* COLUMNAS A ANCHO COMPLETO */
  .mdg-seccion-encuesta .mdg-soporte-columna,
  .mdg-seccion-encuesta .mdg-encuesta-columna {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    flex: 0 0 auto !important;
    flex-basis: auto !important;
    flex-grow: 0 !important;

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

    height: auto !important;
    min-height: 0 !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    box-sizing: border-box !important;
  }

  /* PRIMERO SOPORTE Y AYUDA */
  .mdg-seccion-encuesta .mdg-soporte-columna {
    order: 1 !important;
  }

  /* DESPUÉS ENCUESTA INFORMATIVA */
  .mdg-seccion-encuesta .mdg-encuesta-columna {
    order: 2 !important;
  }

  /* EVITAR COMPRESIÓN DE WIDGETS */
  .mdg-seccion-encuesta
  .mdg-encuesta-columna
  .elementor-widget-heading,
  .mdg-seccion-encuesta
  .mdg-encuesta-columna
  .elementor-widget-form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
  }

  /* TÍTULOS BIEN DISTRIBUIDOS */
  .mdg-seccion-encuesta
  .mdg-soporte-columna
  .elementor-heading-title,
  .mdg-seccion-encuesta
  .mdg-encuesta-columna
  .elementor-heading-title,
  .mdg-seccion-encuesta
  .mdg-encuesta-columna
  .e-heading-base {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;

    line-height: 1.25 !important;
    text-align: center !important;
  }

  /* TÍTULO DE ENCUESTA */
  .mdg-seccion-encuesta
  .mdg-encuesta-columna
  .elementor-heading-title {
    font-size: clamp(24px, 4vw, 34px) !important;
  }

  /* FORMULARIO AL ANCHO CORRECTO */
  .mdg-seccion-encuesta .mdg-encuesta-columna form,
  .mdg-seccion-encuesta .mdg-encuesta-columna .elementor-form,
  .mdg-seccion-encuesta .mdg-encuesta-columna .elementor-field-group {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .mdg-seccion-encuesta .mdg-encuesta-columna input,
  .mdg-seccion-encuesta .mdg-encuesta-columna select,
  .mdg-seccion-encuesta .mdg-encuesta-columna textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

}

/* ============================================
   AJUSTES EXCLUSIVOS DE CELULARES
============================================ */

@media screen and (max-width: 767px) {

  .mdg-seccion-encuesta {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .mdg-seccion-encuesta
  .mdg-encuesta-columna
  .elementor-heading-title {
    font-size: clamp(24px, 7vw, 30px) !important;
  }

}

/* ==========================================
   MONDRAGÓN - TRES TÍTULOS DEL BANNER
   SOLO TABLETAS
========================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

  /* Ajustar los tres bloques */
  .mdg-titulo-banner-tablet {
    width: 100% !important;
    max-width: 350px !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 0 !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;

    align-self: flex-start !important;
    box-sizing: border-box !important;
  }

  /* Ajustar el texto de cada bloque */
  .mdg-titulo-banner-tablet .elementor-heading-title,
  .mdg-titulo-banner-tablet .e-heading-base,
  .mdg-titulo-banner-tablet.elementor-heading-title {

    font-size: clamp(28px, 3.7vw, 36px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.5px !important;

    width: 100% !important;
    max-width: 100% !important;

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

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;

    text-align: left !important;
  }

  /* Mantener tamaños iguales en textos internos */
  .mdg-titulo-banner-tablet .elementor-heading-title span,
  .mdg-titulo-banner-tablet .e-heading-base span {
    font-size: inherit !important;
    line-height: inherit !important;
  }

}

/* ==========================================
   MONDRAGÓN - ALINEAR TARJETAS Y BOTONES
   EXCLUSIVO PARA TABLETAS
========================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

  /* Contenedor que agrupa las tres tarjetas */
  .mdg-planes-fila,
  .mdg-planes-fila > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 16px !important;
  }

  /* Las tres tarjetas se estiran a la misma altura */
  .mdg-planes-fila .mdg-tarjeta-plan {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;

    flex: 1 1 0 !important;
    align-self: stretch !important;

    min-width: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Empujar separador y botón al fondo */
  .mdg-tarjeta-plan > .mdg-plan-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;

    margin-top: auto !important;
    padding-top: 24px !important;

    width: 100% !important;
    flex-shrink: 0 !important;
    gap: 20px !important;
  }

  /* Separador al mismo nivel */
  .mdg-plan-footer .elementor-widget-divider {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Botones sin separación variable */
  .mdg-plan-footer .elementor-widget-button {
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

}

/* ==========================================
   FACTURADOR PLUS
   FORMATO MÓVIL CORREGIDO
========================================== */

@media screen and (max-width: 767px) {

  /* TARJETA GENERAL */
  .mdg-fact-tarjeta {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 20px !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    padding: 18px 16px 22px 16px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  /* BLOQUES INTERNOS */
  .mdg-fact-cabecera,
  .mdg-fact-detalles {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;

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

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  /* TODOS LOS WIDGETS INTERNOS */
  .mdg-fact-cabecera > .elementor-element,
  .mdg-fact-detalles > .elementor-element,
  .mdg-fact-tarjeta > .elementor-element {
    position: static !important;
    transform: none !important;

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

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  /* CONTENEDOR INTERNO DE CADA WIDGET */
  .mdg-fact-cabecera .elementor-widget-container,
  .mdg-fact-detalles .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  /* IMAGEN / LOGO */
  .mdg-fact-cabecera .elementor-widget-image img {
    display: block !important;
    max-width: 78px !important;
    height: auto !important;
    margin: 0 0 8px 0 !important;
  }

  /* ETIQUETA SUPERIOR */
  .mdg-fact-cabecera .elementor-widget-text-editor:first-of-type,
  .mdg-fact-cabecera .elementor-widget-text-editor:first-of-type .elementor-widget-container,
  .mdg-fact-cabecera .elementor-widget-text-editor:first-of-type p {
    margin: 0 !important;
  }

  /* TÍTULOS */
  .mdg-fact-cabecera .elementor-heading-title,
  .mdg-fact-cabecera .e-heading-base,
  .mdg-fact-detalles .elementor-heading-title {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;

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

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;

    line-height: 1.12 !important;
    letter-spacing: 0 !important;
  }

  /* TÍTULO PRINCIPAL */
  .mdg-fact-cabecera h1,
  .mdg-fact-cabecera h2,
  .mdg-fact-cabecera h3,
  .mdg-fact-cabecera .elementor-heading-title {
    font-size: 22px !important;
    line-height: 1.12 !important;
    margin-bottom: 2px !important;
  }

  /* PRECIO */
  .mdg-fact-cabecera .mdg-fact-precio,
  .mdg-fact-cabecera .elementor-widget-heading:nth-of-type(2),
  .mdg-fact-cabecera .elementor-widget-heading:nth-of-type(2) .elementor-heading-title {
    font-size: 19px !important;
    line-height: 1.15 !important;
    margin-top: 0 !important;
    margin-bottom: 2px !important;
  }

  /* PÁRRAFOS */
  .mdg-fact-cabecera p,
  .mdg-fact-detalles p,
  .mdg-fact-cabecera .elementor-text-editor,
  .mdg-fact-detalles .elementor-text-editor {
    margin: 0 !important;
    line-height: 1.5 !important;
    font-size: 15px !important;
    overflow-wrap: break-word !important;
  }

  /* SEPARAR MEJOR EL BLOQUE AZUL CLARITO / DESCRIPCIÓN */
  .mdg-fact-cabecera .elementor-widget-text-editor {
    margin-bottom: 2px !important;
  }

  /* LISTADO DE ICONOS */
  .mdg-fact-detalles .elementor-icon-list-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mdg-fact-detalles .elementor-icon-list-item {
    align-items: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mdg-fact-detalles .elementor-icon-list-icon {
    margin-top: 2px !important;
    margin-right: 10px !important;
    flex: 0 0 auto !important;
  }

  .mdg-fact-detalles .elementor-icon-list-text {
    white-space: normal !important;
    line-height: 1.5 !important;
    overflow-wrap: break-word !important;
  }

  /* ENCABEZADOS DEL DETALLE */
  .mdg-fact-detalles h2,
  .mdg-fact-detalles h3,
  .mdg-fact-detalles h4,
  .mdg-fact-detalles .elementor-heading-title {
    margin-top: 10px !important;
    margin-bottom: 4px !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
  }

  /* BOTÓN */
  .mdg-fact-tarjeta .elementor-widget-button {
    margin-top: 10px !important;
  }

  .mdg-fact-tarjeta .elementor-button {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 14px 18px !important;
    box-sizing: border-box !important;
  }

  /* OCULTAR ESPACIADORES VACÍOS SI EXISTEN */
  .mdg-fact-tarjeta .elementor-widget-spacer {
    display: none !important;
  }

  /* SI ALGÚN CONTENEDOR VACÍO SIGUE DEJANDO ESPACIO */
  .mdg-fact-tarjeta .e-con:empty,
  .mdg-fact-tarjeta .elementor-element:empty {
    display: none !important;
  }
}

/* ==========================================
   FACTURADOR PLUS - ESPACIADO MÓVIL
   AJUSTE FINO SIN CAMBIAR EL DISEÑO
========================================== */

@media screen and (max-width: 767px) {

  /* Más separación entre los bloques principales */
  .mdg-fact-tarjeta {
    gap: 26px !important;
  }

  /* Mayor separación entre las características */
  .mdg-fact-tarjeta .elementor-icon-list-items {
    display: flex !important;
    flex-direction: column !important;
    row-gap: 12px !important;
  }

  /* Mejor lectura de las características */
  .mdg-fact-tarjeta .elementor-icon-list-text {
    line-height: 1.6 !important;
  }

  /* Más espacio entre líneas de los párrafos */
  .mdg-fact-tarjeta p {
    line-height: 1.6 !important;
  }

}


/* ============================================
   MONDRAGÓN - CONTACTO RESPONSIVE TABLET
   SOLO 768px A 1024px
============================================ */

@media screen and (min-width: 768px) and (max-width: 1024px) {

  /* SECCIÓN PRINCIPAL */
  .mdg-contacto-tablet,
  .mdg-contacto-tablet > .e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;

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

    height: auto !important;
    min-height: 0 !important;

    gap: 24px !important;
    box-sizing: border-box !important;
  }

  /* TÍTULO DE CONTACTO */
  .mdg-contacto-tablet .elementor-widget-heading {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .mdg-contacto-tablet .elementor-heading-title {
    font-size: clamp(28px, 4vw, 38px) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-align: left !important;
  }

  /* CONTENEDOR DEL FORMULARIO */
  .mdg-contacto-tablet .mdg-contacto-formulario {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    flex: 0 1 auto !important;
    align-self: stretch !important;

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

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 24px !important;

    box-sizing: border-box !important;
  }

  /* ANCHO DEL CONTENIDO DEL FORMULARIO */
  .mdg-contacto-formulario .elementor-widget,
  .mdg-contacto-formulario .elementor-widget-container,
  .mdg-contacto-formulario form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* CAMPOS DEL FORMULARIO */
  .mdg-contacto-formulario input,
  .mdg-contacto-formulario select,
  .mdg-contacto-formulario textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

}

/* =======================================================
   MONDRAGÓN & ASOCIADOS | VIDEOTECA DE SOPORTE
   Estilos aislados: no modifican biblioteca de PDF ni header
   Requiere el shortcode [mdg_videos_soporte]
   ======================================================= */

#mdg-videoteca {
    width: min(100%, 1100px) !important;
    margin: 18px auto 35px !important;
    padding: 0 12px !important;
    color: #1C244B !important;
    box-sizing: border-box !important;
}

#mdg-videoteca,
#mdg-videoteca * { box-sizing: border-box !important; }

#mdg-videoteca summary { list-style: none !important; cursor: pointer !important; }
#mdg-videoteca summary::-webkit-details-marker { display: none !important; }
#mdg-videoteca summary::marker { content: ""; }

/* Los seis grupos */
#mdg-videoteca details.mdg-videos-seccion {
    display: block !important;
    margin: 0 0 11px !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    border: 1px solid #C59B27 !important;
    border-radius: 11px !important;
    box-shadow: 0 2px 10px rgba(28,36,75,.05);
    overflow: hidden !important;
}
#mdg-videoteca details.mdg-videos-seccion > summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    width: 100% !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 14px 18px !important;
    background: #1C244B !important;
    color: #FFFFFF !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    border: 0 !important;
    text-align: left !important;
}
#mdg-videoteca details.mdg-videos-seccion > summary:hover { background: #293861 !important; }
#mdg-videoteca details.mdg-videos-seccion[open] > summary {
    background: #344673 !important;
    border-bottom: 2px solid #C59B27 !important;
}
#mdg-videoteca details.mdg-videos-seccion > summary::after,
#mdg-videoteca details.mdg-video-tutorial > summary::after {
    content: "" !important;
    display: block !important;
    flex: 0 0 8px !important;
    width: 8px !important;
    height: 8px !important;
    margin-left: auto !important;
    border-right: 2px solid #C59B27 !important;
    border-bottom: 2px solid #C59B27 !important;
    transform: rotate(45deg);
    transition: transform .2s ease;
}
#mdg-videoteca details.mdg-videos-seccion > summary::after {
    border-color: #E8C570 !important;
}
#mdg-videoteca details[open] > summary::after { transform: rotate(225deg) !important; }

/* Tutoriales dentro de cada grupo */
#mdg-videoteca .mdg-videos-contenido {
    display: block !important;
    padding: 10px !important;
    background: #FFFFFF !important;
}
#mdg-videoteca details.mdg-video-tutorial {
    display: block !important;
    margin: 0 0 7px !important;
    background: #FFFFFF !important;
    border: 1px solid #E1E6EF !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}
#mdg-videoteca details.mdg-video-tutorial:last-child { margin-bottom: 0 !important; }
#mdg-videoteca details.mdg-video-tutorial > summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 11px 14px !important;
    background: #FFFFFF !important;
    color: #1C244B !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-align: left !important;
    border: 0 !important;
}
#mdg-videoteca details.mdg-video-tutorial > summary:hover { background: #F3F5F9 !important; }
#mdg-videoteca details.mdg-video-tutorial[open] { border-color: #D5B76B !important; }
#mdg-videoteca details.mdg-video-tutorial[open] > summary {
    background: #F6F7FA !important;
    border-bottom: 1px solid #E1E6EF !important;
}

/* Video: solo presentación, no cambia URL ni inicialización */
#mdg-videoteca .mdg-video-player {
    width: 100% !important;
    padding: 14px !important;
    margin: 0 !important;
    background: #F8F9FC !important;
    overflow: hidden !important;
    color: #667085 !important;
    font-size: 13px !important;
}
#mdg-videoteca .mdg-video-player > * {
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
#mdg-videoteca .mdg-video-player :is(video, iframe) {
    display: block !important;
    width: 100% !important;
    max-width: 860px !important;
    margin: 0 auto !important;
    border: none !important;
    border-radius: 6px !important;
}
#mdg-videoteca .mdg-video-player iframe { aspect-ratio: 16 / 9; height: auto; }
#mdg-videoteca .mdg-video-player video { height: auto; max-height: 70vh; }
#mdg-videoteca .mdg-video-player :is(.wp-video, .wp-block-video, .wp-block-embed, .mejs-container) {
    max-width: 860px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
#mdg-videoteca .mdg-video-player img { max-width: 100% !important; height: auto !important; }
#mdg-videoteca summary:focus-visible { outline: 2px solid #C59B27 !important; outline-offset: -3px; }

/* Título opcional de Elementor: ID CSS mdg-video-titulo */
#mdg-video-titulo { width: 100%; margin: 25px auto 15px !important; text-align: center !important; }
#mdg-video-titulo .elementor-heading-title { color: #1C244B !important; font-size: clamp(24px, 3vw, 32px) !important; text-align: center !important; font-weight: 800 !important; }
#mdg-video-titulo::after { content: ""; display: block; width: 68px; height: 3px; margin: 14px auto 0; background: #C59B27; border-radius: 10px; }

@media (max-width: 767px) {
    #mdg-videoteca { width: 100% !important; padding: 0 8px !important; margin: 12px auto 25px !important; }
    #mdg-videoteca details.mdg-videos-seccion > summary { padding: 12px 13px !important; min-height: 44px !important; font-size: 14px !important; }
    #mdg-videoteca .mdg-videos-contenido { padding: 7px !important; }
    #mdg-videoteca details.mdg-video-tutorial > summary { padding: 10px !important; min-height: 42px !important; font-size: 12px !important; }
    #mdg-videoteca .mdg-video-player { padding: 7px !important; }
}

@media (prefers-reduced-motion: reduce) {
    #mdg-videoteca summary::after { transition: none !important; }
}


/* ==========================================
   MONDRAGÓN - OCULTAR EN MÓVIL Y TABLET
   VISIBLE ÚNICAMENTE EN COMPUTADORA
========================================== */

@media screen and (max-width: 1024px) {

  .mdg-ocultar-movil-tablet {
    display: none !important;
  }

}

/* ==========================================
   MONDRAGÓN - ACORDEÓN DE PREGUNTAS
   CORRECCIÓN PARA MÓVIL Y TABLETA
   SIN AFECTAR OTROS ELEMENTOS
========================================== */

@media screen and (max-width: 1024px) {

  /* ANCHO GENERAL DEL ACORDEÓN */
  .mdg-acordeon-preguntas,
  .mdg-acordeon-preguntas .e-accordion,
  .mdg-acordeon-preguntas .e-accordion-item-base,
  .mdg-acordeon-preguntas .e-n-accordion-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* ENCABEZADO DE CADA PREGUNTA */
  .mdg-acordeon-preguntas .e-accordion-item-header-base,
  .mdg-acordeon-preguntas .e-n-accordion-item-title {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;

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

    gap: 12px !important;
    padding: 14px 12px !important;
    box-sizing: border-box !important;
  }

  /* EL TEXTO UTILIZA TODO EL ESPACIO DISPONIBLE */
  .mdg-acordeon-preguntas .e-accordion-item-title-base,
  .mdg-acordeon-preguntas .e-n-accordion-item-title-header,
  .mdg-acordeon-preguntas .e-n-accordion-item-title-text {
    display: block !important;

    flex: 1 1 0% !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;

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

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    writing-mode: horizontal-tb !important;

    text-align: left !important;
    line-height: 1.5 !important;

    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* CORREGIR ANCHOS INTERNOS DEL TEXTO */
  .mdg-acordeon-preguntas
  .e-accordion-item-title-base > span,
  .mdg-acordeon-preguntas
  .e-n-accordion-item-title-header
  .e-n-accordion-item-title-text {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  /* EVITAR QUE OTROS HIJOS DEL ENCABEZADO
     COMPRIMAN EL TEXTO */
  .mdg-acordeon-preguntas
  .e-accordion-item-header-base
  > :not(.e-accordion-item-icon-base):not(.e-accordion-item-icon-open-base) {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* FLECHAS ALINEADAS A LA DERECHA */
  .mdg-acordeon-preguntas .e-accordion-item-icon-base,
  .mdg-acordeon-preguntas .e-accordion-item-icon-open-base,
  .mdg-acordeon-preguntas .e-n-accordion-item-title-icon {
    flex: 0 0 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;

    margin-left: auto !important;
    align-self: center !important;
  }

}

/* TAMAÑO DE LETRA SOLO EN CELULARES */
@media screen and (max-width: 767px) {

  .mdg-acordeon-preguntas .e-accordion-item-title-base,
  .mdg-acordeon-preguntas .e-n-accordion-item-title-text {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

}

/* ==========================================
   MONDRAGÓN - RESEÑAS RESPONSIVE
   TÍTULO ARRIBA Y OPINIONES DEBAJO
   SOLO TABLET Y CELULAR
========================================== */

@media screen and (max-width: 1024px) {

  /* FLEXBOX PRINCIPAL */
  .mdg-seccion-resenas,
  .mdg-seccion-resenas > .e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;

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

    height: auto !important;
    min-height: 0 !important;

    gap: 24px !important;
    box-sizing: border-box !important;
  }

  /* AMBAS COLUMNAS OCUPAN TODO EL ANCHO */
  .mdg-seccion-resenas .mdg-resenas-titulo,
  .mdg-seccion-resenas .mdg-resenas-contenido {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    flex-grow: 0 !important;

    display: flex !important;
    flex-direction: column !important;

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

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
  }

  /* PRIMERO EL TÍTULO */
  .mdg-seccion-resenas .mdg-resenas-titulo {
    order: 1 !important;
  }

  /* DESPUÉS LAS RESEÑAS */
  .mdg-seccion-resenas .mdg-resenas-contenido {
    order: 2 !important;
  }

  /* TÍTULO CENTRADO */
  .mdg-resenas-titulo .elementor-widget-heading,
  .mdg-resenas-titulo .elementor-heading-title,
  .mdg-resenas-titulo .e-heading-base {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    white-space: normal !important;
    word-break: normal !important;

    text-align: center !important;
  }

  /* WIDGET DE RESEÑAS */
  .mdg-resenas-contenido > .elementor-element,
  .mdg-resenas-contenido > .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

}

/* AJUSTE DE SEPARACIÓN EN CELULAR */
@media screen and (max-width: 767px) {

  .mdg-seccion-resenas,
  .mdg-seccion-resenas > .e-con-inner {
    gap: 18px !important;
  }

  .mdg-resenas-titulo .elementor-heading-title,
  .mdg-resenas-titulo .e-heading-base {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

}
/* ==========================================
   MONDRAGÓN - BENEFICIOS DE LA PORTADA
   REDUCIR ESPACIOS SOLO EN CELULAR
========================================== */

@media screen and (max-width: 767px) {

  /* Contenedor de los cuatro beneficios */
  .mdg-beneficios-hero,
  .mdg-beneficios-hero > .e-con-inner {
    gap: 8px !important;
    row-gap: 8px !important;
    column-gap: 10px !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    box-sizing: border-box !important;
  }

  /* Flexbox internas de cada beneficio */
  .mdg-beneficios-hero .e-con {
    gap: 5px !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    padding-top: 3px !important;
    padding-bottom: 3px !important;

    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Widgets de iconos y textos */
  .mdg-beneficios-hero .elementor-widget-icon,
  .mdg-beneficios-hero .elementor-widget-heading,
  .mdg-beneficios-hero .elementor-widget-text-editor {
    height: auto !important;
    min-height: 0 !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Eliminar espacios internos adicionales */
  .mdg-beneficios-hero .elementor-widget-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Textos compactos y centrados */
  .mdg-beneficios-hero .elementor-heading-title,
  .mdg-beneficios-hero .e-heading-base,
  .mdg-beneficios-hero p {
    line-height: 1.3 !important;
    margin: 0 !important;
    text-align: center !important;
    white-space: normal !important;
  }

}

/* ==========================================
   MONDRAGÓN & ASOCIADOS
   PLANILLA PLUS Y FACTURADOR PLUS
========================================== */


/* ==========================================
   1. CORRECCIÓN SOLO TABLET
========================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

  /* GRID DE LAS DOS TARJETAS */

  .mdg-grid-productos,
  .mdg-grid-productos > .e-con-inner {
    display: grid !important;

    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;

    justify-items: stretch !important;
    align-items: stretch !important;

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

    gap: 20px !important;

    box-sizing: border-box !important;
  }

  /* TARJETAS A ANCHO COMPLETO */

  .mdg-grid-productos > .e-con,
  .mdg-grid-productos > .e-con-inner > .e-con {
    --width: 100% !important;

    grid-column: 1 / -1 !important;

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

    justify-self: stretch !important;
    align-self: stretch !important;

    box-sizing: border-box !important;
  }

  /* FLEXBOX FACTURADOR PLUS */

  .mdg-grid-productos .mdg-fact-tarjeta {
    --width: 100% !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: stretch !important;
    justify-content: flex-start !important;

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

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    padding: 30px 16px 24px !important;

    gap: 20px !important;

    box-sizing: border-box !important;
  }

  /* EVITAR QUE SE SUPERPONGAN LOS WIDGETS */

  .mdg-fact-tarjeta > .elementor-element,
  .mdg-fact-tarjeta > .e-con-inner > .elementor-element {
    position: static !important;
    transform: none !important;

    flex: 0 0 auto !important;
    align-self: stretch !important;

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

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    box-sizing: border-box !important;
  }

  /* CONTENEDORES DE TEXTOS */

  .mdg-fact-tarjeta :is(
    .mdg-fact-nombre,
    .mdg-fact-precio,
    .mdg-fact-descripcion,
    .mdg-fact-incluye
  ) {
    position: static !important;
    transform: none !important;

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

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    flex: 0 0 auto !important;
    align-self: stretch !important;

    text-align: left !important;
  }

  .mdg-fact-tarjeta :is(
    .mdg-fact-nombre,
    .mdg-fact-precio,
    .mdg-fact-descripcion,
    .mdg-fact-incluye
  ) .elementor-widget-container {
    width: 100% !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    text-align: left !important;

    box-sizing: border-box !important;
  }

  /* LOGO */

  .mdg-fact-tarjeta .elementor-widget-image img {
    display: block !important;

    max-width: 110px !important;
    height: auto !important;

    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* TÍTULO FACTURADOR PLUS */

  .mdg-fact-tarjeta .mdg-fact-nombre {
    margin-top: 12px !important;
  }

  .mdg-fact-tarjeta .mdg-fact-nombre :is(
    .elementor-heading-title,
    .e-heading-base,
    .e-heading-title,
    h1, h2, h3, h4
  ) {
    display: block !important;

    font-size: 30px !important;
    line-height: 1.3 !important;

    text-align: left !important;

    width: 100% !important;
    height: auto !important;

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

    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  /* PRECIO */

  .mdg-fact-tarjeta .mdg-fact-precio :is(
    .elementor-heading-title,
    .e-heading-base,
    .e-heading-title,
    h1, h2, h3, h4
  ) {
    display: block !important;

    font-size: 30px !important;
    line-height: 1.35 !important;

    text-align: left !important;

    width: 100% !important;
    height: auto !important;

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

    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  /* IVA */

  .mdg-fact-tarjeta .mdg-fact-precio sup,
  .mdg-fact-tarjeta .mdg-fact-precio small {
    position: static !important;
    vertical-align: baseline !important;

    font-size: 0.55em !important;
    line-height: inherit !important;
  }

  /* DESCRIPCIÓN AZUL */

  .mdg-fact-tarjeta .mdg-fact-descripcion {
    margin-top: 10px !important;
    margin-bottom: 8px !important;
  }

  .mdg-fact-tarjeta .mdg-fact-descripcion p {
    margin: 0 !important;

    line-height: 1.5 !important;
    text-align: left !important;

    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  /* ESTE PAQUETE INCLUYE */

  .mdg-fact-tarjeta .mdg-fact-incluye {
    margin-top: 10px !important;
    margin-bottom: 4px !important;
  }

  .mdg-fact-tarjeta .mdg-fact-incluye p {
    margin: 0 !important;

    line-height: 1.5 !important;
    text-align: left !important;
  }

  /* LISTADO DE CARACTERÍSTICAS */

  .mdg-fact-tarjeta .elementor-icon-list-items {
    display: flex !important;
    flex-direction: column !important;

    row-gap: 12px !important;

    margin: 0 !important;
  }

  .mdg-fact-tarjeta .elementor-icon-list-item {
    margin: 0 !important;
    align-items: flex-start !important;
  }

  .mdg-fact-tarjeta .elementor-icon-list-text {
    line-height: 1.5 !important;

    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  /* BOTÓN COMPRAR AHORA */

  .mdg-fact-tarjeta .elementor-widget-button {
    width: 100% !important;
    max-width: 100% !important;

    margin-top: 20px !important;
  }

  .mdg-fact-tarjeta .elementor-button-wrapper {
    width: 100% !important;
  }

  .mdg-fact-tarjeta .elementor-button {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: 100% !important;

    min-height: 56px !important;

    padding: 14px 20px !important;

    box-sizing: border-box !important;
  }

}


/* ==========================================
   2. CORRECCIÓN SOLO CELULARES
   TARJETAS MÁS ANCHAS
========================================== */

@media screen and (max-width: 767px) {

  /* GRID AL ANCHO DEL CELULAR */

  .mdg-grid-productos {
    display: grid !important;

    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;

    width: calc(100vw - 24px) !important;
    max-width: none !important;
    min-width: 0 !important;

    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

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

    justify-items: stretch !important;
    align-items: stretch !important;

    gap: 20px !important;

    box-sizing: border-box !important;
  }

  /* CONTENEDOR INTERNO DEL GRID */

  .mdg-grid-productos > .e-con-inner {
    display: grid !important;

    grid-template-columns: minmax(0, 1fr) !important;

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

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

    gap: 20px !important;

    box-sizing: border-box !important;
  }

  /* LAS DOS TARJETAS OCUPAN TODO EL ANCHO */

  .mdg-grid-productos > .e-con,
  .mdg-grid-productos > .e-con-inner > .e-con {
    --width: 100% !important;

    grid-column: 1 / -1 !important;

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

    justify-self: stretch !important;
    align-self: stretch !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    box-sizing: border-box !important;
  }

  /* FACTURADOR PLUS AL ANCHO CORRECTO */

  .mdg-grid-productos .mdg-fact-tarjeta {
    --width: 100% !important;

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

    height: auto !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    padding: 20px 16px !important;

    box-sizing: border-box !important;
  }

  /* PREVENIR QUE LOS TEXTOS SE SALGAN */

  .mdg-grid-productos .mdg-fact-tarjeta :is(
    .mdg-fact-nombre,
    .mdg-fact-precio,
    .mdg-fact-descripcion,
    .mdg-fact-incluye
  ) {
    min-width: 0 !important;
    max-width: 100% !important;

    overflow-wrap: break-word !important;
  }

}

/* ==========================================
   MONDRAGÓN & ASOCIADOS
   PLANILLA PLUS Y FACTURADOR PLUS
   AJUSTAR ANCHO Y POSICIÓN EN TABLET

   SOLO TABLETAS: 768px - 1024px
   SIN AFECTAR CELULAR NI COMPUTADORA
========================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

  /* GRID QUE CONTIENE LAS DOS TARJETAS */
  .mdg-grid-productos {

    /* UN POCO MÁS ESTRECHO */
    width: calc(100% - 60px) !important;
    max-width: 660px !important;
    min-width: 0 !important;

    /* CENTRAR LAS TARJETAS */
    margin-left: auto !important;
    margin-right: auto !important;

    /* BAJAR LAS TARJETAS PARA NO TAPAR EL TÍTULO */
    margin-top: 60px !important;

    /* EVITAR DESPLAZAMIENTOS LATERALES */
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;

    /* CONSERVAR DISTRIBUCIÓN VERTICAL */
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;

    justify-items: stretch !important;
    align-items: stretch !important;

    gap: 22px !important;

    box-sizing: border-box !important;
  }

  /* AMBAS TARJETAS DENTRO DEL GRID */
  .mdg-grid-productos > .e-con,
  .mdg-grid-productos > .elementor-element {

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

    justify-self: stretch !important;

    box-sizing: border-box !important;
  }

}


/* ==========================================
   MONDRAGÓN & ASOCIADOS
   POS PLUS Y FACTURADOR PLUS DIRECTO

   TABLET:
   CORREGIR TEXTOS SUPERPUESTOS

   CELULAR:
   TARJETAS AL ANCHO DE LA PANTALLA

   COMPUTADORA:
   SIN MODIFICACIONES
========================================== */


/* ==========================================
   1. TABLETAS
   DESDE 768px HASTA 1024px

   CONSERVAR ANCHO ACTUAL
   SEPARAR ELEMENTOS INTERNOS
========================================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {

  /* GRID PRINCIPAL */
  .mdg-grid-basicos {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;

    width: calc(100% - 60px) !important;
    max-width: 660px !important;
    min-width: 0 !important;

    margin: 60px auto 0 !important;

    justify-items: stretch !important;
    align-items: stretch !important;

    gap: 30px !important;

    box-sizing: border-box !important;
  }

  /* CONTENEDOR INTERNO DEL GRID */
  .mdg-grid-basicos > .e-con-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;

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

    gap: 30px !important;
    box-sizing: border-box !important;
  }

  /* AMBAS TARJETAS */
  .mdg-grid-basicos .mdg-basico-tarjeta {
    --width: 100% !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: stretch !important;
    justify-content: flex-start !important;

    grid-column: 1 / -1 !important;
    justify-self: stretch !important;

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

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    position: relative !important;
    left: auto !important;
    transform: none !important;

    margin: 0 !important;
    padding: 30px 30px 28px !important;

    gap: 20px !important;

    box-sizing: border-box !important;
  }

  /* CONTENEDOR INTERNO SI EXISTE */
  .mdg-basico-tarjeta > .e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    gap: 20px !important;

    height: auto !important;
    min-height: 0 !important;
  }

  /* WIDGETS INTERNOS */
  .mdg-basico-tarjeta > .elementor-element,
  .mdg-basico-tarjeta > .e-con-inner > .elementor-element {
    position: static !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    transform: none !important;

    flex: 0 0 auto !important;
    align-self: stretch !important;

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

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    box-sizing: border-box !important;
  }

  /* EVITAR WIDGETS MONTADOS */
  .mdg-basico-tarjeta .elementor-widget {
    position: static !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    transform: none !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  /* ALTURA NATURAL DEL CONTENIDO */
  .mdg-basico-tarjeta .elementor-widget-container {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  /* LOGOS */
  .mdg-basico-tarjeta .elementor-widget-image {
    margin-bottom: 18px !important;
  }

  .mdg-basico-tarjeta .elementor-widget-image img {
    display: block !important;

    width: auto !important;
    max-width: 270px !important;
    height: auto !important;

    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* TÍTULOS Y PRECIOS */
  .mdg-basico-tarjeta .elementor-widget-heading {
    margin-top: 0 !important;
    margin-bottom: 16px !important;

    height: auto !important;
    min-height: 0 !important;
  }

  .mdg-basico-tarjeta .elementor-heading-title,
  .mdg-basico-tarjeta .e-heading-base {
    position: static !important;

    display: block !important;

    height: auto !important;
    min-height: 0 !important;

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

    line-height: 1.35 !important;
    text-align: left !important;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  /* IVA DEL PRECIO */
  .mdg-basico-tarjeta sup {
    position: static !important;
    vertical-align: baseline !important;

    font-size: 0.55em !important;
    line-height: inherit !important;
  }

  /* PÁRRAFOS Y DESCRIPCIONES */
  .mdg-basico-tarjeta .elementor-widget-text-editor {
    margin-top: 0 !important;
    margin-bottom: 18px !important;

    height: auto !important;
    min-height: 0 !important;
  }

  .mdg-basico-tarjeta p {
    height: auto !important;
    min-height: 0 !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    line-height: 1.6 !important;

    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  /* LISTA DE CARACTERÍSTICAS */
  .mdg-basico-tarjeta .elementor-widget-icon-list {
    margin-top: 10px !important;
    margin-bottom: 22px !important;
  }

  .mdg-basico-tarjeta .elementor-icon-list-items {
    display: flex !important;
    flex-direction: column !important;

    row-gap: 12px !important;

    margin: 0 !important;
  }

  .mdg-basico-tarjeta .elementor-icon-list-item {
    margin: 0 !important;
    align-items: flex-start !important;
  }

  .mdg-basico-tarjeta .elementor-icon-list-text {
    line-height: 1.55 !important;

    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  /* BOTÓN COMPRAR AHORA */
  .mdg-basico-tarjeta .elementor-widget-button {
    position: static !important;
    transform: none !important;

    width: 100% !important;
    max-width: 100% !important;

    margin-top: 24px !important;
    margin-bottom: 0 !important;
  }

  .mdg-basico-tarjeta .elementor-button-wrapper {
    width: 100% !important;
  }

  .mdg-basico-tarjeta .elementor-button {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    max-width: 100% !important;
    min-height: 54px !important;

    box-sizing: border-box !important;
  }

}


/* ==========================================
   2. CELULARES
   HASTA 767px
   TARJETAS AL ANCHO DE LA PANTALLA
========================================== */

@media screen and (max-width: 767px) {

  /* GRID PRINCIPAL */
  .mdg-grid-basicos {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;

    width: calc(100vw - 28px) !important;
    max-width: none !important;
    min-width: 0 !important;

    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    margin-top: 35px !important;
    margin-bottom: 0 !important;

    padding: 0 !important;

    justify-items: stretch !important;
    align-items: stretch !important;

    gap: 22px !important;

    box-sizing: border-box !important;
  }

  /* CONTENEDOR INTERNO */
  .mdg-grid-basicos > .e-con-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;

    width: 100% !important;
    max-width: 100% !important;

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

    gap: 22px !important;
    box-sizing: border-box !important;
  }

  /* AMBAS TARJETAS */
  .mdg-grid-basicos .mdg-basico-tarjeta {
    --width: 100% !important;

    display: flex !important;
    flex-direction: column !important;

    align-items: stretch !important;
    justify-content: flex-start !important;

    grid-column: 1 / -1 !important;

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

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 20px 16px 24px !important;

    gap: 14px !important;

    box-sizing: border-box !important;
  }

  /* WIDGETS INTERNOS */
  .mdg-basico-tarjeta > .elementor-element,
  .mdg-basico-tarjeta > .e-con-inner > .elementor-element {
    position: static !important;
    transform: none !important;

    flex: 0 0 auto !important;
    align-self: stretch !important;

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

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    box-sizing: border-box !important;
  }

  /* TEXTOS */
  .mdg-basico-tarjeta .elementor-widget-container {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .mdg-basico-tarjeta .elementor-heading-title,
  .mdg-basico-tarjeta .e-heading-base {
    position: static !important;

    height: auto !important;
    min-height: 0 !important;

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

    line-height: 1.3 !important;
    text-align: left !important;

    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  .mdg-basico-tarjeta p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    line-height: 1.5 !important;
    white-space: normal !important;
  }

  /* LOGOS */
  .mdg-basico-tarjeta .elementor-widget-image img {
    width: auto !important;
    max-width: 220px !important;
    height: auto !important;
  }

  /* CARACTERÍSTICAS */
  .mdg-basico-tarjeta .elementor-icon-list-items {
    display: flex !important;
    flex-direction: column !important;

    row-gap: 9px !important;
  }

  .mdg-basico-tarjeta .elementor-icon-list-text {
    line-height: 1.5 !important;
    white-space: normal !important;
  }

  /* BOTÓN */
  .mdg-basico-tarjeta .elementor-widget-button {
    position: static !important;

    width: 100% !important;

    margin-top: 16px !important;
    margin-bottom: 0 !important;

    transform: none !important;
  }

  .mdg-basico-tarjeta .elementor-button {
    width: 100% !important;
    max-width: 100% !important;

    min-height: 50px !important;

    box-sizing: border-box !important;
  }

}
