/* ==========================================================
   GRUPO ARQUISOCIAL - FUNDACIÓN FEPAS
   Archivo: assets/css/fundacion-fepas.css
   Familia visual: páginas corporativas y de servicios
   Prefijo aislado: asfepv1-
   ========================================================== */

.asfepv1-page {
  --asfep-paper: #FFF9DC;
  --asfep-white: var(--as-white, #FBFBFB);
  --asfep-cream: var(--as-cream, #FFF9DC);
  --asfep-black: var(--as-black, #2A2A2A);
  --asfep-green: var(--as-green, #899F75);
  --asfep-green-dark: #899F75;
  --asfep-yellow: var(--as-yellow, #F5D892);
  --asfep-red: var(--as-red, #AA4B4B);
  --asfep-line: rgba(137, 159, 117, 0.22);
  --asfep-shadow: 0 24px 70px rgba(42, 42, 42, 0.08);

  position: relative;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  overflow-x: hidden;
  overflow-y: visible;
  background: var(--asfep-white);
  color: var(--asfep-black);
  font-family: var(--as-font-body, "Figtree", Arial, sans-serif) !important;
  isolation: isolate;
}

.asfepv1-page,
.asfepv1-page *,
.asfepv1-page *::before,
.asfepv1-page *::after {
  box-sizing: border-box;
}

.asfepv1-page [data-asfepv1-section] {
  scroll-margin-top: 110px;
}

.asfepv1-page a {
  text-decoration: none !important;
}

.asfepv1-page button,
.asfepv1-page a {
  -webkit-tap-highlight-color: transparent;
}

.asfepv1-page h1,
.asfepv1-page h2,
.asfepv1-page h3 {
  max-width: 100%;
  font-family: var(--as-font-title, "Antikor", Georgia, serif) !important;
  font-weight: 700 !important;
  letter-spacing: -0.045em !important;
  text-wrap: balance;
}

.asfepv1-page p,
.asfepv1-page span,
.asfepv1-page strong,
.asfepv1-page small,
.asfepv1-page button,
.asfepv1-page a {
  font-family: var(--as-font-body, "Figtree", Arial, sans-serif) !important;
}

.asfepv1-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--asfep-red) !important;
  font-size: 12px !important;
  line-height: 1;
  font-weight: 850 !important;
  letter-spacing: 0.115em !important;
  text-transform: uppercase;
}

.asfepv1-label::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
}

/* ==========================================================
   NAVEGACIÓN LATERAL Y CONTEXTO
   ========================================================== */

.asfepv1-rail {
  position: fixed;
  right: 20px;
  top: 54%;
  z-index: 75;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.asfepv1-rail a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--asfep-green-dark) !important;
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.095em;
  text-transform: uppercase;
  opacity: 0.66;
  transition: opacity 0.22s ease;
}

.asfepv1-rail a span {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transform: translateX(8px);
  transition: max-width 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

.asfepv1-rail a i {
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(137, 159, 117, 0.62);
  border-radius: 999px;
  background: var(--asfep-white);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.asfepv1-rail a:hover,
.asfepv1-rail a.is-active {
  opacity: 1;
}

.asfepv1-rail a:hover span,
.asfepv1-rail a.is-active span {
  max-width: 190px;
  opacity: 1;
  transform: translateX(0);
}

.asfepv1-rail a:hover i,
.asfepv1-rail a.is-active i {
  background: var(--asfep-green);
  border-color: var(--asfep-green);
  transform: scale(1.2);
}

.asfepv1-page.is-footer-visible .asfepv1-rail {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.asfepv1-context {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 70;
  width: 210px;
  padding: 13px 15px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 10px;
  border: 1px solid rgba(137, 159, 117, 0.20);
  background: var(--asfep-white);
  box-shadow: 0 14px 38px rgba(42, 42, 42, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.asfepv1-page.is-context-visible .asfepv1-context {
  opacity: 1;
  transform: translateY(0);
}

.asfepv1-context > span {
  color: var(--asfep-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.10em;
}

.asfepv1-context > strong {
  min-width: 0;
  overflow: hidden;
  color: var(--asfep-green-dark);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asfepv1-context > i {
  grid-column: 1 / -1;
  display: block;
  height: 2px;
  margin-top: 4px;
  overflow: hidden;
  background: rgba(137, 159, 117, 0.18);
}

.asfepv1-context > i b {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--asfep-green);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ==========================================================
   HERO FEPAS — FONDO FOTOGRAFICO
   Imagen: /wp-content/uploads/2026/07/fepas-hero.jpg
   ========================================================== */

.asfepv1-hero {
  position: relative;
  min-height: 88svh;
  padding: clamp(146px, 10vw, 184px) clamp(24px, 7vw, 108px) clamp(92px, 8vw, 126px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--asfep-black);
  color: var(--asfep-white);
  isolation: isolate;
}

/* Se elimina la palabra decorativa para no competir con la fotografia. */
.asfepv1-hero::before {
  content: none;
  display: none;
}

.asfepv1-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-image: url("/wp-content/uploads/2026/08/fundacion_FEPAS_HERO.jpg");
  background-repeat: no-repeat;
  background-position: center 45%;
  background-size: cover;
  transform: scale(1.015);
}

/* Degradado para mantener la lectura del texto sobre la fotografia. */
.asfepv1-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(42, 42, 42, 0.91) 0%,
      rgba(42, 42, 42, 0.76) 38%,
      rgba(42, 42, 42, 0.42) 68%,
      rgba(42, 42, 42, 0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(42, 42, 42, 0.08) 0%,
      rgba(42, 42, 42, 0.38) 100%
    );
}

.asfepv1-hero-bg::after {
  content: none;
  display: none;
}

.asfepv1-hero-bg span {
  display: none !important;
}

.asfepv1-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: block !important;
  direction: ltr !important;
}

.asfepv1-hero-copy {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  width: min(900px, 100%) !important;
  max-width: 900px !important;
  min-width: 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

.asfepv1-hero-copy > * {
  visibility: visible !important;
  opacity: 1 !important;
}

.asfepv1-hero-copy .asfepv1-label {
  color: var(--asfep-yellow) !important;
}

.asfepv1-hero-copy h1 {
  max-width: 900px;
  margin: 28px 0 0;
  color: var(--asfep-white) !important;
  font-size: clamp(52px, 6.15vw, 96px) !important;
  line-height: 0.95 !important;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.24);
}

.asfepv1-hero-copy p {
  max-width: 650px;
  margin: 30px 0 0;
  color: rgba(251, 251, 251, 0.92) !important;
  font-size: clamp(17px, 1.25vw, 21px) !important;
  line-height: 1.56 !important;
  font-weight: 430 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}



/* ==========================================================
   IDENTIDAD
   ========================================================== */

.asfepv1-identity {
  position: relative;
  padding: clamp(88px, 9vw, 138px) 7vw clamp(94px, 9vw, 144px);
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      var(--asfep-white) 0%,
      rgba(255, 249, 220, 0.78) 100%
    );
}


.asfepv1-identity-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(400px, 1.05fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
}

.asfepv1-identity-title h2,
.asfepv1-section-head h2 {
  max-width: 790px;
  margin: 26px 0 0;
  color: var(--asfep-green) !important;
  font-size: clamp(40px, 4.7vw, 72px) !important;
  line-height: 0.99 !important;
}

.asfepv1-identity-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--asfep-black) !important;
  font-size: clamp(17px, 1.2vw, 20px) !important;
  line-height: 1.6 !important;
}

.asfepv1-identity-copy p + p {
  margin-top: 24px;
}

.asfepv1-identity-strip {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: clamp(54px, 6vw, 82px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--asfep-line);
  border-left: 1px solid var(--asfep-line);
}

.asfepv1-identity-strip article {
  min-width: 0;
  min-height: 210px;
  padding: 28px;
  border-right: 1px solid var(--asfep-line);
  border-bottom: 1px solid var(--asfep-line);
  background: var(--asfep-cream);
  transition: background 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.asfepv1-identity-strip article:hover {
  z-index: 2;
  transform: translateY(-5px);
  background: var(--asfep-green);
  box-shadow: 8px 8px 0 rgba(245, 216, 146, 0.65);
}

.asfepv1-identity-strip span {
  display: block;
  color: var(--asfep-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.asfepv1-identity-strip strong {
  display: block;
  margin-top: 42px;
  color: var(--asfep-green);
  font-family: var(--as-font-title, "Antikor", Georgia, serif) !important;
  font-size: clamp(30px, 2.6vw, 44px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.asfepv1-identity-strip p {
  max-width: 280px;
  margin: 16px 0 0;
  color: var(--asfep-black) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

.asfepv1-identity-strip article:hover span,
.asfepv1-identity-strip article:hover strong,
.asfepv1-identity-strip article:hover p {
  color: var(--asfep-cream) !important;
}


/* ==========================================================
   PROGRAMAS
   ========================================================== */

.asfepv1-programs-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.asfepv1-section-head {
  max-width: 790px;
}

.asfepv1-section-head > p {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--asfep-black) !important;
  font-size: clamp(16px, 1.15vw, 19px) !important;
  line-height: 1.58 !important;
}


.asfepv1-programs {
  position: relative;
  padding: clamp(92px, 9vw, 142px) 7vw clamp(104px, 10vw, 158px);
  overflow: hidden;
  background: var(--asfep-cream);
  isolation: isolate;
}

.asfepv1-programs::before {
  content: "";
  position: absolute;
  left: clamp(24px, 5vw, 82px);
  bottom: clamp(28px, 4vw, 70px);
  z-index: 0;
  width: clamp(300px, 30vw, 500px);
  height: clamp(120px, 14vw, 220px);
  background:
    url("/wp-content/uploads/2026/08/Logo_FEPAS.png")
    center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}

.asfepv1-program-grid {
  margin-top: clamp(54px, 6vw, 86px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--asfep-line);
  border-left: 1px solid var(--asfep-line);
}

.asfepv1-program-card {
  position: relative;
  min-height: 360px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(251, 251, 251, 0.92);
  border-right: 1px solid var(--asfep-line);
  border-bottom: 1px solid var(--asfep-line);
  transition: transform 0.26s ease, background 0.26s ease, box-shadow 0.26s ease;
}


.asfepv1-program-card > span {
  position: relative;
  z-index: 2;
  color: var(--asfep-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.asfepv1-program-name {
  position: relative;
  z-index: 2;
  margin-top: 48px;
  color: var(--asfep-green);
  font-size: clamp(42px, 4.4vw, 66px);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.asfepv1-program-card h3 {
  position: relative;
  z-index: 2;
  margin: 26px 0 0;
  color: var(--asfep-green) !important;
  font-size: clamp(25px, 1.8vw, 34px) !important;
  line-height: 1.06 !important;
}

.asfepv1-program-card p {
  position: relative;
  z-index: 2;
  margin: 18px 0 0;
  color: var(--asfep-black) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.asfepv1-program-card a {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 26px;
  color: var(--asfep-green-dark) !important;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.asfepv1-program-card:hover {
  z-index: 2;
  transform: translateY(-7px);
  background: var(--asfep-green);
  box-shadow: 10px 10px 0 rgba(245, 216, 146, 0.62);
}


.asfepv1-program-card:hover > span,
.asfepv1-program-card:hover .asfepv1-program-name,
.asfepv1-program-card:hover h3,
.asfepv1-program-card:hover p,
.asfepv1-program-card:hover a {
  color: var(--asfep-cream) !important;
}


/* ==========================================================
   CONTACTO FINAL
   ========================================================== */

.asfepv1-final {
  position: relative;
  padding: clamp(76px, 7vw, 110px) 7vw;
  overflow: hidden;
  background: var(--asfep-cream);
  border-top: 1px solid rgba(137, 159, 117, 0.18);
  border-bottom: 1px solid rgba(137, 159, 117, 0.18);
  isolation: isolate;
}

.asfepv1-final::before {
  content: "";
  position: absolute;
  right: clamp(24px, 5vw, 82px);
  top: 50%;
  z-index: 0;
  width: clamp(280px, 28vw, 470px);
  height: clamp(110px, 13vw, 205px);
  background:
    url("/wp-content/uploads/2026/08/Logo_FEPAS.png")
    center / contain no-repeat;
  opacity: 0.050;
  transform: translateY(-50%);
  pointer-events: none;
}



.asfepv1-final-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(42px, 6vw, 88px);
  align-items: center;
}

.asfepv1-final h2 {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--asfep-green) !important;
  font-size: clamp(38px, 4vw, 60px) !important;
  line-height: 1.04 !important;
}

.asfepv1-final .asfepv1-label {
  color: var(--asfep-yellow) !important;
}

.asfepv1-final .asfepv1-final-copy p {
  margin-top: 24px;
}

.asfepv1-final p {
  max-width: 540px;
  margin: 0;
  color: var(--asfep-black) !important;
  font-size: clamp(16px, 1.1vw, 19px) !important;
  line-height: 1.58 !important;
}

.asfepv1-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 340px;
  margin-top: 30px;
  padding: 18px 24px;
  background: var(--asfep-green);
  color: var(--asfep-cream) !important;
  border: 1px solid rgba(137, 159, 117, 0.35);
  box-shadow: 8px 8px 0 rgba(245, 216, 146, 0.72);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.asfepv1-cta::after {
  content: "→";
  display: inline-block;
  margin-left: 16px;
  transition: transform 0.24s ease;
}

.asfepv1-cta:hover,
.asfepv1-cta:focus-visible {
  transform: translateY(-4px);
  background: var(--asfep-paper);
  color: var(--asfep-green) !important;
  box-shadow: 10px 10px 0 rgba(137, 159, 117, 0.18);
  outline: none;
}

.asfepv1-cta:hover::after,
.asfepv1-cta:focus-visible::after {
  transform: translateX(5px);
}

/* ==========================================================
   REVEAL E INTEGRACIÓN DIVI
   ========================================================== */

.asfepv1-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.68s ease, transform 0.68s ease;
}

.asfepv1-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body:has(.asfepv1-page) {
  height: auto !important;
  overflow-y: auto !important;
}

body:has(.asfepv1-page) #page-container,
body:has(.asfepv1-page) #et-main-area,
body:has(.asfepv1-page) #main-content,
body:has(.asfepv1-page) .et_pb_section,
body:has(.asfepv1-page) .et_pb_row,
body:has(.asfepv1-page) .et_pb_column,
body:has(.asfepv1-page) .et_pb_module,
body:has(.asfepv1-page) .et_pb_code,
body:has(.asfepv1-page) .et_pb_code_inner {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-y: visible !important;
}

/* ==========================================================

/* ==========================================================
   AJUSTES FINALES FEPAS - PROPÓSITO + PROGRAMAS ESPECIALIZADOS
   ========================================================== */

.asfepv1-identity {
  padding-top: clamp(76px, 7vw, 112px);
  padding-bottom: clamp(82px, 7.5vw, 120px);
}

.asfepv1-identity-strip {
  margin-top: clamp(42px, 4.5vw, 62px);
}

.asfepv1-identity-strip article {
  min-height: 190px;
}

.asfepv1-programs {
  padding-top: clamp(82px, 8vw, 124px);
  padding-bottom: clamp(88px, 8vw, 132px);
}

.asfepv1-program-card small {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: auto;
  padding-top: 24px;
  color: var(--asfep-red);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.asfepv1-program-card:hover small {
  color: var(--asfep-cream);
}

.asfepv1-final-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.asfepv1-final-action .asfepv1-cta {
  margin-top: 0;
}

/* La página FEPAS queda deliberadamente más corta y programática:
   Hero -> Propósito -> Programas/servicios -> Contacto */

@media (max-width: 1180px) {
  .asfepv1-program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .asfepv1-rail,
  .asfepv1-context {
    display: none;
  }

  .asfepv1-hero {
    min-height: auto;
    padding: 132px 6vw 92px;
  }

  .asfepv1-hero-bg {
    background-position: 58% center;
    transform: scale(1.01);
  }

  .asfepv1-hero-bg::before {
    background:
      linear-gradient(
        90deg,
        rgba(42, 42, 42, 0.89) 0%,
        rgba(42, 42, 42, 0.72) 66%,
        rgba(42, 42, 42, 0.48) 100%
      ),
      linear-gradient(
        180deg,
        rgba(42, 42, 42, 0.16) 0%,
        rgba(42, 42, 42, 0.70) 100%
      );
  }

  .asfepv1-identity-inner,
  .asfepv1-final-inner {
    grid-template-columns: 1fr;
  }

  .asfepv1-final-inner {
    gap: 30px;
  }

  .asfepv1-final-action {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .asfepv1-hero {
    padding: 116px 22px 72px;
  }

  .asfepv1-hero-bg {
    background-position: 62% center;
  }

  .asfepv1-hero-bg::before {
    background: linear-gradient(
      180deg,
      rgba(42, 42, 42, 0.46) 0%,
      rgba(42, 42, 42, 0.66) 48%,
      rgba(42, 42, 42, 0.92) 100%
    );
  }

  .asfepv1-hero-copy h1 {
    font-size: clamp(44px, 13vw, 64px) !important;
  }

  .asfepv1-hero-fact {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding: 28px 26px 30px;
    border-radius: 0 26px 26px 26px;
  }

  .asfepv1-identity,
  .asfepv1-programs,
  .asfepv1-final {
    padding-left: 22px;
    padding-right: 22px;
  }

  .asfepv1-identity-strip,
  .asfepv1-program-grid {
    grid-template-columns: 1fr;
  }

  .asfepv1-identity-strip article {
    min-height: 170px;
  }

  .asfepv1-program-card {
    min-height: 330px;
  }

  .asfepv1-cta {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .asfepv1-page *,
  .asfepv1-page *::before,
  .asfepv1-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .asfepv1-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================
   FEPAS V2 - RECUPERAR HERO ORIGINAL + QUIENES SOMOS + GALERIA
   ========================================================== */

/* HERO: recuperamos expresamente la franja verde de trayectoria */
.asfepv1-hero-fact {
  position: relative;
  width: min(790px, 100%);
  min-height: 158px;
  margin-top: clamp(46px, 5vw, 66px);
  padding: 25px clamp(26px, 3vw, 42px);
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(251, 251, 251, 0.20);
  border-radius: 0 30px 30px 30px;
  background: rgba(137, 159, 117, 0.95);
  color: var(--asfep-cream);
  box-shadow:
    12px 12px 0 rgba(245, 216, 146, 0.36),
    0 24px 70px rgba(0, 0, 0, 0.20);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.asfepv1-hero-fact::before {
  content: "";
  position: absolute;
  right: 24px;
  top: 20px;
  width: clamp(118px, 11vw, 160px);
  height: clamp(42px, 4.6vw, 64px);
  background:
    url("/wp-content/uploads/2026/08/Logo_FEPAS.png")
    center / contain no-repeat;
  filter:
    brightness(0)
    saturate(100%)
    invert(94%)
    sepia(13%)
    saturate(560%)
    hue-rotate(343deg)
    brightness(108%)
    contrast(104%);
  opacity: 0.90;
  pointer-events: none;
}

.asfepv1-hero-fact > * {
  position: relative;
  z-index: 2;
}

.asfepv1-hero-year span {
  display: block;
  color: rgba(255, 249, 220, 0.82) !important;
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.asfepv1-hero-year strong {
  display: block;
  margin-top: 13px;
  color: var(--asfep-cream) !important;
  font-size: clamp(58px, 6.8vw, 88px);
  line-height: 0.82;
  font-weight: 900;
  letter-spacing: -0.095em;
}

.asfepv1-hero-fact > p {
  max-width: 440px;
  margin: 0;
  color: var(--asfep-cream) !important;
  font-size: clamp(15px, 1.12vw, 18px) !important;
  line-height: 1.5 !important;
}

/* QUIENES SOMOS: bloque editorial con imagen + frase propia de FEPAS */
.asfepv1-who-feature {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  min-height: 390px;
  margin: clamp(50px, 5.5vw, 76px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  overflow: hidden;
  border-radius: 0 38px 38px 38px;
  background: var(--asfep-green);
  box-shadow: 14px 14px 0 rgba(245, 216, 146, 0.34);
}

.asfepv1-who-media {
  position: relative;
  min-height: 390px;
  margin: 0;
  overflow: hidden;
}

.asfepv1-who-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42, 42, 42, 0.08), rgba(42, 42, 42, 0.28)),
    linear-gradient(180deg, rgba(137, 159, 117, 0.02), rgba(137, 159, 117, 0.20));
  pointer-events: none;
}

.asfepv1-who-media img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  display: block;
  object-fit: cover;
}

.asfepv1-who-copy {
  position: relative;
  padding: clamp(34px, 4.2vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--asfep-cream);
}

.asfepv1-who-copy::before {
  content: "";
  position: absolute;
  right: 28px;
  top: 24px;
  width: clamp(110px, 10vw, 150px);
  height: 54px;
  background:
    url("/wp-content/uploads/2026/08/Logo_FEPAS.png")
    center / contain no-repeat;
  filter:
    brightness(0)
    saturate(100%)
    invert(94%)
    sepia(13%)
    saturate(560%)
    hue-rotate(343deg)
    brightness(108%)
    contrast(104%);
  opacity: 0.25;
}

.asfepv1-who-copy > span {
  position: relative;
  z-index: 2;
  color: rgba(255, 249, 220, 0.78) !important;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.asfepv1-who-copy blockquote {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 26px 0 0;
  padding: 0 !important;
  border: 0 !important;
  border-left: 0 !important;
  background: transparent !important;
  color: var(--asfep-cream) !important;
  font-family: var(--as-font-title, "Antikor", Georgia, serif) !important;
  font-size: clamp(36px, 3.4vw, 54px);
  line-height: 1.02;
  font-weight: 700;
  font-style: normal !important;
  letter-spacing: -0.045em;
  quotes: none;
}

.asfepv1-who-copy blockquote::before,
.asfepv1-who-copy blockquote::after {
  content: none !important;
  display: none !important;
}

.asfepv1-who-copy p {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 26px 0 0;
  color: rgba(255, 249, 220, 0.92) !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

/* PROGRAMAS: cuatro tarjetas de un vistazo */
.asfepv1-program-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* GALERIA */
.asfepv1-gallery {
  position: relative;
  padding: clamp(82px, 8vw, 124px) 7vw clamp(88px, 8vw, 132px);
  overflow: hidden;
  background: var(--asfep-white);
  border-top: 1px solid rgba(137, 159, 117, 0.16);
}

.asfepv1-gallery-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.asfepv1-gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.asfepv1-gallery-head h2 {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--asfep-green) !important;
  font-size: clamp(40px, 4.7vw, 70px) !important;
  line-height: 0.99 !important;
}

.asfepv1-gallery-controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.asfepv1-gallery-controls button {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--asfep-line);
  border-radius: 999px;
  background: var(--asfep-cream);
  color: var(--asfep-green-dark);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.asfepv1-gallery-controls button:hover,
.asfepv1-gallery-controls button:focus-visible {
  transform: translateY(-3px);
  background: var(--asfep-green);
  color: var(--asfep-cream);
  outline: none;
}

.asfepv1-gallery-viewport {
  margin-top: clamp(38px, 4.5vw, 58px);
  padding-bottom: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(137, 159, 117, 0.46) transparent;
}

.asfepv1-gallery-viewport::-webkit-scrollbar {
  display: block;
  height: 5px;
}

.asfepv1-gallery-viewport::-webkit-scrollbar-track {
  background: transparent;
}

.asfepv1-gallery-viewport::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(137, 159, 117, 0.46);
}

.asfepv1-gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 0 2px 4px;
}

.asfepv1-gallery-item {
  position: relative;
  flex: 0 0 clamp(290px, 30vw, 420px);
  height: clamp(280px, 30vw, 390px);
  display: block;
  overflow: hidden;
  border-radius: 0 28px 28px 28px;
  background: var(--asfep-cream);
  scroll-snap-align: start;
}

.asfepv1-gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 58%, rgba(42, 42, 42, 0.28) 100%);
  pointer-events: none;
}

.asfepv1-gallery-item::after {
  content: "+";
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 249, 220, 0.72);
  border-radius: 999px;
  background: rgba(42, 42, 42, 0.36);
  color: var(--asfep-cream);
  font-size: 20px;
  line-height: 1;
  backdrop-filter: blur(5px);
}

.asfepv1-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.asfepv1-gallery-item:nth-child(1) img { object-position: center 48%; }
.asfepv1-gallery-item:nth-child(2) img { object-position: center center; }
.asfepv1-gallery-item:nth-child(3) img { object-position: center center; }
.asfepv1-gallery-item:nth-child(4) img { object-position: center 38%; }

.asfepv1-gallery-item:hover img,
.asfepv1-gallery-item:focus-visible img {
  transform: scale(1.035);
}

.asfepv1-gallery-item:focus-visible {
  outline: 3px solid rgba(137, 159, 117, 0.45);
  outline-offset: 3px;
}

/* LIGHTBOX */
.asfepv1-lightbox[hidden] {
  display: none !important;
}

.asfepv1-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  padding: 50px 76px;
  display: grid;
  place-items: center;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(8px);
}

.asfepv1-lightbox > img {
  display: block;
  max-width: min(1240px, 86vw);
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0 24px 24px 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.asfepv1-lightbox-close,
.asfepv1-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 249, 220, 0.30);
  border-radius: 999px;
  background: rgba(255, 249, 220, 0.10);
  color: var(--asfep-cream);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.asfepv1-lightbox-close {
  right: 28px;
  top: 28px;
  width: 48px;
  height: 48px;
  font-size: 30px;
}

.asfepv1-lightbox-nav {
  top: 50%;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
  font-size: 22px;
}

.asfepv1-lightbox-nav.is-prev {
  left: 24px;
}

.asfepv1-lightbox-nav.is-next {
  right: 24px;
}

.asfepv1-lightbox-close:hover,
.asfepv1-lightbox-close:focus-visible,
.asfepv1-lightbox-nav:hover,
.asfepv1-lightbox-nav:focus-visible {
  background: var(--asfep-green);
  outline: none;
}

@media (max-width: 1180px) {
  .asfepv1-program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asfepv1-who-feature {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .asfepv1-who-feature {
    grid-template-columns: 1fr;
  }

  .asfepv1-who-media,
  .asfepv1-who-media img {
    min-height: 360px;
  }

  .asfepv1-gallery-head {
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .asfepv1-hero-fact {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding: 28px 26px 30px;
    border-radius: 0 26px 26px 26px;
  }

  .asfepv1-hero-fact::before {
    right: 20px;
    top: 18px;
    width: 112px;
    height: 44px;
    opacity: 0.82;
  }

  .asfepv1-hero-year strong {
    font-size: 68px;
  }

  .asfepv1-who-feature {
    margin-top: 42px;
    border-radius: 0 28px 28px 28px;
  }

  .asfepv1-who-media,
  .asfepv1-who-media img {
    min-height: 280px;
  }

  .asfepv1-who-copy {
    padding: 32px 26px 36px;
  }

  .asfepv1-gallery {
    padding-left: 22px;
    padding-right: 22px;
  }

  .asfepv1-gallery-head {
    display: grid;
    gap: 22px;
  }

  .asfepv1-gallery-controls {
    justify-self: start;
  }

  .asfepv1-gallery-item {
    flex-basis: min(82vw, 340px);
    height: 320px;
  }

  .asfepv1-lightbox {
    padding: 70px 18px 28px;
  }

  .asfepv1-lightbox > img {
    max-width: 94vw;
    max-height: 76vh;
  }

  .asfepv1-lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .asfepv1-lightbox-nav.is-prev {
    left: calc(50% - 58px);
  }

  .asfepv1-lightbox-nav.is-next {
    right: calc(50% - 58px);
  }
}


/* ==========================================================
   FEPAS V4 - AJUSTES DE CONTENIDO Y PROGRAMAS
   2026-09-10
   ========================================================== */

/* HERO: tarjeta de trayectoria más pequeña, solo año + logo */
.asfepv1-hero-fact {
  width: min(520px, 100%);
  min-height: 138px;
  margin-top: clamp(36px, 4vw, 52px);
  padding: 24px clamp(24px, 2.8vw, 34px);
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 28px;
  align-items: center;
  border-radius: 0 28px 28px 28px;
  box-shadow:
    10px 10px 0 rgba(245, 216, 146, 0.30),
    0 20px 54px rgba(0, 0, 0, 0.17);
}

.asfepv1-hero-fact::before {
  content: none !important;
  display: none !important;
}

.asfepv1-hero-fact-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(122px, 12vw, 158px);
  height: auto;
  object-fit: contain;
  filter:
    brightness(0)
    saturate(100%)
    invert(94%)
    sepia(13%)
    saturate(560%)
    hue-rotate(343deg)
    brightness(108%)
    contrast(104%);
}

.asfepv1-hero-year strong {
  font-size: clamp(54px, 5.6vw, 76px);
}

/* QUIÉNES SOMOS: el nuevo texto sustituye al gran titular */
.asfepv1-identity-lead {
  max-width: 590px;
  margin-top: 28px;
}

.asfepv1-identity-lead p {
  margin: 0;
  color: var(--asfep-green) !important;
  font-family: var(--as-font-body, "Figtree", Arial, sans-serif) !important;
  font-size: clamp(19px, 1.55vw, 25px) !important;
  line-height: 1.42 !important;
  font-weight: 650 !important;
  letter-spacing: -0.018em;
}

.asfepv1-identity-lead p + p {
  margin-top: 22px;
}

.asfepv1-identity-lead strong {
  color: var(--asfep-green-dark) !important;
  font-weight: 850 !important;
}

/* PROGRAMAS: listado editorial abierto, sin tarjetas */
.asfepv1-program-list {
  margin-top: clamp(50px, 5vw, 72px);
  border-top: 1px solid rgba(137, 159, 117, 0.34);
}

.asfepv1-program-item {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(260px, 0.82fr) minmax(300px, 1.18fr);
  gap: clamp(22px, 3.5vw, 54px);
  align-items: center;
  min-height: 154px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(137, 159, 117, 0.34);
}

.asfepv1-program-index {
  align-self: start;
  padding-top: 8px;
  color: var(--asfep-red);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.asfepv1-program-item .asfepv1-program-name {
  margin: 0;
  color: var(--asfep-green);
  font-size: clamp(40px, 4.2vw, 62px);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.075em;
}

.asfepv1-program-item h3 {
  margin: 18px 0 0;
  color: var(--asfep-green) !important;
  font-size: clamp(22px, 1.65vw, 30px) !important;
  line-height: 1.08 !important;
}

.asfepv1-program-item > p {
  max-width: 560px;
  margin: 0;
  color: var(--asfep-black) !important;
  font-size: clamp(15px, 1vw, 17px) !important;
  line-height: 1.55 !important;
}

/* COLECTIVOS: lista tipográfica, no tarjetas y sin descripciones */
.asfepv1-audiences {
  margin-top: clamp(72px, 7vw, 104px);
  padding-top: clamp(36px, 4vw, 54px);
  border-top: 3px solid var(--asfep-green);
}

.asfepv1-audiences-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 1.28fr);
  gap: 34px;
  align-items: end;
}

.asfepv1-audiences-head h3 {
  max-width: 700px;
  margin: 0;
  color: var(--asfep-green) !important;
  font-size: clamp(34px, 3.5vw, 54px) !important;
  line-height: 1 !important;
}

.asfepv1-audiences-list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(34px, 6vw, 90px);
}

.asfepv1-audiences-list li {
  min-width: 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid rgba(137, 159, 117, 0.26);
}

.asfepv1-audiences-list span {
  color: var(--asfep-red);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.10em;
}

.asfepv1-audiences-list strong {
  color: var(--asfep-green);
  font-family: var(--as-font-title, "Antikor", Georgia, serif) !important;
  font-size: clamp(23px, 2vw, 32px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

@media (max-width: 980px) {
  .asfepv1-program-item {
    grid-template-columns: 44px minmax(220px, 0.85fr) minmax(260px, 1.15fr);
    gap: 22px;
  }

  .asfepv1-audiences-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 680px) {
  .asfepv1-hero-fact {
    width: min(410px, 100%);
    min-height: 0;
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 24px 22px;
  }

  .asfepv1-hero-fact-logo {
    width: 108px;
  }

  .asfepv1-hero-year strong {
    font-size: 58px;
  }

  .asfepv1-identity-lead p {
    font-size: 18px !important;
    line-height: 1.46 !important;
  }

  .asfepv1-program-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0;
  }

  .asfepv1-program-item > p {
    grid-column: 2;
  }

  .asfepv1-audiences-list {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================
   FEPAS · AJUSTE QUIÉNES SOMOS + ÁMBITOS DE ACTUACIÓN
   ========================================================== */

/* Recuperamos el titular verde original en la columna izquierda. */
.asfepv1-identity-title h2 {
  max-width: 590px;
}

/* El nuevo contenido pasa a la columna derecha como texto de lectura. */
.asfepv1-identity-copy strong {
  color: var(--asfep-black) !important;
  font-family: var(--as-font-body, "Figtree", Arial, sans-serif) !important;
  font-weight: 800 !important;
}

/* En Ámbitos de actuación conservamos Antikor solo en el gran titular. */
.asfepv1-audiences-head h3 {
  font-family: var(--as-font-title, "Antikor", Georgia, serif) !important;
}

/* Los nombres de colectivos pasan a Figtree para aligerar la sección. */
.asfepv1-audiences-list strong {
  font-family: var(--as-font-body, "Figtree", Arial, sans-serif) !important;
  font-weight: 750 !important;
  letter-spacing: -0.025em !important;
}
