/*
Theme Name: Tema Template nivel 3
Theme URI: http://example.com
Author: Alejandro Cortes
Author URI: http://example.com
Description: Un tema personalizado desde cero
Version: 1.0
*/

/**
 * ==============================
 * VARIABLES GLOBALES Y RESET
 * ==============================
 */
 :root {
  --main-green-color: #01a499;
  --main-light-green-color: #49beb6;
  --main-lighter-green-color: #f2fbfa;
  --main-darker-green-color: #304f55;
  --main-dark-grey-color: #394049;
  --main-grey-color: #5e6269;
  --main-orange-color: #e37604;
  --variant-green-color: #2b9b7c;
}

* {
  box-sizing: border-box;
  font-family: "Nunito Sans", sans-serif;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito sans", sans-serif;
  margin: 0;
  background-repeat: no-repeat;
  display: grid;
  min-height: 100dvh;
  width: 100dvw;
  grid-template-columns: 1fr;
  grid-template-rows: min-content 1fr min-content;
  grid-auto-rows: min-content;
  overflow-x: hidden; /* Evita scroll horizontal */
}

/**
 * ==============================
 * TIPOGRAFÍA BASE
 * ==============================
 */
h1 {
  font-size: 3.2rem; /* 51.2px */
}

h2 {
  font-size: 2.7rem; /* 43.2px */
}

h3 {
  font-size: 2.2rem; /* 35.2px */
}

h4 {
  font-size: 2rem; /* 32px */
}

h5 {
  font-size: 1.7rem; /* 27.2px */
}

h6 {
  font-size: 1.5rem; /* 24px */
}

p {
  font-size: 1.35rem; /* 21.6px */
}

strong {
  font-family: "Nunito sans", sans-serif;
}

a {
  font-size: 1.3rem; 
  font-family: "Nunito sans", sans-serif;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  cursor: pointer;
}

button:hover {
  cursor: pointer;
}

/* Ajustes responsive para tipografía */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem; /* 40px */
  }

  h2 {
    font-size: 2.2rem; /* 35.2px */
  }

  h3 {
    font-size: 1.8rem; /* 28.8px */
  }

  h4 {
    font-size: 1.6rem; /* 25.6px */
  }

  h5 {
    font-size: 1.5rem; /* 24px */
  }

  h6 {
    font-size: 1.4rem; /* 22.4px */
  }

  p {
    font-size: 1.2rem; /* 19.2px */
  }
  
  a {
    font-size: 1.2rem; /* 19.2px */
  }
}

li {
  list-style: none;
}

/**
 * ==============================
 * ELEMENTOS COMUNES
 * ==============================
 */
.a-bordered {
  width: fit-content;
  height: fit-content;
  padding: 8px 15px;
  border: 1.5px solid var(--main-green-color);
  background-color: transparent;
  border-radius: 25px;
  font-size: 1.25rem;
  color: var(--main-green-color);
  font-weight: 800;
}

.a-bordered-grey {
  color: var(--main-dark-grey-color);
  border-color: var(--main-dark-grey-color);
}

/**
 * ==============================
 * NAVEGACIÓN PRINCIPAL
 * ==============================
 */
.main-nav {
  z-index: 999;
  background-color: var(--main-green-color);
  margin-bottom: 1vw;
  display: flex;
  justify-content: space-between;
  min-height: 120px;
  border-bottom-left-radius: 90px;
  border-bottom-right-radius: 90px;
  overflow: hidden;
  max-width: 100%;
}

.main-nav > a {
  display: grid;
  margin-left: 56px;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-right: 36px;
}

.menu a {
  font-size: 1.2rem !important;
}

.button-test:hover {
  filter: brightness(0.8);
}

.front-nav {
  position: absolute;
  right: 0%;
  left: 0%;
  top: 0%;
}

.main-nav img {
  width: auto;
  height: 80px;
  margin: auto 0px;
}

.main-nav div {
  margin-inline: 10px;
  width: 100%;
}

.main-nav div ul {
  height: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.main-nav li {
  width: max-content;
}

.main-nav li a {
  display: block;
  color: white;
  padding: 20px;
}

.menu-btn {
  display: none;
}

/* Responsive para navegación */
@media (max-width: 768px) {
  .main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-radius: 0px;
    grid-template-columns: 1fr min-content;
    height: auto;
    text-align: center;
    position: relative;
    margin: 0vw;
  }
  
  .main-nav .main-option {
    display: none;
  }
  
  .logo {
    width: min-content;
    display: flex;
  }
  
  .main-nav img {
    max-width: 200px;
    height: auto;
  }

  .main-nav > a {
    display: grid;
    margin-left: 24px;
  }
  
  
  .main-nav div {
    display: none;
    flex-direction: column;
    grid-column: 1/-1;
    margin-inline: 0px;
  }

  .main-nav li {
    width: 100%;
    text-align: center;
  }
  
  .main-nav li a {
    display: block;
    padding: 20px;
  }
  
  .menu-btn {
    display: grid;
    color: white;
    width: fit-content;
    background-color: transparent;
    cursor: pointer;
    place-self: center;
    border: none;
    text-align: left;
  }
  
  .menu-btn span {
    place-self: center;
    grid-column: 1;
    width: 30px;
    margin-right: 10px;
    border: 2px solid white;
  }
  
  .menu-btn p {
    font-size: 1.5rem;
    grid-column: 2;
    grid-row: 1/4;
    padding-right: 20px;
  }
}

/* Estilo usado en los pages para que las imagenes mantengan su formato */
.onlyPageContent {
  margin-top: 120px;
}

.onlyPageContent ul {
  height: 100%;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .onlyPageContent {
    margin-top: 0px;
  }
}

/**
 * ==============================
 * SLIDER Y ELEMENTOS DE CABECERA
 * ==============================
 */
.slider-buttons {
  place-self: start;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 12%;
}

.slider-buttons button {
  display: grid;
  place-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #FFF;
  border: 0px solid transparent;
  font-weight: 800;
  font-size: 1.3rem;
  background-color: #01a499;
}

.slider-buttons button:hover {
  filter: saturate(200%);
}

.main-header {
  display: grid;
  gap: 24px;
  width: 100%;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  min-height: 60vh;
  max-height: 70vh;
}

.slider-content {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding-inline: 5vw;
}

.slider-title {
  color: #01a499;
  font-size: 64px;
  line-height: 64px;
  font-weight: 800;
}

.slider-cuerpo {
  color: #111827;
  font-size: 24px;
}

.slider-more {
  border: 1px solid #01a499;
  width: max-content;
  border-radius: 8px;
  overflow: hidden;
}

.slider-more a {
  display: block;
  color: #01a499;
  font-weight: 900;
  padding: 8px 16px;
}

.slider-more a:hover {
  background-color: #01a499;
  color: white;
}

.slider-nav {
  z-index: -1;
  width: 100%;
  overflow: hidden;
  background-color: var(--main-green-color);
  border-radius: 5vw 0 0px 5vw;
  padding-left: 16px;
  min-height: 60vh;
}

.slider-nav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5vw 0 0px 5vw;
}

/* Responsive para slider */
@media (max-width: 768px) {
  .slider-title {
    font-size: 2rem;
    line-height: 2.1rem;
  }
  
  .slider-nav {
    height: fit-content; 
    min-height: auto;
  }
  
  .slider-nav img {
    display: block;
  }
  
  .slider-content {
    padding-block: 32px;
    gap: 16px;
  }
  
  .slider-cuerpo {
    font-size: 1.2rem;
  }
  
  .main-header {
    grid-template-columns: auto;
  }
}

/**
 * ==============================
 * SECCIÓN DE INFORMACIÓN
 * ==============================
 */
.section-info {
  padding-top: 64px;
  display: flex;
  flex-direction: row;
  flex: 1 1 30%;
  justify-content: space-around;
  row-gap: 60px;
  flex-wrap: wrap;
}

.section-info-div {
  border: 1px solid #01a499;
  border-radius: 160px;
  min-width: 280px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
}

.section-info-div:hover {
  border-color: white;
  background-color: #01a499CA;
}

.section-info-div:hover p {
  color: white;
}

.section-info-div i {
  display: grid;
  place-content: center;
  color: var(--main-orange-color);
  flex: 2 0 66.6666%;
  width: 100%;
  height: 100%;
}

.section-info-div img {
  flex: 2 0 66.6666%;
}

.section-info-div p {
  flex: 1 0 33.3333%;
  text-align: center;
  color: #01a499;
  font-size: 24px;
  font-family: "Nunito sans", sans-serif;
  font-weight: 700;
}

/* Responsive para sección info */
@media (max-width: 768px) {
  .section-info-div {
    min-width: 250px;
    min-height: 140px;
  }
  
  .section-info-div p {
    font-size: 20px;
  }
}

/**
 * ==============================
 * SECCIÓN DE NOTICIAS
 * ==============================
 */
.content {
  display: grid;  
  gap: 60px;
}

@media (max-width: 768px) {
  .content {
    gap: 0px;
  }
}

.section-noticias {
  padding-top: 4rem;
  min-height: 50vh;
  height: 100%;
}

.section-noticias h2 {
  margin-inline: 7vw;
}

.cuerpo-noticias {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));

}

@media (max-width: 768px) {
  .cuerpo-noticias {
    gap: 0px;
    margin-top: 0px !important;
  }

  .card-agenda {
    gap: 10px !important;
    text-align: justify;
  }
}

/* Ajustes para la sección de noticias */
.section-noticias-page {
  margin-inline: 7vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 noticias por fila */
  gap: 2rem;
  min-height: 50vh;
}

.section-noticias-page2 {
  margin-inline: 7vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-left: 300px;
  padding-bottom: 4rem;
}

/* Estilos para las cards de noticias */
.card-noticia-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--main-green-color);
}

.card-noticia-page div {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.card-noticia-page div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-noticia-page:hover div img {
  transform: scale(1.05);
}

/* Ajustes para el excerpt */
.card-noticia-page p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--main-dark-grey-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limita a 3 líneas */
  -webkit-box-orient: vertical;
  line-clamp: 3;
  box-orient: vertical;
  overflow: hidden;
  height: 4.5em;
}

/* Estilos para el botón y fecha */
.card-noticia-page .a-bordered {
  margin-top: auto;
  align-self: flex-start;
}

.card-noticia-page span {
  font-size: 0.9rem;
  color: var(--main-grey-color);
}

/* Estilos para la paginación */
.pagination {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border: 1px solid var(--main-green-color);
  border-radius: 4px;
  color: var(--main-green-color);
  text-decoration: none;
}

.pagination a:hover,
.pagination span.current {
  background-color: var(--main-green-color);
  color: white;
}

/* Responsive para noticias */
@media (max-width: 1200px) {
  .section-noticias-page,
  .section-noticias-page2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-noticias-page2 {
    padding-left: 150px;
  }
}

@media (max-width: 992px) {
  .section-noticias-page2 {
    padding-left: 50px;
  }
}

@media (max-width: 768px) {
  .section-noticias-page,
  .section-noticias-page2 {
    grid-template-columns: 1fr;
    padding-left: 0;
    margin-inline: 1rem;
  }

  .section-noticias {
    padding-top: 0;
    margin:1rem;
  }
  
  .cuerpo-noticias {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
  
  .section-noticias h2 {
    margin-inline: 1rem;
  }
}

/* Información Main noticia */
.card-main-noticia {
  flex: 1 0 350px;
  display: flex;
  flex-direction: column;
  max-width: 550px;
  margin: auto;
}

.img-main-noticia {
  overflow: hidden;
  flex: 1 1 60%;
  background-color: #01a499;
  margin: 20px 22px 0px 22px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  aspect-ratio: 16/9;
}

.img-main-noticia img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  display: block;
}

.info-main-noticia {
  flex: 1 1 30%;
  padding-left: 24px;
  border: 1px solid #01a499;
  border-radius: 16px;
  padding: 16px 16px 24px 24px;
  background-color: white;
  margin-inline: 8px;
  text-align: justify;
}

.info-main-noticia .section-date-noticia {
  font-size: 20px;
  text-align: left;
  color: #01a499;
  padding-bottom: 16px;
}

.info-main-noticia .section-bajada-noticia {
  font-size: 20px;
  text-align: left;
  padding-bottom: 32px;
  color: #394049;
  text-align: justify;
}

.info-main-noticia a {
  border: 1px solid var(--main-green-color);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 18px;
  font-weight: 900;
  color: var(--main-green-color);
}

.info-main-noticia a:hover {
  background-color: var(--main-green-color);
  color: white;
}

/* Información de noticias secundarias */
.noticias-secundarias {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  margin: auto;
  max-width: 632px;
}

.card-noticias-secundaria {
  display: grid;
  grid-template-columns: 4fr 3fr;
  grid-template-rows: 10px 1fr 10px;
}

.img-sec-noticia {
  overflow: hidden;
  grid-row: 2;
  flex: 1 1 50%;
  background-color: #01a499;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  margin: 8px 0px 8px 8px;
  aspect-ratio: 16/9;
  margin-block: auto;
}

.img-sec-noticia img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  display: block;
}

.info-sec-noticia {
  grid-row: 1 / -1;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1 0 50%;
  border: 1px solid #01a499;
  border-radius: 12px;
  padding: 8px 16px 16px 16px;
  background-color: white;
}

.info-sec-noticia .section-date-noticia-sec {
  font-size: 20px;
  text-align: left;
  color: #01a499;
  padding-bottom: 16px;
  text-align: justify;
}

.info-sec-noticia .section-bajada-noticia-sec {
  font-size: 20px;
  text-align: left;
  padding-bottom: 32px;
  color: #394049;
  text-align: justify;
}

.info-sec-noticia div a {
  border: 1px solid #01a499;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 18px;
  font-weight: 900;
  color: var(--main-green-color);
}

.info-sec-noticia div a:hover {
  background-color: var(--main-green-color);
  color: white;
}

.noti-title {
  color: var(--main-green-color);
}

.back-semisphere-noti {
  position: relative;
}

.back-semisphere-noti::after {
  position: absolute;
  aspect-ratio: 11/4;
  bottom: -200px;
  left: 0%;
  width: 100%;
  height: auto;
  content: "";
  overflow: visible;
  border-radius: 50% 50% 0% 0%;
  background-color: var(--main-lighter-green-color);
  z-index: -999;
  margin-bottom: 100px;
}

.boton-noticia {
  margin-top: 40px;
  text-align: center;
}

.boton-noticia a {
  border: 1px solid #01a499;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 18px;
  font-weight: 900;
  color: #f2fbfa;
  background-color: #01a499;
}

.boton-noticia:hover a {
  filter: saturate(200%);
}

.content-page {
  display: grid;
  gap: 50px;
  padding-bottom: 80px;
}

/* Responsive para noticias */
@media (max-width: 550px) {
  .img-sec-noticia {
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0px;
    aspect-ratio: 16/9;
    width: 88%;
    height: auto;
    margin: auto;
  }
  
  .card-noticias-secundaria {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    margin-inline: 8px;
  }
  
  .card-noticias-secundaria div {
    grid-row: auto;
    grid-column: auto;
  }
  
  .card-main-noticia {
    flex-basis: 90%;
  }
  
  .content {
    padding-block: 10px;
  }
  
  .section-noticias header {
    width: fit-content;
    transform: translateX(10%);
  }
  
  .noticias-secundarias {
    grid-template-columns: 40px;
    padding-right: 0px;
    padding-top: 32px;
    margin: auto;
    height: auto;
  }
  
  .info-sec-noticia,
  .info-main-noticia {
    padding: 18px;
  }
  
  .info-sec-noticia .section-date-noticia-sec,
  .info-main-noticia .section-date-noticia,
  .info-sec-noticia .section-bajada-noticia-sec,
  .info-main-noticia .section-bajada-noticia {
    font-size: 18px;
    padding-bottom: 16px;
    text-align: justify;
  }
}

/* PAGINA DE NOTICIAS */
.section-noticias-page header {
  width: 40vw;
  max-width: 450px;
  position: absolute;
  left: 0%;
  background-color: white;
  z-index: 999;
  transform: translateX(-30%);
  text-align: end;
}

.pagination {
  text-align: center;
}

.pagination a {
  color: var(--main-green-color);
}

.pagination span {
  color: var(--main-green-color);
  font-size: 21px;
  font-weight: 700;
}

.circle {
  width: 40vw;
  max-width: 450px;
  min-width: 230px;
  position: absolute;
  aspect-ratio: 1 / 1;
  display: block;
  z-index: -999;
  left: 0%;
  transform: translate(-35%, 0%);
  border-radius: 50%;
  background-size: 100% 100%;
  background-position: 0px 0px;
  background-image: conic-gradient(
    from 0deg at 50% 50%,
    var(--main-green-color) 5%,
    var(--main-dark-grey-color) 5%,
    var(--main-dark-grey-color) 45%,
    var(--main-green-color) 45%
  );
  background-repeat: no-repeat;
}

.circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  height: 93%;
  width: 93%;
  border-radius: 50%;
  background-color: white;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.section-noticias-page2 header {
  width: 40vw;
  max-width: 450px;
  position: absolute;
  left: 0%;
  background-color: white;
  z-index: 999;
  transform: translateX(-30%);
  text-align: end;
}

.section-noticias-page2 header h2 {
  color: var(--main-green-color);
}

/* Responsive para página de noticias */
@media (max-width: 992px) {
  .section-noticias-page header,
  .section-noticias-page2 header {
    width: 100%;
    max-width: 100%;
    position: relative;
    transform: none;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .circle {
    display: none;
  }
}

/**
 * ==============================
 * SECCIÓN DE VIDEOS
 * ==============================
 */
.section-galeria-video {
  min-height: 100vh;
  padding: 7vw;
  padding-bottom: 20px;
  position: relative;
  overflow: hidden;
  display: grid;
  height: 100%;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  place-items: center;
}

.section-galeria-video header {
  grid-column: 1/-1;
  place-self: baseline;
}

.section-galeria-video header h2 {
  font-weight: 900;
  color: #e37604;
}

.section-galeria-video a {
  grid-column: 1/-1;
}

.section-galeria-video p {
  grid-column: 1/-1;
  text-align: center;
}

/* Contenedor principal para las esferas */
.esferas {
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  width: 100%;
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  left: 0;
  width: 100%;
  z-index: -1;
}

/* Estilos individuales para las esferas */
.esfera {
  aspect-ratio: 1/1;
  width: 400px;
  height: 400px;
  background-color: rgb(255, 249, 238);
  border-radius: 50%;
}

/* Especificaciones individuales */
.esfera:first-child {
  margin-left: 0; /* Alineada a la izquierda */
}

.esfera:nth-child(2) {
  margin: 0 auto; /* Centrada horizontalmente */
}

.esfera:last-child {
  margin-right: 0; /* Alineada a la derecha */
}

.video-adapted p {
  padding-bottom: 5px;
}

.video-adapted div {
  aspect-ratio: auto;
}

.video-adapted div iframe {
  width: 100%;
  border-radius: 15px;
}

.bottom-wave {
  position: relative;
  overflow: visible;
  margin-bottom: 200px;
}

.bottom-wave::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 0%;
  left: 0%;
  width: 100%;
  height: 100px;
  background-color: var(--main-lighter-green-color);
  mask-image: url("data:image/svg+xml,%3Csvg%20width%3D%221677%22%20height%3D%22197%22%20viewBox%3D%220%200%201677%20197%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M193%2040C147%2015.6981%20101.5%200.500002%200.5%200.5V179.5L1677%20196V4.99998C1591.5%20-9%201525.53%2020.0328%201472%2047C1406.5%2080%201226.25%20120.893%201035.5%2040C844.5%20-41%20669.5%2025.5%20622%2040C595.284%2048.1554%20463.5%2087.5%20391.5%2086C319.5%2084.5%20267.214%2079.2075%20193%2040Z%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  transform: rotateX(180deg) translateY(-100%);
}

.card-galeria-video {
  width: 70%;
  background-color: white;
  padding: 20px;
  border-radius: 35px;
  border: 1px solid #e37604;
}

.card-galeria-video div {
  aspect-ratio: 28.5 / 32;
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.card-galeria-video div iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.card-galeria-video p {
  padding: 15px 7px;
  font-size: 140%;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 600;
  text-wrap: pretty;
  line-height: 2rem;
  color: var(--main-dark-grey-color);
}

.boton-video {
  border: 1px solid #e37604;
  padding: 6px 12px;
  font-size: 18px;
  font-weight: 900;
  border-radius: 8px;
  color: #f2fbfa;
  background-color: #e37604;
}

.boton-video:hover {
  filter: saturate(150%);
}

/* Responsive para videos */
@media (max-width: 768px) {
  .galeria-videos {
    grid-template-columns: 1fr;
  }
  
  .esferas {
    flex-direction: column;
  }
  
  .esfera {
    width: 200px; /* Reducir tamaño para dispositivos pequeños */
    height: 200px;
  }
  
  .esfera:first-child,
  .esfera:nth-child(2),
  .esfera:last-child {
    margin: auto;
  }
  
  .card-galeria-video {
    width: 90%;
    padding: 15px;
  }
  
  .card-galeria-video p {
    font-size: 120%;
    line-height: 1.6rem;
  }
}

/**
 * ==============================
 * SECCIÓN DE GALERÍA
 * ==============================
 */
.section-galeria {
  padding: 7vw;
  padding-bottom: 20px;
  display: grid;
  height: 100%;
  width: 100%;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 50px;
  place-items: center;
}

.section-galeria header {
  grid-column: 1/-1;
  place-self: baseline;
}

.section-galeria header h2 {
  font-weight: 900;
  color: var(--main-dark-grey-color);
}

.section-galeria a {
  grid-column: 1/-1;
}

.section-galeria-2 {
  padding: 7vw;
  padding-bottom: 20px;
  display: grid;
  height: 100%;
  width: 100%;
  grid-template-columns: 8fr 8fr 8fr;
  gap: 50px;
  place-items: center;
}

.section-galeria-2 header {
  grid-column: 1/-1;
  place-self: center;
}

.section-galeria-2 header h2 {
  font-weight: 900;
  color: var(--main-dark-grey-color);
}

.section-galeria-2 a {
  grid-column: 1/-1;
}

.card-galeria {
  width: 80%;
  background-color: white;
  padding: 20px;
  border: 1px solid #01a499;
  border-radius: 40px;
}

.card-galeria div {
  aspect-ratio: 20/19;
  width: 100%;
  height: auto;
}

.card-galeria div a img {
  display: block;
  aspect-ratio: 20/19;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}

.card-galeria p {
  word-break: break-word;
  padding: 15px 7px;
  font-size: 1.25rem;
  font-weight: 600;
  text-wrap: pretty;
  color: #474d56;
}

.boton-galeria {
  border: 1px solid #01a499;
  padding: 6px 12px;
  font-size: 18px;
  font-weight: 900;
  border-radius: 8px;
  color: #f2fbfa;
  background-color: #01a499;
}

.boton-galeria:hover {
  filter: saturate(150%);
}

/* Responsive para galería */
@media (max-width: 1024px) {
  .section-galeria {
    grid-template-columns: 1fr 1fr;
  }
  
  .card-galeria {
    width: 85%;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .section-galeria,
  .section-galeria-2 {
    grid-template-columns: 1fr;
    padding: 5vw;
    gap: 30px;
  }
  
  .card-galeria {
    width: 90%;
    padding: 15px;
    border-radius: 20px;
  }
  
  .card-galeria p {
    font-size: 1.1rem;
    padding: 10px 5px;
  }
  
  .card-galeria div a img {
    border-radius: 10px;
  }
}

.back-semisphere-galeria {
  position: relative;
}

.back-semisphere-galeria::after {
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0%;
  width: 100%;
  height: 50%;
  content: "";
  overflow: visible;
  border-radius: 0% 0% 50% 50%;
  background-color: var(--main-lighter-green-color);
  z-index: -999;
}

.top-wave {
  position: relative;
  overflow: visible;
}

.top-wave::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 10px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: var(--main-lighter-green-color);
  mask-image: url("data:image/svg+xml,%3Csvg%20width%3D%221677%22%20height%3D%22197%22%20viewBox%3D%220%200%201677%20197%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M193%2040C147%2015.6981%20101.5%200.500002%200.5%200.5V179.5L1677%20196V4.99998C1591.5%20-9%201525.53%2020.0328%201472%2047C1406.5%2080%201226.25%20120.893%201035.5%2040C844.5%20-41%20669.5%2025.5%20622%2040C595.284%2048.1554%20463.5%2087.5%20391.5%2086C319.5%2084.5%20267.214%2079.2075%20193%2040Z%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  transform: translateY(-100%);
}

/**
 * ==============================
 * SECCIÓN DE DESTACADOS
 * ==============================
 */
.top-color {
  position: relative;
  overflow: visible;
}

.top-color::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -150px;
  left: 0;
  width: 100%;
  height: 150px;
}

.back-balls {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.back-balls .sphere {
  aspect-ratio: 1/1;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 18%;
  height: auto;
  background-image: linear-gradient(
    165deg,
    var(--main-green-color) 0,
    var(--main-darker-green-color) 100%
  );
  border-radius: 100%;
  filter: blur(0.3rem);
  z-index: -2;
}

.back-balls .sphere:nth-child(1) {
  top: -10px;
  left: -50px;
  border-radius: 0% 0% 100% 0;
}

.back-balls .sphere:nth-child(2) {
  top: auto;
  left: auto;
  bottom: 15%;
  width: 25%;
  right: 0px;
  background-image: linear-gradient(
    200deg,
    var(--main-green-color) 0,
    var(--main-darker-green-color) 100%
  );
  transform: translateX(40%);
  border-radius: 100%;
}

.back-balls .sphere:nth-child(3) {
  top: auto;
  left: 15%;
  bottom: 0%;
  right: auto;
  width: 15%;
  background-image: linear-gradient(
    -17deg,
    var(--main-green-color) 20%,
    var(--main-darker-green-color) 90%
  );
  transform: translateY(30%);
  border-radius: 100%;
}

.back-balls .sphere:nth-child(4) {
  top: 0%;
  left: auto;
  bottom: auto;
  right: 5%;
  width: 14%;
  transform: translateY(-40%);
  background-image: linear-gradient(
    180deg,
    var(--main-green-color) 10%,
    var(--main-darker-green-color) 80%
  );
  border-radius: 100%;
}

.back-balls .sphere:nth-child(5) {
  top: 0%;
  left: auto;
  bottom: auto;
  right: 40%;
  width: 19%;
  transform: translateY(-64%);
  background-image: linear-gradient(
    180deg,
    var(--main-green-color) 10%,
    var(--main-darker-green-color) 80%
  );
  border-radius: 100%;
}

.back-balls .sphere:nth-child(6) {
  top: auto;
  left: 30%;
  bottom: 30%;
  right: auto;
  width: 13%;
  background-image: linear-gradient(
    180deg,
    var(--main-green-color) 10%,
    var(--main-darker-green-color) 80%
  );
  border-radius: 100%;
}

.back-balls .sphere:nth-child(7) {
  top: auto;
  right: 30%;
  bottom: 0%;
  left: auto;
  width: 13%;
  background-image: linear-gradient(
    120deg,
    var(--main-green-color) 0%,
    var(--main-darker-green-color) 100%
  );
  border-radius: 100%;
}

.back-balls .sphere:nth-child(8) {
  display: none;
  top: 30%;
  right: 15%;
  bottom: auto;
  left: auto;
  width: 40%;
  background-image: linear-gradient(
    120deg,
    var(--main-green-color) 20%,
    var(--main-darker-green-color) 50%
  );
  border-radius: 100%;
}

.section-destacados {
  padding: 10vw;
  background: linear-gradient(
    0deg,
    var(--main-green-color) 15%,
    var(--main-darker-green-color) 100%
  );
  position: relative;
  z-index: -1;
  background-size: cover;
  background-blend-mode: overlay;
  display: grid;
  min-height: 50dvh;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: min-content;
  grid-auto-rows: 1fr;
  place-items: center;
  gap: 40px;
}

.section-destacados header {
  margin-right: auto;
  grid-row: 1;
  grid-column: 1/-1;
  padding-bottom: 20px;
}

.section-destacados header h2 {
  color: white;
}

.card-destacado {
  width: 100%;
  height: fit-content;
}

.card-destacado div {
  aspect-ratio: 3/2;
  width: 80%;
  height: auto;
  margin: auto;
  border-radius: 20px;
  -webkit-box-shadow: 0px 0px 20px 6px rgba(0, 0, 0, 0.18);
  -moz-box-shadow: 0px 0px 20px 6px rgba(0, 0, 0, 0.18);
  box-shadow: 0px 0px 20px 6px rgba(0, 0, 0, 0.18);
}

.card-destacado div a img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
}

/* Responsive para destacados */
@media (max-width: 768px) {
  .back-balls .sphere:nth-child(8) {
    display: initial;
  }
  
  .section-destacados {
    grid-template-columns: 1fr;
    padding: 8vw 5vw;
    gap: 30px;
  }
  
  .card-destacado {
    width: 85%;
  }
  
  .card-destacado div {
    width: 90%;
  }
  
  .back-balls .sphere {
    filter: blur(0.2rem);
  }
}

/**
 * ==============================
 * SECCIÓN DE ACTIVIDADES
 * ==============================
 */
.actividades {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  padding-inline: 3vw;
  padding-bottom: 4rem;
  padding-top: 4rem;
}

.act-logo {
  flex: 1 0 40%;
  border: 1.3px solid #01a499;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 50% 50% 50% 0%;
  aspect-ratio: 1/1;
  max-width: 560px;
  background-color: #fff;
}

.act-logo .act-imagen {
  flex: 0 0 30%;
  align-self: center;
}

.act-logo .act-nombre {
  flex: 0 0 0%;
  align-self: center;
  font-size: 48px;
  font-weight: 700;
  color: #01a499;
}

.act-imagen img {
  width: 150px;
}

.act-agenda {
  gap: 80px;
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.card-agenda {
  background-color: #fff;
  display: grid;
  grid-template-columns: 2fr 5fr;
  border: 1.3px solid #01a499;
  border-radius: 150px 150px 0 150px;
  padding: 32px 32px 32px 52px;
  align-items: center;
  gap: 32px;
  max-height: 200px;
  max-width: 800px;
}

.card-agenda .act-fecha {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 32px;
  border-right: 0.4mm solid var(--main-green-color);
}

.card-agenda .act-fecha .dia {
  color: #01a499;
  font-size: 4.5rem;
  font-weight: 600;
  align-self: auto;
}

.card-agenda .act-fecha .mes {
  text-align: center;
  color: #01a499;
  font-size: 20px;
  font-weight: 700;
}

.card-agenda .act-info {
  flex: 1 1 40%;
  color: #3a414a;
  font-size: 24px;
  font-weight: 500;
}

.actividad-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--main-green-color);
}

.actividad-imagen {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
}

.actividad-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.actividad-titulo {
  color: var(--main-green-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.actividad-fecha {
  color: var(--main-dark-grey-color);
  font-size: 1.1rem;
}

.actividad-card .a-bordered {
  align-self: flex-start;
  margin-top: auto;
}

/* Responsive para actividades */
@media (max-width: 768px) {
  .actividades {
    gap: 30px;
    padding-inline: 1vw;
  }
  
  .act-logo {
    margin: auto;
    flex: 1 0 100%;
    max-width: 300px; /* Reducir tamaño en móviles */
  }
  
  .act-logo .act-nombre {
    padding-inline: 40px;
    font-size: 32px;
    font-weight: 700;
  }
  
  .act-imagen img {
    width: 100px;
  }
  
  .act-agenda {
    flex: 1 0 100%;
    gap: 40px;
  }
  
  .card-agenda {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 20px;
    border-radius: 50px 50px 0 50px;
    max-height: none;
  }
  
  .card-agenda .act-fecha {
    padding-right: 0;
    padding-bottom: 15px;
    border-right: none;
    border-bottom: 0.4mm solid var(--main-green-color);
  }
  
  .card-agenda .act-fecha .dia {
    font-size: 3rem;
  }
  
  .card-agenda .act-fecha .mes {
    font-size: 16px;
  }
  
  .card-agenda .act-info {
    font-size: 18px;
    padding-top: 10px;
  }
  
  .actividad-titulo {
    font-size: 1.3rem;
  }
  
  .actividad-fecha {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .card-agenda {
    padding: 15px;
    border-radius: 30px 30px 0 30px;
  }
  
  .card-agenda .act-fecha .dia {
    font-size: 2.5rem;
  }
  
  .card-agenda .act-info {
    font-size: 16px;
  }
}

.back-semisphere-act {
  position: relative;
}

.back-semisphere-act::after {
  position: absolute;
  top: -480px;
  bottom: -150px;
  left: 0%;
  width: 100%;
  height: auto;
  content: "";
  overflow: visible;
  border-radius: 50% 50% 0% 0%;
  background-color: var(--main-lighter-green-color);
  z-index: -999;
  margin-bottom: 100px;
}

/**
 * ==============================
 * SECCIÓN DE ALIANZAS O INDEXACIONES
 * ==============================
 */
.alianzas .ali-title {
  color: #01a499;
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  padding-bottom: 40px;
}

.alianzas .ali-slider {
  display: flex;
  justify-content: space-between;
}

.alianzas .ali-slider .ali-buton {
  background-color: #01a499;
  color: #FFF;
  border-radius: 50%;
  padding: 4px 16px 4px 16px;
  font-weight: 700;
  font-size: 32px;
}

.alianzas .ali-slider .imagenes-ali .ali-img {
  background-color: #01a499;
}

/* Responsive para alianzas */
@media (max-width: 768px) {
  .alianzas .ali-title {
    font-size: 36px;
    padding-bottom: 20px;
  }
  
  .alianzas .ali-slider .ali-buton {
    padding: 2px 12px;
    font-size: 24px;
  }
}

/**
 * ==============================
 * SECCIÓN DE REDES SOCIALES
 * ==============================
 */
.section-redes {
  position: relative;
  padding-inline: 10vw;
  display: flex;
  margin-top: -100px;
  max-width: 100vw;
  overflow: clip;
  background-color: #f2fbfa;
  justify-content: space-evenly;
  padding-bottom: 56px;
  padding-top: 56px;
  align-items: center;
  z-index: 1;
}

.top-white-rounded::before {
  z-index: 999;
  background-image: linear-gradient(0deg, white, white);
}

.redes {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* Responsive para redes sociales */
@media (max-width: 768px) {
  .section-indicadores header h2 {
    font-size: 2rem;
  }
  
  .section-redes {
    padding-inline: 0vw;
    margin-top: -50px;
  }
  
  .redes {
    width: 50px;
    height: 50px;
  }
  
  .redes a {
    font-size: 2rem;
  }
  
  .redes img {
    place-items: center;
    width: 40px;
    height: 40px;
  }
}

/**
 * ==============================
 * FOOTER
 * ==============================
 */
 .main-footer {
  position: relative;
  overflow: visible;
  padding: 2rem 0;
  min-height: 30vh;
  display: grid;
  max-width: 100%;
  grid-template-columns: 1fr 1fr 1fr;
  place-items: center;
  background-color: var(--main-green-color);
  color: white;
}

.footer-left, .footer-right {
  display: flex;
    flex-direction: column !important; /* Forzar columna */
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

.footer-center {
  text-align: center;
}

.footer-center p {
  color: white;
  margin: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

.main-footer::before {
  z-index: 1;
}

.footer_img_1, .footer_img_3 {
  max-width: 400px;
  height: auto;
}

.footer_img_1 {
  margin-bottom: 1rem;
}

.footer_img_cecomp {
  max-width: 400px;
  height: auto;
}



.logo_redes {
  height: 70px;
  width: 70px;
  border-radius: 100px;
}

/* Responsive para footer */
/* Responsive para footer */
@media (max-width: 992px) {
  .main-footer {
    grid-template-columns: 1fr 2fr 1fr;
  }
  
  .footer_img_1, .footer_img_cecomp, .footer_img_3 {
    max-width: 300px;
  }
  
  .footer-center p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .main-footer {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }
  
  .footer-left, .footer-center, .footer-right {
    width: 100%;
    text-align: center;
    padding: 0;
  }
  
  .footer-center p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .footer-center p {
    font-size: 0.75rem;
  }
  
  .footer_img_1, .footer_img_3, .footer_img_cecomp{
    max-width: 300px;
  }
}


/**
 * ==============================
 * PÁGINAS DE CONTENIDO
 * ==============================
 */
.page-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-content section h1 {
  text-align: center;
}

.body-page {
  font-family: "Nunito Sans", sans-serif;
  background-color: var(--main-lighter-green-color);
  flex-grow: 1;
  margin-top: 150px;
  padding-top: 40px;
  padding-inline: 8vw;
  padding-bottom: 80px;
}

.body-page p {
  background-color: var(--main-lighter-green-color);
}

@media (max-width: 1550px) {
  .body-page {
    padding-inline: 6vw;
  }
}

@media (max-width: 1365px) {
  .body-page {
    padding-inline: 7vw;
  }
}

@media screen and (max-width: 800px) {
  .page-content h1 {
    padding-top: 20px;
  }
  
  .body-page {
    margin-top: 100px;
    padding-top: 20px;
    padding-inline: 5vw;
    padding-bottom: 40px;
  }
}

/**
 * ==============================
 * ARCHIVOS Y PLANTILLAS DE NOTICIAS
 * ==============================
 */
.archive-noticia {
  text-align: center;
  margin-bottom: 16px;
}

.ver-mas:hover {
  background-color: #01a499;
  color: #f2fbfa;
}

.card-noticia-ind {
  margin-bottom: 100px;
  padding-left: 0 !important;
}

.section-noticias-2 {
  margin-inline: 7vw;
  display: grid;
  place-items: center;
  min-height: 50vh;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 50px;
  height: 100%;
}

.title-noticia {
  text-align: left;
  font-size: 56px;
  font-family: "Nunito Sans", sans-serif;
  margin-left: 160px;
  margin-right: 160px;
  margin-bottom: 16px;
  font-weight: 650;
  color: #111827;
}

.date-noticia {
  text-align: center;
  margin-bottom: 32px;
}

.bajada-noticia {
  text-align: left;
  font-size: 32px;
  margin-left: 160px;
  margin-right: 160px;
  margin-bottom: 32px;
  color: #4b5563;
}

.images-noticia {
  display: flex;
  width: 100%;
  height: auto;
  justify-content: center;
}

.image-noticia img {
  width: 800px;
  height: auto;
}

.content-noticia {
  margin-top: 80px;
  margin-left: 160px;
  margin-bottom: 160px;
  margin-right: 160px;
}

.content-noticia p {
  font-size: 24px;
  color: #1f2937;
}

.title-otras-noticias h2 {
  text-align: center;
}

/* Responsive para noticias */
@media (max-width: 950px) {
  .title-noticia, 
  .bajada-noticia {
    margin-left: 80px;
    margin-right: 80px;
  }
  
  /* Continuación de responsive para noticias */
  .title-noticia {
    font-size: 42px;
  }
  
  .bajada-noticia {
    font-size: 26px;
  }
  
  .image-noticia img {
    width: 600px;
  }
  
  .content-noticia {
    margin-left: 80px;
    margin-right: 80px;
    margin-top: 60px;
    margin-bottom: 80px;
  }
  
  .content-noticia p {
    font-size: 20px;
  }
}

@media (max-width: 750px) {
  .title-noticia,
  .bajada-noticia {
    margin-left: 30px;
    margin-right: 30px;
  }
  
  .title-noticia {
    font-size: 32px;
  }
  
  .bajada-noticia {
    font-size: 22px;
  }
  
  .image-noticia img {
    width: 100%;
    max-width: 400px;
  }
  
  .content-noticia {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 40px;
    margin-bottom: 60px;
  }
  
  .content-noticia p {
    font-size: 18px;
  }
}

/**
 * ==============================
 * COMPONENTES DE CARRUSEL
 * ==============================
 */
.container-carousel {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #f0f0f0;
}

.carruseles {
  width: 100%;
  height: auto; 
  display: flex;
  transition: transform 0.6s ease;
}

/* Estilos Para el Slider del inicio */
.slider-section {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.slider-section img {
  width: 100%;
  height: auto;
  min-height: 300px;
  max-height: 70vh;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.3s ease;
}

/* Mejorar la carga de imágenes lazy */
.slider-section img.lazy-slider {
  filter: blur(5px);
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.slider-section img.lazy-slider[src] {
  filter: blur(0);
}

/* Placeholder animado durante carga */
.container-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  z-index: -1;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Ocultar animación cuando el slider está cargado */
.container-carousel.loaded::before {
  display: none;
}

/* Prevenir flash de contenido sin estilo */
.main-header {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out 0.2s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


.btn-left,
.btn-right {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  background-color: #3b3a3a85;
  border-radius: 5px;
  transform: translate(0, 100%);
  cursor: pointer;
  color: white;
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  transition: 0.5s ease;
  user-select: none;
}

.slider-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.btn-left:hover,
.btn-right:hover {
  background-color: #333333ed;
  color: #fff;
}

.btn-left {
  left: 20px;
}

.btn-right {
  right: 20px;
}

.slider-nav-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Responsive para carrusel */
@media (max-width: 768px) {
  .main-header {
    min-height: 40vh;
    max-height: 50vh;
    gap: 12px;
  }
  
  .container-carousel {
    height: auto;
  }
  
  .slider-section img {
    min-height: 250px;
    max-height: 50vh;
    object-fit: cover;
  }
  
  .btn-left,
  .btn-right {
    transform: translate(0, -50%);
    font-size: 2rem;
    height: 40px;
    width: 40px;
    background-color: rgba(0, 0, 0, 0.7);
  }
  
  .btn-left {
    left: 10px;
  }
  
  .btn-right {
    right: 10px;
  }
}

/* Estilos específicos para iPhone y dispositivos iOS */
@media (max-width: 480px) {
  .main-header {
    min-height: 35vh;
    max-height: 45vh;
    gap: 8px;
  }
  
  .slider-section img {
    min-height: 200px;
    max-height: 45vh;
    object-fit: cover;
    object-position: center;
  }
  
  .btn-left,
  .btn-right {
    font-size: 1.5rem;
    height: 35px;
    width: 35px;
    border-radius: 50%;
  }
  
  .btn-left {
    left: 8px;
  }
  
  .btn-right {
    right: 8px;
  }
}

/* Estilos específicos para orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
  .main-header {
    min-height: 50vh;
    max-height: 60vh;
  }
  
  .slider-section img {
    min-height: 300px;
    max-height: 60vh;
  }
}

/* Optimizaciones para iPhone X y superiores (notch) */
@media (max-width: 414px) and (min-height: 812px) {
  .main-header {
    padding-top: env(safe-area-inset-top, 0);
  }
}

/* Evitar zoom en iOS al tocar botones */
@media (max-width: 768px) {
  .btn-left,
  .btn-right {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
}
    font-size: 2rem;
    height: 30px;
    width: 30px;
  }

  .slider-nav-button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .btn-left {
    padding-right: 0px;
  }

  .btn-right {
    padding-left: 0px;
  }
}

@media (max-width: 480px) {
  .container-carousel {
    height: auto; /* Más pequeño para móviles pequeños */
  }
  
  .btn-left,
  .btn-right {
    height: 25px;
    width: 25px;
    font-size: 1.5rem;
  }
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100%));
  }
}

.alianzas-section {
  width: 100vw;
  overflow: hidden;
}

.logos {
  overflow: hidden;
  padding: 60px 0;
  background: white;
  white-space: nowrap;
  position: relative;
}

.logos:before,
.logos:after {
  position: absolute;
  top: 0;
  width: 250px;
  height: 100%;
  content: "";
  z-index: 2;
  pointer-events: none;
}

.logos:before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0) 70%, white);
}

.logos:after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 70%, white);
}

.logos:hover .logos-slide {
  animation-play-state: paused;
}

.logos-slide {
  display: inline-block;
  animation: 10s slide infinite linear;
}

.logos-slide img {
  aspect-ratio: 16/9;
  width: 300px;
  height: auto;
  object-fit: cover;
  margin: 0 50px;
}

/* Responsive para logos */
@media (max-width: 768px) {
  .logos {
    padding: 30px 0;
  }
  
  .logos-slide img {
    width: 200px;
    margin: 0 25px;
  }
  
  .logos:before,
  .logos:after {
    width: 100px;
  }
}

/**
 * ==============================
 * PÁGINA QUIENES SOMOS
 * ==============================
 */
.quienes-somos-container {

  max-width: 1200px;
  margin: 0 auto;
  min-height: 60vh;
  background-color: white;
}

.quienes-somos-content {
  text-align: justify;
  background-color: white;
  border-radius: 15px;
  padding: 2rem;
}

.quienes-somos-descripcion {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--main-dark-grey-color);
}

.quienes-somos-descripcion li {
  list-style: disc !important;
}

.quienes-somos-descripcion h1,
.quienes-somos-descripcion h2,
.quienes-somos-descripcion h3,
.quienes-somos-descripcion h4,
.quienes-somos-descripcion h5,
.quienes-somos-descripcion h6 {
  color: var(--main-green-color);
  margin-bottom: 1.5rem;

}

.quienes-somos-descripcion h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.quienes-somos-descripcion p {
  margin-bottom: 1.5rem;
}

.quienes-somos-descripcion a {
  color: var(--main-green-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.quienes-somos-descripcion a:hover {
  color: var(--main-darker-green-color);
}

.quienes-somos-descripcion ul,
.quienes-somos-descripcion ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.quienes-somos-descripcion li {
  margin-bottom: 0.5rem;
}

.quienes-somos-descripcion strong {
  color: var(--main-dark-grey-color);
  font-weight: 700;
}

.quienes-somos-descripcion em {
  font-style: italic;
}

.quienes-somos-descripcion blockquote {
  border-left: 4px solid var(--main-green-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--main-grey-color);
}

/* Responsive para Quienes Somos */
@media (max-width: 768px) {
  .quienes-somos-container {
    padding: 2rem 1rem;
    padding-bottom: 0rem !important;
  }

  .quienes-somos-content {
    padding: 1.5rem;
  }

  .quienes-somos-descripcion {
    font-size: 1.2rem;
  }

  .quienes-somos-descripcion h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .quienes-somos-container {
    padding: 1.5rem 1rem;
  }

  .quienes-somos-content {
    padding: 1rem;
  }

  .quienes-somos-descripcion {
    font-size: 1.1rem;
  }

  .quienes-somos-descripcion h1 {
    font-size: 1.8rem;
  }
}

/**
 * ==============================
 * PÁGINA DE EQUIPO
 * ==============================
 */
.equipo-seccion {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.equipo-titulo {
  text-align: center;
  color: var(--main-green-color);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Exactamente 3 columnas */
  gap: 2rem;
  justify-items: center;
}

.miembro-card {
  width: 100%;
  max-width: 350px;
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid var(--main-green-color);
}

.miembro-card:hover {
  transform: translateY(-5px);
}

.miembro-imagen {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.miembro-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.miembro-card:hover .miembro-imagen img {
  transform: scale(1.05);
}

.miembro-info {
  padding: 1.5rem;
  text-align: center;
}

.miembro-nombre {
  color: var(--main-dark-grey-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.miembro-puesto {
  color: var(--main-green-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.miembro-correo {
  color: var(--main-grey-color);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  display: inline-block;
}

.miembro-correo:hover {
  color: var(--main-green-color);
}

/* Enlaces para redirigir a páginas de miembros */
.miembro-imagen-link {
  display: block;
  cursor: pointer;
  overflow: hidden;
}

.miembro-imagen-link img {
  transition: transform 0.3s ease;
}

.miembro-imagen-link:hover img {
  transform: scale(1.05);
}

.miembro-nombre-link {
  text-decoration: none;
  color: inherit;
}

.miembro-nombre-link:hover .miembro-nombre {
  color: var(--main-green-color);
  text-decoration: underline;
}

/* Responsive para equipo */
@media (max-width: 1024px) {
  .equipo-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
  }
}

@media (max-width: 768px) {
  .equipo-seccion {
    padding: 2rem 1rem;
  }
  
  .equipo-titulo {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .equipo-grid {
    grid-template-columns: 1fr; /* 1 columna en móviles */
    gap: 1.5rem;
  }
  
  .miembro-imagen {
    height: 250px;
  }
  
  .miembro-nombre {
    font-size: 1.3rem;
  }
  
  .miembro-puesto {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .miembro-card {
    max-width: 100%;
  }
  
  .miembro-imagen {
    height: 200px;
  }
  
  .miembro-info {
    padding: 1rem;
  }
}

/**
 * ==============================
 * PÁGINA DE ARTÍCULO
 * ==============================
 */
.article-container {
  width: 100%;
  margin: 0 auto;
}

.article-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
}

.article-header {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--main-green-color);
  text-align: center;
  margin: 2rem 0;
  line-height: 1.2;
  width: 100%;
}

.article-subtitle {
  font-size: 1.25rem;
  color: var(--main-grey-color);
  text-align: center;
  width: 100%;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.article-date {
  font-size: 1rem;
  color: var(--main-green-color);
  text-align: center;
  margin: 1rem 0;
  font-weight: 500;
  width: 100%;
}

.article-image-container {
  margin: 2rem 0;
  width: 100%;
}

.article-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.article-content {
  width: 100%;
  margin: 3rem 0;
  color: var(--main-dark-grey-color);
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: justify;
}

.article-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--main-green-color);
  margin: 2rem 0 1rem;
  font-weight: 700;
}

.article-content a {
  color: var(--main-green-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--main-green-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--main-grey-color);
}

/* Responsive para artículos */
@media (max-width: 768px) {
  .article-wrapper {
    padding: 1rem;
  }

  .article-header {
    font-size: 2rem;
  }

  .article-subtitle {
    font-size: 1.1rem;
  }

  .article-content {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .article-header {
    font-size: 1.8rem;
    margin: 1.5rem 0;
  }
  
  .article-subtitle {
    font-size: 1rem;
  }
  
  .article-content {
    font-size: 1rem;
  }
}

/**
 * ==============================
 * ARCHIVOS DE NOTICIAS
 * ==============================
 */
.archive-noticia-page {
  color: var(--main-green-color);
  font-size: 3.2rem;
  font-weight: 700;
  text-align: center;
  margin: 2rem auto;
  padding: 0 1rem;
  max-width: 1200px;
  line-height: 1.2;
  font-family: "Nunito Sans", sans-serif;
}

/* Responsive para archivos */
@media (max-width: 768px) {
  .archive-noticia-page {
    font-size: 2.5rem;
  }
}

/**
 * ==============================
 * PÁGINA DE CONTACTO
 * ==============================
 */
/* Contenedor principal */
.contact-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  overflow: hidden; /* Prevenir desbordamiento horizontal */
}
.contact-content {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  margin: 2rem auto;
  width: 100%;
  box-sizing: border-box;
}

.contact-title {
  color: var(--main-green-color);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-description {
  color: var(--main-dark-grey-color);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* Asegurar que el contenido rico de WordPress sea responsive */
.contact-description img,
.contact-description iframe,
.contact-description embed,
.contact-description object {
  max-width: 100%;
  height: auto;
}

.contact-description p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.contact-description a {
  color: var(--main-green-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-description a {
  word-break: break-word;   
  overflow-wrap: break-word; 
  hyphens: auto;     
  display: inline-block;    
  max-width: 100%;         
}

.contact-description a:hover {
  text-decoration: underline;
}

/* Contenedor del mapa */
.contact-map {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 para el contenedor */
  height: 0;
}

/* Iframe del mapa */
.contact-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Responsive para contacto */
@media (max-width: 768px) {
  .contact-container {
    padding: 1rem;
  }
  
  .contact-content {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }
  .contact-title {
    font-size: 2rem;
  }
  
  .contact-description {
    font-size: 1.1rem;
    line-height: 1.6;
  }
}


@media (max-width: 480px) {
  .contact-content {
    padding: 1rem;
    margin: 1rem auto;
  }
  
  .contact-title {
    font-size: 1.8rem;
  }
  
  .contact-description {
    font-size: 1rem;
    line-height: 1.5;
  }

  .contact-map {
    padding-bottom: 75%; /* Relación de aspecto más cuadrada para móviles */
  }
}

/**
 * ==============================
 * SECCIÓN DE INVESTIGACIÓN
 * ==============================
 */
.research-container {
  display: flex;
  max-width: 1200px;
  margin: 2rem auto;
  gap: 2rem;
  padding: 0 1rem;
}

/* Sidebar */
.research-sidebar {
  flex: 0 0 250px;
}

.research-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.research-sidebar li {
  margin-bottom: 0.5rem;
}

.research-sidebar a {
  display: block;
  padding: 1rem;
  color: var(--main-dark-grey-color);
  text-decoration: none;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.research-sidebar li.active a,
.research-sidebar a:hover {
  color: var(--main-green-color);
  border-left-color: var(--main-green-color);
  background-color: var(--main-lighter-green-color);
}

/* Contenido principal */
.research-content {
  flex: 1;
}

.research-content h1 {
  color: var(--main-green-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.research-description {
  color: var(--main-dark-grey-color);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: justify;
}

/* Filtros */
.research-filter {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--main-lighter-green-color);
  border-radius: 10px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-group label {
  color: var(--main-dark-grey-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.filter-group select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--main-green-color);
  border-radius: 5px;
  font-size: 1rem;
  color: var(--main-dark-grey-color);
  background-color: white;
}

.search-button {
  padding: 0.5rem 1.5rem;
  background-color: var(--main-green-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: var(--main-darker-green-color);
}

/* Secciones de años y tipos */
.year-section,
.type-section {
  margin-bottom: 2rem;
}

.year-title,
.type-title {
  color: var(--main-green-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--main-lighter-green-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.year-title::after,
.type-title::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.year-title.active::after,
.type-title.active::after {
  transform: rotate(45deg);
}

.year-content,
.type-content {
  display: none;
  padding: 1rem;
  background-color: white;
  border-radius: 5px;
  color: var(--main-dark-grey-color);
  line-height: 1.8;
  text-align: justify;
}

.year-content.active,
.type-content.active {
  display: block;
}

.year-content p,
.type-content p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.project-item,
.publication-item {
  padding: 1rem;
  border-bottom: 1px solid var(--main-lighter-green-color);
}

.project-item:last-child,
.publication-item:last-child {
  border-bottom: none;
}

/* Estilos para enlaces */
.project-item a,
.publication-item a,
.year-content a,
.type-content a {
  color: var(--main-green-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-item a:hover,
.publication-item a:hover,
.year-content a:hover,
.type-content a:hover {
  text-decoration: underline;
}

/* Formateo adicional para el contenido */
.year-content ul,
.type-content ul,
.year-content ol,
.type-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.year-content li,
.type-content li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

.year-content blockquote,
.type-content blockquote {
  border-left: 4px solid var(--main-green-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

/* Formateo para elementos en línea */
.year-content strong,
.type-content strong {
  font-weight: 700;
  color: var(--main-dark-grey-color);
}

.year-content em,
.type-content em {
  font-style: italic;
}

/* Responsive para investigación */
@media (max-width: 768px) {
  .research-container {
    flex-direction: column;
  }
  
  .research-sidebar {
    flex: none;
    width: 100%;
  }
  
  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group label {
    margin-bottom: 0.5rem;
  }
  
  .year-title,
  .type-title {
    font-size: 1.5rem;
  }
  
  .year-content p,
  .type-content p {
    font-size: 1.1rem;
  }
}

/**
 * ==============================
 * PÁGINA DE ACTIVIDADES
 * ==============================
 */
.actividad-meta {
  margin: 1rem 0;
}

.actividad-fecha {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Si quieres diferenciar las cards de actividades */
.card-noticia-page.actividad {
  border-color: var(--main-green-color);
}

/* Contenedor principal */
.actividad-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  overflow: hidden; 
}

/* Título */
.actividad-header {
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--main-green-color);
  margin-bottom: 1.5rem;
  word-wrap: break-word; /* Para evitar desbordamiento de títulos largos */
}

.actividad-content {
  width: 100%;
  color: var(--main-dark-grey-color);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Metadatos (fecha y lugar) */
.actividad-meta {
  margin-bottom: 2rem;
  color: var(--main-dark-grey-color);
}

.actividad-fecha,
.actividad-lugar {
  margin-bottom: 0.5rem;
}

.actividad-meta strong {
  color: var(--main-green-color);
  font-weight: 600;
}

/* Contenedor de imagen y contenido */
.actividad-content-wrapper {
  display: grid;
  grid-template-columns: minmax(300px, 2fr) 3fr;
  gap: 2rem;
  align-items: start;
}

/* Contenedor de imagen */
.actividad-image-container {
  width: 100%;
}

.actividad-image-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.actividad-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Contenido */
.actividad-content {
  color: var(--main-dark-grey-color);
  font-size: 1.2rem;
  line-height: 1.6;
}

.actividad-content h2,
.actividad-content h3 {
  color: var(--main-green-color);
  margin: 1.5rem 0 1rem;
  font-weight: 700;
}

.actividad-content p {
  margin-bottom: 1rem;
}

.actividad-content strong {
  color: var(--main-dark-grey-color);
  font-weight: 700;
}

/* Control para todas las imágenes en el contenido de actividades */
.actividad-content img,
.actividad-content .wp-block-image img,
.actividad-image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Control para otros elementos que podrían desbordar */
.actividad-content table,
.actividad-content iframe,
.actividad-content embed,
.actividad-content video {
  max-width: 100%;
}

.actividad-container *,
.actividad-content * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive para textos */
@media (max-width: 768px) {
  .actividad-header {
    font-size: 2rem;
  }
  
  .actividad-content {
    font-size: 1.1rem;
  }

  .actividades{
    padding: 1rem;
    margin: 1rem;
  }
}

@media (max-width: 480px) {
  .actividad-header {
    font-size: 1.8rem;
  }
  
  .actividad-content {
    font-size: 1rem;
  }
  
  .actividad-meta {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
}

/* Responsive para diferentes pantallas */
@media (max-width: 992px) {
  .actividad-content-wrapper {
    grid-template-columns: 1fr;
  }

  .actividad-image-container {
    max-width: 600px;
    margin: 0 auto 2rem;
  }
}

@media (max-width: 768px) {
  .actividad-content-wrapper {
    gap: 1.5rem;
  }
}

/* Responsive para actividades */
@media (max-width: 992px) {
  .actividad-content
  /* Continuación de responsive para actividades */
  .actividad-content-wrapper {
    grid-template-columns: 1fr;
  }

  .actividad-image-container {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .actividad-container {
    padding: 1rem;
    margin: 1rem;
  }

  .actividad-header {
    font-size: 2rem;
  }

  .actividad-content {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .actividad-header {
    font-size: 1.8rem;
  }
  
  .actividad-content {
    font-size: 1rem;
  }
  
  .actividad-meta {
    font-size: 0.9rem;
  }
}


.article-container {
  width: 100%;
  overflow: hidden; /* Prevenir desbordamiento */
}

.article-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box; /* Importante para que el padding no añada ancho extra */
}

@media (max-width: 768px) {
  .article-wrapper {
    padding: 1rem;
  }
}

/* Esto es crítico - aplica a todas las imágenes en el contenido del artículo */
.article-content img,
.article-content .wp-block-image img,
.article-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* También controlar tablas, embeds, y otros elementos que podrían desbordar */
.article-content table,
.article-content iframe,
.article-content embed,
.article-content video {
  max-width: 100%;
}

.section-noticias-page2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  padding: 0 2rem;
  max-width: 1200px;
  position: relative;
}

@media (max-width: 768px) {
  .section-noticias-page2 {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 1.5rem;
    margin: 1.5rem auto;
  }
  
  .section-noticias-page2 header {
    position: static;
    width: auto;
    max-width: none;
    transform: none;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .circle {
    display: none; /* Ocultar el círculo en dispositivos móviles si causa problemas */
  }
}

.card-noticia-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.card-noticia-page div {
  width: 100%;
  overflow: hidden;
}

.card-noticia-page div img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* Estilos para categorías de investigadores */
.categoria-investigadores {
  margin-bottom: 4rem;
}

.categoria-titulo {
  color: var(--main-green-color);
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 2px solid var(--main-lighter-green-color);
  padding-bottom: 1rem;
}

/* Responsive para categorías */
@media (max-width: 768px) {
  .categoria-investigadores {
      margin-bottom: 3rem;
  }
  
  .categoria-titulo {
      font-size: 1.6rem;
      margin-bottom: 1.5rem;
  }
}

/* Banner para página Quienes Somos - SOLO EL BANNER */
.quienes-somos-banner {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 1rem;
  overflow: hidden;
}

/* Responsive para el banner */
@media (max-width: 768px) {
  .quienes-somos-banner {
      margin-bottom: 0.5rem; /* Aún menos espacio en móviles */
  }
  
  .banner-image {
      max-height: 300px;
  }
}

@media (max-width: 480px) {
  .quienes-somos-banner {
      margin-bottom: 0.5rem;
  }
  
  .banner-image {
      max-height: 250px;
  }
}

.banner-image-container {
  width: 100%;
  height: auto; /* Altura automática para mostrar imagen completa */
  overflow: hidden;
  position: relative;
}

.banner-image {
  width: 100%;
  height: auto; /* Altura automática */
  object-fit: contain; /* Muestra imagen completa sin cortar */
  display: block;
  max-height: auto; /* Altura máxima para que no sea demasiado alto */
}

/* Responsive para el banner */
@media (max-width: 768px) {
  .banner-image {
      max-height: auto;
  }
}

@media (max-width: 480px) {
  .banner-image {
      max-height: auto;
  }
}

/* ========================================
   NUEVA SECCIÓN DE GALERÍA INICIO
   ======================================== */

/* Contenedor principal de la sección galería */
.galeria-inicio-section {
  padding: 7vw;
  padding-bottom: 20px;
  display: grid;
  height: 100%;
  width: 100%;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 50px;
  place-items: center;
}

.galeria-inicio-section header {
  grid-column: 1/-1;
  place-self: baseline;
}

.galeria-inicio-section header h2 {
  font-weight: 900;
  color: var(--main-dark-grey-color);
}

/* Contenedor de vista previa de galerías */
.galeria-inicio-preview {
  grid-column: 1/-1; /* Ocupa todas las columnas */
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 columnas iguales */
  gap: 50px;
  width: 100%;
  place-items: center;
}

/* Tarjeta individual de galería */
.galeria-inicio-card {
  width: 80%;
  background-color: white;
  padding: 20px;
  border: 1px solid #01a499;
  border-radius: 40px;
}

/* Contenedor de imagen */
.galeria-inicio-imagen {
  aspect-ratio: 20/19;
  width: 100%;
  height: auto;
}

.galeria-inicio-link {
  display: block;
  width: 100%;
  height: 100%;
}

.galeria-inicio-imagen img {
  display: block;
  aspect-ratio: 20/19;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}

/* Título de la galería */
.galeria-inicio-titulo {
  word-break: break-word;
  padding: 15px 7px;
  font-size: 1.25rem;
  font-weight: 600;
  text-wrap: pretty;
  color: #474d56;
  margin: 0;
}

/* Botón "VER MÁS FOTOS" */
.galeria-inicio-boton {
  border: 1px solid #01a499;
  padding: 6px 12px;
  font-size: 18px;
  font-weight: 900;
  border-radius: 8px;
  color: #f2fbfa;
  background-color: #01a499;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.3s ease;
  grid-column: 1/-1;
  place-self: center;
}

.galeria-inicio-boton:hover {
  filter: saturate(150%);
}

/* Mensaje cuando no hay galerías */
.galeria-inicio-empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--main-grey-color);
  font-style: italic;
  padding: 20px;
}

/* ========================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ======================================== */

@media (max-width: 1024px) {
  .galeria-inicio-section {
    grid-template-columns: 1fr 1fr;
  }
  
  .galeria-inicio-preview {
    grid-template-columns: 1fr 1fr; /* 2 columnas en tablet */
  }
  
  .galeria-inicio-card {
    width: 90%;
    padding: 3%;
  }
}

/* ========================================
   RESPONSIVE - MÓVIL (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
  .galeria-inicio-section {
    grid-template-columns: 1fr;
  }
  
  .galeria-inicio-preview {
    grid-template-columns: 1fr; /* 1 columna en móvil */
  }
  
  .galeria-inicio-card {
    width: 90%;
    padding: 3%;
  }
}

/* ========================================
   SINGLE GALERÍA - NUEVOS NOMBRES
   ======================================== */

/* Banner de galería individual */
.galeria-single-banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.galeria-single-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.galeria-single-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.galeria-single-overlay h1 {
  color: var(--main-orange-color);
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Secciones generales */
.galeria-single-seccion {
  padding: 60px 0;
}

.galeria-single-seccion:nth-child(odd) {
  background-color: var(--main-lighter-green-color);
}

.galeria-single-seccion:nth-child(even) {
  background-color: white;
}

/* Contenido de la galería individual */
.galeria-single-contenedor {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  padding: 40px;
}

.galeria-single-fecha {
  font-size: 1rem;
  color: var(--main-orange-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.galeria-single-titulo {
  font-size: 2.4rem;
  color: var(--main-green-color);
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: 800;
}

.galeria-single-imagen {
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.galeria-single-imagen img {
  width: 100%;
  height: auto;
  display: block;
}

.galeria-single-cuerpo {
  color: var(--main-grey-color);
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

.galeria-single-cuerpo p {
  margin-bottom: 20px;
}

.galeria-single-cuerpo h2,
.galeria-single-cuerpo h3 {
  color: var(--main-green-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
}

.galeria-single-cuerpo ul,
.galeria-single-cuerpo ol {
  margin-left: 25px;
  margin-bottom: 25px;
}

.galeria-single-cuerpo a {
  color: var(--main-green-color);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.galeria-single-cuerpo a:hover {
  color: var(--main-orange-color);
}

.galeria-single-cuerpo img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

/* ========================================
   GALERÍAS RELACIONADAS
   ======================================== */

.galeria-relacionadas {
  position: relative;
}

.galeria-relacionadas-titulo {
  text-align: center;
  color: var(--main-dark-grey-color);
  font-size: 2.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.galeria-relacionadas-separador {
  width: 100px;
  height: 3px;
  background-color: var(--main-orange-color);
  margin: 0 auto 40px;
}

.galeria-relacionadas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.galeria-relacionadas-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.galeria-relacionadas-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.galeria-relacionadas-imagen {
  overflow: hidden;
  height: 180px;
}

.galeria-relacionadas-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeria-relacionadas-card:hover .galeria-relacionadas-imagen img {
  transform: scale(1.05);
}

.galeria-relacionadas-fecha {
  padding: 15px 20px 0;
  font-size: 0.9rem;
  color: var(--main-orange-color);
  font-weight: 600;
}

.galeria-relacionadas-card-titulo {
  padding: 10px 20px;
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--main-green-color);
  flex-grow: 0;
  margin: 0;
}

.galeria-relacionadas-extracto {
  padding: 0 20px;
  font-size: 0.95rem;
  color: var(--main-grey-color);
  line-height: 1.5;
  flex-grow: 1;
}

.galeria-relacionadas-enlace {
  display: inline-block;
  margin: 20px;
  padding: 8px 18px;
  background-color: var(--main-green-color);
  color: white;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.galeria-relacionadas-enlace:hover {
  background-color: var(--main-orange-color);
}

/* Mensaje cuando no hay galerías relacionadas */
.galeria-relacionadas-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--main-grey-color);
  font-style: italic;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

/* ========================================
   RESPONSIVE - TABLET (max-width: 992px)
   ======================================== */

@media (max-width: 992px) {
  .galeria-relacionadas-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

/* ========================================
   RESPONSIVE - MÓVIL (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
  .galeria-single-banner {
    height: 200px;
  }
  
  .galeria-single-overlay h1 {
    font-size: 2.5rem;
  }
  
  .galeria-single-contenedor {
    padding: 25px;
  }
  
  .galeria-single-titulo {
    font-size: 2rem;
  }
  
  .galeria-single-cuerpo {
    font-size: 1rem;
  }
  
  .galeria-relacionadas-titulo {
    font-size: 1.8rem;
  }
  
  .galeria-relacionadas-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ========================================
   RESPONSIVE - MÓVIL PEQUEÑO (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
  .galeria-single-overlay h1 {
    font-size: 2rem;
  }
  
  .galeria-single-seccion {
    padding: 40px 0;
  }
  
  .galeria-single-contenedor {
    padding: 20px;
    border-radius: 10px;
  }
  
  .galeria-single-titulo {
    font-size: 1.7rem;
  }
}

/* ========================================
   ARCHIVE GALERÍA - NUEVOS NOMBRES
   ======================================== */

/* Banner de archivo de galerías */
.galeria-archive-banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.galeria-archive-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.galeria-archive-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.galeria-archive-overlay h1 {
  color: var(--main-orange-color);
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Secciones generales */
.galeria-archive-seccion {
  padding: 60px 0;
}

.galeria-archive-seccion:nth-child(odd) {
  background-color: var(--main-lighter-green-color);
}

.galeria-archive-seccion:nth-child(even) {
  background-color: white;
}

/* Listado de galerías en el archivo */
.galeria-archive-listado {
  min-height: 50vh;
}

/* Título y separador */
.galeria-archive-titulo {
  text-align: center;
  color: var(--main-dark-grey-color);
  font-size: 2.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.galeria-archive-separador {
  width: 100px;
  height: 3px;
  background-color: var(--main-orange-color);
  margin: 0 auto 40px;
}

/* Grid de galerías */
.galeria-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* Tarjeta individual de galería */
.galeria-archive-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.galeria-archive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Imagen de la galería */
.galeria-archive-imagen {
  overflow: hidden;
  height: 180px;
}

.galeria-archive-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeria-archive-card:hover .galeria-archive-imagen img {
  transform: scale(1.05);
}

/* Fecha de la galería */
.galeria-archive-fecha {
  padding: 15px 20px 0;
  font-size: 0.9rem;
  color: var(--main-orange-color);
  font-weight: 600;
}

/* Título de la galería */
.galeria-archive-card-titulo {
  padding: 10px 20px;
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--main-green-color);
  flex-grow: 0;
  margin: 0;
}

.galeria-archive-card-titulo a {
  color: var(--main-green-color);
  text-decoration: none;
}

.galeria-archive-card-titulo a:hover {
  color: var(--main-orange-color);
}

/* Extracto de la galería */
.galeria-archive-extracto {
  padding: 0 20px;
  font-size: 0.95rem;
  color: var(--main-grey-color);
  line-height: 1.5;
  flex-grow: 1;
}

/* Enlace "VER GALERÍA" */
.galeria-archive-enlace {
  display: inline-block;
  margin: 20px;
  padding: 8px 18px;
  background-color: var(--main-green-color);
  color: white;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.galeria-archive-enlace:hover {
  background-color: var(--main-orange-color);
}

/* ========================================
   PAGINACIÓN DE GALERÍAS
   ======================================== */

.galeria-archive-paginacion {
  margin-top: 50px;
  text-align: center;
}

.galeria-archive-paginacion .page-numbers {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: 5px;
  background-color: white;
  color: var(--main-green-color);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--main-light-green-color);
  transition: all 0.3s ease;
}

.galeria-archive-paginacion .page-numbers.current {
  background-color: var(--main-green-color);
  color: white;
  border-color: var(--main-green-color);
}

.galeria-archive-paginacion .page-numbers:hover {
  background-color: var(--main-light-green-color);
  color: white;
}

/* ========================================
   MENSAJE CUANDO NO HAY GALERÍAS
   ======================================== */

.galeria-archive-empty {
  text-align: center;
  padding: 50px 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  grid-column: 1 / -1;
}

.galeria-archive-empty h3 {
  color: var(--main-orange-color);
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.galeria-archive-empty p {
  color: var(--main-grey-color);
  font-size: 1.1rem;
}

/* ========================================
   RESPONSIVE - TABLET (max-width: 992px)
   ======================================== */

@media (max-width: 992px) {
  .galeria-archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .galeria-archive-paginacion .page-numbers {
    padding: 6px 12px;
    margin: 0 3px;
  }
}

/* ========================================
   RESPONSIVE - MÓVIL (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
  .galeria-archive-banner {
    height: 200px;
  }
  
  .galeria-archive-overlay h1 {
    font-size: 2.5rem;
  }
  
  .galeria-archive-titulo {
    font-size: 1.8rem;
  }
  
  .galeria-archive-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ========================================
   RESPONSIVE - MÓVIL PEQUEÑO (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
  .galeria-archive-overlay h1 {
    font-size: 2rem;
  }
  
  .galeria-archive-seccion {
    padding: 40px 0;
  }
  
  .galeria-archive-paginacion {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .galeria-archive-paginacion .page-numbers {
    margin: 0;
    padding: 5px 10px;
    font-size: 0.9rem;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   ESTILOS MEJORADOS PARA ARCHIVO DE NOTICIAS
   ======================================== */

/* Título en las cards de noticias */
.card-noticia-page h3 {
  color: var(--main-green-color);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.5rem 0 0.8rem 0;
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limita a 2 líneas */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-noticia-page h3:hover {
  color: var(--main-darker-green-color);
}

/* Mejorar la estructura de las cards */
.card-noticia-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--main-light-green-color);
  box-shadow: 0 2px 8px rgba(1, 164, 153, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.card-noticia-page:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(1, 164, 153, 0.15);
  border-color: var(--main-green-color);
}

/* Imagen de la noticia */
.card-noticia-page div {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--main-lighter-green-color);
  position: relative;
}

.card-noticia-page div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

/* Efecto hover en la imagen */
.card-noticia-page:hover div img {
  transform: scale(1.05);
}

/* Extracto mejorado */
.card-noticia-page p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--main-grey-color);
  margin: 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}

/* Área de metadatos (botón y fecha) */
.card-noticia-page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--main-lighter-green-color);
}

/* Botón mejorado */
.card-noticia-page .a-bordered {
  font-size: 0.9rem;
  padding: 8px 16px;
  margin: 0;
  transition: all 0.3s ease;
}

.card-noticia-page .a-bordered:hover {
  background-color: var(--main-green-color);
  color: white;
  transform: translateX(2px);
}

/* Fecha mejorada */
.card-noticia-page span {
  font-size: 0.85rem;
  color: var(--main-dark-grey-color);
  font-weight: 500;
  opacity: 0.8;
}

/* Responsive para las mejoras */
@media (max-width: 768px) {
  .card-noticia-page h3 {
    font-size: 1.2rem;
    -webkit-line-clamp: 3; /* Más líneas en móvil */
    line-clamp: 3;
  }
  
  .card-noticia-page div {
    height: 180px; /* Altura fija también en móvil */
  }
  
  .card-noticia-page div img {
    object-fit: cover;
    object-position: center;
  }
  
  .card-noticia-page p {
    font-size: 0.9rem;
    -webkit-line-clamp: 2; /* Menos líneas en móvil */
    line-clamp: 2;
  }
  
  .card-noticia-page-footer {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* ========================================
   MEJORAS PARA EQUIPO - PERFIL EXTERNO
   ======================================== */

.miembro-perfil-externo {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.8rem;
  background-color: var(--main-light-green-color);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.miembro-perfil-externo:hover {
  background-color: var(--main-green-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(1, 164, 153, 0.3);
}

.miembro-perfil-externo:before {
  content: "🔗 ";
  margin-right: 0.3rem;
}

/* Descripción del miembro en la página de equipo */
.miembro-descripcion {
  margin: 0.8rem 0;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--main-lighter-green-color) 0%, rgba(242, 251, 250, 0.5) 100%);
  border-radius: 8px;
  border-left: 3px solid var(--main-green-color);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--main-dark-grey-color);
  text-align: justify;
  transition: all 0.3s ease;
}

.miembro-descripcion:hover {
  background: linear-gradient(135deg, var(--main-lighter-green-color) 0%, rgba(242, 251, 250, 0.8) 100%);
  transform: translateX(2px);
}

.miembro-descripcion p {
  margin: 0;
  font-size: 0.9rem;
}

/* Ajuste del espaciado para las cards de miembros */
.miembro-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.miembro-card {
  transition: all 0.3s ease;
}

.miembro-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 164, 153, 0.15);
}

/* Responsive para descripción del miembro */
@media (max-width: 768px) {
  .miembro-descripcion {
    font-size: 0.85rem;
    padding: 0.6rem;
    margin: 0.6rem 0;
  }
}
