/* Aplicaciones · Hero — Figma Aplicaciones 1131:32709, franja 03 (y 138–688, 550 de alto).
   Foto 1131:32752 (1440×547, FILL, radios abajo 50) · velo 1131:32753 · título 32762 · bajada 32758 · botón 32759.
   Textos con alineación vertical CENTER en su caja: la posición de la línea = caja + (alto caja − alto líneas) / 2. */

.fs-apl-hero {
  position: relative;
  --fs-hero-h: clamp(500px, 38.1944vw, 733.3px); /* ISE-043: 550 a 1440; el alto acompaña al ancho (mismo encuadre de la foto), entre 500 (lugar para el texto) y el de 1920 */
  height: var(--fs-hero-h);
  overflow: hidden;
}

/* Foto: 1440×547 desde y=0, radios inferiores 50 (FILL = cover) */
/* El radio va también en la figura (con overflow): la foto entra con zoom (motion.css, .fs-hero-bg) y sin esto se ve
   rectangular hasta que termina (ISE-042) */
.fs-apl-hero__bg { position: absolute; top: 0; left: 0; width: 100%; height: calc(var(--fs-hero-h) - 3px); margin: 0; overflow: hidden; border-radius: 0 0 50px 50px; }
.fs-apl-hero__bg img { display: block; width: 100%; height: 100%; border-radius: 0 0 50px 50px; object-fit: cover; }

/* Velo: 2 degradados iguales (negro 60% a la izquierda → transparente), 841.794 de ancho, radio inferior izquierdo 50.
   En Figma mide 550 (3px más que la foto); se deja del alto de la foto para que no asome debajo de la curva. */
.fs-apl-hero::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 841.794px;
  max-width: 100%;
  height: calc(var(--fs-hero-h) - 3px);
  background:
    linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6)),
    linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  border-bottom-left-radius: 50px;
  pointer-events: none;
}

/* Contenido en x=80; título (caja 598×105 en y=128, 2 líneas de 54) → primera línea en y=126.5 */
.fs-apl-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 0 0 clamp(16px, 5.5556vw, 80px); /* x=80 en todos los héroes con foto (ISE-042) */
}

/* Título: Montserrat 400 50/54, tracking -2.28, blanco; "Tu activo energético." en Bold */
.fs-apl-hero__title {
  max-width: 598px;
  margin: 0;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 400;
  font-size: 50px;
  line-height: 54px;
  letter-spacing: 0 /* ISE-045: titulares sin tracking negativo, pedido de la clienta */;
  color: #fff;
}
.fs-apl-hero__title strong { font-weight: 700; }

/* Bajada: 400 20/24 blanco, caja 565 (4 líneas) en y=253 → 252.5 (234.5 + 18) */
.fs-apl-hero__text {
  max-width: 565px;
  margin: 18px 0 0;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: #fff;
}

/* Botón 360×54 en y=368: #57A232, borde 1px blanco, radio 100; texto 400 16/20 mayúsculas, tracking 0.28 */
.fs-apl-hero__actions { margin: 19.5px 0 0; }
.fs-apl-hero__cta .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 360px;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #fff;
  border-radius: 100px;
  background: #57a232;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  color: #fff;
}

/* Mobile — Figma Aplicaciones Mobile 1131:42196 (390×434): foto a sangre sin radio (FILL) + velo vertical
   negro .6 → .3 (1131:42197); columna con padding 40/20, gap 20, contenido centrado en vertical.
   Título 32/36 tracking -1.4592 · bajada 17/23 (5 líneas) · botón 350×54, texto 14/20 tracking 0.28. */

/* Desktop (ISE-043): el bloque de texto centrado en el alto de la foto; el margen izquierdo es el mismo en todos (x=80) */
@media screen and (min-width: 750px) {
  .fs-apl-hero { display: flex; flex-direction: column; justify-content: center; padding-bottom: 3px; /* la foto termina 3 antes */ }
}

@media screen and (max-width: 749px) {
  .fs-apl-hero { display: flex; align-items: center; height: 434px; } /* centrado en el alto de la foto (Figma mobile) */
  .fs-apl-hero__bg { height: 100%; border-radius: 0; }
  .fs-apl-hero__bg img { border-radius: 0; object-position: 35% 50%; } /* encuadre mobile de la foto oficial (ISE-044): la planta a la vista */
  .fs-apl-hero::before {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    border-radius: 0;
  }
  .fs-apl-hero__content { box-sizing: border-box; width: 100%; padding: 40px 20px; }
  .fs-apl-hero__title { max-width: none; font-size: 32px; line-height: 36px; letter-spacing: 0 /* ISE-045: titulares sin tracking negativo, pedido de la clienta */; }
  .fs-apl-hero__text { max-width: none; margin-top: 20px; font-size: 17px; line-height: 23px; }
  .fs-apl-hero__actions { margin-top: 20px; }
  .fs-apl-hero__cta { width: 100%; }
  .fs-apl-hero__cta .wp-block-button__link { width: 100%; font-size: 14px; }
}
