#apMobileServices > :is(.ap-ex13,.ap-ex13-footer) { display: none; }

@media (max-width: 767.98px) {
    #apMobileServices > .ap-m-service-wrap.ap-ex13-folded { display: none !important; }
    #apMobileServices > :is(.ap-ex13,.ap-ex13-footer):not([hidden]) {
        display: grid;
        grid-column: 1 / -1;
        min-width: 0;
        gap: 8px;
    }
    #apMobileServices .ap-ex13 [hidden] { display: none !important; }

    #apMobileServices .ap-ex13-launch {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 84px;
        padding: 12px 11px;
        border: 1px solid #3d7779;
        border-radius: 18px;
        background: radial-gradient(ellipse at 100% 0%, #186e68, transparent 78%), #0c3544;
        color: #f7fffc;
        box-shadow: 0 8px 18px #0e415022;
        text-align: left;
        font: inherit;
    }
    #apMobileServices .ap-ex13-launch::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: -33px;
        right: -33px;
        width: 190px;
        height: 107px;
        border-radius: 50%;
        background: repeating-radial-gradient(ellipse, transparent 0 7px, #c0f1d638 8px 9px, transparent 10px 15px);
        transform: rotate(-27deg);
        pointer-events: none;
    }
    #apMobileServices .ap-ex13-title { flex: 1; min-width: 0; }
    #apMobileServices .ap-ex13-title strong {
        display: block;
        font-size: 1.08em;
        line-height: 1.12;
        letter-spacing: -.023em;
    }
    #apMobileServices .ap-ex13-title small { display: block; color: #d4eeeb; margin-top: 4px; font-size: .72em; }
    #apMobileServices :is(.ap-ex13-compass,.ap-ex13-chevron) {
        display: grid;
        place-items: center;
        flex: none;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: #19505a;
        color: #d7fbec;
        border: 1px solid #6b9f9d;
    }
    #apMobileServices .ap-ex13-compass { background: #c7eee3; border-color: #c7eee3; color: #154c4e; }
    #apMobileServices .ap-ex13-launch[aria-expanded="true"] .ap-ex13-chevron i { transform: rotate(180deg); }

    #apMobileServices .ap-ex13-options {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 2px;
        padding: 3px;
        border: 1px solid var(--am-border, #d1e5e2);
        border-radius: 13px;
        background: var(--am-card, #f3f8f7);
    }
    #apMobileServices .ap-ex13-options button {
        flex: 1 0 auto;
        min-height: 44px;
        padding: 3px 6px;
        border: 0;
        border-radius: 9px;
        background: transparent;
        color: var(--am-text, #234950);
        font: inherit;
        font-size: .68em;
        font-weight: 730;
    }
    #apMobileServices .ap-ex13-options button[aria-pressed="true"] {
        background: #d9f1ea;
        color: #0d524e;
        box-shadow: inset 0 0 0 1px #a6cfc4;
    }

    #apMobileServices > .ap-m-service-wrap.ap-ex13-expanded { grid-column: 1 / -1; --ap-ex13-end: 25px; }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-expanded .ap-m-service {
        display: grid;
        grid-template-columns: 41px minmax(0, 1fr);
        align-content: center;
        align-items: center;
        justify-content: stretch;
        row-gap: 2px;
        column-gap: 10px;
        min-height: 62px;
        padding: 8px calc(46px + var(--ap-ex13-end)) 8px 9px;
        border: 1px solid var(--am-border, #d5e6e6);
        border-radius: 13px;
        background: var(--am-card, #fff);
        box-shadow: 0 3px 9px #10334409;
    }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-expanded .ap-m-service-icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 40px;
        height: 40px;
        margin: 0;
        border-radius: 11px;
        font-size: 1.27em;
    }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-expanded .ap-m-service-icon img { max-width: 27px; max-height: 27px; }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-expanded .ap-m-service :is(strong,.ap-m-external) {
        grid-column: 2;
        margin: 0;
        padding: 0;
        overflow-wrap: anywhere;
    }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-expanded .ap-m-service strong { font-size: .91em; line-height: 1.2; }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-expanded .ap-m-service strong:last-child { grid-row: 1 / span 2; }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-expanded .ap-m-service::after { display: none; }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-expanded .ap-m-favorite-toggle {
        top: 50%;
        right: var(--ap-ex13-end);
        transform: translateY(-50%);
    }

    #apMobileServices .ap-ex13-footer { justify-items: end; border-top: 1px solid var(--am-border, #d6e7e6); }
    #apMobileServices .ap-ex13-switch {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 44px;
        padding: 0 6px;
        border: 0;
        border-radius: 5px;
        background: transparent;
        color: var(--am-text, #284c52);
        font: inherit;
        font-size: .75em;
        font-weight: 670;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    #apMobileServices :is(.ap-ex13,.ap-ex13-footer) button:focus-visible { outline: 2px solid #329084; outline-offset: 2px; }
    #apMobileHome[data-contrast="true"] #apMobileServices .ap-ex13-options button { outline: 1px solid currentColor; outline-offset: -1px; }
    #apMobileHome[data-contrast="true"] #apMobileServices > .ap-m-service-wrap.ap-ex13-expanded .ap-m-service {
        border: 2px solid var(--am-border, #284c52);
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    #apMobileHome:not([data-motion="reduced"]) #apMobileServices .ap-ex13-chevron i { transition: transform .22s ease; }
}

@media (max-width: 767.98px) {
    #apMobileServices[data-ap-ex13-tone="movilidad"] {
        --ex13-light: #dbf2f1; --ex13-ink: #125460; --ex13-line: #a6cacc; --ex13-hero: #1c6874;
    }
    #apMobileServices[data-ap-ex13-tone="panoramas"] {
        --ex13-light: #fff1d6; --ex13-ink: #794a16; --ex13-line: #ddbb79; --ex13-hero: #986526;
    }
    #apMobileServices[data-ap-ex13-tone="comunidad"] {
        --ex13-light: #f4e9f4; --ex13-ink: #633c67; --ex13-line: #ccb2ce; --ex13-hero: #6f4b73;
    }
    #apMobileServices[data-ap-ex13-tone="bienestar"] {
        --ex13-light: #e6f2dd; --ex13-ink: #365c32; --ex13-line: #aac39e; --ex13-hero: #4c7051;
    }
    #apMobileServices[data-ap-ex13-tone="actualidad"] {
        --ex13-light: #e5edff; --ex13-ink: #334d85; --ex13-line: #adbfeb; --ex13-hero: #466297;
    }
    #apMobileServices .ap-ex13-launch {
        background: radial-gradient(ellipse at 100% 0%, var(--ex13-hero,#186e68), transparent 78%), #0c3544;
    }
    #apMobileServices .ap-ex13-compass {
        background: var(--ex13-light,#c7eee3);
        border-color: var(--ex13-light,#c7eee3);
        color: var(--ex13-ink,#154c4e);
    }
    #apMobileServices .ap-ex13-options { position: relative; isolation: isolate; }
    #apMobileServices .ap-ex13-options button { position: relative; z-index: 1; }
    #apMobileServices .ap-ex13-options button[aria-pressed="true"] {
        background: var(--ex13-light,#d9f1ea);
        color: var(--ex13-ink,#0d524e);
        box-shadow: inset 0 0 0 1px var(--ex13-line,#a6cfc4);
    }
    #apMobileServices .ap-ex13-options.ap-ex13-has-indicator button[aria-pressed="true"] {
        background: transparent;
        box-shadow: none;
    }
    #apMobileServices .ap-ex13-indicator {
        position: absolute;
        inset: 0 auto auto 0;
        pointer-events: none;
        border-radius: 9px;
        background: var(--ex13-light,#d9f1ea);
        box-shadow: inset 0 0 0 1px var(--ex13-line,#a6cfc4);
        z-index: 0;
    }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-expanded .ap-m-service-icon {
        background: var(--ex13-light,var(--tile,#d9f1ea));
        color: var(--ex13-ink,var(--tile-accent,#145655));
        border-color: var(--ex13-line,var(--tile-edge,#c2dfd7));
    }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-featured[data-service-theme="costa"] {
        --ex13-photo: url("../img/explorar-movil-costa-v3.webp");
        --ex13-photo-position: center 54%;
    }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-featured[data-service-theme="noticias"] {
        --ex13-photo: url("../img/explorar-movil-noticias-v3.webp");
        --ex13-photo-position: center 43%;
    }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-featured .ap-m-service {
        overflow: hidden;
        padding-top: 0;
    }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-featured .ap-m-service::before {
        content: "";
        grid-column: 1 / -1;
        grid-row: 1;
        align-self: start;
        margin: 0 calc(-1 * (46px + var(--ap-ex13-end))) 7px -9px;
        height: clamp(79px, 23vw, 110px);
        background: linear-gradient(0deg,#142d3a2b,transparent 53%), var(--ex13-photo),#466b72;
        background-size: cover;
        background-position: var(--ex13-photo-position,center);
        pointer-events: none;
    }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-featured .ap-m-service-icon,
    #apMobileServices > .ap-m-service-wrap.ap-ex13-featured .ap-m-service strong:last-child { grid-row: 2 / span 2; }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-featured .ap-m-service .ap-m-external { grid-row: 3; }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-featured .ap-m-service strong:not(:last-child) { grid-row: 2; }
    #apMobileServices > .ap-m-service-wrap.ap-ex13-featured .ap-m-favorite-toggle { top: auto; bottom: 7px; transform: none; }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
    #apMobileHome:not([data-motion="reduced"]) #apMobileServices .ap-ex13-indicator {
        transition: transform 220ms cubic-bezier(.2,.75,.22,1), width 220ms ease,
            height 220ms ease, background-color 200ms ease;
    }
}
