/* Home identity review, 19 November 2026. Shared palette lives in brand.css. */
body.water-home {
    --home-surface: #f2f4f6;
    --home-text: #2b2b2b;
    --home-radius: 5px;
    color: var(--home-text);
}

/* Keep the same hierarchy across sections, preserving white titles on photos. */
.water-home #block-1 h1,
.water-home .section-product-card h2,
.water-home #clientes h2,
.water-home #home-water-technologies h2,
.water-home .industrial-systems h2,
.water-home #home-proyects h2,
.water-home #block-11 h2 {
    color: var(--water-288);
    font-family: 'Gotham-Medium', Arial, sans-serif !important;
    font-weight: 500;
    line-height: 1.25;
}
.water-home #block-1 h1,
.water-home #block-1 #main_header {
    color: var(--water-288);
    font-family: 'Gotham-Medium', Arial, sans-serif;
    font-size: var(--water-h1) !important;
    line-height: 1.25;
}
.water-home #block-1 .home-plantas-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.water-home #block-1 .home-plantas-copy p { width: 100%; margin: 0 0 16px; }
.water-home .industrial-systems h2 { font-size: clamp(1.75rem, 2.2vw, 2rem); }
.water-home #block-3 h3,
.water-home .industrial-system h3 {
    color: var(--water-288);
    font-family: 'Gotham-Medium', Arial, sans-serif !important;
    text-transform: none;
    font-weight: 500;
    line-height: 1.3;
}
.water-home :is(#block-1, #block-3, #home-water-technologies) p,
.water-home .industrial-systems p,
.water-home .section-product-card p {
    color: var(--home-text);
    text-align: left !important;
    line-height: 1.6;
}

/* Home text actions and industrial facts share a style; carousel arrows retain their original appearance. */
body.water-home #pageContent :is(.btn:not(:where(.arrow-r, .arrow-l)), .btn-blue-primary, .btn-custom-one, .btn-custom-two, .btn-custom-three,
    .consulta_experto_btn, button[type="submit"], input[type="submit"], .industrial-system__facts > span) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    background: var(--water-button) !important;
    border: 1px solid var(--water-button) !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border-radius: var(--home-radius);
    font-family: 'Gotham-Medium', Arial, sans-serif !important;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    text-transform: none !important;
    text-align: center;
    white-space: normal;
    max-width: 100%;
    box-shadow: none;
    text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s;
}
body.water-home #mtop .consulta_experto_btn { white-space: nowrap; }
body.water-home .industrial-system__facts { gap: 6px; }
body.water-home #pageContent .industrial-system__facts > span {
    gap: .35em !important;
    min-height: 32px;
    padding: 6px 8px !important;
    font-size: .875rem;
    white-space: nowrap;
}
body.water-home .industrial-system__facts > span strong { color: inherit; font-weight: inherit; }
body.water-home #pageContent :is(.btn:not(:where(.arrow-r, .arrow-l)), .btn-blue-primary, .btn-custom-one, .btn-custom-two, .btn-custom-three,
    .consulta_experto_btn, button[type="submit"], input[type="submit"], .industrial-system__facts > span):is(:hover, :focus-visible, :active) {
    background: #53abe4 !important;
    border-color: #53abe4 !important;
    color: #fff !important;
    transform: none;
    text-decoration: none;
}
body.water-home #mtop.bg-color-moved .consulta_experto_btn {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--water-288) !important;
}
body.water-home #mtop.bg-color-moved { background: var(--water-288) !important; }
body.water-home #mtop.bg-color-moved .consulta_experto_btn img {
    /* The source icon is white. Match its contrasting state to the label. */
    filter: brightness(0) saturate(100%) invert(14%) sepia(52%) saturate(2696%) hue-rotate(200deg) brightness(90%) contrast(110%);
}
body.water-home #mtop .consulta_experto_btn:is(:hover, :focus-visible, :active) {
    background: #53abe4 !important;
    border-color: #53abe4 !important;
    color: #fff !important;
    transform: none;
}
body.water-home #mtop .consulta_experto_btn:is(:hover, :focus-visible, :active) img {
    filter: none;
}

/* A CSS indicator uses exactly the same surface as the active product panel. */
.water-home #block-3 { background: #fff; }
.water-home .home-category-indicator {
    display: block;
    width: 84px;
    height: 54px;
    margin: 0 auto;
    background: #fff;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* Separate projects from engineering without introducing a new brand color. */
.water-home #home-proyects { background: var(--home-surface); }
.water-home .industrial-systems::before { display: none; }
.water-home .industrial-system {
    border-radius: 8px;
    box-shadow: none;
    background: #fff;
}
.water-home .industrial-systems .industrial-system__label,
.water-home .industrial-systems__eyebrow {
    color: var(--water-301);
    font-size: .875rem;
}
.water-home .industrial-system__image-wrap {
    min-height: 0;
    padding: 24px;
    border-radius: 8px;
    background: var(--home-surface);
}
.water-home .industrial-system__image-wrap::before { display: none; }
.water-home .industrial-system:hover .industrial-system__image-wrap img { transform: none; }


/* Equal columns must be allowed to shrink below a long technology name. */
.water-home #home-water-technologies .card-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.water-home #home-water-technologies .card-item { min-width: 0; width: 100%; padding: 0; }
.water-home #home-water-technologies .card-item a { display: block; height: 100%; text-decoration: none; }
.water-home #home-water-technologies .card-item .card-bg {
    height: 100%;
    padding: 20px 12px;
    border-radius: 8px;
}
.water-home #home-water-technologies .card-bg :is(h3, h5) {
    color: var(--water-288);
    font-family: 'Gotham-Medium', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    text-transform: none;
    margin: 8px 0 0;
}
@media (max-width: 767.98px) {
    .water-home .industrial-system {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding: 24px 20px;
    }
    .water-home .industrial-system--ultra .industrial-system__content,
    .water-home .industrial-system--ultra .industrial-system__visual { order: initial; }
    .water-home .industrial-system h3 { font-size: 1.5rem; }
    .water-home .industrial-systems { padding: 56px 0; }
    .water-home .home-category-indicator { width: 54px; height: 35px; }
    .water-home #home-water-technologies .card-row { margin-top: 24px; gap: 12px; }
    .water-home #home-water-technologies .card-item .card-bg { padding: 16px 8px; }
    .water-home #home-water-technologies .card-bg :is(h3, h5) { font-size: .875rem; }
}
