/*
 * Actualización de la página principal de Patagonia Azul.
 * Todo está limitado a .plant-home para no modificar el catálogo ni el panel.
 */

.plant-home {
    --plant-deep: #03283f;
    --plant-navy: #063956;
    --plant-ocean: #0876a8;
    --plant-coral: #f05a3b;
    --plant-ice: #eef8fb;
    --plant-line: #d8e7ed;
    --plant-white: #fff;
    overflow: clip;
}

.plant-home__hero {
    min-height: clamp(590px, calc(100svh - var(--header-height, 88px)), 740px);
    color: var(--plant-white);
    background-color: var(--plant-deep);
    background-image:
        linear-gradient(
            90deg,
            rgba(3, 40, 63, 0.97) 0%,
            rgba(3, 40, 63, 0.9) 34%,
            rgba(3, 40, 63, 0.58) 57%,
            rgba(3, 40, 63, 0.12) 100%
        ),
        url("../images/plant/processing-frozen-blocks.jpeg");
    background-position: center 51%;
    background-size: cover;
}

.plant-home__hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 75% 34%, rgba(90, 211, 235, 0.2), transparent 25%),
        linear-gradient(180deg, transparent 62%, rgba(3, 40, 63, 0.44));
}

.plant-home__hero::after {
    height: 22%;
    background: linear-gradient(180deg, transparent, rgba(3, 40, 63, 0.26));
}

.plant-home__hero .hero__content {
    width: min(calc(100% - 40px), 1180px);
    padding-block: clamp(68px, 8vw, 104px);
}

.plant-home__hero .hero__content > * {
    max-width: 760px;
}

.plant-home__hero .eyebrow {
    color: #ff9279;
}

.plant-home__hero h1 {
    max-width: 820px;
    margin-bottom: 24px;
    color: var(--plant-white);
    font-size: clamp(3rem, 5.7vw, 5.65rem);
    line-height: 0.99;
    text-wrap: balance;
}

.plant-home__hero .hero__lead {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.65;
}

.plant-home__hero .button--ghost {
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.08);
    color: var(--plant-white);
    backdrop-filter: blur(6px);
}

.plant-home__hero .button--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.plant-home__hero .hero__qualities li {
    color: rgba(255, 255, 255, 0.9);
}

.plant-home__hero .hero__qualities li::before {
    border-color: var(--plant-deep);
    background: #71d1e5;
    box-shadow: 0 0 0 1px #71d1e5, 0 0 18px rgba(113, 209, 229, 0.58);
}

.plant-home .feature-strip {
    position: relative;
    z-index: 2;
    background: linear-gradient(112deg, #03283f, #075c7e);
}

.plant-profile {
    background:
        radial-gradient(circle at 5% 10%, rgba(8, 118, 168, 0.06), transparent 25%),
        var(--plant-white);
}

.plant-profile__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
    gap: clamp(54px, 8vw, 110px);
    align-items: center;
}

.plant-profile__content > p:not(.eyebrow) {
    color: var(--muted, #5b6d78);
    font-size: 1rem;
    line-height: 1.75;
}

.plant-profile__content > p + p {
    margin-top: 16px;
}

.plant-profile__capabilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 16px;
    padding: 24px 0 0;
    margin: 26px 0 0;
    border-top: 1px solid var(--plant-line);
    list-style: none;
}

.plant-profile__capabilities li {
    position: relative;
    padding-left: 24px;
    color: var(--plant-navy);
    font-size: 0.83rem;
    font-weight: 800;
    line-height: 1.45;
}

.plant-profile__capabilities li::before {
    position: absolute;
    top: 0.48em;
    left: 2px;
    width: 10px;
    height: 6px;
    content: "";
    border-bottom: 2px solid var(--plant-coral);
    border-left: 2px solid var(--plant-coral);
    transform: rotate(-45deg);
}

.plant-profile__media {
    position: relative;
    min-height: 590px;
}

.plant-profile__figure {
    position: absolute;
    overflow: hidden;
    margin: 0;
    border: 8px solid var(--plant-white);
    border-radius: 20px;
    background: var(--plant-ice);
    box-shadow: 0 28px 65px rgba(3, 40, 63, 0.16);
}

.plant-profile__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}

.plant-profile__figure:hover img {
    transform: scale(1.025);
}

.plant-profile__figure figcaption,
.plant-gallery__item figcaption {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: fit-content;
    max-width: calc(100% - 28px);
    padding: 8px 11px;
    border-radius: 7px;
    background: rgba(3, 40, 63, 0.88);
    color: var(--plant-white);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.35;
    backdrop-filter: blur(7px);
}

.plant-profile__figure--main {
    top: 0;
    left: 0;
    width: 83%;
    height: 480px;
}

.plant-profile__figure--main img {
    object-position: center 48%;
}

.plant-profile__figure--detail {
    right: 0;
    bottom: 0;
    width: 43%;
    height: 330px;
}

.plant-profile__figure--detail img {
    object-position: center 48%;
}

.plant-process {
    position: relative;
    background:
        linear-gradient(180deg, rgba(232, 246, 251, 0.7), rgba(247, 251, 252, 0.96)),
        var(--plant-ice);
}

.plant-process .section-heading {
    max-width: 860px;
}

.plant-process__steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0 0 36px;
    list-style: none;
    counter-reset: plant-stage;
}

.plant-process__steps li {
    position: relative;
    min-height: 225px;
    overflow: hidden;
    padding: 24px 21px;
    border: 1px solid var(--plant-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(3, 40, 63, 0.055);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.plant-process__steps li:hover {
    border-color: rgba(8, 118, 168, 0.34);
    box-shadow: 0 18px 40px rgba(3, 40, 63, 0.11);
    transform: translateY(-4px);
}

.plant-process__steps li::after {
    position: absolute;
    right: -22px;
    bottom: -36px;
    width: 110px;
    height: 110px;
    content: "";
    border: 18px solid rgba(8, 118, 168, 0.055);
    border-radius: 50%;
}

.plant-process__steps span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-bottom: 31px;
    border-radius: 50%;
    background: var(--plant-navy);
    color: var(--plant-white);
    font-size: 0.72rem;
    font-weight: 900;
}

.plant-process__steps h3 {
    margin-bottom: 8px;
    color: var(--plant-deep);
    font-size: 1rem;
    line-height: 1.25;
}

.plant-process__steps p {
    margin: 0;
    color: var(--muted, #5b6d78);
    font-size: 0.78rem;
    line-height: 1.55;
}

.plant-process__visual {
    position: relative;
    min-height: clamp(320px, 34vw, 470px);
    overflow: hidden;
    margin: 0;
    border-radius: 22px;
    background: var(--plant-deep);
    box-shadow: 0 25px 58px rgba(3, 40, 63, 0.16);
}

.plant-process__visual::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent 48%, rgba(3, 40, 63, 0.72));
}

.plant-process__visual img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center 45%;
}

.plant-process__visual figcaption {
    position: absolute;
    right: clamp(22px, 4vw, 48px);
    bottom: clamp(20px, 4vw, 42px);
    left: clamp(22px, 4vw, 48px);
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    color: var(--plant-white);
}

.plant-process__visual figcaption span {
    color: #8fdef0;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.plant-process__visual figcaption strong {
    font-size: clamp(1.25rem, 2vw, 1.9rem);
}

.plant-gallery {
    background: var(--plant-white);
}

.plant-gallery__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
    gap: clamp(38px, 7vw, 90px);
    align-items: end;
    margin-bottom: 42px;
}

.plant-gallery__heading .section-title {
    max-width: 760px;
    margin-bottom: 0;
}

.plant-gallery__heading > p {
    margin-bottom: 7px;
    color: var(--muted, #5b6d78);
    line-height: 1.7;
}

.plant-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.plant-gallery__item {
    position: relative;
    min-height: clamp(330px, 36vw, 480px);
    overflow: hidden;
    margin: 0;
    border-radius: 16px;
    background: var(--plant-ice);
}

.plant-gallery__item::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent 62%, rgba(3, 40, 63, 0.45));
}

.plant-gallery__item img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 650ms ease;
}

.plant-gallery__item:hover img {
    transform: scale(1.03);
}

.plant-gallery__item figcaption {
    z-index: 1;
}

.plant-gallery__item--trays img {
    object-position: center 45%;
}

.plant-gallery__item--frozen img {
    object-position: center 50%;
}

.plant-gallery__item--production img {
    object-position: center 48%;
}

.plant-gallery__item--boxed img {
    object-position: center 42%;
}

.plant-quality {
    background:
        radial-gradient(circle at 92% 8%, rgba(8, 118, 168, 0.08), transparent 26%),
        var(--plant-ice);
}

.plant-quality .quality-grid article {
    position: relative;
    overflow: hidden;
    box-shadow: 0 9px 27px rgba(3, 40, 63, 0.045);
}

.plant-quality .quality-grid article::after {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--plant-coral), var(--plant-ocean));
}

.plant-products {
    border-top: 1px solid var(--plant-line);
}

.plant-contact {
    background:
        linear-gradient(110deg, rgba(3, 40, 63, 0.98), rgba(5, 83, 115, 0.91)),
        url("../images/plant/processing-frozen-blocks.jpeg") center 55% / cover;
}

html[dir="rtl"] .plant-profile__content,
html[dir="rtl"] .plant-process,
html[dir="rtl"] .plant-gallery,
html[dir="rtl"] .plant-quality,
html[dir="rtl"] .plant-products {
    text-align: right;
}

html[dir="rtl"] .plant-profile__capabilities li {
    padding-right: 24px;
    padding-left: 0;
}

html[dir="rtl"] .plant-profile__capabilities li::before {
    right: 2px;
    left: auto;
    border-right: 2px solid var(--plant-coral);
    border-left: 0;
    transform: rotate(45deg);
}

html[dir="rtl"] .plant-process__steps li::after {
    right: auto;
    left: -22px;
}

@media (max-width: 1080px) {
    .plant-profile__grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
        gap: 50px;
    }

    .plant-profile__media {
        min-height: 530px;
    }

    .plant-profile__figure--main {
        height: 420px;
    }

    .plant-profile__figure--detail {
        height: 290px;
    }

    .plant-process__steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .plant-process__steps li:nth-child(4),
    .plant-process__steps li:nth-child(5) {
        min-height: 190px;
    }
}

@media (max-width: 820px) {
    .plant-home__hero {
        min-height: 700px;
        align-items: flex-start;
        background-image:
            linear-gradient(
                180deg,
                rgba(3, 40, 63, 0.97) 0%,
                rgba(3, 40, 63, 0.9) 45%,
                rgba(3, 40, 63, 0.49) 76%,
                rgba(3, 40, 63, 0.2) 100%
            ),
            url("../images/plant/processing-frozen-blocks.jpeg");
        background-position: 57% center;
    }

    .plant-home__hero .hero__content {
        width: calc(100% - 32px);
        padding-top: 58px;
    }

    .plant-home__hero h1 {
        max-width: 680px;
        font-size: clamp(2.85rem, 10vw, 4.7rem);
    }

    .plant-home__hero .hero__lead {
        max-width: 610px;
    }

    .plant-profile__grid,
    .plant-gallery__heading {
        grid-template-columns: 1fr;
    }

    .plant-profile__grid {
        gap: 46px;
    }

    .plant-profile__media {
        min-height: 590px;
    }

    .plant-profile__figure--main {
        width: 82%;
        height: 470px;
    }

    .plant-profile__figure--detail {
        width: 42%;
        height: 320px;
    }

    .plant-process__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plant-process__steps li {
        min-height: 195px;
    }

    .plant-process__steps li:last-child {
        grid-column: 1 / -1;
    }

    .plant-gallery__heading {
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .plant-home__hero {
        min-height: 720px;
    }

    .plant-home__hero .hero__content {
        padding-block: 46px;
    }

    .plant-home__hero h1 {
        font-size: clamp(2.55rem, 12vw, 3.75rem);
        line-height: 1.03;
    }

    .plant-home__hero .hero__actions,
    .plant-home__hero .hero__actions .button {
        width: 100%;
    }

    .plant-profile__capabilities,
    .plant-process__steps,
    .plant-gallery__grid {
        grid-template-columns: 1fr;
    }

    .plant-profile__media {
        display: grid;
        min-height: auto;
        gap: 13px;
    }

    .plant-profile__figure {
        position: relative;
        inset: auto;
        width: 100%;
        border-width: 5px;
    }

    .plant-profile__figure--main {
        height: 360px;
    }

    .plant-profile__figure--detail {
        height: 330px;
    }

    .plant-process__steps li,
    .plant-process__steps li:nth-child(4),
    .plant-process__steps li:nth-child(5) {
        min-height: auto;
    }

    .plant-process__steps li:last-child {
        grid-column: auto;
    }

    .plant-process__steps span {
        margin-bottom: 22px;
    }

    .plant-process__visual {
        min-height: 330px;
    }

    .plant-process__visual figcaption {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .plant-gallery__item {
        min-height: 390px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plant-profile__figure img,
    .plant-gallery__item img,
    .plant-process__steps li {
        transition: none;
    }
}
