/* ========================================
   BASE COMPARTIDA
======================================== */

.uh-custom-unit {
    --custom-surface: #fff;
    --custom-soft: var(--color-page-background, #f5f6f8);
    --custom-muted: #59636f;
    --custom-line: rgba(37, 43, 51, 0.10);
    --custom-radius: 30px 8px 30px 8px;

    color: var(--color-text);
    background: var(--custom-surface);
}

.uh-custom__container {
    width: calc(100% - var(--header-side) - var(--header-side));
    max-width: var(--header-max-width);
    margin-inline: auto;
    padding-inline: 26px;
}

.uh-custom-section {
    padding-block: clamp(60px, 6vw, 88px);
    background: var(--custom-surface);
}

.uh-custom-section.uh-custom-section--closing {
    padding-top: 0;
}

.uh-custom__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-primary-dark);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.uh-custom__eyebrow::before {
    content: "";
    flex: 0 0 30px;
    height: 3px;
    border-radius: 2px;
    background: var(--color-primary);
}

.uh-custom__title {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.uh-custom__text {
    margin: 20px 0 0;
    color: var(--custom-muted);
    font-size: 16px;
    line-height: 1.8;
}

.uh-custom-unit a:focus-visible {
    outline: 3px solid var(--color-primary-dark);
    outline-offset: 5px;
}

/* ========================================
   INTRODUCCIÓN
======================================== */

.uh-custom-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: calc(
        var(--header-top) + var(--header-height) + 42px
    );
    padding-bottom: 60px;
}

.uh-custom-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("/img/fondo-sistema-hidraulico-cesehsa.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    pointer-events: none;
}

.uh-custom__breadcrumb {
    margin-bottom: 30px;
}

.uh-custom__breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--custom-muted);
    font-size: 13px;
    line-height: 1.6;
}

.uh-custom__breadcrumb li+li::before {
    content: "/";
    margin-right: 12px;
    color: #7d8792;
}

.uh-custom__breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.uh-custom__breadcrumb a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.uh-custom__breadcrumb [aria-current="page"] {
    color: var(--color-text);
}

.uh-custom-hero__content {
    max-width: 1160px;
}

.uh-custom-hero__title {
    margin: 0 0 24px;
    color: var(--color-text);
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.uh-custom-hero__title span {
    display: block;
}

.uh-custom-hero__description {
    max-width: 800px;
    margin: 0;
    color: var(--custom-muted);
    font-size: 17px;
    line-height: 1.85;
}

/* ========================================
   PRESENTACIÓN DE LA UNIDAD
======================================== */

.uh-custom-showcase__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 32px;
    margin-bottom: 28px;
}

.uh-custom-showcase__header>div {
    max-width: 760px;
}

/* Capacidad del depósito */
.uh-custom-capacity {
    margin: 0;
    padding-left: 28px;
    border-left: 1px solid var(--custom-line);
}

.uh-custom-capacity dt {
    margin-bottom: 8px;
    color: var(--custom-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
}

.uh-custom-capacity dd {
    margin: 0;
    color: var(--color-text);
    font-size: 44px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.uh-custom-capacity dd span {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
}

/* Imagen completa con transparencia */
.uh-custom-showcase__visual {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(280px, 44vw, 640px);
    margin: 0;
    padding-block: 28px;
}

.uh-custom-showcase__visual::before {
    content: "";
    position: absolute;
    inset: 8% 1% 4%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
            rgba(232, 237, 242, 0.85) 0%,
            rgba(245, 246, 248, 0.45) 48%,
            transparent 73%);
    pointer-events: none;
}

.uh-custom-showcase__image {
    display: block;
    width: 100%;
    max-width: 1180px;
    height: auto;
    max-height: 660px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 22px 18px rgba(25, 33, 45, 0.14));
}

/* ========================================
   FUNCIONES BREVES
======================================== */

.uh-custom-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 28px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid var(--custom-line);
    list-style: none;
}

.uh-custom-features li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.uh-custom-features li>div {
    min-width: 0;
}

.uh-custom-features__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px 5px 14px 5px;
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
    font-size: 19px;
}

.uh-custom-features h3 {
    margin: 0 0 7px;
    color: var(--color-text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.uh-custom-features p {
    margin: 0;
    color: var(--custom-muted);
    font-size: 14px;
    line-height: 1.75;
}

/* ========================================
   LLAMADO AL PROYECTO COMPLETO
======================================== */

.uh-custom-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--custom-line);
    border-radius: var(--custom-radius);
    background: var(--custom-soft);
}

.uh-custom-cta__content {
    min-width: 0;
    max-width: 760px;
}

.uh-custom__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    padding: 15px 24px;
    border: 1px solid transparent;
    border-radius: 22px 6px 22px 6px;
    color: white;
    background: var(--color-primary);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 200ms ease,
        transform 200ms ease;
}

.uh-custom__button i {
    flex-shrink: 0;
}

@media (hover: hover) {
    .uh-custom__button:hover {
        color: white;
        background: var(--color-primary-hover);
        transform: translateY(-2px);
    }
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1199.98px) {
    .uh-custom-cta {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
        gap: 26px;
    }
}

@media (max-width: 991.98px) {
    .uh-custom-hero {
        padding-top: calc(var(--header-top) + var(--header-height) + 34px);
        padding-bottom: 48px;
    }

    .uh-custom-features {
        gap: 20px;
    }

    .uh-custom-features li {
        flex-direction: column;
        gap: 14px;
    }
}

@media (max-width: 767.98px) {
    .uh-custom-showcase__header {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .uh-custom-capacity {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 10px 18px;
        padding-left: 0;
        border-left: 0;
    }

    .uh-custom-capacity dt {
        margin: 0;
    }

    .uh-custom-capacity dd {
        font-size: 36px;
    }

    .uh-custom-features {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .uh-custom-features li {
        flex-direction: row;
        gap: 16px;
    }
}

@media (max-width: 575.98px) {
    .uh-custom__container {
        padding-inline: 14px;
    }

    .uh-custom-section {
        padding-block: 52px;
    }

    .uh-custom__breadcrumb ol {
        gap: 6px 8px;
        font-size: 12px;
    }

    .uh-custom__breadcrumb li+li::before {
        margin-right: 8px;
    }

    .uh-custom-hero__description {
        font-size: 16px;
        line-height: 1.8;
    }

    .uh-custom-showcase__header {
        margin-bottom: 16px;
    }

    .uh-custom-showcase__visual {
        min-height: 0;
        padding-block: 20px;
    }

    .uh-custom-showcase__image {
        max-height: 380px;
        filter: drop-shadow(0 14px 12px rgba(25, 33, 45, 0.12));
    }

    .uh-custom-features {
        margin-top: 22px;
        padding-top: 24px;
    }

    .uh-custom-cta {
        padding: 26px;
        justify-items: stretch;
    }

    .uh-custom-cta>.uh-custom__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uh-custom__button {
        transition: none;
    }

    .uh-custom__button:hover {
        transform: none;
    }
}