/* =========================
   Fuente: Jost (temporal)
   ========================= */
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* =========================
   Fuente: Inter para textos específicos
   ========================= */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-VariableFont_slnt,wght_1.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* =======================================================================
   ✅ HERO - LÍNEAS DE ACCIÓN (imagen + título, con filtro oscuro)
   ======================================================================= */
html.lineas_accion .lineas-hero {
  position: relative;
  width: 100%;

  /* Mantiene proporción/altura similar al diseño */
  min-height: clamp(260px, 45vh, 420px);

  background-image: url("../img/un-grupo-diverso-de-personas-unidas-en-la-unidad-manos-de-diferentes-etnias-juntas.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;

  /* Para que no choque con navbar si es fija */
  padding: 90px 24px 60px;
  box-sizing: border-box;
  overflow: hidden;

  font-family: "Jost", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Filtro oscuro encima de la imagen (como el diseño) */
html.lineas_accion .lineas-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
  pointer-events: none;
  
  /* 🌿 Efecto sutil de respiración en el overlay */
  animation: overlayPulse 6s ease-in-out infinite;
}

@keyframes overlayPulse {
  0%, 100% {
    background: rgba(0, 0, 0, 0.65);
  }
  50% {
    background: rgba(0, 0, 0, 0.58);
  }
}

html.lineas_accion .lineas-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1100px;
  
  /* 🌿 Animación inicial del contenedor */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

html.lineas_accion .lineas-hero__content.animate-in {
  opacity: 1;
  transform: translateY(0);
}

html.lineas_accion .lineas-hero__title {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  
  /* 🌿 Animación del título */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease-out 0.2s, transform 0.9s ease-out 0.2s;
}

html.lineas_accion .lineas-hero__content.animate-in .lineas-hero__title {
  opacity: 1;
  transform: translateY(0);
}

html.lineas_accion .lineas-hero__subtitle {
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.35;
  max-width: 760px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  
  /* 🌿 Animación del subtítulo */
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.9s ease-out 0.4s, transform 0.9s ease-out 0.4s;
}

html.lineas_accion .lineas-hero__content.animate-in .lineas-hero__subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   ✅ SECCIÓN: TARJETAS "Líneas de Acción" (4 cards apiladas)
   ========================================================================== */

html.lineas_accion .lineas-cards {
  width: 100%;
  background: #ffffff;
  padding: clamp(44px, 6vw, 84px) 0; /* ✅ más espacio vertical */
}

html.lineas_accion .lineas-cards__container {
  max-width: 1180px;   /* ✅ un poco más ancho */
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  gap: 34px;           /* ✅ más separación entre cards */
}

/* CARD BASE (capa 1: base gris muy claro) */
html.lineas_accion .lineas-card {
  --accent: #1e3757; /* ✅ Color base actualizado */
  --panel: rgba(30, 55, 87, 0.76); /* ✅ Color con transparencia (0.76) */
  --tex-left: 24%;
  --tex-width: 40%;

  position: relative;
  border-radius: 20px;                /* ✅ un poco más redondeado */
  background: #f3f3f3;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  
  /* 🌿 Animación de entrada de tarjetas */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out, box-shadow 0.3s ease;
}

html.lineas_accion .lineas-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* 🌿 Delay escalonado para cada tarjeta */
html.lineas_accion .lineas-card:nth-child(1) {
  transition-delay: 0.1s;
}

html.lineas_accion .lineas-card:nth-child(2) {
  transition-delay: 0.25s;
}

html.lineas_accion .lineas-card:nth-child(3) {
  transition-delay: 0.4s;
}

html.lineas_accion .lineas-card:nth-child(4) {
  transition-delay: 0.55s;
}

/* 🌿 Efecto hover sutil en la tarjeta */
html.lineas_accion .lineas-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

/* capa 2: "placa" con textura */
html.lineas_accion .lineas-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--tex-left);
  width: var(--tex-width);
  border-radius: 20px;

  background-image: url("../img/concepto-de-fondo-de-telon-de-fondo-con-textura.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.62;
  filter: brightness(1.55) saturate(0.55) contrast(0.95);
  z-index: 0;
}

html.lineas_accion .lineas-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--tex-left);
  width: var(--tex-width);
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.62);
  z-index: 0;
}

html.lineas_accion .lineas-card__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 330px 1fr;  /* ✅ panel izquierdo más ancho */
  align-items: stretch;
  min-height: 330px;                /* ✅ MÁS ALTA (principal cambio) */
}

/* capa 3: panel de color (con transparencia 0.76) */
html.lineas_accion .lineas-card__panel {
  position: relative;
  background: var(--panel); /* ✅ Usa la variable con transparencia */
  color: #ffffff;

  padding: 34px 26px;               /* ✅ más aire */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;

  align-items: center;
  text-align: center;
  
  /* 🌿 Animación del panel */
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

html.lineas_accion .lineas-card.animate-in .lineas-card__panel {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.3s;
}

html.lineas_accion .lineas-card__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.00) 45%, rgba(0,0,0,0.10) 100%),
    url("../img/concepto-de-fondo-de-telon-de-fondo-con-textura.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: brightness(1.55) saturate(0.55) contrast(0.95);
  pointer-events: none;
}

/* ✅ Logo ahora es una imagen */
html.lineas_accion .lineas-card__logo {
  width: 104px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* 🌿 Animación del logo */
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

html.lineas_accion .lineas-card.animate-in .lineas-card__logo {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.5s;
}

html.lineas_accion .lineas-card__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ✅ Tipos más grandes */
html.lineas_accion .lineas-card__title {
  margin: 0;
  font-size: 22px;        /* ✅ */
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "Jost", sans-serif;
}

html.lineas_accion .lineas-card__subtitle {
  margin: 0;
  font-size: 16px;        /* ✅ */
  font-weight: 400;
  opacity: 0.95;
  line-height: 1.2;
  font-family: "Jost", sans-serif;
}

/* ✅ MODIFICADO: Ahora usa fuente Inter */
html.lineas_accion .lineas-card__text {
  margin: 8px 0 0;
  font-size: 14px;        /* ✅ */
  line-height: 1.65;      /* ✅ */
  opacity: 0.90;
  font-family: "Inter", sans-serif;

  text-align: left;
  align-self: stretch;
  max-width: 280px;       /* ✅ un poquito más ancho */
  margin-left: auto;
  margin-right: auto;
  text-align: justify; /* ✅ Agregado para justificar el texto */
  text-justify: inter-word; /* ✅ Mejora la distribución del espacio */
}

/* Zona derecha */
html.lineas_accion .lineas-card__media {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  
  /* 🌿 Animación de la zona de medios */
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

html.lineas_accion .lineas-card.animate-in .lineas-card__media {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.4s;
}

html.lineas_accion .lineas-card__tagline {
  margin: 0 8px 0 0;
  text-align: right;

  font-size: 13px;        /* ✅ */
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent); /* ✅ Usa la variable de color sólido */
  font-weight: 500;
  opacity: 0.95;
  font-family: "Jost", sans-serif;
}

html.lineas_accion .lineas-card__imgwrap {
  width: 100%;
  height: 250px;          /* ✅ MÁS ALTA */
  border-radius: 18px;
  overflow: hidden;
}

html.lineas_accion .lineas-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  
  /* 🌿 Efecto sutil en la imagen */
  transition: transform 0.4s ease-out;
}

html.lineas_accion .lineas-card:hover .lineas-card__img {
  transform: scale(1.05);
}

/* ✅ Variantes con colores actualizados manteniendo transparencia (0.76) */
html.lineas_accion .lineas-card--consciente,
html.lineas_accion .lineas-card--conciente {
  --accent: #213b5e; /* ✅ Color sólido para acentos */
  --panel: rgba(30, 55, 87, 1); /* ✅ Color con transparencia */
}

html.lineas_accion .lineas-card--raiz {
  --accent: #3e564e; /* ✅ Color sólido para acentos */
  --panel: rgba(49, 83, 70, 1); /* ✅ Color con transparencia */
}

html.lineas_accion .lineas-card--cultura {
  --accent: #9f1c26; /* ✅ Color sólido para acentos */
  --panel: rgba(152, 26, 34, 1); /* ✅ Color con transparencia */
}

html.lineas_accion .lineas-card--futuro {
  --accent: #549399; /* ✅ Color sólido para acentos */
  --panel: rgba(78, 140, 142, 1); /* ✅ Color con transparencia */
}

/* =======================================================================
   ✅ SECCIÓN PEQUEÑA: CTA (fondo stock6 + filtro azul + título + botón) CON PARALLAX
   ======================================================================= */
html.lineas_accion .lineas-mini-cta {
  position: relative;
  width: 100%;
  /* ✅ "muy poco" alto, como el diseño */
  min-height: clamp(350px, 18vh, 600px);

  /* ✅ PARALLAX EFFECT - Agregado para efecto de desplazamiento */
  background-image: url("../img/stock6.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* ✅ Clave para el efecto parallax */

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0; /* sin padding lateral para que quede full ancho */
  overflow: hidden;

  /* ✅ Asegura que el contenido se mantenga sobre el fondo parallax */
  z-index: 1;
}

/* ✅ Asegura que el pseudo-elemento también respete el parallax */
html.lineas_accion .lineas-mini-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 68, 115, 0.55); /* azul suave */
  z-index: -1; /* ✅ Mantiene detrás del contenido */
  pointer-events: none;
  
  /* ✅ Para que el filtro también se mueva con el fondo */
  background-attachment: fixed;
}

/* ✅ Para navegadores que no soportan background-attachment: fixed */
@media (prefers-reduced-motion: reduce) {
  html.lineas_accion .lineas-mini-cta,
  html.lineas_accion .lineas-mini-cta::before {
    background-attachment: scroll;
  }
}

html.lineas_accion .lineas-mini-cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 18px 16px; /* leve respiración sin cambiar el "alto" */
}

html.lineas_accion .lineas-mini-cta__title {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(22px, 3.2vw, 40px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  font-family: "Jost", sans-serif;
}

html.lineas_accion .lineas-mini-cta__title--em {
  font-style: italic;
  font-weight: 500;
  font-family: "Jost", sans-serif;
}

html.lineas_accion .lineas-mini-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 12px;
  padding: 9px 22px;

  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1c2b3a;
  text-decoration: none;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: "Jost", sans-serif;

  transition: transform 120ms ease, opacity 120ms ease;
}

html.lineas_accion .lineas-mini-cta__btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}