.maggi-project,
.maggi-project * {
    box-sizing: border-box;
}

.maggi-project {
    width: 100%;
    margin: 0 auto 72px;
    background: #fff;
}

.maggi-project__header {
    display: grid;
    grid-template-columns: minmax(220px, 32%) 1fr;
    gap: clamp(24px, 5vw, 64px);
    padding: clamp(32px, 5vw, 56px) 0;
}

.maggi-project__title {
    margin: 0 0 18px !important;
    color: #000 !important;
    font-family: "Grandis Extended", "Montserrat", Arial, sans-serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
}

.maggi-project__subtitle {
    max-width: 360px;
    margin: 0 !important;
    color: #000 !important;
    font-family: Manrope, Arial, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.35;
}

.maggi-project__text {
    color: #000;
    font-family: Manrope, Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.55;
}


.maggi-project__technical,
.maggi-project__content,
.maggi-project__technical p,
.maggi-project__content p {
    color: #000;
    font-family: Manrope, Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.55;
}

.maggi-project__technical p,
.maggi-project__content p {
    margin-top: 0;
}

/* Galería masonry/editorial
   v1.1.1: alturas más controladas para evitar que las imágenes se agranden de más y pierdan calidad. */
.maggi-project__gallery {
    --maggi-gallery-gap: 0px;
    --maggi-gallery-small-height: clamp(220px, 24vw, 340px);
    --maggi-gallery-large-height: clamp(260px, 32vw, 430px);
    --maggi-gallery-hero-height: clamp(300px, 36vw, 480px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--maggi-gallery-gap);
    width: 100%;
}

.maggi-project__gallery--compact {
    --maggi-gallery-small-height: clamp(200px, 20vw, 300px);
    --maggi-gallery-large-height: clamp(230px, 26vw, 360px);
    --maggi-gallery-hero-height: clamp(250px, 30vw, 400px);
}

.maggi-project__gallery-item {
    display: block;
    overflow: hidden;
    background: #eef0f2;
    min-width: 0;
}

.maggi-project__gallery-item img {
    display: block;
    width: 100%;
    height: var(--maggi-gallery-small-height);
    min-height: 0;
    object-fit: cover;
    transition: transform .45s ease;
}

.maggi-project__gallery-item:hover img {
    transform: scale(1.035);
}

.maggi-project__gallery--count-1 {
    grid-template-columns: 1fr;
}

.maggi-project__gallery--count-1 .maggi-project__gallery-item img {
    height: var(--maggi-gallery-hero-height);
}

.maggi-project__gallery--count-2 .maggi-project__gallery-item img {
    height: var(--maggi-gallery-large-height);
}

.maggi-project__gallery--count-3 .maggi-project__gallery-item:first-child,
.maggi-project__gallery--count-4 .maggi-project__gallery-item:first-child,
.maggi-project__gallery--count-5 .maggi-project__gallery-item:first-child,
.maggi-project__gallery--count-6 .maggi-project__gallery-item:first-child,
.maggi-project__gallery--count-7 .maggi-project__gallery-item:first-child,
.maggi-project__gallery--count-8 .maggi-project__gallery-item:first-child,
.maggi-project__gallery--count-9 .maggi-project__gallery-item:first-child,
.maggi-project__gallery--count-10 .maggi-project__gallery-item:first-child {
    grid-column: span 2;
}

.maggi-project__gallery--count-3 .maggi-project__gallery-item:first-child img,
.maggi-project__gallery--count-4 .maggi-project__gallery-item:first-child img,
.maggi-project__gallery--count-5 .maggi-project__gallery-item:first-child img,
.maggi-project__gallery--count-6 .maggi-project__gallery-item:first-child img,
.maggi-project__gallery--count-7 .maggi-project__gallery-item:first-child img,
.maggi-project__gallery--count-8 .maggi-project__gallery-item:first-child img,
.maggi-project__gallery--count-9 .maggi-project__gallery-item:first-child img,
.maggi-project__gallery--count-10 .maggi-project__gallery-item:first-child img {
    height: var(--maggi-gallery-hero-height);
}

.maggi-project__gallery .maggi-project__gallery-item:nth-child(4n) {
    grid-column: span 2;
}

.maggi-project__gallery .maggi-project__gallery-item:nth-child(4n) img {
    height: var(--maggi-gallery-large-height);
}

/* Carrusel de imágenes del proyecto */
.maggi-project-gallery-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 0 8px;
}

.maggi-project-gallery-carousel__item {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #eef0f2;
}

.maggi-project-gallery-carousel__item img {
    display: block;
    width: 100%;
    height: clamp(320px, 44vw, 560px);
    object-fit: cover;
    transition: transform .45s ease;
}

.maggi-project-gallery-carousel__item:hover img {
    transform: scale(1.045);
}

/* Carrusel otros proyectos */
.maggi-projects-carousel-wrap,
.maggi-projects-carousel-wrap * {
    box-sizing: border-box;
}

.maggi-projects-carousel-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 0 0 26px;
}

.maggi-projects-carousel-title {
    margin: 0 0 24px !important;
    color: #002DA9 !important;
    text-align: center;
    font-family: "Grandis Extended", "Montserrat", Arial, sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .05em;
}

.maggi-projects-carousel {
    position: relative;
    overflow: visible;
    width: 100%;
    padding: 0 48px;
}

.maggi-projects-carousel .swiper-wrapper {
    align-items: stretch;
}

.maggi-projects-carousel__slide {
    height: auto;
}

.maggi-projects-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 360px;
    height: 100%;
    border-radius: 8px;
    background: #dce2ee;
    text-decoration: none !important;
    isolation: isolate;
}

.maggi-projects-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    z-index: 0;
}

.maggi-projects-card:hover img {
    transform: scale(1.055);
}

.maggi-projects-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,.30) 0%, rgba(0,0,0,.18) 38%, rgba(0,0,0,.12) 100%);
}

.maggi-projects-card__content {
    position: relative;
    z-index: 2;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 54px 18px 24px;
    text-align: center;
}

.maggi-projects-card__title {
    display: block;
    margin: 0 0 14px;
    color: #fff;
    font-family: "Grandis Extended", "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.maggi-projects-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    transition: transform .25s ease, background .25s ease;
}

.maggi-projects-card:hover .maggi-projects-card__icon {
    transform: rotate(90deg);
    background: rgba(255,255,255,.12);
}

.maggi-projects-carousel__nav.swiper-button-prev,
.maggi-projects-carousel__nav.swiper-button-next {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #111;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
    transition: transform .2s ease, opacity .2s ease;
}

.maggi-projects-carousel__nav.swiper-button-prev::after,
.maggi-projects-carousel__nav.swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
}

.maggi-projects-carousel__nav.swiper-button-prev {
    left: 4px;
}

.maggi-projects-carousel__nav.swiper-button-next {
    right: 4px;
}

.maggi-projects-carousel__nav.swiper-button-prev:hover,
.maggi-projects-carousel__nav.swiper-button-next:hover {
    transform: scale(1.05);
}

.maggi-projects-carousel__nav.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .maggi-projects-card,
    .maggi-projects-card__content {
        min-height: 330px;
    }
}

@media (max-width: 767px) {
    .maggi-project {
        margin-bottom: 48px;
    }

    .maggi-project__header {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 0;
    }

    .maggi-project__title {
        font-family: "Grandis Extended", "Montserrat", Arial, sans-serif;
        font-size: 28px;
        line-height: 1.08;
    }

    .maggi-project__text,
    .maggi-project__technical,
    .maggi-project__content,
    .maggi-project__technical p,
    .maggi-project__content p {
        font-family: Manrope, Arial, sans-serif;
        font-size: 14px;
        line-height: 1.55;
    }

    .maggi-project__subtitle {
        max-width: 100%;
    }

    .maggi-project__gallery {
        grid-template-columns: 1fr;
    }

    .maggi-project__gallery .maggi-project__gallery-item,
    .maggi-project__gallery--count-3 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-4 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-5 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-6 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-7 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-8 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-9 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-10 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery .maggi-project__gallery-item:nth-child(4n) {
        grid-column: auto;
    }

    .maggi-project__gallery {
        --maggi-gallery-small-height: clamp(220px, 72vw, 320px);
        --maggi-gallery-large-height: clamp(230px, 76vw, 340px);
        --maggi-gallery-hero-height: clamp(240px, 82vw, 360px);
    }

    .maggi-project__gallery-item img,
    .maggi-project__gallery--count-1 .maggi-project__gallery-item img,
    .maggi-project__gallery--count-2 .maggi-project__gallery-item img,
    .maggi-project__gallery--count-3 .maggi-project__gallery-item:first-child img,
    .maggi-project__gallery .maggi-project__gallery-item:nth-child(4n) img {
        height: var(--maggi-gallery-small-height);
        min-height: 0;
    }

    .maggi-project-gallery-carousel {
        overflow: visible;
    }

    .maggi-project-gallery-carousel__item img {
        height: 300px;
    }

    .maggi-projects-carousel {
        padding: 0 20px;
    }

    .maggi-projects-card,
    .maggi-projects-card__content {
        min-height: 320px;
    }

    .maggi-projects-carousel__nav.swiper-button-prev,
    .maggi-projects-carousel__nav.swiper-button-next {
        display: none;
    }
}

/* Tabs filtrables de proyectos */
.maggi-projects-tabs-wrap,
.maggi-projects-tabs-wrap * {
    box-sizing: border-box;
}

.maggi-projects-tabs-wrap {
    width: 100%;
    background: #cfd9ff;
    padding: 28px 0 0;
    overflow: hidden;
}

.maggi-projects-tabs-title {
    margin: 0 0 22px !important;
    color: #002DA9 !important;
    text-align: center;
    font-family: "Grandis Extended", "Montserrat", Arial, sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.1;
}

.maggi-projects-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: min(100%, 1080px);
    margin: 0 auto 28px;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.maggi-projects-tabs::-webkit-scrollbar {
    display: none;
}

.maggi-projects-tab {
    appearance: none;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    background: rgba(255,255,255,.52);
    color: #111;
    min-width: 140px;
    padding: 11px 22px;
    font-family: "Grandis Extended", "Montserrat", Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
    white-space: nowrap;
}

.maggi-projects-tab:hover,
.maggi-projects-tab.is-active {
    background: #fff;
    border-color: #fff;
}

.maggi-projects-tab:hover {
    transform: translateY(-1px);
}

.maggi-projects-tabs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    width: 100%;
}

.maggi-projects-tabs-card {
    min-height: 330px;
    margin: 0;
    transition: opacity .22s ease, transform .22s ease;
}

.maggi-projects-tabs-card.is-hidden {
    display: none;
}

.maggi-projects-tabs-card:nth-child(4n + 1),
.maggi-projects-tabs-card:nth-child(4n) {
    grid-column: span 2;
    min-height: 430px;
}

.maggi-projects-tabs-card__link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    overflow: hidden;
    color: #fff !important;
    text-decoration: none !important;
    background: #1d2530;
    isolation: isolate;
}

.maggi-projects-tabs-card__link img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
    z-index: 0;
}

.maggi-projects-tabs-card__link:hover img {
    transform: scale(1.045);
}

.maggi-projects-tabs-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.52) 100%);
}

.maggi-projects-tabs-card__top {
    position: absolute;
    top: 34px;
    left: clamp(22px, 5vw, 64px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.maggi-projects-tabs-card__title {
    display: block;
    color: #fff;
    font-family: "Grandis Extended", "Montserrat", Arial, sans-serif;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.15;
}

.maggi-projects-tabs-card__cat {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.9);
    font-family: Manrope, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.2;
}

.maggi-projects-tabs-card__plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: 14px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
    transition: transform .25s ease, background .25s ease;
}

.maggi-projects-tabs-card__link:hover .maggi-projects-tabs-card__plus {
    transform: rotate(90deg);
    background: rgba(255,255,255,.13);
}

.maggi-projects-tabs-card__button {
    position: absolute;
    right: clamp(18px, 3vw, 32px);
    bottom: 26px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 34px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 999px;
    color: #fff;
    font-family: Manrope, Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    transition: background .2s ease, color .2s ease;
}

.maggi-projects-tabs-card__link:hover .maggi-projects-tabs-card__button {
    background: #fff;
    color: #111;
}

@media (max-width: 767px) {
    .maggi-projects-tabs-wrap {
        padding-top: 22px;
    }

    .maggi-projects-tabs {
        justify-content: flex-start;
        margin-bottom: 20px;
        padding: 0 16px;
    }

    .maggi-projects-tab {
        min-width: auto;
        padding: 10px 18px;
        font-size: 12px;
    }

    .maggi-projects-tabs-grid {
        grid-template-columns: 1fr;
    }

    .maggi-projects-tabs-card,
    .maggi-projects-tabs-card:nth-child(4n + 1),
    .maggi-projects-tabs-card:nth-child(4n) {
        grid-column: auto;
        min-height: 310px;
    }

    .maggi-projects-tabs-card__top {
        top: 28px;
        left: 24px;
    }
}


/* v1.2.1 - Ajustes mobile pedidos para galería y carrusel */
@media (max-width: 767px) {
    .maggi-project__gallery {
        display: flex;
        height: 338px;
        padding: 40px clamp(20px, 12vw, 96px);
        align-items: flex-start;
        gap: 10px;
        align-self: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .maggi-project__gallery::-webkit-scrollbar {
        display: none;
    }

    .maggi-project__gallery .maggi-project__gallery-item,
    .maggi-project__gallery--count-3 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-4 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-5 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-6 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-7 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-8 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-9 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-10 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery .maggi-project__gallery-item:nth-child(4n) {
        flex: 0 0 min(267px, 78vw);
        width: min(267px, 78vw);
        height: 258px;
        grid-column: auto;
        scroll-snap-align: start;
    }

    .maggi-project__gallery-item img,
    .maggi-project__gallery--count-1 .maggi-project__gallery-item img,
    .maggi-project__gallery--count-2 .maggi-project__gallery-item img,
    .maggi-project__gallery--count-3 .maggi-project__gallery-item:first-child img,
    .maggi-project__gallery .maggi-project__gallery-item:nth-child(4n) img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
    }

    .maggi-projects-carousel {
        padding: 0 24px;
    }

    .maggi-projects-card {
        width: min(267px, 78vw);
        height: 451px;
        min-height: 451px;
        margin: 0 auto;
    }

    .maggi-projects-card__content {
        display: flex;
        width: 100%;
        height: 451px;
        min-height: 451px;
        padding: 56px 49px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}


/* v1.2.2 - Estilos tipográficos base */
.maggi-project__title {
    color: #000 !important;
    font-family: "Grandis Extended", "Montserrat", Arial, sans-serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
}

.maggi-project__subtitle {
    color: #000 !important;
    font-family: Manrope, Arial, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
}

.maggi-project__text,
.maggi-project__technical,
.maggi-project__content,
.maggi-project__technical p,
.maggi-project__content p {
    color: #000;
    font-family: Manrope, Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}


/* v1.2.3 - Normalización temporal y ajustes de cards */
.maggi-project,
.maggi-project *,
.maggi-projects-carousel-wrap,
.maggi-projects-carousel-wrap *,
.maggi-project-gallery-carousel-wrap,
.maggi-project-gallery-carousel-wrap *,
.maggi-projects-tabs-wrap,
.maggi-projects-tabs-wrap * {
    letter-spacing: normal;
}

/* El shortcode [maggi_proyecto_categoria] queda sin estilos propios
   para heredar tipografía/color/espaciado del widget o contenedor donde se pegue. */

.maggi-projects-carousel .maggi-projects-card {
    width: 100%;
    max-width: 267px;
    height: 451px;
    min-height: 451px;
    margin-left: auto;
    margin-right: auto;
}

.maggi-projects-carousel .maggi-projects-card__content {
    height: 451px;
    min-height: 451px;
}

@media (max-width: 767px) {
    .maggi-projects-carousel .maggi-projects-card {
        width: min(267px, 78vw);
        max-width: min(267px, 78vw);
        height: 451px;
        min-height: 451px;
    }
}

/* v1.2.4 - Placeholder / demo content */
.maggi-project-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(0,45,169,.12), rgba(0,45,169,.03)),
        repeating-linear-gradient(45deg, rgba(0,0,0,.035) 0 12px, rgba(255,255,255,.18) 12px 24px),
        #dce2ee;
    color: rgba(0,45,169,.55);
    font-family: Manrope, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: normal;
}

.maggi-project-placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px dashed rgba(0,45,169,.35);
    border-radius: 999px;
    background: rgba(255,255,255,.45);
}

.maggi-project__gallery--demo .maggi-project__gallery-item {
    position: relative;
    display: block;
    min-height: var(--maggi-gallery-small-height);
    background: #dce2ee;
}

.maggi-project__gallery--demo.maggi-project__gallery--count-1 .maggi-project__gallery-item,
.maggi-project__gallery--demo.maggi-project__gallery--count-3 .maggi-project__gallery-item:first-child,
.maggi-project__gallery--demo.maggi-project__gallery--count-4 .maggi-project__gallery-item:first-child,
.maggi-project__gallery--demo.maggi-project__gallery--count-5 .maggi-project__gallery-item:first-child,
.maggi-project__gallery--demo.maggi-project__gallery--count-6 .maggi-project__gallery-item:first-child,
.maggi-project__gallery--demo .maggi-project__gallery-item:nth-child(4n) {
    min-height: var(--maggi-gallery-large-height);
}

.maggi-project-gallery-carousel__item--placeholder {
    position: relative;
    height: clamp(320px, 44vw, 560px);
}

.maggi-projects-card .maggi-project-placeholder,
.maggi-projects-tabs-card .maggi-project-placeholder {
    position: absolute;
    inset: 0;
}

.maggi-projects-card:hover .maggi-project-placeholder,
.maggi-projects-tabs-card:hover .maggi-project-placeholder {
    transform: scale(1.025);
    transition: transform .5s ease;
}

@media (max-width: 767px) {
    .maggi-project__gallery--demo .maggi-project__gallery-item,
    .maggi-project__gallery--demo.maggi-project__gallery--count-1 .maggi-project__gallery-item,
    .maggi-project__gallery--demo.maggi-project__gallery--count-3 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--demo .maggi-project__gallery-item:nth-child(4n) {
        min-height: var(--maggi-gallery-small-height);
    }

    .maggi-project-gallery-carousel__item--placeholder {
        height: 300px;
    }
}

/* v1.2.5 - Tabs por categoría con mostrar más/menos */
.maggi-projects-tabs-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 28px auto 0;
    padding: 12px 24px;
    border: 1px solid rgba(0,45,169,.25);
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-family: Manrope, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.maggi-projects-tabs-toggle:not([hidden]) {
    display: flex;
}

.maggi-projects-tabs-toggle:hover {
    transform: translateY(-1px);
    background: #CBD6FF;
    border-color: #fff;
}

.maggi-projects-tabs-toggle[hidden] {
    display: none !important;
}

/* v1.2.8 - Revisión mobile, dropdown de categorías y lightbox */
/* Dropdown de categorías: personalizado para que el estado seleccionado conserve el estilo en mobile. */
.maggi-projects-tabs-mobile-dropdown {
    display: none;
}

.maggi-projects-tabs-mobile-dropdown__trigger,
.maggi-projects-tabs-mobile-dropdown__option {
    font-family: "Grandis Extended", "Montserrat", Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.maggi-projects-tabs-mobile-dropdown__trigger {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 20px;
    border: 0;
    border-radius: 20px;
    background: #fff;
    color: #000;
    text-align: left;
    cursor: pointer;
}

.maggi-projects-tabs-mobile-dropdown__value {
    min-width: 0;
}

.maggi-projects-tabs-mobile-dropdown__arrow {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s ease;
}

.maggi-projects-tabs-mobile-dropdown.is-open .maggi-projects-tabs-mobile-dropdown__arrow {
    transform: rotate(225deg) translate(-1px, -1px);
}

.maggi-projects-tabs-mobile-dropdown__menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    padding: 7px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.maggi-projects-tabs-mobile-dropdown__option {
    width: 100%;
    display: block;
    padding: 12px 13px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #000;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease;
}

.maggi-projects-tabs-mobile-dropdown__option:hover,
.maggi-projects-tabs-mobile-dropdown__option:focus-visible,
.maggi-projects-tabs-mobile-dropdown__option[aria-selected="true"] {
    background: #E9EEFF;
}

.maggi-projects-tabs-mobile-dropdown__trigger:focus-visible,
.maggi-projects-tabs-mobile-dropdown__option:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.maggi-projects-tabs-select {
    display: none;
}

.maggi-projects-tabs-toggle {
    background-color: var(--e-global-color-74509df, #fff);
    font-family: "Grandis Extended", "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--e-global-color-text, #111);
    border: 1px solid var(--e-global-color-74509df, #fff);
    border-radius: 80px;
    padding: 15px 30px;
}

.maggi-lightbox-open,
.maggi-lightbox-open body {
    overflow: hidden;
}

.maggi-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0,0,0,.84);
}

.maggi-lightbox.is-open {
    display: flex;
}

.maggi-lightbox__figure {
    width: min(100%, 1180px);
    height: min(82vh, 760px);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maggi-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 80px rgba(0,0,0,.35);
}

.maggi-lightbox__close,
.maggi-lightbox__nav {
    appearance: none;
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.maggi-lightbox__close:hover,
.maggi-lightbox__nav:hover {
    background: rgba(255,255,255,.18);
}

.maggi-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.maggi-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 36px;
    line-height: 1;
}

.maggi-lightbox__nav--prev {
    left: 18px;
}

.maggi-lightbox__nav--next {
    right: 18px;
}

@media (max-width: 767px) {
    /* Tabs del home: select en mobile, botones normales en desktop */
    .maggi-projects-tabs-wrap {
        padding-top: 22px;
    }

    .maggi-projects-tabs {
        display: none;
    }

    .maggi-projects-tabs-mobile-dropdown {
        display: block;
        position: relative;
        width: calc(100% - 32px);
        margin: 0 auto 22px;
    }

    .maggi-projects-tabs-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1px;
        width: 100%;
    }

    .maggi-projects-tabs-card,
    .maggi-projects-tabs-card:nth-child(4n + 1),
    .maggi-projects-tabs-card:nth-child(4n) {
        grid-column: span 1;
        min-height: 338px;
        height: 338px;
    }

    .maggi-projects-tabs-card.is-mobile-full {
        grid-column: 1 / -1;
    }

    .maggi-projects-tabs-card.is-mobile-half {
        grid-column: span 1;
    }

    .maggi-projects-tabs-card__top {
        top: 24px;
        left: 20px;
        right: 16px;
    }

    .maggi-projects-tabs-card__title {
        font-size: 14px;
        line-height: 1.12;
    }

    .maggi-projects-tabs-card__button {
        display: none;
    }

    .maggi-projects-tabs-card__plus {
        width: 24px;
        height: 24px;
        margin-top: 10px;
        font-size: 18px;
    }

    /* Galería del single: mismo patrón visual que tabs */
    .maggi-project__gallery,
    .maggi-project__gallery--count-1,
    .maggi-project__gallery--count-2,
    .maggi-project__gallery--count-3,
    .maggi-project__gallery--count-4,
    .maggi-project__gallery--count-5,
    .maggi-project__gallery--count-6,
    .maggi-project__gallery--count-7,
    .maggi-project__gallery--count-8,
    .maggi-project__gallery--count-9,
    .maggi-project__gallery--count-10 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
        padding: 0;
        gap: var(--maggi-gallery-gap, 1px);
        overflow: visible;
        scroll-snap-type: none;
    }

    .maggi-project__gallery .maggi-project__gallery-item,
    .maggi-project__gallery--count-1 .maggi-project__gallery-item,
    .maggi-project__gallery--count-2 .maggi-project__gallery-item,
    .maggi-project__gallery--count-3 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-4 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-5 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-6 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-7 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-8 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-9 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--count-10 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery .maggi-project__gallery-item:nth-child(4n) {
        width: auto;
        flex: initial;
        grid-column: span 1;
        height: 338px;
        min-height: 338px;
        scroll-snap-align: none;
    }

    .maggi-project__gallery .maggi-project__gallery-item:nth-child(3n + 1),
    .maggi-project__gallery--count-1 .maggi-project__gallery-item:first-child {
        grid-column: 1 / -1;
    }

    .maggi-project__gallery-item img,
    .maggi-project__gallery--count-1 .maggi-project__gallery-item img,
    .maggi-project__gallery--count-2 .maggi-project__gallery-item img,
    .maggi-project__gallery--count-3 .maggi-project__gallery-item:first-child img,
    .maggi-project__gallery .maggi-project__gallery-item:nth-child(4n) img {
        width: 100%;
        height: 338px;
        min-height: 0;
        object-fit: cover;
    }

    .maggi-project__gallery--demo .maggi-project__gallery-item,
    .maggi-project__gallery--demo.maggi-project__gallery--count-1 .maggi-project__gallery-item,
    .maggi-project__gallery--demo.maggi-project__gallery--count-3 .maggi-project__gallery-item:first-child,
    .maggi-project__gallery--demo .maggi-project__gallery-item:nth-child(4n) {
        min-height: 338px;
    }

    /* Carrusel otros proyectos: proporción tipo flipcards mobile */
    .maggi-projects-carousel-wrap {
        overflow: hidden;
    }

    .maggi-projects-carousel {
        padding: 0 24px;
        overflow: visible;
    }

    .maggi-projects-carousel .swiper-wrapper {
        align-items: stretch;
    }

    .maggi-projects-carousel .maggi-projects-card {
        width: 267px;
        max-width: 78vw;
        height: 451px;
        min-height: 451px;
        margin: 0 auto;
        border-radius: 8px;
    }

    .maggi-projects-carousel .maggi-projects-card__content {
        width: 100%;
        height: 451px;
        min-height: 451px;
        padding: 56px 49px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .maggi-projects-carousel__nav.swiper-button-prev,
    .maggi-projects-carousel__nav.swiper-button-next {
        display: none;
    }

    .maggi-lightbox {
        padding: 18px;
    }

    .maggi-lightbox__figure {
        height: 78vh;
    }

    .maggi-lightbox__close {
        top: 12px;
        right: 12px;
    }

    .maggi-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .maggi-lightbox__nav--prev {
        left: 10px;
    }

    .maggi-lightbox__nav--next {
        right: 10px;
    }
}

/* v1.2.9 - [maggi_proyectos_carousel] estilo flipcard sin flip
   Base tomada del carrusel de flipcards: misma altura, overlay, título, icono,
   navegación y comportamiento mobile, pero sin cara trasera ni rotación. */
.maggi-projects-carousel-wrap--flipstyle {
    --mpc-height: 451px;
    --mpc-mobile-height: 275px;
    --mpc-radius: 8px;
    --mpc-title-size: 18px;
    --mpc-mobile-title-size: 12px;
    --mpc-nav-offset: -50px;
    width: 100%;
    position: relative;
    overflow: visible !important;
    padding: 0 0 26px;
}

.maggi-projects-carousel-wrap--flipstyle,
.maggi-projects-carousel-wrap--flipstyle * {
    box-sizing: border-box;
}

.elementor-widget-container:has(.maggi-projects-carousel-wrap--flipstyle),
.elementor-element:has(.maggi-projects-carousel-wrap--flipstyle) {
    overflow: visible !important;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel-title {
    margin: 0 0 8px !important;
    letter-spacing: normal !important;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel-subtitle {
    margin: 0 0 24px !important;
    color: inherit;
    font-family: Manrope, Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: normal !important;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel {
    position: relative;
    width: 100%;
    overflow: visible !important;
    padding: 0 0 42px !important;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel .swiper-wrapper {
    align-items: stretch;
    overflow: visible !important;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__slide {
    height: auto;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-card {
    position: relative;
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: var(--mpc-height) !important;
    min-height: var(--mpc-height) !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: var(--mpc-radius);
    background: #dce2ee;
    color: #fff !important;
    text-decoration: none !important;
    isolation: isolate;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-card img,
.maggi-projects-carousel-wrap--flipstyle .maggi-projects-card .maggi-project-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-card:hover img,
.maggi-projects-carousel-wrap--flipstyle .maggi-projects-card:hover .maggi-project-placeholder {
    transform: scale(1.04);
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.08) 42%, rgba(0,0,0,.10) 100%);
    pointer-events: none;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-card__content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: var(--mpc-height) !important;
    min-height: var(--mpc-height) !important;
    padding: 48px 18px 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    text-align: center;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-card__title {
    display: block;
    margin: 0 0 14px !important;
    color: #fff !important;
    text-align: center;
    font-family: "Grandis Extended", "Montserrat", Arial, sans-serif;
    font-size: var(--mpc-title-size) !important;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-card__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    transition: transform .25s ease, background .25s ease, opacity .25s ease;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-card:hover .maggi-projects-card__icon {
    transform: rotate(90deg);
    background: rgba(255,255,255,.12);
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-prev,
.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-next {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    color: #111;
    box-shadow: 0 8px 20px rgba(0,0,0,.14);
    transition: transform .2s ease, opacity .2s ease;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-prev {
    left: var(--mpc-nav-offset) !important;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-next {
    right: var(--mpc-nav-offset) !important;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-prev::after,
.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-prev:hover,
.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-next:hover {
    transform: scale(1.05);
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 767px) {
    .maggi-projects-carousel-wrap--flipstyle {
        overflow: visible !important;
    }

    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel-title {
        font-size: 32px !important;
        line-height: 1.08;
    }

    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel-subtitle {
        font-family: Manrope, Arial, sans-serif;
        font-size: 14px;
        font-style: normal;
        line-height: 1.45;
        margin-bottom: 22px !important;
    }

    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel {
        overflow: visible !important;
        padding: 0 0 34px !important;
    }

    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-card {
        width: 100% !important;
        max-width: none !important;
        height: var(--mpc-mobile-height) !important;
        min-height: var(--mpc-mobile-height) !important;
    }

    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-card__content {
        height: var(--mpc-mobile-height) !important;
        min-height: var(--mpc-mobile-height) !important;
        padding: 28px 18px 0 !important;
    }

    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-card__title {
        font-size: var(--mpc-mobile-title-size) !important;
    }

    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-card__icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-prev,
    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-next {
        display: none;
    }
}


/* v1.3.2 - Ajustes carrusel de proyectos: flechas pill + máscaras overflow desktop */
.maggi-projects-carousel-wrap--flipstyle {
    --mpc-radius: 16px;
    --mpc-mask-bg: #fff;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-card__overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 38%, rgba(0, 0, 0, 0) 100%) !important;
}

/* Flechas tipo pill, equivalente al estilo usado en flipcards */
.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-prev,
.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-next {
    width: 54px !important;
    height: 40px !important;
    border-radius: 80px !important;
    border: 1px solid #EAEAEA !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
    color: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    transition: background .2s ease, border-color .2s ease, opacity .2s ease !important;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-prev::after,
.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-next::after {
    display: none !important;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-prev::before,
.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-next::before {
    content: "";
    width: 16px;
    height: 32px;
    display: block;
    background-color: #000;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6.38004 3.95337L2.33337 8.00003L6.38004 12.0467' stroke='black' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M13.6667 8H2.44666' stroke='black' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6.38004 3.95337L2.33337 8.00003L6.38004 12.0467' stroke='black' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M13.6667 8H2.44666' stroke='black' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-next::before {
    transform: rotate(180deg);
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-prev:hover,
.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-next:hover {
    background: #FAFAFA !important;
    border-color: #DDDDDD !important;
    transform: none !important;
}

.maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav.swiper-button-disabled {
    opacity: .35 !important;
    pointer-events: none;
}

@media (min-width: 1025px) {
    .maggi-projects-carousel-wrap--flipstyle {
        position: relative;
        overflow: visible !important;
    }

    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel {
        position: relative;
        overflow: visible !important;
    }

    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel::after {
        content: "";
        position: absolute;
        top: -10px;
        bottom: -10px;
        left: 100%;
        width: 100vw;
        background: var(--mpc-mask-bg, #fff);
        z-index: 15;
        pointer-events: none;
    }

    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel::before {
        content: "";
        position: absolute;
        top: -10px;
        bottom: -10px;
        right: 100%;
        width: 100vw;
        background: var(--mpc-mask-bg, #fff);
        z-index: 15;
        pointer-events: none;
    }

    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel__nav,
    .maggi-projects-carousel-wrap--flipstyle .swiper-button-prev,
    .maggi-projects-carousel-wrap--flipstyle .swiper-button-next {
        z-index: 30 !important;
    }
}

@media (max-width: 767px) {
    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel::before,
    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel::after {
        display: none !important;
    }

    .maggi-projects-carousel-wrap--flipstyle .maggi-projects-carousel-subtitle {
        text-align: center;
    }
}

/* v1.3.4 - Dropdown mobile: menú unificado estilo selector expandido */
@media (max-width: 767px) {
    .maggi-projects-tabs-mobile-dropdown {
        overflow: visible;
    }

    /* Estado cerrado */
    .maggi-projects-tabs-mobile-dropdown__trigger {
        min-height: 58px;
        padding: 16px 26px;
        border-radius: 20px;
    }

    .maggi-projects-tabs-mobile-dropdown__menu {
        top: 0;
        padding: 12px 0;
        border-radius: 20px;
        box-shadow: none;
    }

    .maggi-projects-tabs-mobile-dropdown__option {
        min-height: 46px;
        padding: 12px 26px;
        border-radius: 0;
    }

    /* Al abrir, se transforma en una única caja blanca con todas las categorías. */
    .maggi-projects-tabs-mobile-dropdown.is-open .maggi-projects-tabs-mobile-dropdown__trigger {
        display: none;
    }

    .maggi-projects-tabs-mobile-dropdown.is-open .maggi-projects-tabs-mobile-dropdown__menu {
        position: relative;
        z-index: 20;
    }

    .maggi-projects-tabs-mobile-dropdown__option:hover,
    .maggi-projects-tabs-mobile-dropdown__option:focus-visible,
    .maggi-projects-tabs-mobile-dropdown__option[aria-selected="true"] {
        background: #E9EEFF;
    }

    .maggi-projects-tabs-mobile-dropdown__menu .maggi-projects-tabs-mobile-dropdown__option:first-child {
        border-radius: 20px 20px 0 0;
    }

    .maggi-projects-tabs-mobile-dropdown__menu .maggi-projects-tabs-mobile-dropdown__option:last-child {
        border-radius: 0 0 20px 20px;
    }
}
