@import url("https://fonts.googleapis.com/css?family=Dosis:400,600,700,800");

@font-face {
    font-family: "Uni Sans";
    src: url("https://res.cloudinary.com/muhammederdem/raw/upload/v1536168547/unisans-font/UniSansHeavyCAPS.woff2") format("woff2"), url("https://res.cloudinary.com/muhammederdem/raw/upload/v1536168547/unisans-font/UniSansHeavyCAPS.woff") format("woff"), url("https://res.cloudinary.com/muhammederdem/raw/upload/v1536168548/unisans-font/UniSansHeavyCAPS.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: "Uni Sans";
    src: url("https://res.cloudinary.com/muhammederdem/raw/upload/v1536168545/unisans-font/UniSansThinCAPS.woff2") format("woff2"), url("https://res.cloudinary.com/muhammederdem/raw/upload/v1536168545/unisans-font/UniSansThinCAPS.woff") format("woff"), url("https://res.cloudinary.com/muhammederdem/raw/upload/v1536168548/unisans-font/UniSansThinCAPS.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

/* ============================================
   DESA CTA SLIDER SECTION
   ============================================ */

.defi-cta-section {
    width: 100%;
    min-height: 100vh;
    background-image: url('../imagenes/DESA/fondodesas.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0 2rem 0;
    font-family: "Uni Sans", sans-serif;
}

.defi-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.92) 0%, rgba(254, 215, 170, 0.92) 50%, rgba(253, 186, 116, 0.92) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
}

.defi-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.defi-header-title {
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.defi-main-title {
    font-family: "Uni Sans", sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #1e293b;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    line-height: 1.3;
    margin: 0;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .defi-main-title {
        font-size: 1.75rem;
    }
    
    .defi-header-title {
        margin-bottom: 2rem;
    }
}

.defi-content {
    height: 600px;
    margin: auto;
    width: 100%;
    max-width: 1050px;
    display: flex;
    align-items: center;
    position: relative;
}

/* Background Shape - Original Proportions */
.defi-bg-shape {
    height: 100%;
    background: #ea580c;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0px 30px 139px 0px rgba(249, 115, 22, 0.26);
    border-radius: 30px;
    padding: 45px 40px;
    width: 50%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 0;
}

.defi-bg-shape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../imagenes/DESA/fondo-naranja.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(3px);
    z-index: -1;
}

.defi-bg-shape svg {
    width: 100%;
    height: 100%;
    opacity: 0.2;
    position: relative;
    z-index: 1;
}

.defi-slider {
    width: 75%;
    height: 85%;
    border-radius: 30px;
    box-shadow: 0 28px 79px 0 rgba(249, 115, 22, 0.35);
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
}

.defi-product-img {
    position: absolute;
    z-index: 20;
    width: 400px;
    left: 25%;
    transform: translateX(-45%);
    max-height: 400px;
    height: 100%;
    pointer-events: none;
}

.defi-product-img__item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    pointer-events: none;
    user-select: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(-130px);
    opacity: 0;
    transition: all 0.3s;
    width: 100%;
    height: 100%;
}

.defi-product-img__item.active {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(0);
    transition-delay: 0.3s;
}

.defi-product-img__item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.defi-slider__item.swiper-slide-active .defi-slider__content>* {
    opacity: 1;
    transform: none;
}

.defi-slider__item.swiper-slide-active .defi-slider__content>*:nth-child(1) {
    transition-delay: 0s;
}

.defi-slider__item.swiper-slide-active .defi-slider__content>*:nth-child(2) {
    transition-delay: 0.2s;
}

.defi-slider__item.swiper-slide-active .defi-slider__content>*:nth-child(3) {
    transition-delay: 0.4s;
}

.defi-slider__item.swiper-slide-active .defi-slider__content>*:nth-child(4) {
    transition-delay: 0.6s;
}

.defi-slider__item.swiper-slide-active circle {
    animation: defiProgress 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0.75;
}

@keyframes defiProgress {
    0% {
        stroke-dasharray: 0 100;
    }
}

.defi-slider__card {
    height: 100%;
    display: flex;
    align-items: center;
    width: 100%;
    transition: all 0.5s;
    position: relative;
    z-index: 2;
    border-radius: 30px;
}

.defi-slider__cover {
    border-radius: 30px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 1;
}

.defi-slider__content {
    color: #fff;
    padding-top: 1px;
    position: relative;
    z-index: 2;
    width: 100%;
    padding-left: 220px;
    padding-right: 90px;
}

.defi-slider__title {
    margin: 0;
    margin-bottom: 10px;
    font-family: 'Uni Sans', sans-serif;
    font-weight: 800;
    font-size: 41px;
    line-height: 1.2em;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(55px);
    transition: all 0.8s;
}

.defi-slider__price {
    display: block;
    font-size: 42px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(55px);
    transition: all 0.8s;
}

.defi-product-ctr {
    display: flex;
    align-items: center;
    min-height: 150px;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(55px);
    transition: all 0.8s;
}

.defi-hr-vertical {
    width: 1px;
    background: rgba(255, 255, 255, 0.5);
    align-self: stretch;
    margin: 0 35px;
    flex-shrink: 0;
}

.defi-product-labels__title {
    font-family: 'Dosis', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 16px;
    margin-bottom: 10px;
}

.defi-product-labels__group {
    display: flex;
    margin-bottom: 15px;
    gap: 10px;
}

.defi-product-labels__item {
    cursor: pointer;
}

.defi-product-labels__txt {
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 9999px;
    transition: all 0.3s;
    letter-spacing: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.defi-product-inf {
    text-align: center;
}

.defi-product-inf__percent {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-family: 'Dosis', sans-serif;
    position: relative;
}

.defi-product-inf__percent circle {
    transform: rotate(180deg) scaleY(-1);
    transform-origin: 50%;
}

.defi-product-inf__percent-txt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.defi-product-inf__title {
    font-family: 'Dosis', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 18px;
}

.defi-slider__bottom {
    margin-top: 20px;
    opacity: 0;
    transform: translateY(55px);
    transition: all 0.8s;
}

.defi-slider__cart {
    box-shadow: 0 7px 99px 0 rgba(249, 115, 22, 0.6);
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    color: #fff;
    padding: 10px 30px;
    border-radius: 9999px;
    min-height: 50px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'Dosis', sans-serif;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.defi-slider__cart:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 60px rgba(249, 115, 22, 0.6), 0 0 120px rgba(249, 115, 22, 0.3);
}

.defi-prev,
.defi-next {
    z-index: 22;
    display: inline-flex;
    border: none;
    width: 61px;
    height: 61px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    position: absolute;
    top: 50%;
    outline: none;
    cursor: pointer;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.defi-prev:hover,
.defi-next:hover {
    background: #f97316;
}

.defi-prev:hover svg,
.defi-next:hover svg {
    fill: white;
}

.defi-prev.disabled,
.defi-next.disabled {
    cursor: pointer;
    opacity: 1 !important;
}

.defi-prev {
    left: -30%;
    transform: translate(-100%, -50%);
}

.defi-next {
    right: 0;
    transform: translate(50%, -50%);
}

.defi-prev svg,
.defi-next svg {
    fill: #ea580c;
    width: 20px;
    height: 20px;
}

.hidden {
    display: none;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .defi-content {
        max-width: 920px;
    }

    .defi-bg-shape {
        width: 45%;
    }

    .defi-slider {
        width: 80%;
    }

    .defi-product-img {
        width: 350px;
        max-height: 350px;
        left: 20%;
    }

    .defi-slider__content {
        padding-left: 220px;
    }

    .defi-prev {
        left: -21%;
    }
}

@media screen and (max-width: 992px) {
    .defi-content {
        max-width: 920px;
        margin-top: 100px;
        height: auto;
        min-height: 100vh;
    }

    .defi-bg-shape {
        width: 90%;
        height: 290px;
        align-items: flex-start;
        padding: 50px;
        left: 50%;
        transform: translateX(-50%);
    }

    .defi-product-img {
        width: 350px;
        max-height: 350px;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
    }

    .defi-slider {
        width: 80%;
        left: 50%;
        transform: translateX(-50%);
        height: auto;
        position: relative;
        top: 0;
        margin-top: 170px;
        margin-bottom: 100px;
    }

    .defi-slider__content {
        padding: 20px 60px 100px;
        padding-top: 280px;
        text-align: center;
    }

    .defi-product-ctr {
        justify-content: center;
    }

    .defi-product-labels__group {
        justify-content: center;
    }

    .defi-prev {
        left: 0;
        transform: translate(-50%, -50%);
        top: 170px;
    }

    .defi-next {
        top: 170px;
    }
}

@media screen and (max-width: 767px) {
    .defi-content {
        margin-top: 20px;
    }

    .defi-bg-shape {
        padding: 30px;
        width: 95%;
        border-radius: 20px;
    }

    .defi-slider {
        border-radius: 20px;
    }

    .defi-slider__card {
        border-radius: 20px;
    }

    .defi-slider__cover {
        border-radius: 20px;
    }

    .defi-slider__content {
        padding: 20px 30px 50px;
        padding-top: 300px;
    }

    .defi-product-ctr {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 40px;
    }

    .defi-hr-vertical {
        width: 100%;
        margin: 35px 0;
        height: 1px;
    }

    .defi-product-labels {
        width: 100%;
    }

    .defi-product-inf {
        width: 100%;
    }

    .defi-product-img {
        width: 100%;
        max-width: 350px;
        max-height: 350px;
        top: 30px;
    }
}

@media screen and (max-width: 576px) {
    .defi-content {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .defi-bg-shape {
        height: 200px;
        padding: 30px;
    }

    .defi-slider {
        width: 85%;
        margin-top: 130px;
    }

    .defi-slider__content {
        padding-top: 220px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .defi-slider__title {
        font-size: 24px;
    }

    .defi-slider__price {
        font-size: 30px;
    }

    .defi-slider__cart {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 50px;
    }

    .defi-prev {
        transform: translate(20%, -50%);
    }

    .defi-next {
        transform: translate(-20%, -50%);
    }

    .defi-product-img {
        max-width: 250px;
        max-height: 250px;
    }
}