/*
 * valac.css
 * ------------------------------------------------------------
 * Secciones y piezas públicas propias de VALAC (home, catálogo,
 * fichas, manuales, contacto). Se carga al final, después de
 * site_header.css, así que puede ajustar header y footer.
 * Colores: tokens de base.css (--color-primary, --color-accent, --color-sky).
 * ------------------------------------------------------------
 */

/* ==========================================================
   Base pública
   ========================================================== */
body { background: var(--color-bg); }
main { padding-bottom: 0; }
h1, h2, h3 { color: var(--color-text-strong); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 750; }
.text-center { text-align: center; }
.container--narrow { max-width: 820px; }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}
.eyebrow--light { color: #9fd8ff; }

/* ==========================================================
   Botones de marca
   ========================================================== */
.btn { background: var(--color-primary); border-color: var(--color-primary); color: #fff; border-radius: 999px; font-weight: 600; }
.btn:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: #fff; }
.btn--accent { background: var(--color-accent); border-color: var(--color-accent); }
.btn--accent:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.btn--secondary { background: #fff; color: var(--color-primary); border-color: #cdd8ee; }
.btn--secondary:hover { background: var(--color-sky-soft); color: var(--color-primary); border-color: var(--color-sky); }
.btn--outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* ==========================================================
   Header (escritorio + móvil)
   ========================================================== */
/* El blur va en .site-navbar y no en .site-header: un backdrop-filter en el
   header volvería "contenedor" al drawer (position: fixed) y lo descuadraría. */
.site-header { margin-bottom: 0; padding: 0; max-width: none; background: transparent; border-bottom: 0; }
.site-navbar {
    background: rgba(255,255,255,.9);
    -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
}
.site-header.is-scrolled .site-navbar { border-bottom-color: var(--color-border); box-shadow: 0 8px 24px -16px rgba(3,46,140,.35); }
.site-topbar { font-size: .8rem; }
.site-topbar__inner { max-width: var(--container-max); padding: .45rem var(--space-md); }
.site-navbar__inner { max-width: var(--container-max); padding: .75rem var(--space-md); gap: var(--space-lg); }
.site-navbar__brand img { height: 42px; max-height: none; width: auto; border-radius: 6px; }

.site-navbar__menu { gap: .2rem; }
.site-navbar__menu a {
    font-weight: 600; font-size: .92rem; color: #33405e;
    padding: .5rem .8rem; border-radius: 999px; border: 0;
    transition: background var(--transition), color var(--transition);
}
.site-navbar__menu a:hover { background: var(--color-sky-soft); color: var(--color-primary); }
.site-navbar__menu a.is-active { background: var(--color-primary); color: #fff; }

.site-navbar__actions { gap: .5rem; margin-left: auto; }
.site-navbar__cta--quote {
    background: var(--color-accent); padding: .6rem 1.05rem; gap: .45rem;
    box-shadow: 0 6px 16px -6px rgba(229,37,32,.6);
}
.site-navbar__cta--quote:hover { background: var(--color-accent-hover); }
.site-navbar__cta--quote svg { transition: transform var(--transition); }
.site-navbar__cta--quote:hover svg { transform: translateX(2px); }

/* Hamburguesa → X */
.site-navbar__burger { width: 42px; height: 42px; border-radius: 12px; background: var(--color-bg-alt); border: 1px solid var(--color-border); }
.site-navbar__burger span { width: 20px; transition: transform .25s ease, opacity .2s; background: var(--color-text-strong); }
.site-navbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-navbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-navbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
    .site-navbar__menu a { padding: .5rem .6rem; font-size: .88rem; }
}
@media (max-width: 960px) {
    .site-topbar { display: none; }
    .site-navbar__menu { display: none; }
    .site-navbar__burger { display: inline-flex; }
    .site-navbar__cta--quote { display: none; } /* en móvil la barra inferior ya ofrece Cotizar */
    .site-navbar__inner { padding: .6rem var(--space-md); gap: .6rem; }
    .site-navbar__brand img { height: 36px; }
}

/* Drawer móvil */
.site-drawer { width: min(88vw, 380px); display: flex; flex-direction: column; }
.site-drawer__head { padding: .9rem var(--space-md); border-bottom: 1px solid var(--color-border); }
.site-drawer__brand img { height: 34px; width: auto; }
.site-drawer__close { width: 42px; height: 42px; border-radius: 12px; background: var(--color-bg-alt); }
.site-drawer__menu { padding: var(--space-sm) var(--space-md); }
.site-drawer__menu a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem .25rem; border-radius: 0; font-size: 1.1rem; font-weight: 650;
    border-bottom: 1px solid var(--color-border); color: var(--color-text-strong);
}
.site-drawer__menu a svg { color: var(--color-text-subtle); }
.site-drawer__menu a:hover { background: transparent; color: var(--color-primary); }
.site-drawer__menu a.is-active { background: transparent; color: var(--color-accent); }
.site-drawer__menu a.is-active svg { color: var(--color-accent); }
.site-drawer__contact { gap: .6rem; padding: var(--space-lg) var(--space-md); border-top: 0; background: var(--color-bg-alt); margin-top: auto; }
.site-drawer__cta {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--color-accent); border-radius: 14px; padding: .95rem 1rem; font-weight: 700; font-size: 1rem;
}
.site-drawer__call {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    border: 1.5px solid var(--color-primary); color: var(--color-primary) !important; border-radius: 14px;
    padding: .85rem 1rem; font-weight: 700;
}
.site-drawer__line { text-align: center; font-size: .9rem; }
.site-drawer__line--muted { color: var(--color-text-muted); font-size: .82rem; }
.site-drawer__socials { padding: 0 var(--space-md) var(--space-lg); background: var(--color-bg-alt); justify-content: center; }

/* Barra de acción fija en móvil (llamar / cotizar) */
.mobile-bar { display: none; }
@media (max-width: 960px) {
    .mobile-bar {
        display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
        padding: .6rem var(--space-md) calc(.6rem + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
        border-top: 1px solid var(--color-border); box-shadow: 0 -8px 24px -18px rgba(3,46,140,.5);
    }
    .mobile-bar a {
        display: flex; align-items: center; justify-content: center; gap: .45rem;
        border-radius: 12px; padding: .8rem; font-weight: 700; text-decoration: none; font-size: .95rem;
    }
    .mobile-bar__call { color: var(--color-primary); background: var(--color-sky-soft); }
    .mobile-bar__quote { color: #fff; background: var(--color-accent); }
    body { padding-bottom: 76px; }
    .wa-float { bottom: 90px; }
}

/* ==========================================================
   Footer
   ========================================================== */
.supporters { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); }
.supporters__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: var(--space-lg) var(--space-xl); padding-top: var(--space-lg); padding-bottom: var(--space-lg);
}
.supporters__label { font-size: .8rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .1em; }
.supporters img { height: 52px; width: auto; mix-blend-mode: multiply; }

.site-footer { background: var(--color-navy-deep); margin-top: 0; }
.site-footer__col a, .site-footer__legal a { color: #c9d6f5; }
.site-footer__note { font-size: .8rem; color: #93a6d4; }
.site-footer__bottom { border-top-color: rgba(255,255,255,.1); color: #93a6d4; }

/* ==========================================================
   Hero home
   ========================================================== */
.v-hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(ellipse 70% 60% at 85% 20%, rgba(15,154,235,.45), transparent 60%),
        linear-gradient(160deg, #032e8c 0%, #021c57 100%);
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6.5rem);
    overflow: hidden;
}
.v-hero__inner { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 900px) { .v-hero__inner { grid-template-columns: 1.15fr .85fr; } }
.v-hero__title { color: #fff; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; margin-bottom: var(--space-md); }
.v-hero__subtitle { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); color: #d6e2ff; max-width: 560px; }
.v-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin: var(--space-lg) 0; }
.v-hero__stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); color: #b9cbf5; font-size: .92rem; }
.v-hero__stats strong { color: #fff; font-size: 1.15rem; margin-right: .25rem; }

.v-hero__card {
    display: block; background: #fff; color: var(--color-text); text-decoration: none;
    border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
    max-width: 420px; justify-self: center; transition: transform var(--transition-slow);
}
.v-hero__card:hover { transform: translateY(-4px); }
.v-hero__card img { display: block; width: 100%; aspect-ratio: 652 / 520; object-fit: cover; }
.v-hero__card-body { display: grid; gap: .2rem; padding: var(--space-md) var(--space-lg) var(--space-lg); }
.v-hero__card-tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--color-sky); }
.v-hero__card-title { font-weight: 700; color: var(--color-text-strong); }
.v-hero__card-price { font-size: 1.6rem; font-weight: 800; color: var(--color-accent); }
.v-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 50px; color: var(--color-bg); }

/* ==========================================================
   Encabezado de páginas internas
   ========================================================== */
.page-hero {
    background: linear-gradient(160deg, #032e8c 0%, #021c57 100%);
    color: #d6e2ff;
    padding: var(--space-xl) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.page-hero__title { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 800; margin-bottom: var(--space-sm); }
.page-hero__lead { max-width: 640px; font-size: 1.08rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; margin-bottom: var(--space-md); }
.crumbs a { color: #9fd8ff; text-decoration: none; }
.crumbs span { opacity: .5; }
.crumbs--dark a { color: var(--color-text-muted); }

/* ==========================================================
   Secciones
   ========================================================== */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--navy { background: var(--color-navy-deep); color: #d6e2ff; }
.section--navy h2 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: var(--space-xl); }
.section-head__title { margin-bottom: var(--space-sm); }
.section-head__lead { color: var(--color-text-muted); font-size: 1.05rem; margin: 0; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-md); }

.split { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* ==========================================================
   Ventajas / features
   ========================================================== */
.feature-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.feature {
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl);
    padding: var(--space-lg); transition: border-color var(--transition), box-shadow var(--transition);
}
.feature:hover { border-color: #bfd9f5; box-shadow: var(--shadow-md); }
.feature__icon {
    display: inline-flex; width: 52px; height: 52px; border-radius: 14px; align-items: center; justify-content: center;
    background: var(--color-sky-soft); color: var(--color-primary); margin-bottom: var(--space-md);
}
.feature__num { display: block; font-size: 2rem; font-weight: 800; color: var(--color-sky); margin-bottom: var(--space-sm); }
.feature__title { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-xs); }
.feature__text { color: var(--color-text-muted); margin: 0; }

/* ==========================================================
   Productos
   ========================================================== */
.product-grid { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.product-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius-xl); overflow: hidden; transition: box-shadow var(--transition-slow), transform var(--transition-slow);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card__media { display: block; aspect-ratio: 4 / 3; background: var(--color-sky-soft); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card__placeholder {
    display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--color-sky);
    background: radial-gradient(circle at 30% 20%, #fff 0, var(--color-sky-soft) 70%);
}
.product-card__placeholder--lg { aspect-ratio: 1; border-radius: var(--radius-xl); }
.product-card__placeholder--lg svg { width: 120px; height: 120px; }
.product-card__body { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-lg); flex: 1; }
.product-card__cat { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--color-sky); }
.product-card__title { font-size: 1.08rem; font-weight: 700; margin: 0; }
.product-card__title a { color: inherit; text-decoration: none; }
.product-card__summary { color: var(--color-text-muted); font-size: .93rem; margin: 0 0 var(--space-sm); }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; }
.product-card__price { font-weight: 800; color: var(--color-accent); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.chip {
    padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--color-border-strong);
    text-decoration: none; color: var(--color-text); font-weight: 600; font-size: .9rem; background: #fff;
}
.chip:hover { border-color: var(--color-sky); }
.chip.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* Ficha de producto */
.product-page .crumbs { margin-bottom: var(--space-lg); }
.product-page__top { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 900px) { .product-page__top { grid-template-columns: 1fr 1fr; } }
.product-page__media img { width: 100%; border-radius: var(--radius-xl); border: 1px solid var(--color-border); }
.product-page__title { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; }
.product-page__summary { font-size: 1.1rem; color: var(--color-text-muted); }
.product-page__price { font-size: 2rem; font-weight: 800; color: var(--color-accent); }
.product-page__price small { display: block; font-size: .8rem; font-weight: 500; color: var(--color-text-muted); }
.checklist { list-style: none; padding: 0; margin: var(--space-lg) 0 0; display: grid; gap: .5rem; }
.checklist li { padding-left: 1.8rem; position: relative; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: .2rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
    background: var(--color-sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23032e8c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.product-page__grid { display: grid; gap: var(--space-xl); margin-top: clamp(2.5rem, 6vw, 4rem); align-items: start; }
@media (min-width: 900px) { .product-page__grid { grid-template-columns: 1.3fr 1fr; } }
.product-page__quote {
    background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-xl);
    padding: var(--space-lg); position: sticky; top: 90px;
}
.product-page__quote h2 { font-size: 1.3rem; }
.product-page__quote .lead-form__row { grid-template-columns: 1fr; }
.related { margin-top: clamp(3rem, 7vw, 5rem); }

/* ==========================================================
   Texto largo
   ========================================================== */
.prose { max-width: 70ch; }
.prose--wide { max-width: 900px; }
.prose p, .prose li { color: #2e3a57; }
.prose ul, .prose ol { padding-left: 1.2rem; display: grid; gap: .5rem; margin: 0 0 var(--space-md); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; gap: var(--space-md) !important; }
.steps li {
    counter-increment: s; position: relative; padding: var(--space-md) var(--space-md) var(--space-md) 3.6rem;
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
.steps li::before {
    content: counter(s); position: absolute; left: var(--space-md); top: var(--space-md);
    width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.callout {
    border-left: 4px solid var(--color-accent); background: var(--color-accent-soft);
    border-radius: var(--radius-lg); padding: var(--space-lg); margin-bottom: var(--space-xl);
}
.callout__title { color: var(--color-accent); font-size: 1.3rem; }
.callout p:last-child { margin: 0; }

/* ==========================================================
   Video
   ========================================================== */
.yt { position: relative; display: block; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: var(--shadow-lg); }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity var(--transition); }
.yt:hover img { opacity: 1; }
.yt__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.yt__label { position: absolute; left: var(--space-md); bottom: var(--space-md); color: #fff; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================
   Manuales
   ========================================================== */
.doc-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.doc-card {
    display: flex; flex-direction: column; gap: .35rem; padding: var(--space-lg); border-radius: var(--radius-xl);
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #d6e2ff; text-decoration: none;
    transition: background var(--transition), border-color var(--transition);
}
.doc-card:hover { background: rgba(255,255,255,.1); border-color: #9fd8ff; }
.doc-card__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 54px; border-radius: 8px;
    background: var(--color-accent); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .05em; margin-bottom: var(--space-sm); flex-shrink: 0;
}
.doc-card__title { color: #fff; font-weight: 700; }
.doc-card__text { font-size: .9rem; }
.doc-card__meta { margin-top: auto; padding-top: var(--space-sm); font-size: .82rem; color: #9fd8ff; font-weight: 600; }

.doc-list { display: grid; gap: var(--space-md); }
.doc-row {
    display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap;
    padding: var(--space-lg); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: #fff;
}
.doc-row .doc-card__icon { margin: 0; }
.doc-row__body { flex: 1 1 260px; }
.doc-row__title { font-size: 1.1rem; margin: 0 0 .2rem; }
.doc-row__text { margin: 0; color: var(--color-text-muted); font-size: .92rem; }
.doc-row__actions { display: flex; gap: var(--space-sm); }

/* ==========================================================
   CTA band
   ========================================================== */
.cta-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg);
    padding: clamp(1.5rem, 4vw, 3rem); border-radius: 28px; color: #fff;
    background: radial-gradient(ellipse at 100% 0%, rgba(15,154,235,.5), transparent 55%), linear-gradient(135deg, #032e8c, #021c57);
}
.cta-band h2 { color: #fff; margin-bottom: var(--space-sm); }
.cta-band p { color: #d6e2ff; margin: 0; max-width: 620px; }
.cta-band--soft { margin-top: clamp(2.5rem, 6vw, 4rem); }

/* ==========================================================
   Contacto
   ========================================================== */
.contact-block { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 900px) { .contact-block { grid-template-columns: 1.4fr 1fr; } }
.contact-block__form {
    background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl);
    padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-md);
}
.contact-block__info { display: grid; gap: var(--space-md); }
.info-item { display: grid; gap: .15rem; padding-bottom: var(--space-md); border-bottom: 1px solid var(--color-border); }
.info-item__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--color-sky); }
.info-item__value { font-weight: 600; font-size: 1.05rem; color: var(--color-text-strong); text-decoration: none; }
.info-item small { color: var(--color-text-muted); }

.lead-form__row { display: grid; gap: 0 var(--space-md); }
@media (min-width: 600px) { .lead-form__row { grid-template-columns: 1fr 1fr; } }
.lead-form__field label { font-weight: 600; font-size: .9rem; }
.lead-form__field input, .lead-form__field textarea { font-size: 1rem; padding: .7rem .85rem; border-radius: 10px; }
.lead-form__product { background: var(--color-sky-soft); border-radius: 10px; padding: .7rem .9rem; font-size: .92rem; }
.lead-form__submit .btn { width: 100%; justify-content: center; }

.guide { margin-top: var(--space-xl); padding: var(--space-lg); border-radius: var(--radius-xl); background: var(--color-bg-alt); }
.guide__title { font-size: 1.15rem; }
.guide__list { margin: 0; padding-left: 1.3rem; display: grid; gap: .4rem; color: #2e3a57; }

/* ==========================================================
   FAQ (ajuste de marca)
   ========================================================== */
.faq-list { display: grid; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.faq-item { background: #fff; border-radius: var(--radius-lg); }
.faq-item__question { font-weight: 650; }

/* Drawer cerrado: sin sombra asomando por el borde derecho en móvil. */
.site-drawer:not(.is-open) { box-shadow: none; visibility: hidden; }
.site-drawer { transition: transform .28s ease, visibility 0s linear .28s; }
.site-drawer.is-open { transition: transform .28s ease; }

/* ==========================================================
   Franja de confianza (bajo el hero)
   ========================================================== */
.trust { position: relative; z-index: 2; margin-top: -2.5rem; }
.trust__inner {
    background: #fff; border: 1px solid var(--color-border); border-radius: 24px;
    box-shadow: 0 24px 48px -28px rgba(3,46,140,.45);
    padding: var(--space-lg); display: grid; gap: var(--space-lg);
}
.trust__facts { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.trust__fact { display: grid; gap: .15rem; padding-left: var(--space-md); border-left: 3px solid var(--color-sky); }
.trust__fact strong { font-size: 1.35rem; font-weight: 800; color: var(--color-primary); letter-spacing: -0.02em; }
.trust__fact span { font-size: .88rem; color: var(--color-text-muted); line-height: 1.4; }
.trust__logos {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-md) var(--space-xl);
    padding-top: var(--space-md); border-top: 1px solid var(--color-border);
}
.trust__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--color-text-subtle); width: 100%; text-align: center; }
@media (min-width: 760px) { .trust__label { width: auto; } }
.trust__logos img { height: 46px; width: auto; filter: grayscale(1); opacity: .75; transition: filter var(--transition), opacity var(--transition); }
.trust__logos img:hover { filter: none; opacity: 1; }

/* Stats del hero como tarjetas de vidrio */
.v-hero__stats { gap: var(--space-sm); }
.v-hero__stats li {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px;
    padding: .55rem .9rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ==========================================================
   Pasos de instalación
   ========================================================== */
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: none; }
.howto__step {
    position: relative; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
}
.howto__step h3 { font-size: 1.1rem; font-weight: 700; }
.howto__step p { color: var(--color-text-muted); margin: 0; }
.howto__num {
    position: absolute; top: -18px; left: var(--space-lg); width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, var(--color-sky), var(--color-primary)); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: var(--shadow-md);
}

/* ==========================================================
   Dónde se usa
   ========================================================== */
.uses { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); grid-template-columns: repeat(3, 1fr); }
.uses__item {
    display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--color-border);
    border-radius: 14px; padding: .9rem 1rem; font-weight: 600; color: var(--color-text-strong);
}
.uses__item svg { flex-shrink: 0; color: var(--color-primary); background: var(--color-sky-soft); border-radius: 10px; padding: 7px; width: 36px; height: 36px; }

/* Placeholder de foto de producto más trabajado */
.product-card__placeholder {
    color: #fff;
    background:
        radial-gradient(circle at 25% 20%, rgba(255,255,255,.35), transparent 45%),
        linear-gradient(150deg, var(--color-sky) 0%, var(--color-primary) 100%);
}

/* ==========================================================
   Aparición suave al hacer scroll (ver layoutEnd)
   ========================================================== */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out-quart), transform .6s var(--ease-out-quart); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; } }
@media (max-width: 600px) {
    .uses { grid-template-columns: 1fr 1fr; }
    .uses__item { flex-direction: column; align-items: flex-start; gap: .5rem; font-size: .9rem; line-height: 1.3; }
}

/* ==========================================================
   Ventajas con clorador animado (components/valac/_advantages.php)
   ========================================================== */
.section-head--center { max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }
.adv-section { overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--color-bg-alt) 100%); }
.adv { display: grid; gap: var(--space-xl); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .adv { grid-template-columns: 1fr minmax(220px, 280px) 1fr; } }

.adv__col { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); }
.adv__item { display: flex; gap: var(--space-md); align-items: flex-start; }
.adv__icon {
    flex-shrink: 0; width: 72px; height: 72px; border-radius: 20px; background: #fff;
    border: 1px solid var(--color-border); box-shadow: var(--shadow-md);
    display: flex; align-items: center; justify-content: center;
}
.adv__icon img { width: 46px; height: 46px; }
.adv__title { font-size: 1.1rem; font-weight: 700; margin: .2rem 0 .3rem; }
.adv__text { color: var(--color-text-muted); margin: 0; font-size: .95rem; }
@media (min-width: 900px) {
    .adv__item--left { flex-direction: row-reverse; text-align: right; }
}

/* Entrada escalonada desde cada lado */
.js-reveal .adv__item.reveal { transition-delay: calc(var(--i) * 120ms + 200ms); }
.js-reveal .adv__item--left.reveal  { transform: translateX(-28px); }
.js-reveal .adv__item--right.reveal { transform: translateX(28px); }
.js-reveal .adv__item.reveal.is-visible { transform: none; }

/* --- El clorador --- */
.valve { position: relative; width: min(100%, 260px); aspect-ratio: 277 / 625; margin: 0 auto; }
@media (max-width: 899px) { .valve { order: -1; width: 180px; } }
.js-reveal .valve.reveal { opacity: 1; transform: none; } /* las piezas animan, el contenedor no */

.valve__part { position: absolute; left: 0; width: 100%; height: auto; z-index: 2; will-change: transform;
    filter: drop-shadow(0 18px 18px rgba(3,46,140,.18)); }
.valve__part--tapa   { top: 0; }
.valve__part--torre  { top: 19.2%; z-index: 3; } /* por delante: su borde entra en la tapa */
.valve__part--cuerpo { top: 56.96%; }

.valve__glow {
    position: absolute; inset: 10% -30%; border-radius: 50%; z-index: 0;
    background: radial-gradient(closest-side, rgba(15,154,235,.28), rgba(15,154,235,0));
    animation: valve-glow 4s ease-in-out infinite;
}
.valve__ring {
    position: absolute; left: 50%; top: 58%; width: 150%; aspect-ratio: 1; z-index: 0;
    border: 2px dashed rgba(3,46,140,.14); border-radius: 50%;
    transform: translate(-50%, -50%); animation: valve-spin 40s linear infinite;
}

/* Estado inicial: piezas separadas y ocultas. Al verse, se arman en orden. */
.js-reveal .valve .valve__part { opacity: 0; transition: transform 1s var(--ease-out-quart), opacity .6s ease; }
.js-reveal .valve .valve__part--tapa   { transform: translateY(-120px) rotate(-6deg); }
.js-reveal .valve .valve__part--torre  { transform: translateY(-70px); }
.js-reveal .valve .valve__part--cuerpo { transform: translateY(60px); }
.js-reveal .valve.is-visible .valve__part { opacity: 1; transform: none; }
.js-reveal .valve.is-visible .valve__part--cuerpo { transition-delay: .1s; }
.js-reveal .valve.is-visible .valve__part--torre  { transition-delay: .45s; }
.js-reveal .valve.is-visible .valve__part--tapa   { transition-delay: .8s; }

/* Después de armarse: despiece que "respira" (tapa y torre suben y bajan). */
.valve.is-visible .valve__part--tapa  { animation: valve-breathe-tapa 5s ease-in-out 2s infinite; }
.valve.is-visible .valve__part--torre { animation: valve-breathe-torre 5s ease-in-out 2s infinite; }
@keyframes valve-breathe-tapa  { 0%, 100% { transform: none; } 50% { transform: translateY(-22px); } }
@keyframes valve-breathe-torre { 0%, 100% { transform: none; } 50% { transform: translateY(-9px); } }
@keyframes valve-glow { 0%, 100% { opacity: .7; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes valve-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Gotas que salen por la descarga del cuerpo hacia el estanque */
.valve__drop {
    position: absolute; z-index: 3; right: -2%; top: 88%; width: 10px; height: 14px; opacity: 0;
    background: var(--color-sky); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.valve.is-visible .valve__drop--1 { animation: valve-drop 2.2s ease-in 2.2s infinite; }
.valve.is-visible .valve__drop--2 { animation: valve-drop 2.2s ease-in 3.3s infinite; }
@keyframes valve-drop {
    0%   { opacity: 0; transform: translate(0, 0) scale(.6); }
    15%  { opacity: 1; }
    100% { opacity: 0; transform: translate(14px, 70px) scale(1); }
}

/* Etiquetas de cada pieza */
.valve__tag {
    position: absolute; z-index: 4; white-space: nowrap; font-size: .72rem; font-weight: 700;
    letter-spacing: .04em; color: var(--color-primary); background: #fff;
    border: 1px solid #cfe0f5; border-radius: 999px; padding: .25rem .6rem; box-shadow: var(--shadow-sm);
    opacity: 0; transition: opacity .5s ease 1.6s, transform .5s ease 1.6s;
}
.valve__tag--tapa   { top: 8%;  left: 78%; transform: translateX(-8px); }
.valve__tag--torre  { top: 40%; right: 72%; transform: translateX(8px); }
.valve__tag--cuerpo { top: 72%; left: 82%; transform: translateX(-8px); }
.valve.is-visible .valve__tag, .valve:not(.reveal) .valve__tag { opacity: 1; transform: none; }
@media (max-width: 899px) {
    .valve__tag { font-size: .65rem; }
    .valve__tag--torre { right: 76%; }
}

@media (prefers-reduced-motion: reduce) {
    .valve__part, .valve__glow, .valve__ring, .valve__drop { animation: none !important; }
    .js-reveal .valve .valve__part { opacity: 1; transform: none; }
}

/* ==========================================================
   Asistente WhatsApp (components/whatsapp_assistant.php)
   ========================================================== */
.wa-assist { position: fixed; right: 18px; bottom: 18px; z-index: 95; font-size: .95rem; }
@media (max-width: 960px) { .wa-assist { bottom: 88px; right: 14px; } }

.wa-assist__fab {
    position: relative; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    box-shadow: 0 10px 24px -6px rgba(37,211,102,.6); transition: transform .2s, background .2s;
}
.wa-assist__fab:hover { transform: scale(1.06); color: #fff; }
.wa-assist__fab::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
    animation: wa-pulse 2.4s ease-out infinite;
}
.wa-assist__fab-close { display: none; font-size: 2rem; line-height: 1; }
.wa-assist.is-open .wa-assist__fab { background: var(--color-primary); box-shadow: var(--shadow-lg); }
.wa-assist.is-open .wa-assist__fab::before, .wa-assist.is-open .wa-assist__dot { display: none; }
.wa-assist.is-open .wa-assist__fab-icon { display: none; }
.wa-assist.is-open .wa-assist__fab-close { display: block; }
.wa-assist__dot { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--color-accent); border: 2px solid #fff; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }

.wa-assist__teaser {
    position: absolute; right: 0; bottom: 74px; width: 250px; background: #fff; border-radius: 16px 16px 4px 16px;
    padding: .8rem 2rem .8rem .9rem; box-shadow: var(--shadow-lg); border: 1px solid var(--color-border);
    display: grid; gap: .15rem; cursor: pointer; animation: wa-in .35s var(--ease-out-quart);
}
.wa-assist__teaser[hidden] { display: none; }
.wa-assist__teaser strong { color: var(--color-text-strong); }
.wa-assist__teaser span { color: var(--color-text-muted); font-size: .88rem; }
.wa-assist__teaser-close { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 1.2rem; color: var(--color-text-subtle); cursor: pointer; }

.wa-assist__panel {
    position: absolute; right: 0; bottom: 76px; width: min(370px, calc(100vw - 28px));
    height: min(560px, calc(100vh - 140px)); display: flex; flex-direction: column;
    background: #efeae2; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(2,28,87,.55);
    opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right;
    transition: opacity .25s ease, transform .25s var(--ease-out-quart);
}
.wa-assist__panel[hidden] { display: none; }
.wa-assist.is-open .wa-assist__panel { opacity: 1; transform: none; }
@media (max-width: 960px) {
    .wa-assist__panel { height: min(560px, calc(100vh - 190px)); }
}

.wa-assist__head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; background: #075e54; color: #fff; }
.wa-assist__avatar img { width: 40px; height: 40px; border-radius: 50%; display: block; background: #fff; }
.wa-assist__who { display: grid; flex: 1; line-height: 1.25; }
.wa-assist__who span { font-size: .75rem; opacity: .85; display: flex; align-items: center; gap: .35rem; }
.wa-assist__online { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; flex-shrink: 0; }
.wa-assist__x { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }

.wa-assist__body { flex: 1; overflow-y: auto; padding: 1rem .9rem; display: flex; flex-direction: column; gap: .45rem;
    background-image: radial-gradient(rgba(7,94,84,.06) 1px, transparent 1px); background-size: 16px 16px; }
.wa-msg { max-width: 85%; padding: .55rem .8rem; border-radius: 12px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: wa-in .25s ease; white-space: pre-line; }
.wa-msg--bot { align-self: flex-start; background: #fff; border-top-left-radius: 4px; color: #111b21; }
.wa-msg--me  { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 4px; color: #111b21; }
.wa-msg--typing { display: flex; gap: 4px; padding: .7rem .8rem; }
.wa-msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa5ad; animation: wa-dot 1s infinite; }
.wa-msg--typing i:nth-child(2) { animation-delay: .15s; }
.wa-msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes wa-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.wa-assist__foot { background: #f0f2f5; padding: .7rem; display: grid; gap: .5rem; border-top: 1px solid #e2e5e9; }
.wa-assist__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.wa-assist__chips:empty { display: none; }
.wa-chip {
    border: 1px solid #25d366; color: #075e54; background: #fff; border-radius: 999px; padding: .45rem .85rem;
    font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s;
}
.wa-chip:hover { background: #25d366; color: #fff; }
.wa-chip--ghost { border-color: #c4ccd3; color: var(--color-text-muted); }
.wa-chip--ghost:hover { background: #e2e5e9; color: var(--color-text); }
.wa-assist__input { display: flex; gap: .4rem; }
.wa-assist__input[hidden] { display: none; }
.wa-assist__input input { flex: 1; border: 0; border-radius: 999px; padding: .7rem 1rem; font: inherit; background: #fff; }
.wa-assist__input input:focus { outline: 2px solid #25d366; }
.wa-assist__send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #25d366; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.wa-assist__submit {
    display: flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 999px;
    background: #25d366; color: #fff; font: inherit; font-weight: 700; padding: .8rem 1rem; cursor: pointer;
    box-shadow: 0 8px 18px -8px rgba(37,211,102,.8);
}
.wa-assist__submit[hidden] { display: none; }
.wa-assist__submit svg { width: 20px; height: 20px; }
.wa-assist__submit.is-loading { opacity: .7; }
.wa-assist__legal { margin: 0; font-size: .7rem; color: #8696a0; text-align: center; }

/* ==========================================================
   Página de gracias (components/valac/thanks.php)
   ========================================================== */
.thanks {
    position: relative; overflow: hidden; text-align: center; color: #d6e2ff;
    padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(15,154,235,.5), transparent 65%),
        linear-gradient(160deg, #032e8c 0%, #021c57 100%);
}
.thanks__inner { position: relative; z-index: 1; max-width: 760px; }
.thanks__check {
    width: 112px; height: 112px; margin: 0 auto var(--space-lg); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #4ade80;
    background: rgba(255,255,255,.08); box-shadow: 0 0 0 10px rgba(74,222,128,.08), 0 0 60px rgba(74,222,128,.35);
    animation: thanks-pop .6s var(--ease-out-quart) both;
}
.thanks__circle { stroke-dasharray: 227; stroke-dashoffset: 227; animation: thanks-draw .8s ease-out .2s forwards; }
.thanks__tick   { stroke-dasharray: 60;  stroke-dashoffset: 60;  animation: thanks-draw .45s ease-out .85s forwards; }
.thanks__title { color: #fff; font-size: clamp(2rem, 1.4rem + 3vw, 3.3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: var(--space-md); }
.thanks__lead { font-size: 1.15rem; max-width: 600px; margin: 0 auto var(--space-xl); }
.thanks__ctas { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
@keyframes thanks-draw { to { stroke-dashoffset: 0; } }
@keyframes thanks-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Burbujas de agua subiendo al fondo */
.thanks__bubbles i {
    position: absolute; bottom: -40px; border-radius: 50%; background: rgba(159,216,255,.18);
    border: 1px solid rgba(159,216,255,.35); animation: thanks-rise linear infinite;
}
.thanks__bubbles i:nth-child(1) { left: 8%;  width: 22px; height: 22px; animation-duration: 9s; }
.thanks__bubbles i:nth-child(2) { left: 22%; width: 12px; height: 12px; animation-duration: 7s; animation-delay: 2s; }
.thanks__bubbles i:nth-child(3) { left: 40%; width: 30px; height: 30px; animation-duration: 11s; animation-delay: 1s; }
.thanks__bubbles i:nth-child(4) { left: 63%; width: 16px; height: 16px; animation-duration: 8s; animation-delay: 3s; }
.thanks__bubbles i:nth-child(5) { left: 80%; width: 26px; height: 26px; animation-duration: 10s; }
.thanks__bubbles i:nth-child(6) { left: 92%; width: 10px; height: 10px; animation-duration: 6s; animation-delay: 4s; }
@keyframes thanks-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-700px); opacity: 0; } }

.thanks__grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.thanks__card {
    display: flex; flex-direction: column; gap: .35rem; padding: var(--space-lg); border-radius: var(--radius-xl);
    background: #fff; border: 1px solid var(--color-border); text-decoration: none; color: var(--color-text);
    transition: box-shadow var(--transition-slow), transform var(--transition-slow), border-color var(--transition);
}
.thanks__card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #bfd9f5; }
.thanks__card strong { font-size: 1.1rem; color: var(--color-text-strong); }
.thanks__card span:not(.doc-card__icon) { color: var(--color-text-muted); font-size: .93rem; }
.thanks__card em { margin-top: auto; padding-top: var(--space-sm); font-style: normal; font-weight: 700; color: var(--color-primary); }
.doc-card__icon--sky { background: var(--color-sky); }
.doc-card__icon--navy { background: var(--color-primary); }

@media (prefers-reduced-motion: reduce) {
    .thanks__circle, .thanks__tick { stroke-dashoffset: 0; animation: none; }
    .thanks__bubbles { display: none; }
}
.thanks__lead { margin-bottom: var(--space-sm); }
.thanks__hours { display: inline-block; font-size: .85rem; color: #9fd8ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: .35rem .9rem; margin: 0 0 var(--space-xl); }

/* ==========================================================
   Ficha de producto: portada (components/valac/product.php)
   ========================================================== */
.p-hero {
    padding: var(--space-lg) 0 clamp(2.5rem, 6vw, 4.5rem);
    background:
        radial-gradient(ellipse 55% 60% at 22% 45%, rgba(15,154,235,.16), transparent 70%),
        linear-gradient(180deg, #f3f8fe 0%, #fff 100%);
    border-bottom: 1px solid var(--color-border);
}
.p-hero .crumbs { margin-bottom: var(--space-lg); }
.p-hero__grid { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .p-hero__grid { grid-template-columns: 1.05fr 1fr; } }

/* Escenario de la foto */
.p-stage {
    position: relative; border-radius: 28px; padding: clamp(1rem, 3vw, 2rem);
    background: linear-gradient(160deg, #fff 0%, #eaf3fd 100%);
    border: 1px solid #dbe8f7; box-shadow: 0 30px 60px -35px rgba(3,46,140,.45);
    isolation: isolate;
}
.p-stage__glow {
    position: absolute; inset: 12% 10% 18%; z-index: -1; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(15,154,235,.35), transparent);
    filter: blur(10px); animation: valve-glow 5s ease-in-out infinite;
}
.p-stage__img {
    display: block; width: 100%; border-radius: 18px; aspect-ratio: 1; object-fit: cover;
    box-shadow: 0 18px 30px -18px rgba(2,28,87,.5);
    animation: p-float 6s ease-in-out infinite;
}
@keyframes p-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.p-stage__badge {
    position: absolute; top: clamp(1.4rem, 4vw, 2.4rem); left: clamp(1.4rem, 4vw, 2.4rem); z-index: 2;
    background: var(--color-accent); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    padding: .35rem .7rem; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(229,37,32,.7);
}

/* Información */
.p-info__cat {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--color-primary); background: var(--color-sky-soft); border-radius: 999px; padding: .3rem .75rem;
    text-decoration: none; margin-bottom: var(--space-md);
}
.p-info__title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: var(--space-md); }
.p-info__summary { font-size: 1.08rem; color: var(--color-text-muted); margin-bottom: var(--space-lg); }

.p-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin: 0 0 var(--space-lg); }
.p-specs__item { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: .75rem .9rem; }
.p-specs dt { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-sky); margin-bottom: .2rem; }
.p-specs dd { margin: 0; font-weight: 700; color: var(--color-text-strong); line-height: 1.3; font-size: .95rem; }

.p-buy {
    display: grid; gap: var(--space-md); padding: var(--space-lg); border-radius: 20px;
    background: var(--color-navy-deep); color: #d6e2ff; margin-bottom: var(--space-md);
    background-image: radial-gradient(ellipse at 100% 0%, rgba(15,154,235,.45), transparent 60%);
}
.p-buy__price strong { display: block; font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.1; }
.p-buy__price strong.p-buy__quote { font-size: 1.4rem; }
.p-buy__price small { color: #9fd8ff; font-size: .82rem; }
.p-buy__ctas { display: grid; gap: .5rem; }
@media (min-width: 520px) { .p-buy__ctas { grid-template-columns: 1fr 1fr; } }
.p-buy__ctas .btn { justify-content: center; text-align: center; }
.btn--wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn--wa:hover { background: #1ebe57; border-color: #1ebe57; color: #fff; }

.p-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.p-trust li, .p-trust a {
    display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--color-primary);
}
.p-trust li { background: #fff; border: 1px solid var(--color-border); border-radius: 999px; padding: .4rem .75rem; }
.p-trust a { text-decoration: none; }
.p-trust svg { color: var(--color-sky); }

@media (max-width: 899px) {
    .p-hero { padding-top: var(--space-md); }
    .p-stage { max-width: 520px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .p-stage__img, .p-stage__glow { animation: none; } }
@media (max-width: 960px) {
    .wa-assist__fab { width: 52px; height: 52px; }
    .wa-assist__fab-icon svg { width: 26px; height: 26px; }
}
.p-stage .product-card__placeholder { display: flex; align-items: center; justify-content: center; }
.p-stage .product-card__placeholder svg { width: 34%; height: auto; }

/* ==========================================================
   Pulido final
   ========================================================== */

/* Pie siempre al fondo aunque la página sea corta (404, gracias). */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

/* Formularios a todo el ancho de su tarjeta. */
.contact-block .lead-form, .product-page__quote .lead-form { max-width: none; margin-bottom: 0; }

.feature-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* --- Imagen de producto: foto, recorte o ficha visual (_product_visual.php) --- */
.pv { display: block; width: 100%; height: 100%; }
.pv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv--cutout { background: radial-gradient(circle at 50% 45%, #fff 0%, var(--color-sky-soft) 75%); padding: 6% 0; }
.pv--cutout img { object-fit: contain; filter: drop-shadow(0 14px 16px rgba(3,46,140,.25)); }
.pv--poster {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
    text-align: center; padding: 1.25rem; overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(15,154,235,.18), transparent 45%),
        radial-gradient(circle at 10% 95%, rgba(3,46,140,.10), transparent 45%),
        linear-gradient(160deg, #f7fbff 0%, #e6f1fc 100%);
}
.pv--poster::after {
    content: ""; position: absolute; right: -30px; bottom: -40px; width: 160px; height: 200px; opacity: .07;
    background: var(--color-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 4S12 27 12 40a20 20 0 0 0 40 0C52 27 32 4 32 4z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 4S12 27 12 40a20 20 0 0 0 40 0C52 27 32 4 32 4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pv__icon { width: 64px; height: 64px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; margin-bottom: .4rem; }
.pv__icon img { width: 42px; height: 42px; object-fit: contain; }
.pv__value { font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); font-weight: 800; color: var(--color-primary); letter-spacing: -0.02em; line-height: 1.15; max-width: 90%; }
.pv__label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-sky); }
.pv__brand { position: absolute; left: 1rem; top: .9rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: var(--color-accent); }
.product-card__media { overflow: hidden; }
.product-card:hover .pv img { transform: scale(1.03); }
.pv img { transition: transform .5s var(--ease-out-quart); }
.p-stage .pv { aspect-ratio: 1; border-radius: 18px; overflow: hidden; }
.p-stage .pv--poster .pv__value { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.p-stage .pv--poster .pv__icon { width: 96px; height: 96px; border-radius: 26px; }
.p-stage .pv--poster .pv__icon img { width: 62px; height: 62px; }

/* --- Encabezado de páginas internas: gota de fondo y onda inferior --- */
.page-hero { position: relative; overflow: hidden; padding-bottom: clamp(3.5rem, 7vw, 5rem); }
.page-hero::before {
    content: ""; position: absolute; right: max(4%, calc(50% - 560px)); top: 50%; width: clamp(160px, 22vw, 300px); aspect-ratio: 64 / 80;
    transform: translateY(-50%) rotate(8deg); opacity: .12; background: linear-gradient(180deg, #9fd8ff, #0f9aeb);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 80'%3E%3Cpath d='M32 2S4 34 4 52a28 28 0 0 0 56 0C60 34 32 2 32 2z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 80'%3E%3Cpath d='M32 2S4 34 4 52a28 28 0 0 0 56 0C60 34 32 2 32 2z'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: p-float 7s ease-in-out infinite;
}
.page-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 36px; background: var(--color-bg);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 36' preserveAspectRatio='none'%3E%3Cpath d='M0 18c240 24 480 24 720 0s480-24 720 0v18H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 36' preserveAspectRatio='none'%3E%3Cpath d='M0 18c240 24 480 24 720 0s480-24 720 0v18H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__lead { max-width: 560px; }

/* --- Datos de contacto con íconos --- */
.info-item { grid-template-columns: 44px 1fr; column-gap: .9rem; align-items: start; }
.info-item > :not(.info-item__icon) { grid-column: 2; }
.info-item__icon {
    grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 12px; background: var(--color-sky-soft); color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
}
.contact-block__info { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-lg); }
.contact-block__info .info-item:last-child { border-bottom: 0; padding-bottom: 0; }

/* --- Página 404 (components/error_404.php) --- */
.notfound { text-align: center; }
.notfound .thanks__inner { max-width: 680px; }
.notfound__code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 800; letter-spacing: -0.05em; color: #fff; line-height: 1; margin-bottom: var(--space-sm);
    background: linear-gradient(180deg, #fff 30%, #9fd8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.notfound__links { display: grid; gap: var(--space-sm); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: var(--space-xl); }
.notfound__links a {
    display: block; padding: .9rem 1rem; border-radius: 14px; text-decoration: none; font-weight: 700; color: #fff;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: background var(--transition);
}
.notfound__links a:hover { background: rgba(255,255,255,.16); }
.notfound__links small { display: block; font-weight: 500; color: #9fd8ff; font-size: .8rem; margin-top: .15rem; }
.notfound__links { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .notfound__links { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) {
    .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--space-md)); margin-right: calc(-1 * var(--space-md));
        padding: 0 var(--space-md) .3rem; scrollbar-width: none; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { flex-shrink: 0; }
}

/* Fosas sépticas: aviso de zona en la ficha y grupos de manuales */
.p-notice {
    display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 var(--space-md);
    padding: .85rem 1rem; border-radius: 14px; font-size: .92rem; line-height: 1.45;
    background: #fff8e6; border: 1px solid #fde4a6; color: #7a4b00;
}
.p-notice svg { flex-shrink: 0; margin-top: .1rem; color: #c27c00; }
.doc-group__title { font-size: 1.25rem; margin: var(--space-xl) 0 var(--space-md); }
.doc-group__title:first-child { margin-top: 0; }

/* Dónde se usa: 3 × 2 parejo en escritorio, 2 columnas en tablet y móvil */
.uses { gap: var(--space-md); }
.uses__item { min-height: 92px; padding: 1.1rem 1.25rem; gap: 1rem; font-size: 1.02rem; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.uses__item:hover { border-color: #bfd9f5; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.uses__item svg { width: 48px; height: 48px; padding: 11px; border-radius: 14px; }
@media (max-width: 900px) { .uses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .uses { gap: var(--space-sm); } .uses__item { min-height: 0; padding: .9rem; } .uses__item svg { width: 40px; height: 40px; padding: 9px; } }

/* ==========================================================
   Página Fosas sépticas (components/valac/septic.php)
   ========================================================== */
.fs-hero {
    position: relative; overflow: hidden; color: #d6e2ff;
    padding: var(--space-lg) 0 clamp(4.5rem, 8vw, 6.5rem);
    background:
        radial-gradient(ellipse 50% 60% at 78% 45%, rgba(45,212,191,.28), transparent 65%),
        radial-gradient(ellipse 60% 70% at 15% 10%, rgba(15,154,235,.25), transparent 60%),
        linear-gradient(160deg, #032e8c 0%, #021c57 100%);
}
.fs-hero__inner { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 900px) { .fs-hero__inner { grid-template-columns: 1.1fr .9fr; } }
.fs-hero .crumbs { margin-bottom: var(--space-lg); }
.fs-hero .crumbs span:last-child { color: #d6e2ff; opacity: 1; }
.fs-hero__title { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; margin-bottom: var(--space-md); }
.fs-hero__lead { font-size: clamp(1rem, .95rem + .3vw, 1.18rem); max-width: 560px; }
.fs-zone {
    display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .5rem .9rem; border-radius: 999px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-size: .88rem; font-weight: 600; color: #fff;
}
.fs-zone svg { color: #5eead4; flex-shrink: 0; }
.fs-hero__visual { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.fs-hero__glow { position: absolute; inset: 8% 0 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(94,234,212,.45), transparent); filter: blur(12px); animation: valve-glow 5s ease-in-out infinite; }
.fs-hero__img { position: relative; width: 82%; margin: 0 auto; display: block; filter: drop-shadow(0 30px 30px rgba(0,0,0,.45)); animation: p-float 6s ease-in-out infinite; }
.fs-chip {
    position: absolute; display: grid; background: #fff; color: var(--color-text-muted); font-size: .72rem; line-height: 1.2;
    padding: .55rem .8rem; border-radius: 14px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45);
}
.fs-chip strong { color: var(--color-primary); font-size: 1rem; font-weight: 800; }
.fs-chip--a { left: -4%; top: 18%; animation: p-float 5s ease-in-out infinite; }
.fs-chip--b { right: -4%; top: 44%; animation: p-float 6s ease-in-out .8s infinite; }
.fs-chip--c { left: 2%; bottom: 8%; animation: p-float 5.5s ease-in-out 1.4s infinite; }
@media (max-width: 480px) { .fs-chip--a { left: 0; } .fs-chip--b { right: 0; } }

.fs-facts-wrap { padding-top: 0; margin-top: -2.5rem; position: relative; z-index: 2; padding-bottom: clamp(2rem, 5vw, 3rem); }
.fs-facts {
    list-style: none; margin: 0; padding: var(--space-lg); display: grid; gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    background: #fff; border: 1px solid var(--color-border); border-radius: 24px; box-shadow: 0 24px 48px -28px rgba(3,46,140,.45);
}
.fs-facts li { display: grid; gap: .15rem; padding-left: var(--space-md); border-left: 3px solid #2dd4bf; }
.fs-facts strong { font-size: 1.15rem; font-weight: 800; color: var(--color-primary); }
.fs-facts span { font-size: .88rem; color: var(--color-text-muted); }

/* --- Cómo funciona: texto + corte animado --- */
.fs-how { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 960px) { .fs-how { grid-template-columns: 1fr 1fr; } }
.fs-stages { list-style: none; padding: 0; margin: var(--space-lg) 0 0; display: grid; gap: var(--space-sm); }
.fs-stages li {
    display: flex; gap: .9rem; padding: var(--space-md); background: #fff; border: 1px solid var(--color-border); border-radius: 16px;
    color: var(--color-text-muted); font-size: .95rem; cursor: default; transition: border-color var(--transition), box-shadow var(--transition);
}
.fs-stages li:hover { border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.fs-stages li > span { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--color-accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fs-stages strong { display: block; color: var(--color-text-strong); margin-bottom: .2rem; font-size: 1rem; }
.fs-diagram { margin: 0; background: #fff; border-radius: 24px; border: 1px solid var(--color-border); padding: var(--space-md); box-shadow: var(--shadow-lg); }
.fs-diagram svg { width: 100%; height: auto; display: block; border-radius: 16px; }
.fs-diagram figcaption { font-size: .75rem; color: var(--color-text-subtle); text-align: center; margin-top: .5rem; }
.fs-svg-label { font: 600 13px "Plus Jakarta Sans", sans-serif; fill: #44546f; }
.fs-num circle { fill: #e52520; }
.fs-num text { fill: #fff; font: 800 15px "Plus Jakarta Sans", sans-serif; text-anchor: middle; }
.fs-flow { animation: fs-dash 1.4s linear infinite; }
@keyframes fs-dash { to { stroke-dashoffset: -36; } }
.fs-solids circle { fill: #6b4f2e; animation: fs-sink 3.2s ease-in infinite; }
.fs-solids circle:nth-child(2) { animation-delay: .8s; }
.fs-solids circle:nth-child(3) { animation-delay: 1.6s; }
.fs-solids circle:nth-child(4) { animation-delay: 2.4s; }
@keyframes fs-sink { 0% { transform: translate(0,0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translate(12px, 110px); opacity: 1; } 100% { transform: translate(14px, 190px); opacity: 0; } }
.fs-gas circle { fill: rgba(255,255,255,.85); stroke: #7cc4ef; stroke-width: 1.5; animation: fs-rise 3s ease-out infinite; }
.fs-gas circle:nth-child(2) { animation-delay: .7s; }
.fs-gas circle:nth-child(3) { animation-delay: 1.4s; }
.fs-gas circle:nth-child(4) { animation-delay: 2.1s; }
@keyframes fs-rise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-230px); opacity: 0; } }
.fs-diagram [class^="fs-zone-"] { transition: opacity .3s, filter .3s; }
.fs-diagram[data-active] [class^="fs-zone-"] { opacity: .35; }
.fs-diagram[data-active="1"] .fs-zone-1, .fs-diagram[data-active="2"] .fs-zone-2, .fs-diagram[data-active="3"] .fs-zone-3 { opacity: 1; filter: drop-shadow(0 0 6px #e52520); }

/* --- Modelos --- */
.fs-models { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fs-model {
    position: relative; display: flex; flex-direction: column; gap: .35rem; padding: var(--space-lg); border-radius: 20px;
    background: #fff; border: 1px solid var(--color-border); transition: box-shadow var(--transition-slow), transform var(--transition-slow);
}
.fs-model:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.fs-model--top { border: 2px solid var(--color-primary); background: linear-gradient(180deg, #f3f8fe, #fff); }
.fs-model__flag { position: absolute; top: -12px; left: var(--space-lg); background: var(--color-primary); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 999px; }
.fs-model__name { font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--color-sky); text-transform: uppercase; }
.fs-model__cap { font-size: 2.3rem; font-weight: 800; color: var(--color-text-strong); letter-spacing: -0.03em; line-height: 1; }
.fs-model__cap small { font-size: .9rem; font-weight: 600; color: var(--color-text-muted); letter-spacing: 0; }
.fs-model__desc { color: var(--color-text-muted); font-size: .92rem; flex: 1; margin-bottom: var(--space-sm); }
.fs-model .btn { align-self: flex-start; }
.fs-note { margin: var(--space-lg) 0 0; color: var(--color-text-muted); font-size: .92rem; }

/* --- Construcción --- */
.fs-build { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.fs-build__item { padding: var(--space-lg); border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.fs-build__icon { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; align-items: center; justify-content: center; background: rgba(94,234,212,.15); color: #5eead4; margin-bottom: var(--space-md); }
.fs-build__item h3 { color: #fff; font-size: 1.05rem; margin-bottom: .35rem; }
.fs-build__item p { margin: 0; font-size: .92rem; color: #b9cbf5; }

/* --- Instalación --- */
.fs-install { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 960px) { .fs-install { grid-template-columns: 1.15fr .85fr; } }
.fs-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); counter-reset: none; }
.fs-steps li { display: flex; gap: var(--space-md); padding: var(--space-lg); background: #fff; border: 1px solid var(--color-border); border-radius: 18px; }
.fs-steps__n { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--color-sky), var(--color-primary)); color: #fff; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.fs-steps h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.fs-steps p { margin: 0; color: var(--color-text-muted); font-size: .94rem; }
.fs-distances { position: sticky; top: 100px; padding: var(--space-lg); border-radius: 22px; background: var(--color-bg-alt); border: 1px solid var(--color-border); }
.fs-distances h3 { font-size: 1.1rem; }
.fs-distances ul { margin: var(--space-md) 0 0; padding-left: 1.1rem; display: grid; gap: .4rem; color: var(--color-text-muted); font-size: .9rem; }
.fs-dist { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: var(--space-md) 0; }
.fs-dist__node { display: grid; justify-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; color: var(--color-primary); text-align: center; }
.fs-dist__node svg, .fs-dist__node img { width: 48px; height: 48px; padding: 9px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); object-fit: contain; }
.fs-dist__node--fosa img { background: #e6fffb; }
.fs-dist__line { flex: 1; text-align: center; border-top: 2px dashed var(--color-accent); padding-top: .3rem; display: grid; }
.fs-dist__line strong { color: var(--color-accent); font-size: 1.2rem; font-weight: 800; }
.fs-dist__line small { font-size: .7rem; color: var(--color-text-muted); }

/* --- Láminas + visor --- */
.fs-sheets { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.fs-sheet {
    display: grid; gap: .5rem; padding: .6rem .6rem .9rem; border-radius: 18px; background: #fff; border: 1px solid var(--color-border);
    cursor: zoom-in; text-align: left; font: inherit; color: var(--color-text-strong); font-weight: 600; font-size: .9rem;
    transition: box-shadow var(--transition-slow), transform var(--transition-slow);
}
.fs-sheet:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.fs-sheet img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--color-border); }
.fs-sheet span { padding: 0 .3rem; }
.fs-lightbox { border: 0; border-radius: 20px; padding: var(--space-md); max-width: min(92vw, 860px); max-height: 92vh; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.fs-lightbox::backdrop { background: rgba(2,28,87,.75); backdrop-filter: blur(4px); }
.fs-lightbox img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; }
.fs-lightbox p { text-align: center; margin: .6rem 0 0; font-weight: 600; }
.fs-lightbox form { position: absolute; top: .5rem; right: .5rem; margin: 0; }
.fs-lightbox__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--color-primary); color: #fff; font-size: 1.4rem; cursor: pointer; }

/* --- Soluciones avanzadas --- */
.fs-adv { display: grid; gap: var(--space-lg); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-bottom: var(--space-lg); }
.fs-adv__card { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-md); padding: var(--space-lg); border-radius: 20px; background: #fff; border: 1px solid var(--color-border); align-items: start; }
.fs-adv__card img { width: 120px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--color-border); }
.fs-adv__card h3 { font-size: 1.1rem; }
.fs-adv__card p { margin: 0; color: var(--color-text-muted); font-size: .93rem; }
@media (max-width: 480px) { .fs-adv__card { grid-template-columns: 1fr; } .fs-adv__card img { width: 100%; aspect-ratio: 16 / 9; } }

.fs-risk .callout { margin: 0; }

/* --- Mantención: línea de tiempo --- */
.fs-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); position: relative; }
.fs-timeline li { position: relative; padding: var(--space-xl) var(--space-lg) var(--space-lg); border-radius: 20px; background: #fff; border: 1px solid var(--color-border); }
.fs-timeline li::before { content: ""; position: absolute; top: 22px; left: var(--space-lg); width: 12px; height: 12px; border-radius: 50%; background: var(--color-sky); box-shadow: 0 0 0 5px var(--color-sky-soft); }
.fs-timeline__when { display: block; margin: -.35rem 0 .4rem 1.4rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-sky); }
.fs-timeline h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.fs-timeline p { margin: 0; color: var(--color-text-muted); font-size: .92rem; }
.fs-timeline__warn { border-color: #fecaca !important; background: #fff7f7 !important; }
.fs-timeline__warn::before { background: var(--color-accent) !important; box-shadow: 0 0 0 5px var(--color-accent-soft) !important; }
.fs-timeline__warn .fs-timeline__when { color: var(--color-accent); }

@media (prefers-reduced-motion: reduce) {
    .fs-flow, .fs-solids circle, .fs-gas circle, .fs-hero__img, .fs-chip, .fs-hero__glow { animation: none !important; }
}

/* Banda de fosas en el inicio y enlace en la ficha */
.fs-promo-wrap { padding-top: 0; }
.fs-promo {
    display: grid; gap: var(--space-lg); align-items: center; text-decoration: none; color: #d6e2ff;
    padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 28px; overflow: hidden; position: relative;
    background: radial-gradient(ellipse 50% 80% at 15% 50%, rgba(45,212,191,.35), transparent 65%), linear-gradient(135deg, #032e8c, #021c57);
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.fs-promo:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(3,46,140,.7); }
@media (min-width: 760px) { .fs-promo { grid-template-columns: 220px 1fr; } }
.fs-promo__img img { width: 100%; max-width: 220px; display: block; margin: 0 auto; filter: drop-shadow(0 20px 22px rgba(0,0,0,.45)); animation: p-float 6s ease-in-out infinite; }
.fs-promo__body { display: grid; gap: .6rem; justify-items: start; }
.fs-promo__title { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.fs-promo__text { max-width: 560px; }
.p-more { margin: 0 0 var(--space-md); }
.p-more a { font-weight: 700; color: var(--color-primary); }

/* ==========================================================
   Inicio: "Agua potable en 3 pasos" (rediseño)
   ========================================================== */
.steps3 { background: linear-gradient(180deg, #fff 0%, #f3f8fe 100%); }
.steps3__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); position: relative; counter-reset: none; }
@media (min-width: 900px) {
    .steps3__list { grid-template-columns: repeat(3, 1fr); }
    /* línea de avance que une los pasos, a la altura de los números */
    .steps3__list::before, .steps3__list::after {
        content: ""; position: absolute; left: 16%; right: 16%; top: 206px; height: 3px; border-radius: 3px; z-index: 0;
    }
    .steps3__list::before { background: #dbe8f7; }
    .steps3__list::after { background: linear-gradient(90deg, var(--color-sky), var(--color-primary)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out-quart) .3s; }
    .steps3__list.is-visible::after, .steps3__list:not(.reveal)::after { transform: scaleX(1); }
}
.js-reveal .steps3__list.reveal { opacity: 1; transform: none; }
.steps3__item {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #fff; border: 1px solid var(--color-border); border-radius: 24px; padding: var(--space-md) var(--space-lg) var(--space-lg);
    box-shadow: 0 20px 40px -30px rgba(3,46,140,.35); transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.steps3__item:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(3,46,140,.5); }
.steps3__visual {
    position: relative; width: 100%; height: 190px; border-radius: 18px; overflow: hidden; margin-bottom: -26px;
    background: radial-gradient(circle at 50% 40%, #fff 0%, var(--color-sky-soft) 75%);
    display: flex; align-items: center; justify-content: center;
}
.steps3__visual--photo img { width: 100%; height: 100%; object-fit: cover; }
.steps3__n {
    position: relative; z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--color-sky), var(--color-primary));
    border: 4px solid #fff; box-shadow: 0 10px 20px -8px rgba(3,46,140,.6); margin-bottom: var(--space-md);
}
.steps3__title { font-size: 1.15rem; font-weight: 800; margin-bottom: .45rem; }
.steps3__text { color: var(--color-text-muted); font-size: .95rem; margin: 0 0 var(--space-md); flex: 1; }
.steps3__fact {
    display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 700; color: var(--color-primary);
    background: var(--color-sky-soft); border-radius: 999px; padding: .4rem .85rem;
}
.steps3__fact::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-sky); }
.steps3__ctas { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; margin-top: var(--space-xl); }

/* Paso 2: tabletas que caen dentro de la torre */
.steps3__torre { height: 160px; width: auto; position: relative; z-index: 1; filter: drop-shadow(0 12px 14px rgba(3,46,140,.25)); }
.steps3__tablet {
    position: absolute; z-index: 2; left: 50%; top: -20px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #e6eef7 60%, #c6d3e3); box-shadow: 0 3px 6px rgba(0,0,0,.2);
    animation: steps3-drop 3.2s ease-in infinite;
}
.steps3__tablet--b { animation-delay: 1.6s; margin-left: -6px; }
@keyframes steps3-drop { 0% { transform: translateY(0) scale(.9); opacity: 0; } 15% { opacity: 1; } 60% { transform: translateY(95px) scale(1); opacity: 1; } 75%, 100% { transform: translateY(110px) scale(.8); opacity: 0; } }

/* Paso 3: clorador armado con marca de nivel que sube y baja */
.steps3__clorador { height: 175px; width: auto; filter: drop-shadow(0 12px 14px rgba(3,46,140,.25)); }
.steps3__level {
    position: absolute; left: calc(50% + 36px); top: 50%; display: flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 800; color: var(--color-accent); text-transform: uppercase; letter-spacing: .06em;
    animation: steps3-level 4s ease-in-out infinite;
}
.steps3__level i { width: 26px; height: 2px; background: var(--color-accent); border-radius: 2px; }
@keyframes steps3-level { 0%, 100% { transform: translateY(14px); } 50% { transform: translateY(-14px); } }
@media (max-width: 899px) { .steps3__visual { height: 170px; } }
@media (prefers-reduced-motion: reduce) { .steps3__tablet, .steps3__level { animation: none; } .steps3__tablet { opacity: 1; top: 20px; } }
