/* ==================================================
   KORIVA WATER TECH
   DESIGN SYSTEM
================================================== */

:root {

    --ink: #041217;
    --ink-soft: #071c23;
    --ink-card: #0b2831;

    --aqua: #38d6e6;
    --aqua-deep: #129aae;
    --aqua-soft: #b8f4f8;

    --white: #ffffff;

    --paper: #f3f7f7;
    --paper-dark: #e7eeee;

    --text: #07171d;
    --muted: #65777d;

    --border-light:
        rgba(255, 255, 255, 0.10);

    --border-dark:
        rgba(7, 23, 29, 0.12);

    --radius-small: 12px;
    --radius-medium: 22px;
    --radius-large: 34px;

    --container:
        min(1400px, calc(100% - 80px));

}


/* ==================================================
   RESET
================================================== */

*,
*::before,
*::after {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}


html {

    scroll-behavior: smooth;

}


body {

    min-height: 100vh;

    background: var(--ink);

    color: var(--white);

    font-family:
        "Manrope",
        sans-serif;

    line-height: 1.5;

    overflow-x: hidden;

}


body.menu-open,
body.modal-open {

    overflow: hidden;

}


img {

    display: block;

    max-width: 100%;

}


a {

    color: inherit;

    text-decoration: none;

}


button,
input,
select,
textarea {

    font: inherit;

}


button {

    cursor: pointer;

}


::selection {

    background: var(--aqua);

    color: var(--ink);

}


.visually-hidden {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip-path: inset(50%);

    white-space: nowrap;

}


.skip-link {

    position: absolute;

    top: 10px;

    left: 10px;

    z-index: 2000;

    padding: 12px 20px;

    border-radius: 100px;

    background: var(--aqua);

    color: var(--ink);

    font-size: 0.85rem;

    font-weight: 700;

    transform: translateY(-160%);

    transition: transform 0.25s ease;

}


.skip-link:focus {

    transform: translateY(0);

}


/* ==================================================
   TYPOGRAPHY
================================================== */

h1,
h2,
h3,
.logo,
.footer-logo {

    font-family:
        "Space Grotesk",
        sans-serif;

}



.section-title {

    font-size:
        clamp(3rem, 5vw, 5.5rem);

    line-height: 0.95;

    letter-spacing: -0.05em;

}


.section-title span {

    color: var(--aqua-deep);

}


/* ==================================================
   GENERAL SECTIONS
================================================== */

.section-light {

    padding:
        130px
        max(40px, calc((100vw - 1400px) / 2));

    background: var(--paper);

    color: var(--text);

}


.section-dark {

    padding:
        130px
        max(40px, calc((100vw - 1400px) / 2));

    background: var(--ink);

}



.section-header {

    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(300px, 0.65fr);

    gap: 80px;

    align-items: end;

    margin-bottom: 70px;

}


.section-intro {

    color: var(--muted);

    font-size: 1rem;

    line-height: 1.8;

}


/* ==================================================
   REVEAL
================================================== */

.reveal {

    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 0.85s ease,
        transform 0.85s ease;

}


.reveal.visible {

    opacity: 1;

    transform: translateY(0);

}


/* ==================================================
   BUTTONS
================================================== */

.button {

    min-height: 52px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    padding:
        0
        25px;

    border-radius: 100px;

    font-size: 0.83rem;

    font-weight: 700;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;

}


.button:hover {

    transform:
        translateY(-3px);

}


.button-primary {

    border:
        1px solid
        var(--aqua);

    background: var(--aqua);

    color: var(--ink);

}


.button-primary:hover {

    background: var(--aqua-soft);

}


.button-light {

    background: white;

    color: var(--ink);

}


.button-ghost {

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    color: var(--white);

}


.button-ghost:hover {

    border-color: var(--aqua);

    background:
        rgba(56, 214, 230, 0.08);

}


.button:focus-visible,
.technology-link:focus-visible,
.project-button:focus-visible,
.faq-question:focus-visible,
.back-to-top:focus-visible,
.nav-button:focus-visible,
.text-link:focus-visible,
.modal-close:focus-visible,
.technology-modal-close:focus-visible {

    outline: 2px solid var(--aqua);

    outline-offset: 3px;

}


/* ==================================================
   MERCADOS / APLICACIONES

   Carrusel horizontal con scroll nativo (funciona
   con touch/trackpad sin JS); las flechas solo
   desplazan una tarjeta con scrollBy().
================================================== */

.markets-carousel {
    position: relative;

    display: flex;
    align-items: center;
    gap: 18px;

    margin-top: 20px;
}


.markets-track {
    display: flex;
    gap: 22px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    padding: 4px 4px 14px;

    scrollbar-width: none;
}


.markets-track::-webkit-scrollbar {
    display: none;
}


.markets-card {
    flex: 0 0 auto;
    width: min(340px, 78vw);

    scroll-snap-align: start;

    overflow: hidden;
    border-radius: var(--radius-medium);
    background: var(--ink-card);
}


.markets-card-image {
    height: 190px;

    background-size: cover;
    background-position: center;
}


.markets-card-body {
    padding: 26px 24px 30px;
}


.markets-card-body span {
    color: var(--aqua);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}


.markets-card-body h3 {
    margin: 12px 0 10px;

    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}


.markets-card-body p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    line-height: 1.65;
}


.markets-arrow {
    flex: 0 0 auto;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-size: 1.1rem;

    cursor: pointer;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.2s ease;
}


.markets-arrow:hover {
    border-color: var(--aqua);
    background: rgba(56, 214, 230, 0.08);
    transform: scale(1.05);
}


.markets-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}


.markets-arrow:disabled:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: transparent;
}


.markets-footnote {
    margin-top: 28px;

    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
}


.markets-footnote a {
    color: var(--aqua);
    font-weight: 600;
}


@media (max-width: 720px) {

    .markets-arrow {
        display: none;
    }

    .markets-card {
        width: 82vw;
    }

}


/* ==================================================
   CALCULADORA DE PRECIOS
================================================== */

.pricing-calculator {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 20px;
}


.pricing-options {
    display: flex;
    flex-direction: column;
    gap: 36px;
}


.pricing-group-label {
    display: block;
    margin-bottom: 16px;
    color: var(--aqua-deep);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}


.pricing-choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}


.pricing-choice {
    position: relative;

    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-small);
    background: #ffffff;
    cursor: pointer;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}


.pricing-choice-diagram {
    display: block;
    align-self: flex-start;
    height: 26px;
    width: auto;
    margin-bottom: 10px;

    color:
        rgba(7, 23, 29, 0.28);

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: color 0.25s ease;
}


.pricing-choice-diagram circle {
    fill: currentColor;
    stroke: none;
}


.pricing-choice-badge {
    position: absolute;
    top: 10px;
    right: 10px;

    display: none;
    align-items: center;

    padding: 3px 8px;
    border-radius: 100px;

    background: rgba(56, 214, 230, 0.14);
    color: var(--aqua-deep);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}


.pricing-choice strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}


.pricing-choice span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}


.pricing-choice:hover {
    border-color: rgba(56, 214, 230, 0.5);
    transform: translateY(-2px);
}


.pricing-group-hint {
    margin-top: 12px;

    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.6;
}


.pricing-choice.active {
    border-color: var(--aqua-deep);
    background: rgba(56, 214, 230, 0.08);
}


.pricing-choice.active strong {
    color: var(--aqua-deep);
}


.pricing-choice.active .pricing-choice-diagram {
    color: var(--aqua-deep);
}


/* Una etapa mayor incluye a las anteriores: "+ Carbón"
   ya trae el multimedia, "+ Suavizador" trae ambas.
   Este estado marca esas etapas como parte del paquete
   sin ser la que fija el precio (esa es .active). */

.pricing-choice.included:not(.active) {
    border-color: rgba(56, 214, 230, 0.35);
    background: rgba(56, 214, 230, 0.04);
}


.pricing-choice.included:not(.active) strong {
    color: var(--aqua-deep);
}


.pricing-choice.included:not(.active) .pricing-choice-diagram {
    color: rgba(18, 154, 174, 0.55);
}


.pricing-choice.included:not(.active) .pricing-choice-badge {
    display: inline-flex;
}


.pricing-choice.included:not(.active) .pricing-choice-diagram {
    margin-top: 24px;
}


.pricing-result {
    position: sticky;
    top: 110px;

    padding: 40px 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    border-radius: var(--radius-medium);
    background: var(--ink);
    color: #ffffff;
}


.pricing-result-label {
    color: var(--aqua);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}


.pricing-result-value {
    margin-top: 14px;

    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;

    transition: opacity 0.15s ease;
}


.pricing-result-value.updating {
    opacity: 0.35;
}


.pricing-result-note {
    margin: 18px 0 28px;

    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    line-height: 1.65;
}


.pricing-result .button {
    width: 100%;
}


.pricing-result .text-link {
    margin-top: 18px;
    color: var(--aqua);
}


@media (max-width: 900px) {

    .pricing-calculator {
        grid-template-columns: 1fr;
        gap: 34px;
    }


    .pricing-choices {
        grid-template-columns: 1fr;
    }


    .pricing-result {
        position: static;
    }

}


/* ==================================================
   PÁGINAS LEGALES
================================================== */

.legal-header {

    background:
        rgba(4, 18, 23, 0.94);

    backdrop-filter: blur(22px);

    border-bottom:
        1px solid
        var(--border-light);

}


.legal {

    padding:
        160px
        max(40px, calc((100vw - 1400px) / 2))
        120px;

}


.legal-inner {

    max-width: 820px;

}


.legal-kicker {

    margin-bottom: 18px;

    color: var(--aqua);

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.22em;

}


.legal-title {

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(2.6rem, 5.5vw, 4.4rem);

    line-height: 0.98;

    letter-spacing: -0.04em;

    font-weight: 600;

}


.legal-title span {

    display: block;

    color: var(--aqua);

}


.legal-updated {

    margin-top: 22px;

    padding-bottom: 34px;

    border-bottom:
        1px solid
        var(--border-light);

    color:
        rgba(255, 255, 255, 0.4);

    font-size: 0.82rem;

}


.legal-callout {

    margin-top: 34px;

    padding: 24px 26px;

    border:
        1px solid
        rgba(56, 214, 230, 0.3);

    border-left:
        3px solid
        var(--aqua);

    border-radius:
        var(--radius-small);

    background:
        rgba(56, 214, 230, 0.06);

}


.legal-callout strong {

    display: block;

    margin-bottom: 8px;

    color: var(--aqua);

    font-size: 0.78rem;

    font-weight: 700;

    letter-spacing: 0.14em;

    text-transform: uppercase;

}


.legal-callout p {

    color:
        rgba(255, 255, 255, 0.66);

    font-size: 0.92rem;

    line-height: 1.75;

}


.legal-callout em {

    color: var(--aqua-soft);

    font-style: normal;

    font-weight: 600;

}


.legal-section {

    margin-top: 52px;

}


.legal-section h2 {

    margin-bottom: 20px;

    font-size: 1.35rem;

    font-weight: 600;

    letter-spacing: -0.02em;

}


.legal-section h3 {

    margin:
        30px 0 12px;

    color: var(--aqua);

    font-size: 0.95rem;

    font-weight: 600;

}


.legal-section p {

    margin-bottom: 16px;

    color:
        rgba(255, 255, 255, 0.62);

    line-height: 1.85;

}


.legal-section ul {

    margin:
        0 0 18px;

    padding-left: 0;

    list-style: none;

}


.legal-section li {

    position: relative;

    margin-bottom: 12px;

    padding-left: 24px;

    color:
        rgba(255, 255, 255, 0.62);

    line-height: 1.8;

}


.legal-section li::before {

    content: "";

    position: absolute;

    top: 12px;

    left: 4px;

    width: 6px;

    height: 1px;

    background: var(--aqua);

}


.legal-section strong {

    color:
        rgba(255, 255, 255, 0.9);

    font-weight: 600;

}


.legal-section a {

    color: var(--aqua);

    border-bottom:
        1px solid
        rgba(56, 214, 230, 0.35);

    transition:
        border-color 0.25s ease;

}


.legal-section a:hover {

    border-bottom-color: var(--aqua);

}


.legal-section a:focus-visible,
.legal-back a:focus-visible {

    outline: 2px solid var(--aqua);

    outline-offset: 3px;

}


.legal-back {

    margin-top: 70px;

    padding-top: 34px;

    border-top:
        1px solid
        var(--border-light);

}


.legal-back .text-link {

    color: var(--aqua);

}


@media (max-width: 760px) {

    .legal {

        padding:
            130px 20px 80px;

    }


    .legal-section {

        margin-top: 42px;

    }

}


/* ==================================================
   SOLUTIONS
================================================== */

.solutions {

    padding-top: 30px;

}


/* En esta sección el fondo pasó a oscuro; el gris
   de .section-intro se calibró para fondo claro y
   perdería contraste aquí. */

.solutions.section-dark .section-intro {

    color: rgba(255, 255, 255, 0.5);

}


/* =========================================
   EXHIBICIÓN DE TECNOLOGÍAS (vista explosionada)

   .tech-pin fija el alto que se recorre con scroll;
   .tech-sticky queda fija en pantalla mientras dura.
   El progreso global se reparte en 3 tramos iguales,
   uno por tecnología; dentro de cada tramo, --explode
   sube de 0 a 1 y vuelve a 0 (armado → desarmado →
   armado) antes de pasar a la siguiente.
========================================= */

.tech-pin {
    position: relative;
    height: 300vh;
    margin-top: 10px;
}


.tech-sticky {
    position: sticky;
    top: 0;
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;
}


.tech-exhibit {
    position: relative;
    width: min(1300px, calc(100% - 80px));
    height: min(64vh, 600px);
    margin: 0 auto;
}


.tech-stage {
    position: absolute;
    inset: 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.5s ease;
}


.tech-stage.active {
    opacity: 1;
    pointer-events: auto;
}


.tech-diagram-wrap {
    display: flex;
    justify-content: center;
}


.tech-diagram {
    width: min(100%, 380px);
    height: auto;
    overflow: visible;
}


/* --- Dos fotos apiladas del mismo equipo (misma camara/
   geometria, ancladas por edicion): la "cerrada" siempre
   visible de fondo, la "abierta" se desvanece encima segun
   --explode (0 = armado, 1 = desarmado a la mitad del tramo
   de scroll de la etapa, 0 = vuelto a armar), fijado por JS
   en cada .tech-stage. --- */

.tech-photo-wrap {
    position: relative;
    width: min(100%, 380px);
    aspect-ratio: 13 / 16;
    margin: 0 auto;
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow:
        0 20px 45px
        rgba(3, 15, 20, 0.45);
}


.tech-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.tech-photo-shell {
    z-index: 1;
}


.tech-photo-open {
    z-index: 2;
    opacity: var(--explode, 0);
    transition: opacity 0.05s linear;
}


.tech-eyebrow {
    display: block;
    margin-bottom: 16px;

    color: var(--aqua);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}


.tech-info h3 {
    margin-bottom: 16px;

    font-size: clamp(2rem, 3.4vw, 3rem);
    letter-spacing: -0.03em;
}


.tech-info p {
    max-width: 420px;

    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}


.tech-info .technology-link {
    margin-top: 26px;
}


.tech-meter {
    width: 240px;
    height: 2px;
    margin: 34px auto 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}


.tech-meter-fill {
    width: 0;
    height: 100%;
    border-radius: 2px;
    background: var(--aqua);
}


/* Sin anclaje de scroll: las tres tecnologías se
   muestran ya abiertas, apiladas, sin animación. */

@media (max-width: 900px) {

    .tech-pin {
        height: auto;
    }

    .tech-sticky {
        position: static;
        height: auto;
        overflow: visible;
    }

    .tech-exhibit {
        height: auto;
    }

    .tech-stage {
        position: static;
        opacity: 1;
        pointer-events: auto;

        display: flex;
        flex-direction: column;
        gap: 30px;

        padding: 40px 0;
    }

    .tech-stage + .tech-stage {
        border-top: 1px solid var(--border-light);
    }

    .tech-stage {
        --explode: 0.75;
    }

    .tech-meter {
        display: none;
    }

}


@media (prefers-reduced-motion: reduce) {

    .tech-pin {
        height: auto;
    }

    .tech-sticky {
        position: static;
        height: auto;
        overflow: visible;
    }

    .tech-stage {
        position: static;
        opacity: 1;
        pointer-events: auto;
        margin-bottom: 60px;
    }

    .tech-stage {
        --explode: 0.75;
    }

}


.solutions-footnote {

    margin-top: 30px;

    padding-left: 18px;

    border-left:
        2px solid
        var(--aqua-deep);

    color: rgba(255, 255, 255, 0.5);

    font-size: 0.88rem;

    line-height: 1.6;

}


.solution-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 28px;

}


.solution-tags span {

    padding:
        7px
        12px;

    border:
        1px solid
        rgba(255,255,255,0.17);

    border-radius:
        100px;

    color:
        rgba(255,255,255,0.72);

    font-size: 0.63rem;

}


/* ==================================================
   PROCESS
================================================== */

.process-heading {

    display: grid;

    grid-template-columns:
        1.2fr
        0.5fr;

    gap: 80px;

    align-items: end;

    margin-bottom: 100px;

}


.process-heading p {

    color:
        rgba(255,255,255,0.5);

    line-height: 1.8;

}


/* =========================================
   TREN DE FILTRADO HORIZONTAL

   El bloque .process-pin es alto: su altura es
   la distancia de scroll que se invierte en
   recorrer el tren. Mientras dura, el contenido
   queda fijo con position: sticky y el agua
   avanza en horizontal. Al terminar, la página
   sigue bajando con normalidad.
========================================= */

.process-pin {

    position: relative;

    height: 320vh;

    margin-top: 40px;

}


.process-sticky {

    position: sticky;

    top: 0;

    height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    overflow: hidden;

}


.process-train {

    position: relative;

    width:
        min(1400px, calc(100% - 80px));

    margin: 0 auto;

}


/* --- Conducto horizontal --- */

.process-track {

    position: absolute;

    top: 66px;

    left: 8%;

    right: 8%;

    height: 3px;

    border-radius: 3px;

    background:
        rgba(255, 255, 255, 0.08);

}


.process-track-fill {

    position: absolute;

    inset: 0;

    border-radius: 3px;

    background:
        linear-gradient(
            to right,
            #a8834e 0%,
            #8f8a5c 18%,
            #6f9787 40%,
            #46a5ac 62%,
            #35c2d2 82%,
            var(--aqua) 100%
        );

    clip-path:
        inset(0 100% 0 0);

}


.process-head {

    position: absolute;

    top: 50%;

    left: 0;

    width: 12px;

    height: 12px;

    margin:
        -6px 0 0 -6px;

    border-radius: 50%;

    background: var(--aqua);

    box-shadow:
        0 0 16px 3px
        rgba(56, 214, 230, 0.7);

    opacity: 0;

    transition:
        opacity 0.35s ease;

}


.process-head.active {

    opacity: 1;

}


/* --- Etapas en fila --- */

.process-stages {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 16px;

}


.process-stage {

    text-align: center;

    opacity: 0.32;

    transition:
        opacity 0.5s ease;

}


.process-stage.reached {

    opacity: 1;

}


.process-copy {

    margin-top: 26px;

}


/* --- Barra de avance --- */

.process-meter {

    width: 220px;

    height: 2px;

    margin: 60px auto 0;

    border-radius: 2px;

    background:
        rgba(255, 255, 255, 0.1);

}


.process-meter-fill {

    width: 0;

    height: 100%;

    border-radius: 2px;

    background: var(--aqua);

}


.process-footnote {

    max-width: 620px;
    margin: 50px auto 0;
    padding: 0 20px;

    text-align: center;

    color:
        rgba(255, 255, 255, 0.4);

    font-size: 0.85rem;

    line-height: 1.65;

}


/* En pantallas estrechas el anclaje horizontal
   estorba: las etapas se apilan y el agua se
   muestra completa, sin secuestrar el scroll. */

@media (max-width: 900px) {

    .process-pin {

        height: auto;

    }


    .process-sticky {

        position: static;

        height: auto;

        overflow: visible;

    }


    .process-track {

        display: none;

    }


    .process-stages {

        grid-template-columns: 1fr;

        gap: 60px;

    }


    .process-stage {

        opacity: 1;

    }


    .process-equipment {

        width: 220px;

        height: 220px;

    }


    /* Sin scroll anclado no hay JS moviendo el clip-path/opacity:
       se deja cada equipo mostrando su interior de forma fija. */

    .process-equipment-open {

        clip-path: inset(26% 24% 22% 24%);

    }


    .process-equipment-open.process-equipment-fade {

        clip-path: none;

        opacity: 0.85;

    }


    .process-meter {

        display: none;

    }

}


/* Quien pide menos movimiento no debe quedar
   atrapado en un scroll secuestrado. */

@media (prefers-reduced-motion: reduce) {

    .process-pin {

        height: auto;

    }


    .process-sticky {

        position: static;

        height: auto;

        overflow: visible;

    }


    .process-stage {

        opacity: 1;

    }


    .process-equipment-open {

        clip-path: inset(26% 24% 22% 24%);

    }


    .process-equipment-open.process-equipment-fade {

        clip-path: none;

        opacity: 0.85;

    }

}


/* Conducto vacío: la tubería antes de que
   el agua la recorra. */

.process-point {

    display: flex;

    justify-content: center;

}


.process-equipment {

    position: relative;

    width: 168px;

    height: 168px;

    margin: 0 auto;

    border-radius: var(--radius-medium);

    overflow: hidden;

    box-shadow:
        0 20px 45px
        rgba(3, 15, 20, 0.45);

}


/* Dos fotos apiladas del mismo equipo (misma camara/geometria,
   ancladas por edicion): la "cerrada" siempre visible de fondo,
   la "abierta" se revela por encima segun el scroll (etapas 1-3
   via clip-path recortando una ventana creciente; etapa 4 via
   opacity, ya que no hay una ventana de tanque que abrir). */

.process-equipment-layer {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}


.process-equipment-shell {

    z-index: 1;

}


.process-equipment-open {

    z-index: 2;

    /* Ventana cerrada: top y bottom-edge coinciden (26% / 100-74%),
       altura revelada = 0. El JS anima solo el inset inferior. */
    clip-path: inset(26% 24% 74% 24%);

}


.process-equipment-open.process-equipment-fade {

    clip-path: none;

    opacity: 0;

}


.process-copy span {

    display: block;

    color: var(--aqua);

    font-size: 0.62rem;

    letter-spacing: 0.18em;

}


.process-copy h3 {

    margin:
        10px 0 12px;

    font-size:
        clamp(1.3rem, 1.8vw, 1.9rem);

    letter-spacing: -0.03em;

}


.process-copy p {

    max-width: 260px;

    margin: 0 auto;

    color:
        rgba(255,255,255,0.5);

    font-size: 0.88rem;

    line-height: 1.65;

}



/* ==================================================
   SERVICES
================================================== */

.services {

    padding:
        130px
        max(40px, calc((100vw - 1400px) / 2));

    background: var(--aqua);

    color: var(--ink);

}


.services-intro {

    max-width: 850px;

}


.services-intro > span {

    font-size: 0.66rem;

    font-weight: 700;

    letter-spacing: 0.2em;

}


.services-intro h2 {

    margin-top: 20px;

    font-size:
        clamp(3.4rem, 6vw, 6.8rem);

    line-height: 0.92;

    letter-spacing: -0.06em;

}


.services-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;

    margin-top: 95px;

}


.service-card {

    padding-top: 25px;

    border-top:
        1px solid
        rgba(4,18,23,0.28);

}


.service-card > span {

    font-size: 0.7rem;

}


.service-card h3 {

    margin:
        35px 0 15px;

    font-size: 1.55rem;

}


.service-card p {

    color:
        rgba(4,18,23,0.67);

    line-height: 1.7;

}


/* ==================================================
   PROJECTS
================================================== */

.projects-grid {

    display: grid;

    grid-template-columns:
        1.15fr
        0.85fr;

    gap: 22px;

}


.project-card {

    overflow: hidden;

    background: white;

    border-radius:
        var(--radius-medium);

    box-shadow:
        0 15px 40px
        rgba(10,30,36,0.05);

}


.project-wide {

    grid-column:
        1 / -1;

}


.project-image {

    height: 430px;

    background-size:
        cover;

    background-position:
        center;

    transition:
        transform 0.7s ease;

}


.project-one {

    background-color:
        #154955;

    background-image:
        linear-gradient(
            rgba(8, 60, 73, .15),
            rgba(3, 19, 24, .35)
        ),
        url("assets/img/proyecto-01.webp?v=caeba67b");

}


.project-two {

    background-color:
        #16333a;

    background-image:
        linear-gradient(
            rgba(8, 60, 73, .1),
            rgba(3, 19, 24, .35)
        ),
        url("assets/img/proyecto-02.webp?v=b4cf8d69");

}


.project-three {

    background-color:
        #0d5968;

    background-image:
        linear-gradient(
            rgba(8, 60, 73, .1),
            rgba(3, 19, 24, .35)
        ),
        url("assets/img/proyecto-03.webp?v=38ad53b1");

}


.project-card:hover
.project-image {

    transform:
        scale(1.03);

}


.project-information {

    padding: 28px;

}


.project-information > span {

    color: var(--aqua-deep);

    font-size: 0.62rem;

    letter-spacing: 0.18em;

}


.project-information h3 {

    margin:
        8px 0 18px;

    font-size: 1.85rem;

}


.project-button {

    border: 0;

    background: none;

    color: var(--aqua-deep);

    font-weight: 700;

}


/* ==================================================
   ENGINEERING
================================================== */

.engineering {

    padding:
        130px
        max(40px, calc((100vw - 1400px) / 2));

    display: grid;

    grid-template-columns:
        1fr
        0.85fr;

    gap: 80px;

    align-items: center;

    background:
        linear-gradient(
            120deg,
            #07212a,
            #06151b
        );

}


.engineering-content > span {

    color: var(--aqua);

    font-size: 0.65rem;

    letter-spacing: 0.2em;

}


.engineering-content h2 {

    margin:
        20px 0 30px;

    font-size:
        clamp(3rem, 5vw, 5.6rem);

    line-height: 0.95;

    letter-spacing: -0.055em;

}


.engineering-content p {

    max-width: 600px;

    color:
        rgba(255,255,255,0.5);

    line-height: 1.8;

}


.engineering-note {

    margin-top: 22px;

    padding-left: 18px;

    border-left:
        2px solid
        var(--aqua);

    color:
        rgba(255, 255, 255, 0.72)
        !important;

    font-size: 0.95rem;

    font-weight: 600;

}


.engineering-data {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;

}


.data-card {

    padding:
        26px
        26px
        28px;

    border:
        1px solid
        rgba(255,255,255,0.1);

    border-radius:
        var(--radius-small);

    background:
        rgba(255,255,255,0.025);

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;

}


.data-card:hover {

    border-color:
        rgba(56, 214, 230, 0.4);

    background:
        rgba(56, 214, 230, 0.05);

    transform:
        translateY(-4px);

}


.data-card-top {

    display: flex;

    align-items: baseline;

    justify-content: space-between;

    gap: 12px;

    padding-bottom: 16px;

    margin-bottom: 16px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);

}


.data-card-index {

    color: var(--aqua);

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 0.95rem;

    font-weight: 700;

    letter-spacing: 0.08em;

}


.data-card-unit {

    color:
        rgba(255, 255, 255, 0.38);

    font-size: 0.62rem;

    letter-spacing: 0.12em;

}


.data-card h3 {

    margin-bottom: 10px;

    font-size: 1.15rem;

    font-weight: 600;

    letter-spacing: -0.01em;

}


.data-card p {

    color:
        rgba(255, 255, 255, 0.5);

    font-size: 0.86rem;

    line-height: 1.7;

}


@media (max-width: 1100px) {

    .engineering-data {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 560px) {

    .engineering-data {

        grid-template-columns: 1fr;

    }

}


/* ==================================================
   QUOTE
================================================== */

.quote {

    display: grid;

    grid-template-columns:
        minmax(0, .8fr)
        minmax(400px, 1.1fr);

    gap: 90px;

}


.quote-heading p {

    margin-top: 30px;

    max-width: 540px;

    color:
        rgba(255,255,255,0.5);

    line-height: 1.8;

}


.quote-heading
.big-title span {

    color: var(--aqua);

}


.quote-form {

    padding: 42px;

    border:
        1px solid
        rgba(255,255,255,0.09);

    border-radius:
        var(--radius-medium);

    background:
        rgba(255,255,255,0.035);

}


.form-row {

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 20px;

}


.form-field {

    display: flex;

    flex-direction: column;

    gap: 9px;

    margin-bottom: 20px;

}


.form-field label {

    color:
        rgba(255,255,255,0.55);

    font-size: 0.72rem;

}


.form-field input,
.form-field select,
.form-field textarea {

    width: 100%;

    padding:
        15px 16px;

    border:
        1px solid
        rgba(255,255,255,0.11);

    border-radius:
        10px;

    background:
        rgba(255,255,255,0.04);

    color: white;

    outline: none;

    transition:
        border-color 0.25s ease,
        background 0.25s ease;

}


.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {

    border-color: var(--aqua);

    background:
        rgba(255,255,255,0.06);

}


.form-field select option {

    color: #111;

}


.form-submit {

    margin-top: 8px;

    border: 0;

}


.form-note {

    margin-top: 17px;

    color:
        rgba(255,255,255,0.32);

    font-size: 0.67rem;

}


/* ==================================================
   FAQ
================================================== */

.faq-grid {

    display: grid;

    grid-template-columns:
        0.75fr
        1.15fr;

    gap: 100px;

}


.faq-item {

    border-top:
        1px solid
        var(--border-dark);

}


.faq-question {

    width: 100%;

    padding:
        27px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border: 0;

    background: none;

    color: var(--text);

    text-align: left;

    font-size: 1.02rem;

    font-weight: 600;

}


.faq-question span {

    color: var(--aqua-deep);

    font-size: 1.7rem;

    font-weight: 400;

    transition:
        transform 0.3s ease;

}


.faq-answer {

    max-height: 0;

    overflow: hidden;

    transition:
        max-height 0.4s ease;

}


.faq-answer p {

    padding:
        0 0 28px;

    max-width: 650px;

    color: var(--muted);

    line-height: 1.8;

}


.faq-item.active
.faq-question span {

    transform:
        rotate(45deg);

}


/* ==================================================
   FINAL CTA
================================================== */

.final-cta {

    position: relative;

    overflow: hidden;

    padding:
        150px
        max(40px, calc((100vw - 1400px) / 2));

    background: var(--aqua);

    color: var(--ink);

}


.final-cta::after {

    content: "K";

    position: absolute;

    right: -30px;

    bottom: -220px;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 620px;

    font-weight: 700;

    line-height: 1;

    color:
        rgba(4,18,23,0.06);

}


.final-cta-content {

    position: relative;

    z-index: 2;

    max-width: 1000px;

}


.final-cta-content > span {

    font-size: 0.67rem;

    font-weight: 700;

    letter-spacing: 0.22em;

}


.final-cta h2 {

    margin:
        20px 0 45px;

    font-size:
        clamp(3.5rem, 7vw, 7.5rem);

    line-height: 0.9;

    letter-spacing: -0.065em;

}


/* ==================================================
   FOOTER
================================================== */

.footer {

    padding:
        85px
        max(40px, calc((100vw - 1400px) / 2))
        30px;

    background: #020a0d;

}


.footer-main {

    display: grid;

    grid-template-columns:
        2fr
        repeat(3,1fr);

    gap: 70px;

}


.footer-brand {

    max-width: 360px;

}


.footer-logo {

    font-size: 1.8rem;

    font-weight: 700;

    letter-spacing: 0.08em;

}


.footer-logo span {

    color: var(--aqua);

}


.footer-brand p {

    margin:
        20px 0;

    color:
        rgba(255,255,255,0.45);

    line-height: 1.7;

}


.footer-location {

    display: block;

    color:
        rgba(255,255,255,0.3);

    font-size: 0.75rem;

}


.footer-contact {

    display: inline-block;

    margin-top: 10px;

    color: var(--aqua);

    font-size: 0.85rem;

    font-weight: 600;

    border-bottom:
        1px solid transparent;

    transition:
        border-color 0.25s ease;

}


.footer-contact:hover {

    border-bottom-color: var(--aqua);

}


.footer-social {

    display: flex;

    gap: 12px;

    margin-top: 26px;

}


.social-link {

    width: 40px;

    height: 40px;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: 50%;

    color:
        rgba(255, 255, 255, 0.65);

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;

}


.social-link svg {

    width: 20px;

    height: 20px;

    fill: currentColor;

}


.social-link:hover {

    color: var(--ink);

    background: var(--aqua);

    border-color: var(--aqua);

    transform: translateY(-3px);

}


.social-link:focus-visible {

    outline: 2px solid var(--aqua);

    outline-offset: 3px;

}


/* Perfil aún sin URL: visible pero sin acción,
   para que se note que falta configurarlo. */

.social-link-pending {

    opacity: 0.4;

    cursor: default;

}


.social-link-pending:hover {

    color:
        rgba(255, 255, 255, 0.65);

    background: transparent;

    border-color:
        rgba(255, 255, 255, 0.14);

    transform: none;

}


.footer-column {

    display: flex;

    flex-direction: column;

    gap: 12px;

}


.footer-column h3 {

    margin-bottom: 10px;

    color:
        rgba(255,255,255,0.95);

    font-size: 0.78rem;

}


.footer-column a {

    color:
        rgba(255,255,255,0.42);

    font-size: 0.78rem;

}


.footer-column a:hover {

    color: var(--aqua);

}


.footer-bottom {

    margin-top: 80px;

    padding-top: 25px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid
        rgba(255,255,255,0.07);

    color:
        rgba(255,255,255,0.28);

    font-size: 0.67rem;

}


.footer-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 25px;

}


.footer-meta a {

    color:
        rgba(255, 255, 255, 0.45);

    transition:
        color 0.25s ease;

}


.footer-meta a:hover {

    color: var(--aqua);

}


/* En las páginas legales el pie solo lleva la
   franja inferior, sin el bloque de columnas. */

.legal ~ .footer .footer-bottom {

    margin-top: 0;

    border-top: 0;

}


/* ==================================================
   BACK TO TOP
================================================== */

.back-to-top {

    position: fixed;

    right: 25px;

    bottom: 25px;

    z-index: 900;

    width: 45px;

    height: 45px;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(255,255,255,0.12);

    border-radius: 50%;

    background:
        rgba(4,18,23,0.88);

    color: var(--aqua);

    backdrop-filter: blur(10px);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(12px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s;

}


.back-to-top.visible {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

}


/* ==================================================
   MODAL
================================================== */

.modal {

    position: fixed;

    inset: 0;

    z-index: 3000;

    display: grid;

    place-items: center;

    padding: 30px;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s;

}


.modal.active {

    opacity: 1;

    visibility: visible;

}


.modal-backdrop {

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,0.82);

    backdrop-filter:
        blur(12px);

}


.modal-window {

    position: relative;

    z-index: 5;

    width:
        min(950px,100%);

    max-height: 90vh;

    overflow-y: auto;

    background: var(--ink-soft);

    border:
        1px solid
        var(--border-light);

    border-radius:
        var(--radius-medium);

}


.modal-close {

    position: absolute;

    top: 18px;

    right: 18px;

    z-index: 6;

    width: 44px;

    height: 44px;

    border: 0;

    border-radius: 50%;

    background:
        rgba(0,0,0,0.55);

    color: white;

    font-size: 1.5rem;

}


.modal-image {

    height: 450px;

    background-color: #104652;

    background-size: cover;

    background-position: center;

}


.modal-content {

    padding: 38px;

}


.modal-content > span {

    color: var(--aqua);

    font-size: 0.62rem;

    letter-spacing: 0.2em;

}


.modal-content h2 {

    margin:
        8px 0 18px;

    font-size:
        clamp(2rem, 4vw, 4rem);

}


.modal-content p {

    color:
        rgba(255,255,255,0.55);

    line-height: 1.8;

}


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

@media (max-width: 1100px) {

    .intro-layout,
    .process-heading,
    .quote,
    .faq-grid,
    .engineering {

        grid-template-columns:
            1fr;

    }


    .services-grid {

        grid-template-columns:
            repeat(2,1fr);

    }


    .footer-main {

        grid-template-columns:
            repeat(2,1fr);

    }

}


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

@media (max-width: 760px) {

    :root {

        --container:
            calc(100% - 40px);

    }


    .section-light,
    .section-dark,
    .services,
    .engineering,
    .final-cta {

        padding:
            90px 20px;

    }


    .navbar {

        height: 74px;

    }


    .mobile-menu {

        top: 74px;

        height:
            calc(100vh - 74px);

        padding:
            25px 20px;

    }


    .hero {

        min-height: 100svh;

    }


    .hero-content {

        width: 100%;

    }






    .hero-actions {

        flex-direction: column;

        align-items: stretch;

    }








    .section-header {

        grid-template-columns:
            1fr;

        gap: 30px;

    }


    .intro-layout {

        gap: 45px;

    }


    .services-grid {

        grid-template-columns:
            1fr;

    }


    .projects-grid {

        grid-template-columns:
            1fr;

    }


    .project-wide {

        grid-column: auto;

    }


    .project-image {

        height: 310px;

    }


    .engineering {

        gap: 55px;

    }


    .form-row {

        grid-template-columns:
            1fr;

        gap: 0;

    }


    .quote-form {

        padding: 25px;

    }


    .footer {

        padding:
            70px
            20px
            25px;

    }


    .footer-main {

        grid-template-columns:
            1fr;

        gap: 45px;

    }


    .footer-bottom {

        flex-direction: column;

    }


    .footer-meta {

        flex-direction: column;

        gap: 5px;

    }


    .modal {

        padding: 12px;

    }


    .modal-image {

        height: 280px;

    }


    .modal-content {

        padding: 25px;

    }

}


/* ==================================================
   REDUCED MOTION
================================================== */

@media (
    prefers-reduced-motion:
    reduce
) {

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms
            !important;

        animation-iteration-count:
            1
            !important;

        scroll-behavior:
            auto
            !important;

        transition-duration:
            0.01ms
            !important;

    }

}

/* =========================================
   HEADER KORIVA WATER TECH
========================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(4, 18, 23, 0.92);

    backdrop-filter: blur(20px);

    box-shadow:
        0 10px 40px
        rgba(0, 0, 0, 0.18);
}


.navbar {
    width:
        min(
            1400px,
            calc(100% - 80px)
        );

    height: 88px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================
   NAVEGACIÓN
========================================= */

.nav-links {
    display: flex;

    align-items: center;

    gap: 32px;
}


.nav-links > a,
.dropdown-trigger {
    border: 0;

    background: none;

    color:
        rgba(
            255,
            255,
            255,
            0.74
        );

    font-family:
        "Manrope",
        sans-serif;

    font-size: 14px;

    cursor: pointer;

    text-decoration: none;

    transition:
        color 0.25s ease;
}


.nav-links > a:hover,
.dropdown-trigger:hover {
    color: white;
}


/* =========================================
   DROPDOWN
========================================= */

.dropdown {
    position: relative;
}


.dropdown-trigger {
    display: flex;

    align-items: center;

    gap: 7px;
}


.dropdown-arrow {
    color: #38d6e6;

    font-size: 11px;

    transition:
        transform 0.25s ease;
}


.dropdown:hover
.dropdown-arrow {
    transform:
        rotate(180deg);
}


.dropdown-panel {
    position: absolute;

    top:
        calc(100% + 28px);

    left: 50%;

    width: 650px;

    padding: 30px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 35px;

    background:
        rgba(
            7,
            28,
            35,
            0.98
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.08
        );

    border-radius: 20px;

    box-shadow:
        0 30px 80px
        rgba(
            0,
            0,
            0,
            0.38
        );

    transform:
        translate(
            -50%,
            15px
        );

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.dropdown:hover
.dropdown-panel,
.dropdown:focus-within
.dropdown-panel {
    opacity: 1;

    visibility: visible;

    transform:
        translate(
            -50%,
            0
        );
}


.dropdown-group {
    display: flex;

    flex-direction: column;

    gap: 13px;
}


.dropdown-title {
    margin-bottom: 7px;

    color: #38d6e6;

    font-size: 10px;

    letter-spacing: 2px;
}


.dropdown-group a {
    color:
        rgba(
            255,
            255,
            255,
            0.66
        );

    font-size: 13px;

    text-decoration: none;
}


.dropdown-group a:hover {
    color: white;
}


/* =========================================
   ACCIONES
========================================= */

.nav-actions {
    display: flex;

    align-items: center;

    gap: 15px;
}


.nav-button {
    padding:
        12px
        20px;

    border:
        1px solid
        rgba(
            56,
            214,
            230,
            0.45
        );

    border-radius: 100px;

    color: white;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}


.nav-button:hover {
    background:
        rgba(
            56,
            214,
            230,
            0.08
        );

    border-color:
        #38d6e6;
}


/* =========================================
   BOTÓN HAMBURGUESA
========================================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 0;

    background: none;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 5px;

    cursor: pointer;
}


.menu-toggle span {
    width: 24px;

    height: 1px;

    background: white;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


.menu-toggle.active
span:nth-child(1) {
    transform:
        translateY(6px)
        rotate(45deg);
}


.menu-toggle.active
span:nth-child(2) {
    opacity: 0;
}


.menu-toggle.active
span:nth-child(3) {
    transform:
        translateY(-6px)
        rotate(-45deg);
}


/* =========================================
   MENÚ MÓVIL
========================================= */

.mobile-menu {
    display: none;
}


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

@media (max-width: 1050px) {

    .nav-links,
    .nav-button {
        display: none;
    }


    .menu-toggle {
        display: flex;
    }


    .mobile-menu {
        position: fixed;

        top: 88px;
        left: 0;

        width: 100%;

        height:
            calc(
                100vh - 88px
            );

        padding:
            30px 40px;

        display: flex;

        flex-direction: column;

        background:
            rgba(
                4,
                18,
                23,
                0.985
            );

        transform:
            translateX(
                100%
            );

        transition:
            transform
            0.35s
            ease;

        overflow-y: auto;
    }


    .mobile-menu.active {
        transform:
            translateX(0);
    }


    .mobile-menu a {
        padding:
            17px 0;

        border-bottom:
            1px solid
            rgba(
                255,
                255,
                255,
                0.08
            );

        color: white;

        text-decoration: none;

        font-size: 18px;
    }


    .mobile-button {
        margin-top: 20px;

        padding:
            15px 20px
            !important;

        border-radius:
            100px;

        background:
            #38d6e6;

        color:
            #041217
            !important;

        text-align:
            center;
    }

}


@media (max-width: 720px) {

    .navbar {
        width:
            calc(
                100% - 40px
            );

        height: 74px;
    }


    .mobile-menu {
        top: 74px;

        height:
            calc(
                100vh - 74px
            );

        padding:
            25px 20px;
    }


    .brand-name {
        font-size: 15px;
    }


    .brand-subtitle {
        font-size: 8px;
    }

}
/* =========================================
   SECCIÓN NOSOTROS / FILOSOFÍA
========================================= */

.intro {
    padding:
        130px
        max(40px, calc((100vw - 1400px) / 2));

    background: #f3f7f7;

    color: #07171d;
}


.section-number {
    margin-bottom: 35px;

    color: #129aae;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;
}


.intro-layout {
    display: grid;

    grid-template-columns:
        1.25fr
        0.6fr;

    gap: 100px;

    align-items: start;
}


.big-title {
    font-family:
        "Space Grotesk",
        sans-serif;

    font-size:
        clamp(52px, 6vw, 100px);

    line-height: 0.93;

    letter-spacing: -5px;

    font-weight: 600;
}


.big-title span {
    color: #129aae;
}


.intro-copy {
    padding-top: 15px;
}


.intro-copy p {
    margin-bottom: 22px;

    color: #65777d;

    font-size: 16px;

    line-height: 1.85;
}


.intro-lead {
    color: #07171d !important;

    font-size: 20px !important;

    font-weight: 600;
}


.text-link {
    display: inline-block;

    margin-top: 20px;

    color: #129aae;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}


.text-link:hover {
    transform: translateX(5px);

    color: #0b7787;
}


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

@media (max-width: 900px) {

    .intro-layout {
        grid-template-columns: 1fr;

        gap: 50px;
    }

}


@media (max-width: 720px) {

    .intro {
        padding:
            90px
            20px;
    }


    .big-title {
        font-size:
            clamp(48px, 14vw, 74px);

        letter-spacing:
            -3px;
    }


    .intro-copy {
        padding-top: 0;
    }

}

/* =========================================
   LOGO KORIVA
========================================= */
.brand {
    display: flex;
    align-items: center;
    height: 70px;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    height: 58px;
    object-fit: contain;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.03);
    opacity: 0.95;
}

@media (max-width: 720px) {
    .brand {
        height: 54px;
    }

    .brand-logo {
        height: 44px;
    }
}

/* =========================================
   HERO CON ILUSTRACIÓN TÉCNICA
========================================= */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;

    width: var(--container);
    min-height: 100vh;
    margin: 0 auto;

    padding-top: 120px;
    padding-bottom: 90px;

    position: relative;
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.9;
}

.hero-title {
    margin: 0 0 24px;
    font-size: clamp(54px, 8vw, 112px);
    line-height: 0.92;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #f5f7fa;
    opacity: 0;
    animation: heroTitleReveal 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-title span {
    display: block;
    color: #35d8f6;
}

@keyframes heroTitleReveal {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    max-width: 620px;
    margin-bottom: 28px;
    font-size: 24px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-price-hint {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 26px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.hero-price-hint span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
}

.hero-price-hint:hover {
    opacity: 0.8;
}

.hero-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.hero-steps li {
    font-size: 18px;
    color: #ffffff;
    line-height: 1.3;
}

.hero-steps strong {
    display: inline-block;
    min-width: 34px;
    color: #ffffff;
    font-weight: 800;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-card {
    position: relative;
    width: 100%;
    max-width: 760px;
    padding: 18px;
    border-radius: 30px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.03)
        );
    border: 1px solid rgba(53, 216, 246, 0.18);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}

.hero-system-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    object-fit: contain;
}

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

@media (max-width: 1200px) {

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 70px;
    }

    .hero-content {
        max-width: 900px;
    }

    .hero-visual {
        order: 2;
    }

    .hero-visual-card {
        max-width: 680px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-layout {
        gap: 28px;
        padding-top: 100px;
        padding-bottom: 55px;
    }

    .hero-title {
        font-size: clamp(44px, 12vw, 72px);
    }

    .hero-description {
        font-size: 18px;
        line-height: 1.6;
    }

    .hero-actions {
        gap: 16px;
    }

    .hero-steps li {
        font-size: 16px;
    }

    .hero-visual-card {
        padding: 10px;
        border-radius: 20px;
    }

    .hero-system-image {
        border-radius: 14px;
    }
}
/* =========================================
   FICHAS TÉCNICAS DE TECNOLOGÍA
========================================= */

.technology-link {
    margin-top: 22px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #38d6e6;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}


.technology-link:hover {
    transform: translateX(4px);

    color: #ffffff;
}


.technology-modal {
    position: fixed;

    inset: 0;

    z-index: 3000;

    display: grid;

    place-items: center;

    padding: 35px;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


.technology-modal.active {
    opacity: 1;

    visibility: visible;
}


.technology-modal-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(0, 8, 12, 0.88);

    backdrop-filter:
        blur(14px);
}


.technology-modal-window {
    position: relative;

    z-index: 2;

    width: min(1100px, 95vw);

    max-height: 92vh;

    overflow-y: auto;

    border:
        1px solid
        rgba(56, 214, 230, 0.25);

    border-radius: 24px;

    background: #031116;

    box-shadow:
        0 35px 100px
        rgba(0, 0, 0, 0.65);
}


.technology-sheet {
    display: block;

    width: 100%;

    height: auto;
}


.technology-modal-close {
    position: sticky;

    top: 18px;

    float: right;

    margin:
        18px
        18px
        -65px
        0;

    z-index: 5;

    width: 44px;
    height: 44px;

    border:
        1px solid
        rgba(255,255,255,0.15);

    border-radius: 50%;

    background:
        rgba(3,17,22,0.9);

    color: #ffffff;

    font-size: 26px;

    cursor: pointer;
}


@media (max-width: 720px) {

    .technology-modal {
        padding: 10px;
    }


    .technology-modal-window {
        width: 100%;

        max-height: 95vh;

        border-radius: 16px;

        /* La ficha es densa: a 375px sería ilegible
           reducida, así que conserva un ancho mínimo
           legible y se recorre en horizontal. */
        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }


    .technology-sheet {
        min-width: 900px;
    }


    .technology-modal-hint {
        display: block;
    }

}


.technology-modal-hint {
    display: none;

    padding: 12px 18px 16px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 12px;

    letter-spacing: 0.08em;

    text-align: center;
}


/* ==================================================
   PÁGINAS DE SERVICIO
   (filtros-de-agua, suavizadores-de-agua,
   tratamiento residencial/comercial)

   Reutilizan los tokens y componentes existentes
   (section-light/dark, section-header, big-title,
   button, text-link, faq-item, solution-tags). Estas
   pocas clases solo cubren lo que ningún componente
   actual resolvía: imagen redondeada en dos columnas
   y una franja de CTA final con fondo de marca.
================================================== */

.service-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-medium);
    box-shadow: 0 20px 45px rgba(3, 15, 20, 0.35);
}


.service-lead {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    line-height: 1.7;
}


.section-light .service-lead {
    color: rgba(4, 18, 23, 0.6);
}


.service-crumbs {
    margin-bottom: 18px;

    color: rgba(255, 255, 255, 0.4);

    font-size: 0.82rem;
}

.section-light .service-crumbs {
    color: rgba(4, 18, 23, 0.45);
}

.service-crumbs a {
    color: inherit;
}

.service-crumbs a:hover {
    color: var(--aqua);
}


/* Vive dentro de .final-cta (fondo --aqua solido, claro),
   por eso usa texto/borde oscuros en vez de los claros que
   usa el resto del sitio sobre fondo oscuro. */

.service-related {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.service-related a {
    padding: 10px 18px;
    border: 1px solid rgba(4, 18, 23, 0.3);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 500;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.service-related a:hover {
    border-color: rgba(4, 18, 23, 0.6);
    background: rgba(4, 18, 23, 0.08);
}


/* Reutiliza .markets-card / .markets-card-image /
   .markets-card-body (definidas para el carrusel del home)
   pero en una cuadrícula simple en vez de scroll horizontal. */

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-cards-grid .markets-card {
    width: 100%;
}

/* ==================================================
   SESIÓN DE USUARIO (Clerk)

   js/auth.js pone data-auth="signed-in|signed-out"
   en <html>. Solo es presentación: las rutas y datos
   privados se protegen en el servidor (api/).
================================================== */

html:not([data-auth="signed-in"]) [data-auth-show="signed-in"],
html[data-auth="signed-in"] [data-auth-show="signed-out"] {
    display: none !important;
}


.nav-links > a[aria-current="page"] {
    color: white;
}


.nav-login {
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-login:hover {
    color: white;
}

.nav-login:focus-visible,
.account-trigger:focus-visible,
.cart-button:focus-visible {
    outline: 2px solid var(--aqua);
    outline-offset: 3px;
}


.account-menu {
    position: relative;
}

.account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    font-family: "Manrope", sans-serif;
    cursor: pointer;
}

.account-menu.open .dropdown-arrow {
    transform: rotate(180deg);
}

.account-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;

    min-width: 230px;
    padding: 18px 20px;

    display: flex;
    flex-direction: column;
    gap: 4px;

    background: rgba(7, 28, 35, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s;
}

.account-menu.open .account-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-name {
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);

    overflow: hidden;
    color: var(--aqua);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.account-name:empty {
    display: none;
}

.account-panel a,
.account-panel button {
    padding: 7px 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: left;
    transition: color 0.2s ease;
}

.account-panel a:hover,
.account-panel button:hover {
    color: white;
}

.account-panel button {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}


.cart-button {
    position: relative;

    width: 44px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(56, 214, 230, 0.45);
    border-radius: 50%;
    color: white;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.cart-button:hover {
    background: rgba(56, 214, 230, 0.08);
    border-color: var(--aqua);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
    background: var(--aqua);
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
}


.mobile-menu .mobile-signout {
    display: none;
}

@media (max-width: 1050px) {

    .nav-login {
        display: none;
    }

    .mobile-menu .mobile-signout {
        display: block;
        padding: 17px 0;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: none;
        color: rgba(255, 255, 255, 0.6);
        font-size: 18px;
        text-align: left;
    }

}

.cart-count[hidden] {
    display: none;
}


/* ==================================================
   CALCULADORA: recomendación pública, precio privado
================================================== */

.pricing-result-system {
    margin-top: 12px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.pricing-result-description {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.pricing-locked,
.pricing-unlocked {
    width: 100%;
    margin-top: 26px;
    padding-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid var(--border-light);
}

.pricing-locked-text {
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 700;
}

.pricing-unlocked .pricing-result-value {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.pricing-result .text-link[hidden] {
    display: none;
}
