/* Portada: composición estable para PC, tablet y móvil. */
.hero-home {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 0;
    padding-top: 0 !important;
    padding-bottom: 0;
    background-color: #fff;
}

.hero-home::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: clamp(500px, 48vw, 760px);
    background: url("/img/fons-capsalera-portada.jpg") center top / cover no-repeat;
}

.hero-home > .container,
.hero-home .row {
    position: relative;
}

.hero-home .row {
    min-height: clamp(650px, 49vw, 780px);
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: clamp(150px, 13vw, 220px) 1.25rem 4.5rem 0;
}

.hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 12%;
    right: 4%;
    bottom: 8%;
    left: -16%;
    border-radius: 0 0 5rem 0;
    background: linear-gradient(110deg, rgba(237, 72, 28, .88), rgba(255, 143, 28, .56));
    pointer-events: none;
}

.hero-copy h1 {
    max-width: 680px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.15rem, 3.7vw, 3.6rem);
    line-height: 1.05;
    text-wrap: balance;
    text-shadow: 0 2px 2px rgba(51, 16, 74, .18);
}

.hero-copy p {
    max-width: 540px;
    margin-bottom: 1.4rem;
    color: #fff;
    font-size: clamp(.98rem, 1.2vw, 1.12rem);
    line-height: 1.45;
}

.hero-product {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    align-self: stretch;
    padding: 7rem 0 1.5rem;
}

.hero-product-image {
    display: block;
    width: min(100%, 360px);
    max-height: clamp(500px, 43vw, 700px);
    height: auto;
    object-fit: contain;
    object-position: center bottom;
}

@media (min-width: 1200px) {
    .hero-home::before { background-position: center top; }
    .hero-copy { padding-left: 0; }
    .hero-product-image { width: min(100%, 390px); }
}

@media (max-width: 991.98px) {
    .hero-home::before {
        height: 470px;
        background-position: center top;
        background-size: auto 470px;
    }
    .hero-home .row { min-height: 0; }
    .hero-copy { padding: 9rem 1rem 3rem; }
    .hero-copy::before {
        top: 4rem; right: -1rem; bottom: 1rem; left: -2rem;
    }
    .hero-product {
        min-height: 440px;
        padding: 1rem 0 2.5rem;
    }
    .hero-product-image {
        width: min(72vw, 300px);
        max-height: 440px;
    }
}

@media (max-width: 575.98px) {
    .hero-home::before {
        height: 430px;
        background-position: 47% top;
        background-size: auto 430px;
    }
    .hero-copy { padding: 7.75rem .75rem 2.5rem; }
    .hero-copy::before {
        top: 3.5rem; right: -.75rem; bottom: .5rem; left: -.75rem;
        border-radius: 0 0 3.5rem 0;
    }
    .hero-copy h1 { font-size: clamp(2rem, 9vw, 2.55rem); }
    .hero-copy p { font-size: .96rem; }
    .hero-product { min-height: 390px; }
    .hero-product-image {
        width: min(68vw, 260px);
        max-height: 390px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-home *, .hero-home *::before, .hero-home *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}