/* SECCIÓN CIFRAS CLAVE */
.cifras-clave {
  padding: 90px 0 80px;
  background: #f6f5f1;
  position: relative;
}

.cifras-clave .container {
  max-width: 1320px;
}

/* ENCABEZADO */
.cifras-clave__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 12px;
}

.cifras-clave__line {
  width: 96px;
  height: 3px;
  background: linear-gradient(90deg, #c98917 0%, #DD971A 50%, #f0b847 100%);
}

.cifras-clave__title {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #000000;
  text-align: center;
}

.cifras-clave__subtitle {
  margin: 0 0 54px;
  text-align: center;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.4;
  color: #687385;
  font-weight: 400;
}

.cifras-clave__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 34px;
  row-gap: 46px;
  align-items: start;
}

.cifra-item {
  position: relative;
  padding: 0 18px;
  text-align: center;
}

.cifra-item::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, #c98917 0%, #DD971A 50%, #f0b847 100%);
}

.cifra-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: -17px;
  width: 1px;
  height: 100%;
  background: rgba(34, 48, 70, 0.10);
}

.cifra-item:nth-child(3n)::after {
  display: none;
}

/* NÚMEROS */
.cifra-item__number {
  margin: 0 0 14px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #00723F;
}

/* ETIQUETAS */
.cifra-item__label {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 500;
  color: #000000;
  max-width: 320px;
  margin-inline: auto;
}

/* NOTAS */
.cifras-clave__footnote {
  margin: 46px 0 0;
  text-align: center;
  font-size: 1rem;
  font-style: italic;
  color: #8b7a67;
}

/* ANIMACIÓN */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVO */
@media (max-width: 1100px) {
  .cifras-clave__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cifra-item:nth-child(3n)::after {
    display: block;
  }

  .cifra-item:nth-child(2n)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .cifras-clave {
    padding: 72px 0 60px;
  }

  .cifras-clave__line {
    width: 58px;
  }

  .cifras-clave__subtitle {
    margin-bottom: 38px;
  }

  .cifras-clave__grid {
    grid-template-columns: 1fr;
    row-gap: 34px;
  }

  .cifra-item {
    padding: 0 10px 28px;
    border-bottom: 1px solid rgba(34, 48, 70, 0.10);
  }

  .cifra-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .cifra-item::after {
    display: none;
  }

  .cifra-item::before {
    width: 52px;
    margin-bottom: 16px;
  }

  .cifra-item__label {
    font-size: 1rem;
  }

  .cifras-clave__footnote {
    margin-top: 30px;
    font-size: 0.95rem;
  }
}
/* SECCIÓN NOTICIAS */
.noticias {
  padding: 95px 0 85px;
  background: #eef2ef;
  position: relative;
}

.noticias__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 12px;
}

.noticias__line {
  width: 90px;
  height: 3px;
  background: linear-gradient(90deg, #c98917 0%, #DD971A 50%, #f0b847 100%);
}

.noticias__title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.03em;
  text-align: center;
}

.noticias__subtitle {
  margin: 0 0 48px;
  text-align: center;
  color: #687385;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.5;
}

/* LAYOUT PRINCIPAL */
.noticias__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 42px;
  align-items: start;
}

.noticia-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00723F;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 18px;
  border-radius: 999px;
}

.noticia-badge--small {
  font-size: 0.76rem;
  padding: 8px 14px;
}

/* NOTICIAS DESTACADAS */
.noticia-destacada {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.noticia-destacada__media {
  width: 100%;
  overflow: hidden;
}

.noticia-destacada__media img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: contain;
}

.noticia-destacada__media:hover img {
  transform: scale(1.05);
}

.noticia-destacada__content .noticia-badge {
  align-self: flex-start;
  margin-bottom: 10px;
}

.noticia-destacada__content {
  padding-right: 18px;
}

.noticia-destacada__date {
  margin: 0 0 12px;
  font-size: 0.98rem;
  color: #6b7280;
}

.noticia-destacada__title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  color: #000000;
}

.noticia-destacada__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.noticia-destacada__title a:hover {
  color: #00723F;
}

.noticia-destacada__excerpt {
  margin: 0 0 18px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #000000;
  max-width: 90%;
}

.noticia-destacada__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: #c98917;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.noticia-destacada__link:hover {
  color: #a87413;
  transform: translateX(3px);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .noticias__layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }

  .noticia-destacada {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .noticia-destacada__media {
    width: 100% !important;
    aspect-ratio: auto !important;
    min-height: auto !important;
    height: auto !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  .noticia-destacada__media img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  .noticia-destacada__content {
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .noticia-destacada__title,
  .noticia-destacada__excerpt,
  .noticia-destacada__date {
    max-width: 100% !important;
    width: 100% !important;
  }

  .noticia-destacada__title {
    font-size: 1.7rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  .noticia-destacada__excerpt {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
  }

  .noticias-lista {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    border-top: none !important;
  }

  .noticia-item {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 18px 0 !important;
    border-bottom: 1px solid rgba(34, 48, 70, 0.08) !important;
  }

  .noticia-item__thumb {
    width: 100% !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  .noticia-item__thumb img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  .noticia-item__content {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .noticia-item__title {
    font-size: 1rem !important;
    line-height: 1.45 !important;
    margin: 0 !important;
  }

  .noticia-item__date {
    font-size: 0.9rem !important;
    margin: 0 !important;
  }

  #noticiaDestacada,
  .noticia-destacada {
    min-height: auto !important;
    height: auto !important;
  }

  .noticia-destacada__media,
  .noticia-destacada__content {
    min-height: auto !important;
  }
}
/* LISTA DE NOTICIAS */
.noticias-lista {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(34, 48, 70, 0.08);
}

.noticia-item {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(34, 48, 70, 0.08);
  align-items: start;
}

.noticia-item__thumb {
  display: block;
  overflow: hidden;
  background: #dde5de;
  aspect-ratio: 4 / 3;
}

.noticia-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.noticia-item:hover .noticia-item__thumb img {
  transform: scale(1.04);
}

.noticia-item__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.noticia-item__date {
  margin: 0;
  color: #6b7280;
  font-size: 0.97rem;
  line-height: 1.4;
}

.noticia-item__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 700;
  color: #000000;
}

.noticia-item__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.noticia-item__title a:hover {
  color: #00723F;
}

.noticia-badge--investigacion {
  background: #00723F;
  color: #ffffff;
}

.noticia-badge--posgrado {
  background: #DD971A;
  color: #ffffff;
}

.noticia-badge--transparencia {
  background: #4b5d73;
  color: #ffffff;
}

.noticia-fade {
  animation: noticiaFadeIn 0.5s ease;
}

@keyframes noticiaFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.noticia-destacada {
  min-height: 780px;
}

.noticia-destacada__media {
  aspect-ratio: 16 / 10;
  min-height: 420px;
}

.noticia-destacada__content {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.noticia-destacada__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.noticia-destacada__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* TRANSICIÓN DE NOTICIA PRINCIPAL */
#noticiaDestacada {
  transition: opacity 0.45s ease, transform 0.9s ease;
}

.noticia-principal-exit {
  opacity: 0;
  transform: translateY(18px);
}

.noticia-principal-enter {
  opacity: 0;
  transform: translateY(18px);
  animation: noticiaPrincipalFadeIn 0.8s ease forwards;
}

@keyframes noticiaPrincipalFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ANIMACIONES  */
.reveal-block {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* SECCIÓN CONVOCATORIAS */
.convocatorias {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  background: #eef2ee;
}

.convocatorias__bg {
  position: absolute;
  top: -120px;
  left: 0;
  width: 100%;
  height: calc(100% + 240px);
  background-image: url("../assets/img/convocatorias-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55;
  z-index: 1;
  will-change: transform;
  pointer-events: none;
}

.convocatorias__overlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 247, 244, 0.45);
  z-index: 2;
  pointer-events: none;
}

.convocatorias__container {
  position: relative;
  z-index: 3;
}

.convocatorias__header {
  text-align: center;
  margin-bottom: 34px;
}

.convocatorias__eyebrow {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b744e;
  position: relative;
  display: inline-block;
  padding: 0 18px;
}

.convocatorias__eyebrow::before,
.convocatorias__eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #c98917 0%, #DD971A 50%, #f0b847 100%);
}

.convocatorias__eyebrow::before {
  right: 100%;
  margin-right: 14px;
}

.convocatorias__eyebrow::after {
  left: 100%;
  margin-left: 14px;
}

.convocatorias__title {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 4.5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.03em;
}

.convocatorias__subtitle {
  margin: 0 auto;
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: #5d697a;
}

.convocatorias__controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.convocatorias__arrow {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: rgba(24, 37, 54, 0.78);
  color: #ffffff;
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.convocatorias__arrow:hover {
  transform: translateY(-2px);
  background: rgba(0, 114, 63, 0.92);
}

.convocatorias__viewport {
  overflow: hidden;
  cursor: grab;
}

.convocatorias__viewport:active {
  cursor: grabbing;
}

.convocatorias__track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s ease;
  will-change: transform;
}

.convocatorias__scale {
  transform-origin: top center;
}


/* TARJETAS */
.conv-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 114, 63, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

.conv-card__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d9e2db;
}

.conv-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.conv-card:hover .conv-card__image img {
  transform: scale(1.04);
}

.conv-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 24px;
  background: rgba(255,255,255,0.98);
  border-top: 4px solid #DD971A;
  flex: 1;
}

.conv-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.conv-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  background: #00723F;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
}

.conv-card__type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  background: #eef2ef;
  color: #000000;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
}

.conv-card__title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.28;
  font-weight: 700;
  color: #000000;
}

.conv-card__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #495468;
  flex: 1;
}

.conv-card__city,
.conv-card__deadline {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: #5d697a;
}

.conv-card__city strong,
.conv-card__deadline strong {
  color: #000000;
}

.conv-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: #00723F;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  transition: background-color 0.22s ease, transform 0.22s ease;
}

.conv-card__button:hover {
  background: #0a864d;
  transform: translateY(-2px);
}

/* REVELADO */
.reveal-block {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVO */
@media (max-width: 1100px) {
  .conv-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

.convocatorias__scale {
  width: 100%;
  margin-left: 0;
  margin-bottom: 0;
  transform: none;
}

@media (max-width: 1199px) {
  .convocatorias__scale {
    transform: none;
    width: 100%;
    margin-left: 0;
    margin-bottom: 0;
  }

  @media (max-width: 1199px) {
  .convocatorias__scale {
    transform: none;
    width: 100%;
    margin-left: 0;
  }
}

  .convocatorias__eyebrow::before,
  .convocatorias__eyebrow::after {
    width: 36px;
  }

  .convocatorias__subtitle {
    font-size: 1rem;
  }

  .convocatorias__controls {
    justify-content: center;
  }

  .convocatorias__arrow {
    width: 46px;
    height: 46px;
  }

  .conv-card {
    flex: 0 0 100%;
    min-height: 500px;
  }

  .conv-card__content {
    padding: 18px 18px 20px;
  }

  .conv-card__title {
    font-size: 1.16rem;
  }

  .conv-card__text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .conv-card {
    flex: 0 0 100%;
  }
}

/* SECCIÓN DEPARTAMENTOS */
.departamentos {
  padding: 110px 0 95px;
  background: #f3f5f2;
}

.departamentos__header {
  max-width: 980px;
  margin: 0 auto 56px;
  text-align: center;
}

.departamentos__title {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111a2f;
}

.departamentos__subtitle {
  max-width: 940px;
  margin: 24px auto 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #667085;
}

.departamentos__line {
  display: block;
  width: 286px;
  max-width: 62%;
  height: 4px;
  margin: 26px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #c98917 0%, #dd971a 50%, #f0b847 100%);
}

.departamentos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.departamento-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.departamento-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  background: #dfe7df;
}

.departamento-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 114, 63, 0.08),
    rgba(0, 114, 63, 0.22)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.departamento-card__media img {
  width: 100%;
  aspect-ratio: 4 / 4;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.6s ease;
}

.departamento-card:hover .departamento-card__media img {
  transform: scale(1.035);
}

.departamento-card:hover .departamento-card__media::after {
  opacity: 1;
}

.departamento-card__content {
  text-align: center;
  padding: 0 18px;
}

.departamento-card__title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.3;
  font-weight: 800;
  color: #000000;
}

.departamento-card__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #667085;
}

.departamento-card:nth-child(2) {
  margin-top: 42px;
}


.reveal-dept {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-dept.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVO */
@media (max-width: 1100px) {
  .departamentos__grid {
    grid-template-columns: 1fr;
    gap: 42px;
    max-width: 760px;
    margin: 0 auto;
  }

  .departamento-card__media img {
    aspect-ratio: 16 / 11;
  }
  
  .departamento-card:nth-child(2) {
    margin-top: 0;
}
}

@media (max-width: 768px) {
  .departamentos {
    padding: 82px 0 70px;
  }

  .departamentos__header {
    margin-bottom: 40px;
  }

  .departamentos__subtitle {
    font-size: 1rem;
    line-height: 1.65;
  }

  .departamentos__line {
    width: 180px;
    height: 3px;
    margin-top: 22px;
  }

  .departamento-card {
    gap: 14px;
  }

  .departamento-card__media img {
    aspect-ratio: 16 / 12;
  }

  .departamento-card__content {
    padding: 0 10px;
  }

  .departamento-card__title {
    font-size: 1.6rem;
  }

  .departamento-card__text {
    font-size: 0.98rem;
  }
}


/* SECCIÓN REDES */
.redes {
   transform: scale(0.9);
  transform-origin: top center;
  padding: 110px 0 95px;
  background: #f3f5f2;
  overflow: hidden;
}

.redes__header {
  margin-bottom: 34px;
}

.redes .container {
  background: #f3f5f2;
}

body {
  background: #f3f5f2;
}

.redes__title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.05;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.03em;
}

.redes__line {
  display: block;
  width: 112px;
  height: 4px;
  border-radius: 999px;
  margin-top: 16px;
  background: linear-gradient(90deg, #c98917 0%, #dd971a 50%, #f0b847 100%);
}

.redes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.red-social {
  display: flex;
  flex-direction: column;
  background: #fbfcfb;
  border: 1px solid rgba(17, 26, 47, 0.08);
  border-radius: 24px;
  overflow: hidden;
  min-height: 860px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.red-social:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(17, 26, 47, 0.08);
  border-color: rgba(0, 114, 63, 0.14);
}

.red-social__top {
  padding: 20px 22px 18px;
  border-bottom: 1px solid rgba(17, 26, 47, 0.08);
  background: #ffffff;
}

.red-social__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.red-social__icon--img {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2ee;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.red-social__icon--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.red-social__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #000000;
}

.red-social__user {
  margin: 4px 0 0;
  font-size: 0.96rem;
  color: #667085;
  font-weight: 600;
}

.red-social__feed {
  background: #eef2ee;
  border-bottom: 1px solid rgba(17, 26, 47, 0.08);
}

.red-social__feed--facebook,
.red-social__feed--youtube {
  height: 620px;
  overflow: hidden;
}

.red-social__feed--facebook {
  height: 720px;
  overflow: hidden;
  background: #f2f4f1;
}

.red-social__iframe--facebook {
  width: 100%;
  min-width: 100%;
  height: 720px;
  display: block;
}

.red-social__feed--instagram {
  height: 620px;
  overflow: hidden;
}

.red-social__iframe,
.red-social__yt {
  width: 100%;
  height: 100%;
  display: block;
}

.red-social__ig-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 10px 8px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 26, 47, 0.22) transparent;
}

.red-social__ig-scroll::-webkit-scrollbar {
  width: 8px;
}

.red-social__ig-scroll::-webkit-scrollbar-thumb {
  background: rgba(17, 26, 47, 0.22);
  border-radius: 999px;
}

.red-social__yt-wrap {
  width: 100%;
  height: 100%;
}

.red-social__bottom {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.red-social__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #667085;
}

.red-social__link {
  font-size: 1rem;
  font-weight: 800;
  color: #c78f25;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.red-social__link:hover {
  color: #00723f;
  transform: translateX(3px);
}


.reveal-redes {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-redes.is-visible {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 1150px) {
  .redes__grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
  }

  .red-social {
    min-height: auto;
    height: auto;
  }
}

@media (max-width: 768px) {
  .redes {
    transform: none;
    padding: 78px 0 64px;
  }

  .redes__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .redes__line {
    width: 90px;
    height: 3px;
  }

  .red-social {
    border-radius: 18px;
  }

  .red-social__top {
    padding: 16px 16px 14px; 
  }

  .red-social__bottom {
    padding: 16px 16px 18px;
  }

  .red-social__feed--facebook,
  .red-social__feed--instagram,
  .red-social__feed--youtube {
    height: 450px;
  }

  .red-social__iframe--facebook {
    height: 450px;
  }

  .red-social__icon--img {
    width: 46px;
    height: 46px;
  }
}


/* SECCIÓN FOOTER */
.footer {
  background: #00723F;
  color: #f4f7f3;
  overflow: hidden;
}

.footer-links-band {
  position: relative;
  padding: 42px 0 34px;
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url("../assets/img/footer.jpeg") center/cover no-repeat;
}

.footer-links-band__header {
  margin-bottom: 22px;
}

.footer-links-band__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
}

.footer-links-band__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.footer-quicklink {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.94);
  color: #000000;
  text-decoration: none;
  padding: 14px 16px;
  min-height: 72px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-quicklink:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.footer-quicklink img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-quicklink span {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.footer-main {
  padding: 52px 0 34px;
  background: #00723F;
}

.footer-main__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 38px;
}

.footer-brand__top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.footer-brand__logo {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.footer-brand__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.footer-brand__subtitle {
  margin: 0;
  max-width: 300px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
}

.footer-section-title,
.footer-col__title {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  position: relative;
}

.footer-col__title::after,
.footer-section-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  border-radius: 999px;
  margin-top: 10px;
  background: linear-gradient(90deg, #c98917 0%, #dd971a 50%, #f0b847 100%);
}

.footer-social__icons {
  display: flex;
  gap: 12px;
}

.footer-social__icons a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.footer-social__icons a svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-social__icons a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 18px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.95);
}


.footer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #DD971A;
  transform: translateY(-50%);
}

.footer-list a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: #DD971A;
}

.footer-list--contact li {
  padding-left: 0;
}

.footer-logos {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: #00723F;
  overflow: hidden;
}

.footer-logos__viewport {
  width: 100%;
  overflow: hidden;
}

.footer-logos__track {
  display: flex;
  width: max-content;
  animation: footerLogosRight 15s linear infinite;
}

.footer-logos__group {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 18px 32px;
}

.footer-logos__group img {
  height: 42px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
  filter: brightness(1.02);
}

@keyframes footerLogosRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.footer-bottom {
  background: #00723F;
  padding: 18px 0 22px;
}

.footer-bottom__wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
}

.footer-list.footer-list--contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list.footer-list--contact li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 22px;
  line-height: 1.6;
}

.footer-list.footer-list--contact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #DD971A;
}

@media (max-width: 1200px) {
  .footer-links-band__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-main__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-links-band {
    padding: 34px 0 28px;
  }

  .footer-links-band__grid {
    grid-template-columns: 1fr;
  }

  .footer-quicklink {
    min-height: 64px;
    padding: 12px 14px;
  }

  .footer-main {
    padding: 40px 0 26px;
  }

  .footer-main__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand__top {
    gap: 14px;
    margin-bottom: 20px;
  }

  .footer-brand__logo {
    width: 54px;
  }

  .footer-logos__group {
    gap: 40px;
    padding: 14px 20px;
  }

  .footer-logos__group img {
    height: 32px;
  }

  .footer-bottom__wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* BOTÓN DE VUELTA AL INICIO */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 24px;
  background: #00723F;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease, background 0.25s ease;
}

.back-to-top:hover {
  background: #346c3d;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top__icon {
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 400;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }

  .back-to-top__icon {
    font-size: 1.9rem;
  }
}


/* SECCIÓN POPUP */
.conv-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.conv-popup.is-visible {
  display: block;
}

.conv-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 27, 43, 0.62);
  backdrop-filter: blur(3px);
}

.conv-popup__dialog {
  position: relative;
  width: min(780px, calc(100% - 40px));
  max-height: calc(100vh - 70px);
  margin: 35px auto;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  animation: popupFadeUp 0.28s ease;
}

.conv-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: #445168;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
}

.conv-popup__card {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  min-height: 430px;
  text-decoration: none;
  color: inherit;
}

.conv-popup__image-wrap {
  background: #eef2f7;
  height: 100%;
}

.conv-popup__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.conv-popup__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.conv-popup__badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #00723F;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}

.conv-popup__title {
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1.12;
  color: #183153;
  margin-bottom: 12px;
}

.conv-popup__date {
  font-size: 0.92rem;
  color: #7a8597;
  margin-bottom: 12px;
}

.conv-popup__text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #445168;
  margin-bottom: 22px;
}

.conv-popup__button {
  display: inline-flex;
  align-self: flex-start;
  justify-content: center;
  align-items: center;
  min-width: 190px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #DD971A;
  color: #183153;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.conv-popup__card:hover .conv-popup__button {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(221, 151, 26, 0.28);
}

/* RESPONSIVO */
@keyframes popupFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.popup-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .conv-popup {
    padding: 12px;
  }

  .conv-popup__dialog {
  width: min(86vw, 320px);
  max-height: 75vh;
  border-radius: 20px;
}

  .conv-popup__card {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .conv-popup__image-wrap {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
}

  .conv-popup__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

  .conv-popup__content {
  padding: 16px 16px 18px;
}

  .conv-popup__badge {
    margin-bottom: 12px;
    font-size: 0.78rem;
    padding: 6px 11px;
  }

  .conv-popup__title {
  font-size: 1rem;
  line-height: 1.18;
  margin-bottom: 8px;
}

  .conv-popup__date {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .conv-popup__text {
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

 .conv-popup__button {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  font-size: 0.88rem;
  text-align: center;
}

  .conv-popup__close {
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
}
}