/* Tecnología · Diseñada para el agua + subnav — Figma 1131:36104 (y 3305), título 1131:36105 (38/44, caja 820, 2 líneas),
   bajada 36106 (16/24, caja 820) a 24; pestañas sueltas 1131:36479 en y=3537 (x 278–1194: 16px a la derecha del centro),
   "Subnav sistemas (sticky al hacer scroll)": 285/258/341 × 46, gap 16, borde 1 #57A232, radio 23; número 700 14/18,
   nombre 600 14/18 tracking 0.6, "↓" 700 16/20, separados 12, a 24 del borde (la 3.ª termina a 29). Activa: fondo verde, texto blanco. */

.fs-section.fs-tec-agua { padding: 100px max(16px, calc(50% - 640px)) 0; }
.fs-tec-agua .fs-tec-agua__title { max-width: 820px; margin: 0 auto; }
.fs-tec-agua .fs-tec-agua__text {
  max-width: 820px;
  margin: 24px auto 0;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #706f6f;
}

/* El contenedor guarda el alto cuando las pestañas quedan fijas arriba (subnav.js) */
.fs-tec-agua .fs-tec-subnav { height: 46px; margin-top: 24px; }
.fs-tec-subnav .fs-tec-subnav__tabs { display: flex; gap: 16px; padding-left: calc(50% - 442px); }
.fs-tec-subnav .fs-tec-tab { flex: 0 0 auto; }
.fs-tec-subnav .fs-tec-tab a {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: var(--w, auto);
  height: 46px;
  padding: 0 calc(var(--pr, 24px) - 1px) 0 23px;
  border: 1px solid #57a232;
  border-radius: 23px;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #57a232;
  transition: background-color 0.2s, color 0.2s;
}
.fs-tec-tab a strong { font-weight: 700; letter-spacing: 0; }
.fs-tec-tab a::after { content: '↓'; margin-left: auto; font-weight: 700; font-size: 16px; line-height: 20px; letter-spacing: 0; }
.fs-tec-subnav .fs-tec-tab:nth-child(1) a { --w: auto; width: auto; }
.fs-tec-subnav .fs-tec-tab:nth-child(2) a { --w: auto; width: auto; }
.fs-tec-subnav .fs-tec-tab:nth-child(3) a { --w: auto; width: auto; --pr: 29px; }
.fs-tec-subnav .fs-tec-tab.is-active a,
.fs-tec-subnav__tabs:not(.is-ready) .fs-tec-tab:first-child a { background: #57a232; color: #fff; }

/* Fija al pasar, justo debajo del header fijo (estado que Figma no dibuja: banda blanca detrás para que se lea).
   top = alto que tapa el header (--fs-header-h de motion.js; subnav.js lo pone en línea con el valor exacto en cada
   cuadro, también mientras el header se achica). z-index 49: por debajo del header (50), así al final del sistema 03
   la banda sube y se esconde detrás de él en vez de desaparecer de golpe. */
.fs-tec-subnav .fs-tec-subnav__tabs.is-stuck {
  position: fixed;
  z-index: 49;
  top: var(--fs-header-h, 0px);
  right: 0;
  left: 0;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: calc(50% - 442px);
  background: #fff;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.35);
}

/* Hover (lenguaje del prototipo: la flecha se corre en su dirección; la pestaña se tiñe de verde suave) */
.fs-tec-tab a::after { transition: translate 0.35s var(--fs-ease, ease); }
.fs-tec-subnav .fs-tec-tab:not(.is-active) a:hover,
.fs-tec-subnav .fs-tec-tab:not(.is-active) a:focus-visible { background: var(--fs-verde-suave, #eaf4e4); }
.fs-tec-tab a:hover::after,
.fs-tec-tab a:focus-visible::after { translate: 0 3px; }

/* Mobile — Figma 1131:41685 (390×354): padding 0/20/40, gap 20; título 26/30 (2 líneas), bajada 15/21 (8 líneas);
   "Pestañas · deslizar" 1131:41688: fila que desborda hasta el borde (padding final 20), gap 8; pestaña 46 alto,
   padding 20, gap 10; número 700 13/19, nombre 600 13/19, "↓" 700 15/21. */
@media screen and (max-width: 749px) {
  .fs-section.fs-tec-agua { padding: 0 20px 40px; }
  .fs-tec-agua .fs-tec-agua__text { margin-top: 20px; font-size: 15px; line-height: 21px; }
  .fs-tec-agua .fs-tec-subnav { display: none; } /* el Figma mobile nuevo (ISE-044) no tiene la subnavegación de sistemas */
  .fs-tec-subnav .fs-tec-subnav__tabs { gap: 8px; padding-left: 0; overflow-x: auto; scrollbar-width: none; }
  .fs-tec-subnav__tabs::-webkit-scrollbar { display: none; }
  .fs-tec-subnav__tabs::after { content: ''; flex: 0 0 12px; } /* 8 + 12 = 20 al final */
  .fs-tec-subnav .fs-tec-tab:nth-child(n) a { --w: auto; --pr: 20px; gap: 10px; padding-left: 19px; font-size: 13px; line-height: 19px; letter-spacing: 0; }
  .fs-tec-tab a::after { margin-left: 0; font-size: 15px; line-height: 21px; }
  .fs-tec-subnav .fs-tec-subnav__tabs.is-stuck { padding: 12px 0 12px 20px; }
}
