/* ==========================================================
   OLIN demo hero slider
   Scope: /productos/OLIN/demo/index.html
   Purpose: aplicar el lenguaje visual del slider home-carpentry
   sin modificar el CSS global de la plantilla.
   ========================================================== */

.olin-demo-hero {
    --theme-color: #c9a35f;
    --gr-color2: #f2d18a;
    position: relative;
    isolation: isolate;
    min-height: 720px;
    background-color: #05080f;
    background-size: cover;
    background-position: center center;
    border-radius: 0 0 42px 42px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.olin-demo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 76% 28%, rgba(201, 163, 95, 0.26) 0, rgba(201, 163, 95, 0) 34%),
        radial-gradient(circle at 18% 74%, rgba(28, 111, 180, 0.24) 0, rgba(28, 111, 180, 0) 32%),
        linear-gradient(90deg, rgba(3, 7, 15, 0.98) 0%, rgba(3, 7, 15, 0.88) 42%, rgba(3, 7, 15, 0.50) 74%, rgba(3, 7, 15, 0.78) 100%);
}

.olin-demo-hero::after {
    z-index: 3;
    opacity: 0.42;
}

.olin-demo-hero .swiper,
.olin-demo-hero .swiper-wrapper,
.olin-demo-hero .swiper-slide,
.olin-demo-hero .hero-inner {
    position: relative;
    z-index: 2;
}

.olin-demo-hero .hero-inner {
    min-height: 720px;
    display: flex;
    align-items: center;
    padding-top: 54px;
}

.olin-demo-hero .hero-style4 {
    max-width: 650px;
    margin: 150px 0 135px 0;
}

.olin-demo-hero .sub-title2 {
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.08em;
    gap: 10px;
}

.olin-demo-hero .sub-title2 i {
    color: var(--theme-color);
    font-size: 18px;
    margin-right: 8px;
}

.olin-demo-hero .hero-title {
    max-width: 690px;
    margin-bottom: 24px;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.olin-demo-hero .hero-title .title1,
.olin-demo-hero .hero-title .title2 {
    display: block;
}

.olin-demo-hero .hero-title .title1 {
    font-size: clamp(42px, 4.1vw, 74px);
    line-height: 0.98;
}

.olin-demo-hero .hero-title .title2 {
    font-size: clamp(38px, 3.6vw, 66px);
    line-height: 1.04;
}

.olin-demo-hero .hero-text {
    max-width: 610px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.72;
}

.olin-demo-hero .olin-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 34px 0;
}

.olin-demo-hero .olin-hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.90);
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.olin-demo-hero .olin-hero-points i {
    color: var(--theme-color);
    font-size: 13px;
}

.olin-demo-hero .th-btn.rounded-12 {
    border-radius: 14px;
}

.olin-demo-hero .th-btn.style4 {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.olin-demo-hero .th-btn.style4:hover {
    color: #101018;
    border-color: var(--theme-color);
    background: var(--theme-color);
}

.olin-demo-hero .hero-img {
    bottom: 10%;
    right: 5.2%;
    max-width: 646px;
    filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.45));
}

.olin-demo-hero .hero-img::before {
    content: "";
    position: absolute;
    inset: -16px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
    transform: rotate(-1.8deg);
}

.olin-demo-hero .hero-img > img {
    width: 100%;
    height: clamp(420px, 33.5vw, 620px);
    object-fit: cover;
    object-position: center top;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.olin-demo-hero .hero-img .box-badge {
    bottom: 10%;
    left: -58px;
}

.olin-demo-hero .hero-img .box-badge .spin-text text {
    font-family: var(--title-font);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.olin-demo-hero .hero-img .box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #101018;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.olin-demo-hero .hero-img .box-icon i {
    position: relative;
    z-index: 2;
    font-size: 44px;
    color: #101018;
}

.olin-demo-hero .slider-arrow {
    background-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(8px);
}

.olin-demo-hero .slider-arrow:hover {
    background-color: var(--theme-color);
    color: #101018;
}

.olin-demo-hero .swiper-pagination-bullets .swiper-pagination-bullet-active {
    background-color: var(--theme-color);
}

@media (max-width: 1500px) {
    .olin-demo-hero .hero-img {
        right: 2%;
        max-width: 590px;
    }
}

@media (max-width: 1299px) {
    .olin-demo-hero .hero-style4 {
        max-width: 590px;
    }

    .olin-demo-hero .hero-img {
        max-width: 500px;
    }
}

@media (max-width: 1199px) {
    .olin-demo-hero .hero-style4 {
        max-width: 540px;
    }

    .olin-demo-hero .hero-img {
        max-width: 430px;
    }

    .olin-demo-hero .hero-text {
        font-size: 16px;
    }
}

@media (max-width: 991px) {
    .olin-demo-hero,
    .olin-demo-hero .hero-inner {
        min-height: auto;
    }

    .olin-demo-hero .hero-inner {
        padding-top: 0;
    }

    .olin-demo-hero .hero-style4 {
        max-width: 760px;
        margin: 96px auto 42px auto;
        text-align: center;
    }

    .olin-demo-hero .hero-text,
    .olin-demo-hero .hero-title,
    .olin-demo-hero .hero-title > span {
        margin-left: auto;
        margin-right: auto;
    }

    .olin-demo-hero .olin-hero-points,
    .olin-demo-hero .btn-group {
        justify-content: center;
    }

    .olin-demo-hero .hero-img {
        max-width: 690px;
        margin-bottom: 62px;
    }

    .olin-demo-hero .hero-img > img {
        height: auto;
        max-height: 520px;
    }
}

@media (max-width: 767px) {
    .olin-demo-hero {
        border-radius: 0 0 24px 24px;
    }

    .olin-demo-hero .hero-style4 {
        margin-top: 76px;
    }

    .olin-demo-hero .hero-title .title1,
    .olin-demo-hero .hero-title .title2 {
        font-size: clamp(34px, 10vw, 48px);
        line-height: 1.08;
    }

    .olin-demo-hero .hero-text {
        font-size: 15px;
        line-height: 1.62;
    }

    .olin-demo-hero .hero-img::before,
    .olin-demo-hero .hero-img .box-badge {
        display: none;
    }
}

@media (max-width: 575px) {
    .olin-demo-hero .sub-title2 {
        letter-spacing: 0.03em;
        font-size: 12px;
    }

    .olin-demo-hero .olin-hero-points span {
        flex: 1 1 100%;
        justify-content: center;
    }

    .olin-demo-hero .th-btn {
        width: 100%;
        justify-content: center;
    }
}
