/* Shared public typography. Color tokens inherit from the nearest surface,
   so a light card inside a dark section can restore its own readable colors. */
@font-face {
    font-family: 'Gotham-Light';
    src: url('/home/assets/fonts/gotham-light-eb5f2c355702.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gotham-Medium';
    src: url('/home/assets/fonts/gotham-medium-e8183507b37f.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
:root {
    --water-font-body: 'Gotham-Light', Arial, sans-serif;
    --water-font-heading: 'Gotham-Medium', Arial, sans-serif;
    --water-text-color: #2b2b2b;
    --water-heading-color: var(--water-288);
    --water-link-color: var(--water-301);
    --water-body-size: 1rem;
    --water-copy-align: start;
    --water-h1: clamp(1.75rem, 3vw, 2.75rem);
    --water-h2: clamp(1.5rem, 2.2vw, 2rem);
    --water-h3: clamp(1.25rem, 1.7vw, 1.5rem);
    --water-h4: 1.25rem;
    --water-h5: 1.125rem;
    --water-h6: 1rem;
}
body {
    color: var(--water-text-color);
    font-family: var(--water-font-body);
    font-size: var(--water-body-size);
    font-weight: 300;
    line-height: 1.65;
}

:is(body, #pageContent, #mainWrapper, footer, .modal, .sheet-modal) :is(h1, h2, h3, h4, h5, h6) {
    color: var(--water-heading-color) !important;
    font-family: var(--water-font-heading) !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    overflow-wrap: anywhere;
    margin-bottom: 1rem;
}
:is(body, #pageContent, #mainWrapper, footer, .modal, .sheet-modal) h1 { font-size: var(--water-h1) !important; }
:is(body, #pageContent, #mainWrapper, footer, .modal, .sheet-modal) h2 { font-size: var(--water-h2) !important; }
:is(body, #pageContent, #mainWrapper, footer, .modal, .sheet-modal) h3 { font-size: var(--water-h3) !important; }
:is(body, #pageContent, #mainWrapper, footer, .modal, .sheet-modal) h4 { font-size: var(--water-h4) !important; }
:is(body, #pageContent, #mainWrapper, footer, .modal, .sheet-modal) h5 { font-size: var(--water-h5) !important; }
:is(body, #pageContent, #mainWrapper, footer, .modal, .sheet-modal) h6 { font-size: var(--water-h6) !important; }

:is(body, #pageContent, #mainWrapper, footer, .modal, .sheet-modal) p,
:is(body, #pageContent, #mainWrapper, footer, .modal, .sheet-modal) li:not(:where(nav li, header li, .pagination li, .slick-dots li, .breadcrumb-membranas li)),
:is(body, #pageContent, #mainWrapper, footer, .modal, .sheet-modal) :is(td, dd, blockquote, .water-rich-text) {
    color: var(--water-text-color) !important;
    font-family: var(--water-font-body) !important;
    font-size: var(--water-body-size) !important;
    line-height: 1.65 !important;
    letter-spacing: normal;
}
:is(body, #pageContent, #mainWrapper, footer, .modal, .sheet-modal) p {
    text-align: var(--water-copy-align) !important;
    margin-bottom: 1rem;
}
:is(body, #pageContent, #mainWrapper, footer, .modal, .sheet-modal) :is(h1, h2, h3, h4, h5, h6) :is(a, span, strong, b),
:is(body, #pageContent, #mainWrapper, footer, .modal, .sheet-modal) :is(p, li, td) :is(strong, b) {
    color: inherit !important;
}
:is(body, #pageContent, #mainWrapper, footer, .modal, .sheet-modal) p a:not(:where(.btn, [class*="cta"], [class*="btn-"])) {
    color: var(--water-link-color) !important;
    text-decoration: underline;
    text-underline-offset: .15em;
}

/* Editor-authored font/color spans must follow the enclosing paragraph or
   heading; preserve emphasis, links, tables, images and the stored content. */
:is(body, #pageContent, #mainWrapper) .water-rich-text :is(span, font):not(:where(.fa, .fas, .far, .fab)),
:is(body, #pageContent, #mainWrapper, footer) p span:not(:where(.fa, .fas, .far, .fab, .badge, .text-danger, .text-warning, .text-success)) {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}
:is(body, #pageContent, #mainWrapper) :is(.desc, .description_post, .filter-description, .content_blog, .bloque-info) {
    color: var(--water-text-color) !important;
    font-family: var(--water-font-body) !important;
    font-size: var(--water-body-size) !important;
    line-height: 1.65 !important;
}
:is(body, #pageContent, #mainWrapper) :is(.blog .title, .blog .title_post, .bloque-info > div:first-child) {
    color: var(--water-heading-color) !important;
    font-family: var(--water-font-heading) !important;
    font-size: var(--water-h3) !important;
    line-height: 1.3 !important;
}

/* Text over photos and dark brand surfaces. These scopes were checked against
   the public templates, including the store, landings and seminar signup. */
:is(#top, #main-footer, footer, .call-to-action, .blog_banner,
    .home-proyect-card-content, .page-envase-tape, .style-box-container .cont,
    .style-box-container2 .cont, .style-box-container3,
    .bg-deep-blue, .bg-light-blue, .bg-descount, .blue_cinta,
    .inscribete-wrap, .seminario-hero .hero-overlay, .seminarios-divider .divider-overlay,
    .osmosis-hero, .osmosis-quote-section,
    .quote-box, .purificador-bg, .top_banner, .top_banner_purificador, .top_banner_filtro_agua,
    .slider-contact, .slide01, .slide02, .slide03, .slide04, .slide05, .slide06,
    .hover_image_title .text, .overlay > .text, .card-title, .preguntas-frecuentes-solid .mtk-card-title,
    #block-2 .block-imgs, #block-5 .pie, #block-8, #block-10,
    #plantas-water .backg, #plantas-nuevos, #plantas-tabs .title-tab,
    #plantas-block-3, #proyectos-block-2, #nosotros-block-4,
    #nosotros-block-8 .btn-valores, #nosotros-block-8 .b-left .line-2, #nosotros-block-8 .b-right .line-2,
    #nosotros-block-10 .title, #nosotros-block-11,
    #proyectos-industrial .line-5 .block a, #proyectos-residencial .line-5 .block a,
    #proyectos-block-4 .line-2 .block .link,
    #banner .block-left, #banner .block-right, #calltoaction,
    #modal .modal-header, #modal .modal-body, #modal .modal-footer, #exampleModal .modal-header,
    .home-banner-exp-1__left, .home-banner-exp-2__overlay, .home-banner-exp-4,
    .blog .categoria, #mensaje-recibido .banner) {
    --water-text-color: #fff;
    --water-heading-color: #fff;
    --water-link-color: #fff;
}

:is(.text-center, .home-proyect-card-content, .quote-box, .industrial-systems__intro,
    .home-banner-exp-2__overlay, .home-banner-exp-4) { --water-copy-align: center; }
.text-right { --water-copy-align: end; }
.text-left { --water-copy-align: start; }

/* Legacy templates use paragraphs as page titles. Keep their visual hierarchy. */
:is(body, #pageContent, #mainWrapper) :is(.czc_title, #mensaje-recibido .title) {
    color: var(--water-heading-color) !important;
    font-family: var(--water-font-heading) !important;
    font-size: var(--water-h1) !important;
    line-height: 1.3 !important;
}
:is(body, #pageContent, #mainWrapper) :is(.czc_subtitle, #mensaje-recibido .subtitle) {
    color: var(--water-heading-color) !important;
    font-family: var(--water-font-heading) !important;
    font-size: var(--water-h2) !important;
    line-height: 1.3 !important;
}
:is(body, #pageContent, #mainWrapper) :is(.card-title, .mtk-card-body) {
    font-family: var(--water-font-body) !important;
    font-size: var(--water-body-size) !important;
    line-height: 1.65 !important;
    color: var(--water-text-color) !important;
}
:is(body, #pageContent, #mainWrapper) .card-title {
    font-family: var(--water-font-heading) !important;
    font-size: var(--water-h5) !important;
    line-height: 1.3 !important;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
}
:is(body, #pageContent, #mainWrapper) .hover_image_title .text {
    font-family: var(--water-font-heading) !important;
    font-size: 1rem !important;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
:is(body, #pageContent, #mainWrapper) .product-hover > .row { margin-left: 0; margin-right: 0; }
:is(body, #pageContent, #mainWrapper) label {
    color: var(--water-text-color);
    font-family: var(--water-font-body) !important;
    font-size: 1rem;
    line-height: 1.5;
}
/* Validation feedback keeps its functional meaning. */
:is(body, #pageContent, #mainWrapper) :is(p.text-danger, #technical-sheet-feedback[data-error="true"]) { color: #a82020 !important; }
:is(body, #pageContent, #mainWrapper) p.text-success { color: #176b3a !important; }
:is(body, #pageContent, #mainWrapper) :is(input, select, textarea):not(:where(
    [type="hidden"], [type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="reset"])) {
    color: #2b2b2b;
    font-family: var(--water-font-body) !important;
    font-size: 1rem !important;
    line-height: 1.5;
    min-height: 44px;
}

/* Nested light surfaces restore body text and heading colors locally. */
:is(.form-card, .mini-benefits li, .modal-content, #technical-sheet-dialog, .osmosis-quote-panel,
    .inscribete-wrap .card, #page-products .widget-product,
    .card-square:hover .card-title, .home-banner-exp-1__card) {
    --water-text-color: #2b2b2b;
    --water-heading-color: var(--water-288);
    --water-link-color: var(--water-301);
}

/* Compact component titles retain the same family and colors. */
#home-water-technologies .card-bg { --water-h3: 1rem; }
.faq-question { --water-h2: 1.25rem; }
.industrial-system__label { --water-body-size: .875rem; }
:is(body, #pageContent, #mainWrapper) .industrial-system__label { color: var(--water-301) !important; }
:is(body, #pageContent, #mainWrapper) .faq-question .faq-toggle {
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
}
@media (max-width: 767.98px) {
    #home-water-technologies .card-bg { --water-h3: .875rem; }
    /* Rotated category labels must stay on one line before their transform. */
    body #block-2 .text h2 {
        width: max-content;
        white-space: nowrap;
        overflow-wrap: normal;
        margin: 0;
    }
}
