/* =========================================================
   ZOELIFE CUSCO V4
   Carrusel premium en Home + fondo discreto para productos.
   Este archivo se carga después de styles.css.
   ========================================================= */

.hero-carousel-shell {
    position: relative;
    min-height: 560px;
    border-radius: 36px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.94), rgba(247,242,233,.78)),
        radial-gradient(circle at 88% 18%, rgba(201,164,93,.20), transparent 28%),
        radial-gradient(circle at 18% 82%, rgba(36,92,65,.10), transparent 32%);
    border: 1px solid rgba(22, 61, 43, .10);
    box-shadow: var(--shadow-soft);
    padding: 1.8rem;
}

.hero-carousel-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, transparent 0 42%, rgba(255,255,255,.46) 42% 58%, transparent 58% 100%),
        linear-gradient(25deg, transparent 0 60%, rgba(201,164,93,.08) 60% 72%, transparent 72% 100%);
    pointer-events: none;
}

.hero-carousel-header,
.hero-carousel-footer {
    position: relative;
    z-index: 5;
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(22,61,43,.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-carousel-header {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: .75rem 1rem;
}

.hero-carousel-logo {
    width: 54px;
    height: auto;
    object-fit: contain;
}

.hero-carousel-header strong,
.hero-carousel-footer strong {
    display: block;
    color: var(--zoe-green);
    font-weight: 850;
    line-height: 1.1;
}

.hero-carousel-header span,
.hero-carousel-footer span {
    display: block;
    color: var(--zoe-muted);
    font-size: .88rem;
    margin-top: .15rem;
}

.hero-product-carousel {
    position: relative;
    z-index: 2;
    margin-top: 1.2rem;
    padding-bottom: 2.4rem;
}

.hero-product-slide {
    min-height: 380px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 1.4rem;
}

.hero-product-visual {
    position: relative;
    min-height: 340px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    background:
        linear-gradient(152deg, rgba(255,255,255,.82) 0 52%, rgba(247,242,233,.56) 52% 100%);
    border: 1px solid rgba(22,61,43,.08);
    box-shadow: 0 24px 60px rgba(22,61,43,.10);
    overflow: hidden;
}

.hero-product-visual::before {
    content: "";
    position: absolute;
    inset: 18% -8% auto 30%;
    height: 46%;
    transform: rotate(-8deg);
    border-radius: 40px;
    background: rgba(201,164,93,.09);
}

.hero-product-visual::after {
    content: "";
    position: absolute;
    inset: auto 22% 10% -4%;
    height: 34%;
    transform: rotate(-8deg);
    border-radius: 40px;
    background: rgba(36,92,65,.07);
}

.hero-product-visual img {
    position: relative;
    z-index: 2;
    max-width: 86%;
    max-height: 310px;
    object-fit: contain;
    filter: drop-shadow(0 24px 24px rgba(22,61,43,.16));
}

.hero-product-content {
    position: relative;
    border-radius: 28px;
    padding: 1.4rem;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.82);
    box-shadow: 0 18px 45px rgba(22,61,43,.11);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-product-content span {
    display: block;
    color: var(--zoe-terracotta);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.hero-product-content h2 {
    color: var(--zoe-green);
    font-size: clamp(1.5rem, 2vw, 2.15rem);
    font-weight: 850;
    letter-spacing: -.04em;
    line-height: 1.08;
    margin: 0 0 .75rem;
}

.hero-product-content p {
    color: var(--zoe-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.hero-carousel-control {
    top: auto;
    bottom: .15rem;
    width: 42px;
    height: 42px;
    opacity: 1;
    border-radius: 999px;
    background: rgba(22,61,43,.92);
    color: white;
    display: grid;
    place-items: center;
}

.hero-carousel-control:hover {
    background: var(--zoe-green-2);
}

.hero-carousel-control span {
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-1px);
}

.hero-carousel-control.carousel-control-prev {
    left: auto;
    right: 54px;
}

.hero-carousel-control.carousel-control-next {
    right: 0;
}

.hero-carousel-indicators {
    position: absolute;
    left: 0;
    right: auto;
    bottom: .85rem;
    margin: 0;
    justify-content: flex-start;
    gap: .35rem;
}

.hero-carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(22,61,43,.28);
    opacity: 1;
}

.hero-carousel-indicators .active {
    width: 28px;
    background-color: var(--zoe-green);
}

.hero-carousel-footer {
    position: relative;
    z-index: 5;
    display: inline-grid;
    gap: .05rem;
    padding: .85rem 1.1rem;
    margin-top: .6rem;
}

.hero-product-empty {
    position: relative;
    z-index: 2;
    min-height: 360px;
    display: grid;
    place-content: center;
    text-align: center;
    gap: .4rem;
}

/* Fondo de tarjetas: limpio, sin círculos comunes */
.product-card__media,
.product-image-wrap {
    background:
        linear-gradient(145deg, rgba(255,255,255,.96) 0%, rgba(247,242,233,.58) 100%) !important;
}

.product-card__media::before,
.product-image-wrap::before {
    width: auto !important;
    height: auto !important;
    inset: 18% -12% auto 34% !important;
    height: 36% !important;
    border-radius: 32px !important;
    transform: rotate(-8deg);
    background: rgba(201,164,93,.09) !important;
}

.product-card__media::after,
.product-image-wrap::after {
    width: auto !important;
    height: auto !important;
    inset: auto 28% 9% -10% !important;
    height: 34% !important;
    border-radius: 32px !important;
    transform: rotate(-8deg);
    background: rgba(36,92,65,.07) !important;
}

.product-card__media img,
.product-image-wrap img,
.product-card img.card-img-top {
    filter: drop-shadow(0 18px 20px rgba(22, 61, 43, .12));
}

@media (max-width: 991.98px) {
    .hero-carousel-shell {
        min-height: auto;
    }

    .hero-product-slide {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-product-visual {
        min-height: 300px;
    }

    .hero-product-visual img {
        max-height: 270px;
    }

    .hero-product-content {
        margin-top: -18px;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel-shell {
        padding: 1rem;
        border-radius: 28px;
    }

    .hero-carousel-header {
        width: 100%;
    }

    .hero-carousel-logo {
        width: 44px;
    }

    .hero-product-visual {
        min-height: 280px;
        border-radius: 24px;
    }

    .hero-product-visual img {
        max-height: 245px;
    }

    .hero-product-content {
        padding: 1.1rem;
        border-radius: 22px;
    }

    .hero-carousel-footer {
        width: 100%;
    }
}
