.hero-section {
    padding-top: clamp(5rem, 5vw, 6.25rem);
    padding-bottom: 0;
    min-height: clamp(34rem, 29rem + 18vw, 43rem);
    display: flex;
    align-items: stretch;
    position: relative;
    background: #fff;
    overflow: hidden;
    isolation: isolate;
}

.hero-image-panel {
    position: relative;
    width: auto;
    min-height: 100%;
    clip-path: none;
    border-bottom-right-radius: clamp(4rem, 8vw, 8.75rem);
    z-index: 1;
    overflow: hidden;
}

.hero-image-panel img,
.hero-image-panel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0, 49%) minmax(25rem, 51%);
    align-items: stretch;
    width: 100%;

}

.hero-text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 0;
    padding: clamp(3.5rem, 6vw, 6.75rem) clamp(2.25rem, 5.2vw, 7rem);
    width: auto;
    z-index: 2;
}

.hero-text h1 {
    max-width: 16.5ch;
    margin-bottom: clamp(1.5rem, 1.6vw, 2.15rem);
    font-size: var(--type-display);
    line-height: 1.03;
}

.hero-text h1 strong{
    display: inline;
    color: var(--blue-dark);
    font: inherit;
}

.hero-text p {
    font-family: var(--font-h);
    margin-bottom: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
    font-size: var(--type-h3);
    line-height: 1.35;
    font-weight: var(--weight-body-bold);
    color: #303640;
}

.hero-text .btn {
    align-self: center;
}

.hero-image-panel img,
.hero-image-panel video {
    transition: transform 1200ms cubic-bezier(0.19, 1, 0.22, 1);
}

html.reveal-ready .hero-image-panel[data-reveal]:not(.is-revealed) img {
    transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
    .hero-image-panel img {
        transform: none;
        transition: none;
    }
}

.about-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: auto;
    height: auto;  
    align-items: center;
    gap: clamp(2rem, 3.4vw, 4.5rem);
    padding: var(--section-y) clamp(2rem, 5vw, 6rem) var(--section-y-tight);
}

.about-section {
    scroll-margin-top: clamp(6rem, 8vw, 8.5rem);
}

.about-visual-left {
    position:relative;
    height: auto;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.about-sacks-img {
    width: min(100%, 700px);
    aspect-ratio: 1.12;
    object-fit: cover;
    object-position: center;
    border-radius: clamp(1.75rem, 4vw, 4rem);
    box-shadow: 0 16px 32px rgba(6, 29, 46, 0.16);
}

.about-text-box {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;    
}


.about-text-box h2 {
    margin-bottom: var(--section-x);
}

.about-text-box h2 span {
    display: block;
    white-space: nowrap;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: var(--blue-dark);
}



.about-text-box p {
    color: #101923;
    max-width: 500px;
    margin-bottom: var(--layout-gap);

}

.about-link {
    margin-top: var(--section-x);
}

.rse-svg-band {
    display: block;
    width: 100%;
    height: auto;
    margin-top: calc(var(--section-y-tight) * -0.25);
}

.community-section {
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: var(--section-y-compact) 0 var(--section-y-tight);
} 

.community-inner  {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.community-text {
    flex: 1;
    max-width: 600px;
    text-align: center;
}


.community-text p + p {margin-top: 1.2em;}


.community-visual {
    flex: 1;
    width: 100%;
    /* padding-bottom: 0; */
    /* margin-top: clamp(1.5rem, 1rem + 2vw, 2.75rem); */

}

.community-rock-wrap {
    position: relative;
    width: 100%;

}

.community-rock-wrap img.rock-img {
    width: 100%;
    display: block;
    position: relative;
}

.hex-photo {
    position: absolute;
    background-size: cover;
    background-position: center;
    clip-path: shape(from 100% 47.52%,line to 77.14% 6.92%,line to 47.83% 0%,line to 19.48% 9.19%,line to 0% 51.46%,line to 22.86% 92.05%,line to 53.71% 100%,line to 80.52% 89.78%,line to 100% 47.52%,close);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hex-photo.is-changing {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
}
.hex-1 {
    width: 25%;
    height: 60%;
    top: 62%;
    left: 49.5%;
    background-image: url('/assets/img/Stock/galeria/galeria1.jpg');

}

.hex-2 {
    width: 20%;
    height: 60%;
    top: 82%;
    left: 13%;
    clip-path: shape(from 35.19% 0%,line to 0% 34.22%,line to 7.26% 78.74%,line to 52.89% 100%,line to 97.5% 71.21%,line to 100% 38.87%,line to 74.91% 6.2%,line to 35.19% 0%,close);
    background-image: url('/assets/img/Stock/galeria/galeria2.jpg');

}

.hex-3 {
    width: 25%;
    height: 60%;
    top: 25%;
    left: 85%;
    clip-path: shape(from 79.68% 0%,line to 26.55% 7.62%,line to 0% 41.69%,line to 26.55% 92.25%,line to 71.29% 100%,line to 100% 41.69%,line to 79.68% 0%,close);
    background-image: url('/assets/img/Stock/galeria/galeria3.jpg');

}


.location-section {
    display: grid;
    gap: 20px;
    background: #ffffff;
    padding: 0 0 var(--section-y-tight);
}

.location-band {
    position: relative;
    min-height: clamp(230px, 26vw, 370px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    color: inherit;
    text-decoration: none;
    background-position: center;
    background-size: cover;
}

.location-band-office {
    justify-content: flex-start;
    background-image: url('/assets/img/Stock/ubicacion/oficina.jpg');
    background-position: 10% 65%;
}

.location-band-plant {
    justify-content: flex-end;
    background-image: url('/assets/img/Stock/ubicacion/planta.jpg');
    background-position: 50% 56%;
}

.location-band-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    transition: opacity 220ms ease;
}

.location-band-office .location-band-overlay {
    background: linear-gradient(90deg, rgba(0, 86, 132, 0.82) 0%, rgba(0, 86, 132, 0.42) 34%, rgba(255, 255, 255, 0.18) 78%);
}

.location-band-plant .location-band-overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(10, 166, 114, 0.42) 48%, rgba(12, 166, 114, 0.82) 100%);
}

.location-card {
    position: relative;
    width: min(760px, 45vw);
    min-height: 126px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 10px solid var(--blue);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
    transition: transform 220ms ease, box-shadow 220ms ease;
    padding: 28px 92px 28px 46px;
}

.location-card-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
    color: #141414;
}

.location-card h3 {
    font-size: var(--type-h4);
    font-weight: var(--weight-body-bold);
    color: var(--blue);
    margin-bottom: 6px;
    text-align: left;
}

.location-card strong {
    color: #070707;
    font-family: var(--font-b);
    font-size: var(--type-body-sm);
    font-weight: var(--weight-heading);
    margin-bottom: 4px;
}

.location-card p {
    max-width: 430px;
    color: #222222;
    font-size: var(--type-caption);
    line-height: 1.45;
}

.location-band:hover .location-card {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.22);
}

.location-band:hover .location-band-overlay {
    opacity: 0.92;
}

@media (max-width: 950px) {
    .hero-section {
        min-height: auto;
        padding-bottom: var(--section-y-compact);
    }


    .hero-image-panel {
        position: relative;
        width: 100%;
        min-height: 0;
        height: clamp(14.5rem, 38vw, 20rem);
        clip-path: shape(from 0 0,vline to calc(100% - 25px),curve to 30% calc(100% - 33px) with 20% calc(100% - 42px),curve to 50% calc(100% - 14px) with 40% calc(100% - 24px),curve to 70% calc(100% - 5px) with 60% calc(100% - 4px),curve to 100% calc(100% - 25px) with 80% calc(100% - 6px),vline to 0, hline to 0);
    }

    .hero-content {display: block;}

    .hero-text {
        width: 100%;
        margin-left: 0;
        padding: var(--panel-padding) var(--section-x) 0;
        text-align: center;
    }

    .hero-text p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text h1,
    .hero-text .btn {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text .btn {
        align-self: center;
    }

    .about-inner {
        grid-template-columns: none;
        justify-content: center;
        min-height: 0;  
        margin-bottom: 0;
        padding: var(--section-y-compact) var(--section-x) var(--section-y-tight);
    }

    .about-visual-left {
        order: 1;
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
        justify-content: center;
    }

    .about-text-box {
        order: 2;
        max-width: 620px;
        margin: 0 auto;
        align-items: center;
        text-align: center;
    }

    .about-sacks-img {
        width: min(100%, 500px);
        border-radius: clamp(1.75rem, 8vw, 4rem);
    }

    
    .rse-svg-band {
        display: none;
    }
    .community-section {overflow: hidden;}
    .community-visual {width: min(150%, 58rem);}

    .location-section {padding: 0;}

    .location-band {
        min-height: 260px;
    }

    .location-card {
        width: min(650px, 82vw);
    }

}

@media (min-width: 951px) and (max-width: 1150px) {
    .hero-text {
        padding-inline: clamp(2rem, 3vw, 3rem);
    }

    .hero-text h1 {
        max-width: 18ch;
        font-size: var(--type-h1);
    }
}

@media (max-width: 600px) {
    
    .community-visual {
        top: 78%;
        width: 180%;
        max-width: none;
    }

    .hero-image-panel {
        height: clamp(12rem, 56vw, 15rem);
    }

    .hero-text {
        padding: 1.35rem 1rem 0;
    }

    .hero-text h1 {
        max-width: 10.8em;
        font-size: clamp(2.45rem, 11vw, 3.25rem);
    }

    .hero-text p {
        margin-bottom: clamp(1.35rem, 4vw, 1.7rem);
    }

    .about-inner {
        gap: clamp(1.55rem, 5vw, 2.25rem);
        padding: var(--section-y-compact) var(--section-x) var(--section-y-tight);
    }

    .about-sacks-img {
        aspect-ratio: 1;
        border-radius: 2.25rem;
    }


    .community-text {
        padding: 0 22px;
    }

    .community-section .section-title {
        max-width: 12.5em;
    }

    .location-section {
        gap: 14px;
    }

    .location-band,
    .location-band-office,
    .location-band-plant {
        min-height: 285px;
        justify-content: center;
        padding: 24px 16px;
        background-position: 50% 54%;
    }

    .location-card{
        width: min(100%, 420px);
        margin: 0;
        padding: 24px 44px;
    }

    .location-card h3 {
        font-size: var(--type-h4);
    }

    .location-card p {
        font-size: var(--type-caption);
    }

}
