.agregados-slider,
.agregados-slider .swiper,
.agregados-slider .swiper-wrapper,
.agregados-slider .swiper-slide {
    height: 100%;
    min-height: 0;
}

.agregados-slide {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.agregados-slide-media {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.agregados-slide-media img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.agregados-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, 0.80) 0%,
            rgba(0, 0, 0, 0.70) 12%,
            rgba(0, 0, 0, 0.54) 24%,
            rgba(0, 0, 0, 0.28) 36%,
            rgba(0, 0, 0, 0.10) 44%,
            rgba(0, 0, 0, 0.05) 50%,
            rgba(0, 0, 0, 0.10) 56%,
            rgba(0, 0, 0, 0.28) 64%,
            rgba(0, 0, 0, 0.54) 76%,
            rgba(0, 0, 0, 0.70) 88%,
            rgba(0, 0, 0, 0.80) 100%);
}

.agregados-slide-content {
    position: relative;
    z-index: 2;
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 3rem 1rem 5rem;
}

.agregados-slide-content h1,
.agregados-slide-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.agregados-slide-content p {
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 1.75rem;
}

.btn-agregados-cta {
    display: inline-block;
    background: #f7be06;
    color: #1b1b1b !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 0.95rem 2.5rem;
    border-radius: 0.45rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn-agregados-cta:hover,
.btn-agregados-cta:focus {
    background: #ffd13d;
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.agregados-slider .swiper-button-prev,
.agregados-slider .swiper-button-next {
    width: 4.5rem;
    height: 4.5rem;
    top: 50%;
    margin-top: 0;
    transform: translateY(-50%);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(3px);
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
    z-index: 3;
}

.agregados-slider .swiper-button-prev {
    left: 1.5rem;
}

.agregados-slider .swiper-button-next {
    right: 1.5rem;
}

.agregados-slider .swiper-button-prev:hover,
.agregados-slider .swiper-button-next:hover,
.agregados-slider .swiper-button-prev:focus,
.agregados-slider .swiper-button-next:focus {
    background-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.agregados-slider .swiper-button-prev::after,
.agregados-slider .swiper-button-next::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.6rem;
    height: 1.6rem;
    transform: translate(-50%, -50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.agregados-slider .swiper-button-prev::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

.agregados-slider .swiper-button-next::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 0 0 .708L10.293 8l-5.647 5.646a.5.5 0 0 0 .708.708l6-6a.5.5 0 0 0 0-.708l-6-6a.5.5 0 0 0-.708 0z'/%3E%3C/svg%3E");
}

.agregados-slider .swiper-pagination {
    bottom: 1.4rem;
}

.agregados-slider .swiper-pagination-bullet {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    margin: 0 6px;
    border: 2px solid #ffffff;
    background-color: transparent;
    opacity: 1;
}

.agregados-slider .swiper-pagination-bullet-active {
    background-color: #ffffff;
}

.agregados-page {
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f5 100%);
}

.agregados-slider {
    min-height: 0;
}

.agregados-products {
    padding: 2.5rem 0 1.5rem;
}

.agregados-product-card {
    background: #ffffff;
    border-radius: 1.15rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: 0.95rem;
    height: 100%;
    transition: box-shadow .25s ease, transform .25s ease;
}

.agregados-product-card:hover {
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
}

.agregados-product-figure {
    position: relative;
    border-radius: 0.9rem;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    height: auto;
    min-height: 0;
    background: #eef2f5;
}

.agregados-product-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.agregados-product-carousel .swiper-wrapper,
.agregados-product-carousel .swiper-slide {
    height: 100%;
}

.agregados-product-carousel .swiper-slide img {
    width: 100%;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center;
}

.agregados-product-indicators.swiper-pagination {
    bottom: 0.7rem;
    margin-bottom: 0;
}

.agregados-product-indicators .swiper-pagination-bullet {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background-color: rgba(255, 255, 255, 0.45);
    opacity: 1;
    margin: 0 4px;
}

.agregados-product-indicators .swiper-pagination-bullet-active {
    background-color: #ffffff;
}

.agregados-zoom-btn {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 4;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: rgb(0, 100, 157);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    transition: transform .2s ease, background-color .2s ease;
}

.agregados-zoom-btn:hover,
.agregados-zoom-btn:focus {
    background: #ffffff;
    transform: scale(1.06);
}

.agregados-image-modal {
    background: #ffffff;
    border: 0;
}

.agregados-image-modal .modal-body {
    padding: 0.75rem 1.25rem 1.25rem;
}

.agregados-image-modal .modal-header {
    padding: 1.35rem 1.5rem 0.35rem;
}

.agregados-image-modal .btn-close {
    filter: none;
    opacity: 0.9;
    margin: 0;
}

.agregados-modal-gallery {
    display: grid;
    gap: 0;
}

.agregados-modal-main {
    width: 100%;
    height: min(70vh, 760px);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

.agregados-modal-main .swiper-wrapper {
    align-items: center;
}

.agregados-modal-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    height: 100%;
}

.agregados-modal-main .swiper-slide img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.agregados-modal-main .swiper-button-prev,
.agregados-modal-main .swiper-button-next {
    color: #000;
}

@media (max-width: 767.98px) {
    .agregados-modal-main {
        height: 56vh;
    }
}

.agregados-product-badge {
    position: absolute;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: rgb(0, 100, 157);
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    margin: 0 0.8rem;
    pointer-events: none;
}

.agregados-product-copy {
    padding: 0.2rem 0.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.agregados-product-copy h3 {
    color: #0d5f99;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.65rem;
}

.agregados-product-copy p {
    margin: 0;
    color: #202020;
    font-size: 0.95rem;
    line-height: 1.4;
}

.agregados-contact {
    padding: 1.5rem 0 3rem;
}

.agregados-contact-panel {
    background: #ffffff;
    border-radius: 1.2rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.agregados-contact-copy {
    padding: 2.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 100%;
}

.agregados-contact-copy-icon {
    width: 72px;
    height: 72px;
    border-radius: 1rem;
    background: rgba(0, 100, 157, 0.08);
    color: rgb(0, 100, 157);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex: 0 0 auto;
}

.agregados-contact-copy h2 {
    color: #0d5f99;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.agregados-contact-copy p {
    margin: 0;
    line-height: 1.55;
}

.agregados-contact-form {
    padding: 2rem;
    border-left: 1px solid rgba(13, 95, 153, 0.12);
}

.agregados-contact-form .form-control {
    border-radius: 0.65rem;
    border: 1px solid #d8dee6;
    min-height: 48px;
    box-shadow: none;
}

.agregados-contact-form textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.agregados-contact-form .btn-fontana {
    width: 100%;
    max-width: 180px;
    margin-left: 0;
    display: block;
    background-color: #f7be06;
    color: #1f1f1f;
    font-weight: 700;
    border-radius: 0.65rem;
    border: 0;
}

.agregados-contact-form .btn-fontana:hover,
.agregados-contact-form .btn-fontana:focus {
    background-color: #ffd13d;
}


@media (max-width: 991px) {

    .agregados-slider .swiper-slide,
    .agregados-slide-content {
        min-height: 0;
        height: 100%;
    }

    .agregados-product-copy {
        padding-top: 1rem;
    }

    .agregados-product-figure {
        aspect-ratio: 5 / 4;
        height: auto;
        min-height: 0;
    }

    .agregados-contact-form {
        border-left: 0;
        border-top: 1px solid rgba(13, 95, 153, 0.12);
    }
}

@media (max-width: 767px) {

    .agregados-slider .swiper,
    .agregados-slider .swiper-wrapper,
    .agregados-slider .swiper-slide,
    .agregados-slide,
    .agregados-slide-media,
    .agregados-slide-content {
        height: 100%;
    }

    .agregados-slide-content {
        min-height: 0;
    }

    .agregados-slide-content {
        align-items: center;
        justify-content: center;
        padding: 2rem 1.25rem 4.5rem;
    }

    .agregados-slide-content .container {
        max-width: 22rem;
    }

    .agregados-slide-media img {
        object-position: center center;
    }

    .agregados-slide::before {
        background:
            linear-gradient(180deg,
                rgba(0, 0, 0, 0.20) 0%,
                rgba(0, 0, 0, 0.12) 24%,
                rgba(0, 0, 0, 0.22) 100%),
            linear-gradient(90deg,
                rgba(0, 0, 0, 0.82) 0%,
                rgba(0, 0, 0, 0.68) 14%,
                rgba(0, 0, 0, 0.32) 32%,
                rgba(0, 0, 0, 0.10) 50%,
                rgba(0, 0, 0, 0.32) 68%,
                rgba(0, 0, 0, 0.68) 86%,
                rgba(0, 0, 0, 0.82) 100%);
    }

    .agregados-slide-content h1,
    .agregados-slide-content h2 {
        font-size: clamp(2rem, 10vw, 2.8rem);
        line-height: 1.05;
        margin-bottom: 0.75rem;
    }

    .agregados-slide-content p {
        font-size: 1rem;
        max-width: 22rem;
        line-height: 1.2;
        margin-bottom: 1.25rem;
    }

    .agregados-slider .swiper-button-prev,
    .agregados-slider .swiper-button-next {
        display: none;
    }

    .btn-agregados-cta {
        width: auto;
        max-width: 15.5rem;
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        line-height: 1.15;
    }

    .agregados-product-copy h3 {
        font-size: 1.05rem;
    }

    .agregados-product-copy p {
        font-size: 0.9rem;
    }

    .agregados-product-figure {
        aspect-ratio: 5 / 4;
        height: auto;
        min-height: 0;
    }

    .agregados-product-carousel .swiper-slide img {
        height: 100% !important;
        object-position: center top;
    }

    .agregados-contact-copy {
        flex-direction: column;
        align-items: flex-start;
    }

    .agregados-contact-copy h2 {
        font-size: 1.6rem;
    }
}
