/* Tecnología · Tres sistemas — Figma 1131:35988 (y 789–1487, 100px después del hero).
   Título 1131:35990 (38/40, caja 750), bajada 1131:35991 (16/22, caja 735) y 3 cards 1131:35993/36000/36008
   (411/410/411 × 514, gap 24, borde 1 #57A232, radio 20) en y=160; el frame de las cards deja 24 abajo. */

.fs-section.fs-tec-sistemas { padding: 100px max(16px, calc(50% - 640px)) 0; }
.fs-tec-sistemas .fs-tec-sistemas__title { max-width: 750px; margin: 0 auto; line-height: 40px; }
.fs-tec-sistemas .fs-tec-sistemas__intro {
  max-width: 735px;
  margin: 20px auto 0;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  color: #706f6f;
}

.fs-tec-sistemas .fs-tec-sistemas__cards { display: flex; gap: 24px; margin-top: 56px; padding-bottom: 24px; }

/* Card: contenido a 24px (borde 1 + 23); hueco 362.7×240; círculo 48 a 20; título a 20; texto a 5; link a 14 */
.fs-tec-sistemas .fs-tec-sistemas__card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  min-width: 0;
  min-height: 514px;
  padding: 23px;
  border: 1px solid #57a232;
  border-radius: 20px;
  background: #fff;
}
.fs-tec-sistemas .fs-tec-sistemas__ph { align-self: stretch; height: 240px; }
.fs-tec-sistemas .fs-tec-sistemas__num {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  margin-top: 20px;
  border: 1px solid #57a232;
  border-radius: 50%;
  background: #fff;
  font-weight: 500;
  font-size: 18px;
  line-height: 23px;
  color: #57a232;
}
.fs-tec-sistemas .fs-tec-sistemas__card-title {
  margin-top: 20px;
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  color: #57a232;
}
/* La 3.ª tiene la caja del título más ancha (387): "soporte de equipos eléctricos" entra en una línea */
.fs-tec-sistemas .fs-tec-sistemas__card:nth-child(3) .fs-tec-sistemas__card-title { margin-right: -24.3px; }
.fs-tec-sistemas .fs-tec-sistemas__text { margin-top: 5px; font-size: 16px; line-height: 22px; color: #706f6f; }
.fs-tec-sistemas .fs-tec-sistemas__link {
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #57a232;
}

/* Mobile — Figma 1131:41580 (390×693): padding 40/20, gap 20; título 26/30 (2 líneas), bajada 15/21 centrada;
   "Carrusel · deslizar" 1131:41583: fila que desborda hasta el borde derecho (padding final 20), gap 16,
   cards 290×429 (padding 20, gap 16): hueco 250×170, círculo 48, título 700 18/22 tracking -0.4,
   texto 15/21, link 600 12/19 tracking 1.6. */
@media screen and (max-width: 749px) {
  .fs-section.fs-tec-sistemas { padding: 32px 20px 40px; } /* Figma mobile ISE-044 */
  .fs-tec-sistemas .fs-tec-sistemas__title { line-height: 30px; }
  .fs-tec-sistemas .fs-tec-sistemas__intro { margin-top: 10px; font-size: 15px; line-height: 21px; }
  /* Tarjetas (ISE-044, Figma mobile nuevo): lista de 3 tarjetas compactas como las pestañas de Servicios y Aplicaciones
     (borde 1 verde, radio 20, padding 10/15/11, gap 10, 10 bajo la bajada): círculo 34 a la izquierda, nombre 700 16/20
     verde (sin mayúsculas), texto 400 13/17 gris y "MÁS INFORMACIÓN →" 600 11/16 tracking 1.65; sin la imagen. */
  .fs-tec-sistemas .fs-tec-sistemas__cards { flex-direction: column; gap: 10px; margin: 10px 0 0; padding: 0; overflow: visible; }
  .fs-tec-sistemas .fs-tec-sistemas__card {
    display: grid;
    flex: none;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    min-height: 0;
    padding: 10px 15px 11px;
  }
  .fs-tec-sistemas .fs-tec-sistemas__ph { display: none; }
  .fs-tec-sistemas .fs-tec-sistemas__num { grid-row: 1 / span 3; width: 34px; height: 34px; margin: 4px 0 0; font-size: 15px; line-height: 18px; }
  .fs-tec-sistemas .fs-tec-sistemas__card-title,
  .fs-tec-sistemas .fs-tec-sistemas__card:nth-child(3) .fs-tec-sistemas__card-title { grid-column: 2; margin: 0; font-size: 16px; line-height: 20px; letter-spacing: 0; }
  .fs-tec-sistemas__card-title br { display: none; }
  .fs-tec-sistemas .fs-tec-sistemas__text { grid-column: 2; margin: 0; font-size: 13px; line-height: 17px; }
  .fs-tec-sistemas .fs-tec-sistemas__link { grid-column: 2; margin: 4px 0 0; font-weight: 600; font-size: 11px; line-height: 16px; letter-spacing: 1.65px; }
}
}

/* Animación (motion.css + assets/js/tec/anim.js): cada card entra con zoom, escalonada en su fila, y el círculo del
   número aparece después con rebote (como los pasos 01–04 del prototipo). Sin html.fs-anim (sin JS o con "reducir
   movimiento") no hay estado oculto. */
html.fs-anim .fs-tec-sistemas__card.fs-reveal .fs-tec-sistemas__num {
  opacity: 0;
  scale: 0.4;
  transition: scale 0.6s cubic-bezier(.34, 1.56, .64, 1), opacity 0.4s;
  transition-delay: calc(var(--fs-i, 0) * 110ms + 0.35s);
}
html.fs-anim .fs-tec-sistemas__card.in .fs-tec-sistemas__num { opacity: 1; scale: none; }
