/* =========================================================

   OFFIDOCS â€” SUBPAGES

   CLEAN CONSOLIDATED VERSION

========================================================= */

/* =========================================================

   VARIABLES

========================================================= */

:root {

    --app-blue: #1769d2;

    --app-blue-2: #2478df;

    --app-blue-light: #65b8ff;

    --app-navy: #102a43;

    --app-navy-deep: #0b2d55;

    --app-text: #45576c;

    --app-muted: #728399;

    --app-bg: #f5faff;

    --app-soft: #edf6ff;

    --app-border: rgba(23, 105, 210, .12);

}

/* =========================================================

   GENERAL PAGE

========================================================= */

html body #ja-container {

    position: relative !important;

    width: 100% !important;

    margin-top: 64px !important;

    padding: 42px 24px 72px !important;

    box-sizing: border-box !important;

    overflow: hidden !important;

    background:

        radial-gradient(

            circle at 7% 10%,

            rgba(255,255,255,.92),

            transparent 25%

        ),

        radial-gradient(

            circle at 91% 17%,

            rgba(101,184,255,.14),

            transparent 24%

        ),

        linear-gradient(

            180deg,

            #dceeff 0%,

            #edf6ff 38%,

            #f8fbff 72%,

            #ffffff 100%

        ) !important;

}

/* =========================================================

   DECORATIVE BACKGROUND

========================================================= */

html body #ja-container::before,

html body #ja-container::after {

    content: "";

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    z-index: 0;

}

html body #ja-container::before {

    width: 350px;

    height: 350px;

    left: -170px;

    top: 70px;

    background: rgba(23,105,210,.055);

}

html body #ja-container::after {

    width: 260px;

    height: 260px;

    right: -105px;

    top: 310px;

    border: 30px solid rgba(23,105,210,.045);

    background: transparent;

}

/* =========================================================

   REMOVE OLD JOOMLA WIDTHS

========================================================= */

html body #ja-container .main,

html body #ja-main-wrap,

html body #ja-main,

html body #ja-content,

html body #ja-content-main {

    width: 100% !important;

    max-width: none !important;

    margin-left: auto !important;

    margin-right: auto !important;

    box-sizing: border-box !important;

}

/* =========================================================

   CONTENT ABOVE BACKGROUND

========================================================= */

html body #ja-container #ja-main,

html body #ja-container #ja-content,

html body #ja-container #ja-content-main,

html body #ja-container .item-page {

    position: relative !important;

    z-index: 2 !important;

}

/* =========================================================

   MAIN H1

========================================================= */

html body #ja-container h1 {

    position: relative !important;

    z-index: 3 !important;

    width: min(960px, 100%) !important;

    max-width: 960px !important;

    margin: 48px auto 34px !important;

    padding: 0 20px !important;

    box-sizing: border-box !important;

    color: var(--app-navy) !important;

    -webkit-text-fill-color: var(--app-navy) !important;

    font-family: inherit !important;

    font-size: clamp(40px, 4.3vw, 58px) !important;

    line-height: 1.05 !important;

    font-weight: 800 !important;

    letter-spacing: -.045em !important;

    text-align: center !important;

    text-transform: none !important;

    background: none !important;

    text-wrap: balance !important;

}

html body #ja-container h1::after {

    content: "";

    display: block;

    width: 58px;

    height: 4px;

    margin: 19px auto 0;

    border-radius: 999px;

    background:

        linear-gradient(

            90deg,

            var(--app-blue),

            var(--app-blue-light)

        );

}

/* =========================================================

   HIDE OLD JOOMLA HEADING

========================================================= */

/* Ocultar únicamente títulos antiguos
   que no sean enlaces de tarjetas */
html body #ja-container .item-page > .contentheading {
    display: none !important;
}

/* =========================================================

   MAIN CONTENT CARD

========================================================= */

html body #ja-container .item-page.clearfix,

html body #ja-container .item-page {

    position: relative !important;

    z-index: 2 !important;

    width: min(1040px, calc(100% - 20px)) !important;

    max-width: 1040px !important;

    margin: 0 auto !important;

    padding: 34px 46px 44px !important;

    box-sizing: border-box !important;

    background: rgba(255,255,255,.94) !important;

    border: 1px solid rgba(23,105,210,.11) !important;

    border-radius: 28px !important;

    box-shadow:

        0 24px 65px rgba(25,65,110,.10),

        0 4px 14px rgba(25,65,110,.04) !important;

    backdrop-filter: blur(15px) !important;

    -webkit-backdrop-filter: blur(15px) !important;

    overflow: hidden !important;

}

/* subtle glow */

html body #ja-container .item-page.clearfix::before,

html body #ja-container .item-page::before {

    content: "";

    position: absolute;

    width: 290px;

    height: 290px;

    top: -180px;

    right: -160px;

    border-radius: 50%;

    background:

        radial-gradient(

            circle,

            rgba(101,184,255,.13),

            transparent 68%

        );

    pointer-events: none;

}

/* =========================================================

   REMOVE EMPTY LEGACY SPACES

========================================================= */

html body #ja-container .item-page > p:empty {

    display: none !important;

    height: 0 !important;

    margin: 0 !important;

    padding: 0 !important;

}

html body #ja-container .item-page

> p[style*="height: 25px"] {

    display: none !important;

    height: 0 !important;

    margin: 0 !important;

    padding: 0 !important;

}

/* =========================================================

   APP IDENTITY

   icon + name + official app

========================================================= */

html body #ja-container .item-page

> div[style*="height: 150px"] {

    position: relative !important;

    float: none !important;

    width: min(680px, 100%) !important;

    min-width: 0 !important;

    height: auto !important;

    min-height: 0 !important;

    margin: 0 auto 18px !important;

    padding: 20px 24px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 24px !important;

    box-sizing: border-box !important;

    background:

        linear-gradient(

            135deg,

            #f5faff,

            #edf6ff

        ) !important;

    border: 1px solid rgba(23,105,210,.11) !important;

    border-radius: 21px !important;

    box-shadow:

        0 8px 24px rgba(25,65,110,.045) !important;

}

/* app image link */

html body #ja-container .item-page

> div[style*="height: 150px"] > a {

    float: none !important;

    flex: 0 0 auto !important;

    margin: 0 !important;

    padding: 0 !important;

}

/* app image */

html body #ja-container .item-page

> div[style*="height: 150px"] img {

    display: block !important;

    width: 118px !important;

    height: 118px !important;

    max-width: 118px !important;

    max-height: 118px !important;

    margin: 0 !important;

    padding: 10px !important;

    object-fit: contain !important;

    background: #ffffff !important;

    border: 1px solid rgba(23,105,210,.11) !important;

    border-radius: 18px !important;

    box-shadow:

        0 10px 26px rgba(25,65,110,.09) !important;

}

/* app text */

html body #ja-container .item-page

> div[style*="height: 150px"] span {

    float: none !important;

    max-width: none !important;

    margin: 0 !important;

    padding: 0 !important;

    text-align: left !important;

}

html body #ja-container .item-page

> div[style*="height: 150px"] span p {

    padding: 0 !important;

}

html body #ja-container .item-page

> div[style*="height: 150px"] span p:first-child {

    margin: 0 0 6px !important;

    color: var(--app-navy) !important;

    font-size: 22px !important;

    line-height: 1.2 !important;

    font-weight: 800 !important;

    letter-spacing: -.025em !important;

}

html body #ja-container .item-page

> div[style*="height: 150px"] span p:nth-child(2) {

    margin: 0 0 5px !important;

    color: var(--app-blue) !important;

    font-size: 14px !important;

    font-weight: 700 !important;

}

html body #ja-container .item-page

> div[style*="height: 150px"] span p:last-child {

    margin: 0 !important;

    color: var(--app-muted) !important;

    font-size: 13px !important;

    line-height: 1.4 !important;

}

/* =========================================================

   ENTER BUTTON

========================================================= */

html body #ja-container .item-page

> p[style*="text-align: center"]

> a[target="_blank"] {

    min-width: 170px !important;

    min-height: 48px !important;

    margin: 4px auto 26px !important;

    padding: 0 28px !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 7px !important;

    color: #ffffff !important;

    -webkit-text-fill-color: #ffffff !important;

    background: var(--app-blue) !important;

    border: 0 !important;

    border-radius: 9px !important;

    box-shadow:

        0 7px 18px rgba(23,105,210,.22) !important;

    font-size: 14px !important;

    line-height: 1 !important;

    font-weight: 700 !important;

    letter-spacing: 0 !important;

    text-decoration: none !important;

    text-transform: none !important;

    transition:

        transform .2s ease,

        box-shadow .2s ease !important;

}

html body #ja-container .item-page

> p[style*="text-align: center"]

> a[target="_blank"]:hover {

    transform: translateY(-2px) !important;

    box-shadow:

        0 11px 24px rgba(23,105,210,.27) !important;

    color: #ffffff !important;

    -webkit-text-fill-color: #ffffff !important;

    text-decoration: none !important;

}

/* =========================================================

   OLD AD PLACEHOLDER

========================================================= */

html body #ja-container-prev {

    margin: 0 !important;

    padding: 0 !important;

    min-height: 0 !important;

    max-height: 0 !important;

    height: 0 !important;

    overflow: hidden !important;

}

html body #adxxy,

html body #adxxyin {

    min-height: 0 !important;

    max-height: 0 !important;

    height: 0 !important;

    padding-top: 0 !important;

    padding-bottom: 0 !important;

    overflow: hidden !important;

}

/* =========================================================

   INTERNAL SECTION TITLES

========================================================= */

html body #ja-container .item-page > h2 {

    position: relative !important;

    width: min(860px, 100%) !important;

    margin: 36px auto 22px !important;

    padding: 0 0 13px !important;

    color: var(--app-navy) !important;

    font-size: clamp(23px, 2vw, 29px) !important;

    line-height: 1.15 !important;

    font-weight: 800 !important;

    letter-spacing: -.025em !important;

    text-align: left !important;

    text-transform: none !important;

    border-bottom:

        1px solid rgba(23,105,210,.12) !important;

}

html body #ja-container .item-page > h2::after {

    content: "" !important;

    position: absolute !important;

    left: 0 !important;

    bottom: -1px !important;

    width: 48px !important;

    height: 3px !important;

    margin: 0 !important;

    border-radius: 999px !important;

    background:

        linear-gradient(

            90deg,

            var(--app-blue),

            var(--app-blue-light)

        ) !important;

}

html body #ja-container .item-page

> h2:first-of-type {

    margin-top: 18px !important;

}

/* =========================================================

   H3

========================================================= */

html body #ja-container .item-page

> h3 {

    width: min(860px, 100%) !important;

    margin: 26px auto 10px !important;

    color: var(--app-navy-deep) !important;

    font-size: 20px !important;

    line-height: 1.3 !important;

    font-weight: 750 !important;

    letter-spacing: -.015em !important;

    text-align: left !important;

}

/* =========================================================

   BODY COPY

========================================================= */

html body #ja-container .item-page

> p:not([style*="text-align: center"]),

html body #ja-container .item-page .p1 {

    width: min(860px, 100%) !important;

    max-width: 860px !important;

    margin: 0 auto 16px !important;

    color: var(--app-text) !important;

    font-size: 16px !important;

    line-height: 1.72 !important;

}

/* subtitles inside paragraphs */

html body #ja-container .item-page

> p > strong:first-child,

html body #ja-container .item-page

.p1 > strong:first-child {

    color: var(--app-navy-deep) !important;

    font-weight: 800 !important;

    font-size: 1em !important;

    letter-spacing: -.01em !important;

}

/* =========================================================

   NORMAL TEXT LINKS

========================================================= */

html body #ja-container .item-page

> p:not([style*="text-align: center"]) a,

html body #ja-container .item-page

.p1 a {

    color: var(--app-blue) !important;

    font-weight: 650 !important;

    text-decoration: none !important;

}

html body #ja-container .item-page

> p:not([style*="text-align: center"]) a:hover,

html body #ja-container .item-page

.p1 a:hover {

    color: #0b4da7 !important;

    text-decoration: underline !important;

}

/* =========================================================

   LISTS

========================================================= */

html body #ja-container .item-page

> ul,

html body #ja-container .item-page

> ol {

    width: min(820px, calc(100% - 40px)) !important;

    margin: 10px auto 24px !important;

    padding-left: 22px !important;

    color: var(--app-text) !important;

    box-sizing: border-box !important;

}

html body #ja-container .item-page

> ul li,

html body #ja-container .item-page

> ol li {

    margin-bottom: 10px !important;

    color: var(--app-text) !important;

    font-size: 16px !important;

    line-height: 1.7 !important;

}

/* =========================================================

   YOUTUBE

========================================================= */

html body #ja-container #youtubex {

    display: block !important;

    width: 100% !important;

    max-width: 850px !important;

    height: auto !important;

    aspect-ratio: 16 / 9 !important;

    margin: 30px auto 30px !important;

    border: 0 !important;

    border-radius: 18px !important;

    box-shadow:

        0 15px 38px rgba(20,55,92,.12) !important;

    overflow: hidden !important;

}

/* =========================================================

   SLIDESHARE

========================================================= */

html body #ja-container #slidesharex {

    display: block !important;

    width: 100% !important;

    max-width: 850px !important;

    min-height: 470px !important;

    margin: 32px auto 14px !important;

    border:

        1px solid rgba(23,105,210,.11) !important;

    border-radius: 18px !important;

    box-shadow:

        0 14px 36px rgba(25,65,110,.09) !important;

    background: #ffffff !important;

}

html body #ja-container

#slidesharex + * {

    max-width: 850px !important;

    margin: 0 auto 26px !important;

    color: var(--app-muted) !important;

    font-size: 13px !important;

    line-height: 1.6 !important;

}

/* =========================================================

   PREVIOUS / NEXT

========================================================= */

html body #ja-container .pagenav {

    width: min(850px, 100%) !important;

    max-width: 850px !important;

    margin: 32px auto 0 !important;

    padding: 20px 0 0 !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 12px !important;

    list-style: none !important;

    border-top:

        1px solid rgba(23,105,210,.12) !important;

}

html body #ja-container .pagenav li {

    width: auto !important;

    float: none !important;

    margin: 0 !important;

    padding: 0 !important;

    list-style: none !important;

}

html body #ja-container .pagenav a {

    min-height: 44px !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    padding: 0 20px !important;

    border-radius: 9px !important;

    font-size: 14px !important;

    line-height: 1 !important;

    font-weight: 700 !important;

    text-decoration: none !important;

    transition:

        transform .2s ease,

        box-shadow .2s ease,

background .2s ease !important;

}

/* PREVIOUS */

html body #ja-container

.pagenav-prev a {

    color: #24445f !important;

    -webkit-text-fill-color: #24445f !important;

    background: rgba(255,255,255,.80) !important;

    border: 1px solid #d8e6f3 !important;

    box-shadow:

        0 3px 12px rgba(30,64,175,.06) !important;

}

/* NEXT */

html body #ja-container

.pagenav-next a {

    color: #ffffff !important;

    -webkit-text-fill-color: #ffffff !important;

    background: var(--app-blue) !important;

    border: 1px solid var(--app-blue) !important;

    box-shadow:

        0 7px 18px rgba(23,105,210,.22) !important;

}

html body #ja-container

.pagenav a:hover {

    transform: translateY(-2px) !important;

    text-decoration: none !important;

}

html body #ja-container

.pagenav-prev a:hover {

    background: #f7fbff !important;

}

html body #ja-container

.pagenav-next a:hover {

    color: #ffffff !important;

    box-shadow:

        0 11px 24px rgba(23,105,210,.28) !important;

}

/* =========================================================

   TEMPLATE DETAIL BUTTONS

   Download / LibreOffice / OpenOffice

========================================================= */

html body #ja-container .sdivx {

    width: min(620px, 100%) !important;

    margin: 26px auto 30px !important;

    display: flex !important;

    flex-wrap: wrap !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 10px !important;

    text-align: center !important;

}

html body #ja-container .sdivx > a {

    min-height: 46px !important;

    margin: 0 !important;

    padding: 0 20px !important;

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    color: #24445f !important;

    -webkit-text-fill-color: #24445f !important;

    background: rgba(255,255,255,.85) !important;

    border: 1px solid #d8e6f3 !important;

    border-radius: 9px !important;

    box-shadow:

        0 3px 12px rgba(30,64,175,.06) !important;

    font-size: 14px !important;

    font-weight: 650 !important;

    line-height: 1 !important;

    text-decoration: none !important;

    transition:

        transform .2s ease,

        box-shadow .2s ease,

background .2s ease !important;

}

html body #ja-container

.sdivx > a:first-of-type {

    color: #ffffff !important;

    -webkit-text-fill-color: #ffffff !important;

    background: var(--app-blue) !important;

    border-color: var(--app-blue) !important;

    box-shadow:

        0 7px 18px rgba(23,105,210,.22) !important;

}

html body #ja-container

.sdivx > a:hover {

    transform: translateY(-2px) !important;

    text-decoration: none !important;

    box-shadow:

        0 10px 22px rgba(23,105,210,.18) !important;

}

/* =========================================================

   OFFICE TEMPLATES

   IMPORTANT:

   box.css handles the cards.

   Here we ONLY fix extension categories that box.css

   did not originally include.

========================================================= */

/* Productivity */

html body .container-box

#xxprodextensions:not([style*="display: none"]):not([style*="display:none"]) {

    display: grid !important;

}

/* Social */

html body .container-box

#xxsocialextensions:not([style*="display: none"]):not([style*="display:none"]) {

    display: grid !important;

}

/* JS explicitly shows them */

html body .container-box

#xxprodextensions[style*="display: block"],

html body .container-box

#xxprodextensions[style*="display:block"],

html body .container-box

#xxsocialextensions[style*="display: block"],

html body .container-box

#xxsocialextensions[style*="display:block"] {

    display: grid !important;

}

/* hidden */

html body .container-box

#xxprodextensions[style*="display: none"],

html body .container-box

#xxprodextensions[style*="display:none"],

html body .container-box

#xxsocialextensions[style*="display: none"],

html body .container-box

#xxsocialextensions[style*="display:none"] {

    display: none !important;

}

/* =========================================================

   MEDIA â€” FULL WIDTH

========================================================= */

html body #ja-container .item-page iframe,

html body #ja-container .item-page video,

html body #ja-container .item-page figure,

html body #ja-container .item-page picture {

    display: block !important;

    width: 100% !important;

    max-width: 850px !important;

    margin-left: auto !important;

    margin-right: auto !important;

}

html body #ja-container .item-page

p:has(iframe),

html body #ja-container .item-page

p:has(video),

html body #ja-container .item-page

p:has(img) {

    width: 100% !important;

    max-width: 850px !important;

    margin-left: auto !important;

    margin-right: auto !important;

    text-align: center !important;

}

/* =========================================================

   REFERENCE LINKS â€” WHITE / BLUE OUTLINE

========================================================= */

html body #ja-container .item-page strong > a,

html body #ja-container .item-page div[style*="margin-bottom: 5px"] a,

html body #ja-container .item-page div[style*="margin-bottom:5px"] a {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    min-height: 42px !important;

    padding: 0 18px !important;

    margin: 7px 5px 7px 0 !important;

    background: rgba(255,255,255,.92) !important;

    color: #1769d2 !important;

    -webkit-text-fill-color: #1769d2 !important;

    border: 1px solid rgba(23,105,210,.42) !important;

    border-radius: 10px !important;

    box-shadow:

        0 4px 12px rgba(23,105,210,.07) !important;

    font-size: 14px !important;

    font-weight: 700 !important;

    line-height: 1 !important;

    text-decoration: none !important;

    transition:

        transform .2s ease,

        box-shadow .2s ease,

background .2s ease,

        border-color .2s ease !important;

}

html body #ja-container .item-page strong > a:hover,

html body #ja-container .item-page div[style*="margin-bottom: 5px"] a:hover,

html body #ja-container .item-page div[style*="margin-bottom:5px"] a:hover {

    background: #f3f8ff !important;

    color: #0f57b8 !important;

    -webkit-text-fill-color: #0f57b8 !important;

    border-color: #1769d2 !important;

    transform: translateY(-2px) !important;

    box-shadow:

        0 9px 20px rgba(23,105,210,.13) !important;

    text-decoration: none !important;

}

/* =========================================================

   TABLET

========================================================= */

@media (max-width: 1000px) {

    html body #ja-container {

        padding:

            38px 18px

            64px !important;

    }

   html body #ja-container h1 {

    padding: 0 8px !important;

    margin:

        30px auto

        22px !important;

    font-size: 32px !important;

    line-height: 1.06 !important;

    letter-spacing: -.04em !important;

}

    html body #ja-container

    .item-page.clearfix,

    html body #ja-container

    .item-page {

        width: 100% !important;

        padding:

            30px 28px

            40px !important;

        border-radius:

            24px !important;

    }

    html body #ja-container .item-page

    > h2 {

        width: 100% !important;

        font-size: 26px !important;

    }

    html body #ja-container .item-page

    > p:not([style*="text-align: center"]),

    html body #ja-container .item-page

    .p1 {

        width: 100% !important;

    }

}

/* =========================================================

   MOBILE

========================================================= */

@media (max-width: 640px) {

    html body #ja-container {

        margin-top:

            58px !important;

        padding:

            32px 12px

            52px !important;

    }

    html body #ja-container::before {

        width: 220px;

        height: 220px;

        left: -130px;

    }

    html body #ja-container::after {

        width: 160px;

        height: 160px;

        right: -90px;

        border-width:

            20px;

    }

    /* main h1 */

    html body #ja-container h1 {

        padding:

            0 8px !important;

        margin-bottom:

            22px !important;

        font-size:

            32px !important;

        line-height:

            1.06 !important;

        letter-spacing:

            -.04em !important;

    }

    html body #ja-container

    h1::after {

        width:

            48px;

        height:

            4px;

        margin-top:

            17px;

    }

    /* card */

    html body #ja-container

    .item-page.clearfix,

    html body #ja-container

    .item-page {

        padding:

            22px 16px

            32px !important;

        border-radius:

            20px !important;

    }

    /* app identity */

    html body #ja-container

    .item-page

    > div[style*="height: 150px"] {

        flex-direction:

            column !important;

        gap:

            14px !important;

        padding:

            18px 16px !important;

        text-align:

            center !important;

    }

    html body #ja-container

    .item-page

    > div[style*="height: 150px"]

    span {

        text-align:

            center !important;

    }

    html body #ja-container

    .item-page

    > div[style*="height: 150px"]

    img {

        width:

            100px !important;

        height:

            100px !important;

        max-width:

            100px !important;

        max-height:

            100px !important;

    }

    /* ENTER */

    html body #ja-container

    .item-page

    > p[style*="text-align: center"]

    > a[target="_blank"] {

        width:

            100% !important;

        min-width:

            0 !important;

        min-height:

            48px !important;

        margin-bottom:

            22px !important;

    }

    /* section titles */

    html body #ja-container

    .item-page

    > h2 {

        width:

            100% !important;

        margin:

            28px 0

            15px !important;

        padding-bottom:

            12px !important;

        font-size:

            23px !important;

    }

    html body #ja-container

    .item-page

    > h2:first-of-type {

        margin-top:

            16px !important;

    }

    /* text */

    html body #ja-container

    .item-page

    > p:not([style*="text-align: center"]),

    html body #ja-container

    .item-page

    .p1 {

        width:

            100% !important;

        font-size:

            15px !important;

        line-height:

            1.68 !important;

    }

    /* lists */

    html body #ja-container

    .item-page

    > ul,

    html body #ja-container

    .item-page

    > ol {

        width:

            calc(100% - 8px) !important;

        margin:

            8px 4px

            22px !important;

        padding-left:

            22px !important;

    }

    html body #ja-container

    .item-page

    > ul li,

    html body #ja-container

    .item-page

    > ol li {

        font-size:

            15px !important;

    }

    /* slideshare */

    html body #ja-container

    #slidesharex {

        min-height:

            330px !important;

        margin-top:

            26px !important;

    }

    /* prev / next */

    html body #ja-container

    .pagenav {

        gap:

            10px !important;

        padding-top:

            18px !important;

        margin-top:

            28px !important;

    }

    html body #ja-container

    .pagenav a {

        min-height:

            42px !important;

        padding:

            0 14px !important;

        font-size:

            12px !important;

    }

    /* template detail buttons */

    html body #ja-container

    .sdivx {

        width:

            100% !important;

        flex-direction:

            column !important;

    }

    html body #ja-container

    .sdivx > a {

        width:

            100% !important;

        box-sizing:

            border-box !important;

    }

}

/* =========================================================

   MEDIA FIXES â€” IMAGES / VIDEOS / IFRAMES

========================================================= */

/* contenedor general del contenido */

html body #ja-container .item-page {

    overflow: hidden !important;

}

/* imÃ¡genes, iframes, videos */

html body #ja-container .item-page img,

html body #ja-container .item-page iframe,

html body #ja-container .item-page video,

html body #ja-container .item-page embed,

html body #ja-container .item-page object {

    display: block !important;

    margin: 22px auto !important;

    max-width: 100% !important;

    width: auto !important;

    height: auto !important;

    object-fit: contain !important;

    border-radius: 18px !important;

    box-sizing: border-box !important;

}

/* imÃ¡genes grandes tipo screenshot / preview */

html body #ja-container .item-page img {

    width: min(100%, 1000px) !important;

    height: auto !important;

}

/* iframes y videos embebidos */

html body #ja-container .item-page iframe,

html body #ja-container .item-page video {

    width: min(100%, 1000px) !important;

    max-width: 100% !important;

}

/* pÃ¡rrafos o divs que traen la imagen centrada pero con estilos viejos */

html body #ja-container .item-page p[style*="text-align: center"],

html body #ja-container .item-page div[style*="text-align: center"] {

    text-align: center !important;

    margin-left: auto !important;

    margin-right: auto !important;

}

/* si viene un div flotado raro arriba de la imagen */

html body #ja-container .item-page div[style*="float:left"],

html body #ja-container .item-page div[style*="float: left"] {

    float: none !important;

    margin-left: auto !important;

    margin-right: auto !important;

}

/* slideshare / preview / media blocks */

html body #ja-container .item-page .slideshare,

html body #ja-container .item-page .video,

html body #ja-container .item-page .media,

html body #ja-container .item-page .preview,

html body #ja-container .item-page .sdivx {

    width: 100% !important;

    max-width: 100% !important;

    margin: 22px auto !important;

    text-align: center !important;

}

/* mobile */

@media (max-width: 768px) {

    html body #ja-container .item-page img,

    html body #ja-container .item-page iframe,

    html body #ja-container .item-page video,

    html body #ja-container .item-page embed,

    html body #ja-container .item-page object {

        margin: 16px auto !important;

        border-radius: 14px !important;

    }

}

/* ==========================================

   OFFIDOCS â€” SubpÃ¡ginas: MORE y responsive

   ========================================== */

/* SecciÃ³n de enlaces relacionados */

#ja-container .items-more {

  width: 100%;

  max-width: 1100px;

  margin: 32px auto 48px;

  padding: 24px;

  border: 1px solid #e5ebf3;

  border-radius: 16px;

  background: #f8fafc;

  box-sizing: border-box;

}

#ja-container .items-more > h3 {

  margin: 0 0 20px;

  padding: 0 0 12px;

  font-size: 20px;

  font-weight: 700;

  color: #17345c;

  border-bottom: 1px solid #dce5f0;

}

#ja-container .items-more ol.jlinks,

#ja-container .items-more ul.jlinks {

  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 12px;

  list-style: none;

  margin: 0;

  padding: 0;

}

#ja-container .items-more .jlinks li {

  min-width: 0;

  margin: 0;

  padding: 0;

  list-style: none;

}

#ja-container .items-more .jlinks a {

  display: flex;

  align-items: center;

  height: 100%;

  min-height: 48px;

  padding: 12px 16px;

  background: #fff;

  border: 1px solid #e3eaf3;

  border-radius: 10px;

  color: #17345c;

  text-decoration: none;

  line-height: 1.5;

  overflow-wrap: anywhere;

  box-sizing: border-box;

  transition: background .2s, border-color .2s;

}

#ja-container .items-more .jlinks a:hover {

  background: #eef5ff;

  border-color: #a9c7ef;

}

/* Responsive */

@media (max-width: 767px) {

  #ja-container .items-more {

    margin: 24px auto 32px;

    padding: 18px 14px;

    border-radius: 12px;

  }

  #ja-container .items-more > h3 {

    font-size: 18px;

    margin-bottom: 16px;

  }

  #ja-container .items-more ol.jlinks,

  #ja-container .items-more ul.jlinks {

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

    gap: 10px;

  }

  /* Evitar desbordes de imÃ¡genes de contenido */

  #ja-container .item-page img {

    max-width: 100%;

    height: auto;

  }

}

@media (max-width: 767px) {

    body.offi-chromium-page #ja-container .items-row {

        display: flex !important;

        flex-wrap: wrap;

        justify-content: center !important;

        gap: 16px;

        width: 100%;

    }

    body.offi-chromium-page #ja-container .items-row > [class*="span"] {

        float: none !important;

        margin: 0 !important;

        width: 100% !important;

        max-width: 280px;

    }

    body.offi-chromium-page #ja-container .items-more {

        clear: both;

        margin-top: 40px !important;

        margin-bottom: 40px !important;

    }

}

/* CHROMIUM WEB STORE â€” SeparaciÃ³n de MORE en escritorio */

@media (min-width: 768px) {

  body.offi-chromium-page #ja-container .items-more {

    margin-top: 48px !important;

    margin-bottom: 48px !important;

    clear: both;

  }

}

/* ==========================================
   CHROMIUM WEB STORE — RESTAURAR ENLACES
   ========================================== */

/* Mostrar los títulos que el CSS general de Joomla oculta */
html body.offi-chromium-page #ja-container
.items-row .contentheading {
    display: block !important;
    position: relative;
    z-index: 3;
    width: 100%;
    margin: 0 0 16px !important;
    padding: 0 !important;
    text-align: center;
}

/* Recuperar los enlaces de las extensiones */

/* CHROMIUM — Títulos completos y legibles */

html body.offi-chromium-page #ja-container
.items-row h2.contentheading {
    display: block !important;
    order: 2;
    width: 100% !important;
    height: auto !important;
    min-height: 65px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
}

html body.offi-chromium-page #ja-container
.items-row h2.contentheading a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 4px 2px !important;

    color: #17345c !important;
    -webkit-text-fill-color: #17345c !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-decoration: none !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;

    cursor: pointer;
}

html body.offi-chromium-page #ja-container
.items-row h2.contentheading a:hover {
    color: #1769d2 !important;
    -webkit-text-fill-color: #1769d2 !important;
}



/* ==========================================
   CHROMIUM WEB STORE — MODERN CARDS
   Solo afecta esta sección de OffiDocs
   ========================================== */

/* Contenedor de cada tarjeta */
html body.offi-chromium-page #ja-container
.items-row .span3 .item {
  height: 100%;
  padding: 22px 18px;
  background: #ffffff;
  border: 1px solid #e0eaf5;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(20, 65, 110, .06);
  box-sizing: border-box;
  transition: transform .25s ease,
              box-shadow .25s ease,
              border-color .25s ease;
}

html body.offi-chromium-page #ja-container
.items-row .span3 .item:hover {
  transform: translateY(-4px);
  border-color: #b6d5f7;
  box-shadow: 0 14px 34px rgba(20, 65, 110, .12);
}

/* Contenido ordenado en columna */
html body.offi-chromium-page #ja-container
.items-row .contentpaneopen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Restaurar el título que estaba oculto */
html body.offi-chromium-page #ja-container
.items-row h2.contentheading {
  display: block !important;
  order: 2;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
}

/* Enlace principal */
html body.offi-chromium-page #ja-container
.items-row h2.contentheading a {
  display: block !important;
  width: 100%;
  padding: 6px 4px;
  box-sizing: border-box;
  color: #17345c !important;
  -webkit-text-fill-color: #17345c !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.45;
  text-align: center !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  cursor: pointer;
}

html body.offi-chromium-page #ja-container
.items-row h2.contentheading a:hover {
  color: #1769d2 !important;
  -webkit-text-fill-color: #1769d2 !important;
}

/* Imagen original de cada extensión */
html body.offi-chromium-page #ja-container
.items-row .contentpaneopen > div[style*="height: 120px"] {
  order: 1;
  width: 100%;
  height: 130px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f8fe;
}

html body.offi-chromium-page #ja-container
.items-row .contentpaneopen > div[style*="height: 120px"] img {
  display: block;
  width: 110px !important;
  height: 110px !important;
  max-width: 100%;
  object-fit: contain;
}

/* Ocultar saltos de línea sueltos entre elementos */
html body.offi-chromium-page #ja-container
.items-row .contentpaneopen > br {
  display: none;
}

/* Responsive */
@media (max-width: 767px) {
  html body.offi-chromium-page #ja-container
  .items-row .span3 {
    width: min(100%, 320px) !important;
    max-width: 320px;
    margin: 0 auto !important;
  }

  html body.offi-chromium-page #ja-container
  .items-row .span3 .item {
    padding: 20px 16px;
  }
}

/* ==========================================
   CHROMIUM WEB STORE — TARJETA CLICKEABLE
   ========================================== */

/* Contenedor de la tarjeta */
html body.offi-chromium-page #ja-container
.items-row .span3 .item {
    position: relative !important;
    cursor: pointer;
}

/* El título mantiene su posición visual */
html body.offi-chromium-page #ja-container
.items-row h2.contentheading {
    position: static !important;
}

/* El enlace conserva sus estilos actuales */
html body.offi-chromium-page #ja-container
.items-row h2.contentheading a {
    position: static !important;
}

/* Extender el enlace a toda la tarjeta */
html body.offi-chromium-page #ja-container
.items-row h2.contentheading a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: pointer;
}

/* ==========================================
   OFFIDOCS — CATÁLOGOS DE APLICACIONES
   Diseño B · Modern cards
   ========================================== */

#ja-container .blog-featured .items-row
.item:has(h2.contentheading a[href]) {
  position: relative !important;
  min-height: 290px;
  height: 100%;
  padding: 22px 18px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e1ebf6;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(20,65,110,.06);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

#ja-container .blog-featured .items-row
.item:has(h2.contentheading a[href]):hover {
  transform: translateY(-4px);
  border-color: #a9cafa;
  box-shadow: 0 14px 32px rgba(20,65,110,.12);
}

/* Estructura interna */
#ja-container .blog-featured .items-row
.item:has(h2.contentheading a[href]) .contentpaneopen {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Imagen arriba */
#ja-container .blog-featured .items-row
.contentpaneopen > p:has(img),
#ja-container .blog-featured .items-row
.contentpaneopen > div:has(img) {
  order: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 145px;
  margin: 0 !important;
  padding: 12px;
  box-sizing: border-box;
  background: #f2f7ff;
  border-radius: 14px;
}

#ja-container .blog-featured .items-row
.contentpaneopen img {
  width: auto !important;
  height: auto !important;
  max-width: 110px !important;
  max-height: 110px !important;
  object-fit: contain;
}

/* Título debajo de la imagen */
#ja-container .blog-featured .items-row
h2.contentheading:has(a[href]) {
  display: block !important;
  position: static !important;
  order: 2;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  text-align: center !important;
}

#ja-container .blog-featured .items-row
h2.contentheading a[href] {
  display: block !important;
  padding: 0 4px !important;
  color: #17345c !important;
  -webkit-text-fill-color: #17345c !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-decoration: none !important;
  text-align: center !important;
}

/* CTA visual */
#ja-container .blog-featured .items-row
h2.contentheading::after {
  content: "Explore app ↗";
  display: block;
  margin-top: 12px;
  color: #1769d2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}

/* Toda la tarjeta clickeable */
#ja-container .blog-featured .items-row
h2.contentheading a[href]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}

/* Responsive: conservar columnas de Joomla en desktop */
@media (max-width: 767px) {
  #ja-container .blog-featured .items-row {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 18px;
  }

  #ja-container .blog-featured .items-row > [class*="column-"],
  #ja-container .blog-featured .items-row > [class*="span"] {
    float: none !important;
    width: min(100%, 320px) !important;
    max-width: 320px;
    margin: 0 !important;
  }

  #ja-container .blog-featured .items-row
  .item:has(h2.contentheading a[href]) {
    min-height: 270px;
  }
}

/* ==========================================
   OFFIDOCS — FOTOS DEL CARRUSEL
   Corregir imágenes demasiado grandes
========================================== */

/* ==========================================
   OFFIDOCS — FOTOS DEL CARRUSEL
   Tamaño optimizado para escritorio y móvil
========================================== */

html body #ja-container .item-page #carousel {
    width: 100% !important;
    max-width: 580px !important;
    height: auto !important;
    margin: 24px auto !important;
    text-align: center !important;
    overflow: hidden !important;
}

html body #ja-container .item-page #carousel .slide {
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

html body #ja-container .item-page #carousel .slide img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 500px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    border-radius: 12px !important;
}

/* MOBILE */
@media (max-width: 600px) {
    html body #ja-container .item-page #carousel {
        max-width: 100% !important;
    }

    html body #ja-container .item-page #carousel .slide img {
        max-width: 100% !important;
        max-height: 380px !important;
    }
}
