/*Reinicio margenes y cajas */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #d9dbf3;
  line-height: 1.6;
}

/*----------------------------------------------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------------------------------------------*/

/* --- ESTILOS DEL HEADER PRINCIPAL --- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #d9dbf3;
  padding: 7px 20px;
}

/* --- ESTILOS DEL LOGO --- */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.logo-link {
  text-decoration: none; /* Elimina el subrayado del enlace */
  color: inherit;         /* Mantiene el color original del texto */
  display: flex;          /* Ayuda a mantener la alineación si ya la tenías */
  align-items: center;
}

.logo-img {
  height: 55px;
  width: auto;
}

@font-face {
  font-family: Optima;
  src: url(fuentes/Optima\ Medium.ttf);
}

.logo-text {
  font-family: Optima;
  font-size: 25px;
  font-weight: bold;
  color: rgb(28, 11, 102);
}

.menu_superior {
  margin-right: 20px;
}

/* --- ESTILOS DEL MENÚ DE NAVEGACIÓN (NAV) --- */

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.nav-list li {
  margin-left: 0;
}

/* --- ESTILOS DE LOS ENLACES (BOTONES) --- */
.botonMenu {
  display: inline-block;
  color: rgb(28, 11, 102);
  text-decoration: none;
  font-family: Optima;
  font-size: 17px;
  font-weight: bold;
  transition: color 0.3s, border-bottom 0.3s;
}

.botonMenu:hover {
  color: #7ac49f;
}

@media (max-width: 756px) {
  .header {
    flex-direction: column;
    align-items: center; 
    padding: 15px 10px !important;
    gap: 15px;
  }

  .logo-container {
    margin-left: 0;
    justify-content: center;
  }

  .menu_superior {
    margin-right: 0;
    width: 100%;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px !important;
    width: 100%;
    padding: 0;
  }

  .botonMenu {
    font-size: 0.95rem !important;
    padding-bottom: 2px;
    text-align: center;
  }
}

/*----------------------------------------------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------------------------------------------*/

.new_design {
  font-family: Optima; 
  padding: 20px;
  box-sizing: border-box;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.new_design.hero_wrapper {
  background-image: url('./imagenes/puzzle.jpg'); 
  background-size: 70%;     
  margin-bottom: 60px;
}

.hero_background {
  background-color: #ffffff;
  display: flex;
  align-items: center; 
  justify-content: center; 
  margin-bottom: 60px;
  margin-top: 60px;
  margin-left: 30px;
  margin-right: 30px;
  
}

.new_design .hero_content {
  flex: 1; 
  display: flex;
  flex-direction: column;
  gap: 15px; 
  max-width: 570px;
  margin-left: 60px;
  padding: 30px;
}

.new_design .main-title {
  font-size: 2.5rem; 
  font-weight: 900;
  color:#23116d;
}

.new_design .role-badge {
  background-color: #82b94f; 
  color: rgb(0, 0, 0);
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 15px;
  border-radius: 4px;
  display: inline-block; 
  font-size: 1.2rem;
}

.new_design .description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #313131;
  margin-top: 6px;
  margin-left: 5px;
}

.new_design .visual-layer {
  flex: 1; 
  display: flex;
  justify-content: center; 
  align-items: center;
  position: relative;
  margin-right: 30px; 
  /* Agregamos un padding interno si queremos dar más aire alrededor */
  padding: 50px; 
}

.new_design .hero-image {
  max-width: 80%;      /* Ajusta este valor (ej. 70% u 80%) según qué tan chica la quieras */
  max-height: 380px;   /* O define un alto máximo similar a la primera imagen */
  width: auto;
  height: auto;
  object-fit: contain; /* Utiliza 'contain' para que la imagen mantenga su proporción sin estirarse */
  border-radius: 4px;  /* Opcional: para suavizar bordes */
}

.mobile-text {
  display: none;
}


@media (max-width: 576px) {
  
  /* OCULTA EL CONTENEDOR DE LA IMAGEN POR COMPLETO */
  .new_design .visual-layer {
    display: none;
  }

  /* Ajustes para el contenedor de TEXTO (para que use todo el ancho) */
  .new_design .hero_content {
    margin-left: 0; /* Reseteamos el margen de desktop */
    padding: 10px;  /* Ajustamos padding interno */
    max-width: 100%;
    width: 100%;
  }

  /* Ajustes para el contenedor BLANCO (la tarjeta) */
  .hero_background {
    margin: 15px 10px; /* Reducimos márgenes externos */
    padding: 20px;     /* Ajustamos padding interno */
    /* El flex-direction: column; ya no es necesario si ocultamos la imagen */
  }

  /* Tamaños de tipografía adaptados a móvil (opcional pero recomendado) */
  .new_design .main-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .new_design .role-badge {
    font-size: 1rem;
    padding: 8px 12px;
    text-align: center;
  }

  .new_design .description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-left: 0;
  }

  .desktop-text {
    display: none;
  }
  
  .mobile-text {
    display: inline;
  }
}
/* ---------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------- */
.tarjetas_titulo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #94cf5a;
  color: initial;
  padding: 15px 20px;       
  margin-top: 30px;         
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 30px;      
  color: #27146e;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
}

.tarjetas_titulo h1 {
  color: #27146e;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.2em;         
  margin: 0;
}

/* Contenedores de Tarjetas */
.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;                
  padding: 0 20px;
  margin-bottom: 60px;      
}

.card {
  width: 100%;
  max-width: 380px;        
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 100%;
  height: 170px;            
  object-fit: cover;
}

.card_content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.titulo_card {
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
  color: #27146e;
  margin-bottom: 10px;
  font-size: 1.3em;
  font-weight: bolder;
}

.card_content p {
  flex-grow: 1;
  font-size: 1.005em;
  line-height: 1.45;
  color: #000000;
  margin-bottom: 15px;      
}

.card_content a {
  display: block;
  padding: 10px 15px;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  margin-top: auto;         
  background-color: #27146e;
  color: white;
  border: 2px solid #27146e;
}

.card_content li {
  list-style: none;
}

/* EFECTO HOVER PARA DAR VIDA */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------- */

/*Comunidad*/

.caja_comunidadTitulo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #94cf5a;
  color: initial;
  padding: 15px 20px;                
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 30px;      
  color: #27146e;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
}

.caja_comunidadTitulo h1 {
  color: #27146e;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.2em; 
  margin: 0;
}

#COMUNIDAD {
  padding: 30px 10px;
  color: #27146e;
  font-family: Arial, sans-serif;
}


.caja-comunidad {
  display: flex;
  max-width: 1100px;
  margin: 50px auto;       
  align-items: center;
  padding: 0 10px;
  gap: 40px;                
}

/* Intercala la posición de la imagen a la derecha en los bloques pares */
.caja-comunidad:nth-child(even) {
  flex-direction: row-reverse;
}

/* Imágenes un poco más grandes */
.caja-comunidad img {
  width: 390px;             /* AUMENTADO: De 360px a 390px */
  height: 240px;            /* AUMENTADO: De 220px a 240px */
  object-fit: cover;
  display: block;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

/* Bloque de texto */
.texto-comunidad {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.titulo-icono-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;      /* Espacio entre el título y el párrafo */
}

.titulo-icono-container i {
  color: #27146e;
  font-size: 2rem;          /* AUMENTADO: De 1.8rem a 2rem */
}

.texto-comunidad h2 {
  margin: 0;
  color: #27146e;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.5em;         /* AUMENTADO: De 1.4em a 1.5em */
}

.texto-comunidad p {
  color: #555555;
  line-height: 1.55;
  text-align: justify;
  font-size: 1.05em;        /* AUMENTADO: De 1em a 1.05em */
  margin: 0;
}

/* Adaptación a dispositivos móviles */
@media (max-width: 575px) {
  .caja-comunidad,
  .caja-comunidad:nth-child(even) {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin: 35px auto;
    padding: 0 15px;
  }

  .caja-comunidad img {
    width: 100%;
    height: 230px;
  }

  .titulo-icono-container {
    justify-content: center;
    width: 100%;
  }

  .texto-comunidad {
    width: 100%;
    align-items: center;
  }

  .texto-comunidad p {
    text-align: center;
    font-size: 1rem;
  }
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------- */
/* Contacto */

.footer-container {
  width: 100%;
  box-sizing: border-box;
}

.footer-top {
  background-color: #d9dbf3;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px 40px;
  box-sizing: border-box;
}

.contact-section {
  text-align: left;
  color: #27146e;
  margin-left: 50px;
}

.contact-section h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
}

.social-icons {
  display: flex;
  align-items: center;
}

.social-icons i {
  color: #27146e;
  font-size: 45px;
  margin-right: 15px;
  transition: color 0.5s ease;
}

.social-icons a:hover i {
  color: #20105ad0;
}

.social-link {
  background-image: none !important;
}

.contact-section p {
  margin: 0;
  font-size: 1rem;

}

.logo-section {
  flex-grow: 1;
  text-align: center;
  margin-right: 80px;
}

.footer-logo {
  margin-top: 20px;
  height: 120px;
  width: auto;
}

.footer-logotipo {
  height: 50px;
  width: auto;
  margin-bottom: 33px;
}
.collaborate-section {
  text-align: right;
}

.collaborate-button {
  background-color: #27146e;
  color: white;
  border: none;
  /* Aumentamos el padding vertical de 15px a 20px para dar más espacio */
  padding: 20px 30px; 
  font-size: 1.1em; /* Subimos un poco el tamaño de fuente para equilibrar */
  cursor: pointer;
  border-radius: 8px; /* Un radio un poco mayor queda mejor con elementos grandes */
  font-weight: bold;
  margin-right: 50px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px; /* Aumentamos el espacio entre logo y texto */
}

.collaborate-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  background-color: #79ac44;
}

.footer-bottom {
  background-color: #d9dbf3;
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 5px 0;
  font-size: 1rem;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;

}

.btn-encurso {
  display: inline-block;
  width: max-content; 
  margin-top: 15px;
  margin-bottom: 0;
  padding: 8px 16px;
  background-color: #27146e;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px; 
  border: 2px solid #27146e;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  align-self: flex-start;
}

@media (max-width: 575px) {
  .footer-top {
    flex-direction: column !important;
    padding: 30px 15px !important;
    text-align: center;
    gap: 10px;
    background-size: cover;
  }

  .contact-section {
    margin-left: 0 !important;
    text-align: center !important;
    width: 100%;
  }

  .contact-section p {
    font-weight: 800;
  }

  .social-icons {
    justify-content: center;
    margin-bottom: 10px;
  }

  .social-icons i {
    font-size: 45px !important;
    margin: 0 10px !important;
  }

  .logo-section {
    margin-right: 0 !important;
    width: 100%;
  }

  .footer-logo {
    height: 100px;
  }

  .footer-logotipo {
    display: none;
  }

  .collaborate-section {
    text-align: center !important;
    width: 100%;
  }

  .collaborate-button {
    margin-right: 0 !important;
    width: 40%;
    padding: 15px 10px;
  }

  .footer-bottom p {
    font-size: 0.8rem !important;
    padding: 10px;
  }
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------- */
/* --- SECCIÓN HISTORIA --- */

/* 1. Estilos Base para las Secciones (Uso de comodín [class*="Historia_parte"]) */
[class*="Historia_parte"] {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 15px;
}

/* 2. Alternancia Zig-Zag (Pares e Impares) */
.Historia_parte_dos,
.Historia_parte_cuatro {
  flex-direction: row-reverse;
  align-items: center;
}

.Historia_parte_uno {
  margin-top: 130px;
}

.Historia_parte_cuatro {
  margin-bottom: 120px;
}

/* 3. Contenedores de Texto e Imágenes */
[class*="_texto"] {
  display: flex;
  flex-direction: column;
  width: 50%;
  flex-grow: 1;
}

[class*="Historia_parte"] img {
  height: auto;
  width: 50%;
  max-width: 400px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* 4. Tipografía y Textos */
[class*="_texto"] h1 {
  color: #27146e;
  font-weight: 800;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
}

[class*="_texto"] p {
  color: #555555;
  line-height: 1.6;
  text-align: justify;
  font-size: 1.05em;
}

/* Ajustes específicos de párrafos */
.Historia_parte_cuatro_texto p {
  margin-top: 20px;
}

.Historia_parte_uno_texto p {
  margin-bottom: 40px;
}

/* --- BANNER Y ELEMENTOS COMPARTIDOS --- */

.banner_historia {
  background: #f7f7f7 url('/imagenes/puzzle.jpg') no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 250px;
  position: relative;
  width: 100%;
}

.contenido_historia {
  background-color: #94cf5a;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 50%;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 10;
}

.contenido_historia h1 {
  color: #27146e;
  text-align: center;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
}

.titulo_icono_historia {
  display: flex;
  align-items: center;
  gap: 10px;
}

.titulo_icono_historia i {
  font-size: 2.5rem;
  margin-bottom: 18px;
  color: #79ac44;
  margin-right: 10px;
}

/* 1. Tablets (Máximo 787px) */
@media (max-width: 787px) {
  [class*="Historia_parte"] {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  [class*="_texto"],
  [class*="Historia_parte"] img {
    width: 100%;
    max-width: 100%;
  }

  .Historia_parte_uno {
    margin-top: 80px;
  }

  .Historia_parte_cuatro {
    margin-bottom: 60px;
  }

  .titulo_icono_historia {
    justify-content: center;
  }

  .contenido_historia {
    width: 80%;
    font-size: 1.1rem;
  }
}

@media (max-width: 575px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  .banner_historia {
    min-height: 180px !important;
  }

  .contenido_historia {
    width: 85% !important;
    padding: 15px !important;
    font-size: 1rem !important;
    transform: translate(-50%, 50%) !important;
  }

  .Historia_parte_uno {
    margin-top: 120px !important;
  }

  [class^="Historia_parte_"] {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0px 10px !important;
    box-sizing: border-box !important;
  }

  [class^="Historia_parte_"] img {
    width: 100% !important;
    height: auto !important;
    order: -1;
  }

  [class^="Historia_parte_"]_texto {
    width: 100% !important;
  }

  .titulo_icono_historia {
    margin: 0;
    padding-top: 5px;
  }

  .titulo_icono_historia h1 {
    font-size: 1.2rem !important;
    text-align: center;
    margin: 0 !important;
  }

  [class^="Historia_parte_"]_texto p {
    margin-top: 8px !important;
  }

  .Historia_parte_cuatro_texto {
    margin-top: 7px;
  }

  .Historia_parte_dos_texto {
    margin-top: 30px;
    margin-bottom: 50px;

  }

  .Historia_parte_uno_texto {
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .Historia_parte_tres_texto {
    margin-top: 10px;
    margin-bottom: 50px;
  }

}


/* ---------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------- */
/*Congreso*/

.banner_congreso {
  background: #f7f7f7 url('/imagenes/puzzle.jpg') no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 250px;
  position: relative;
  width: 100%;
  margin-bottom: 150px;
}

.material-title-bar-congreso {
  background-color: #94cf5a;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 50%;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 10;
}

.material-title-bar-congreso h1 {
  color: #27146e;
  text-align: center;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.5em;
  margin: 0;
}

.caja-comunidad-congreso {
  display: flex;
  max-width: 1100px;
  margin: 80px auto;       
  align-items: center;
  padding: 0 10px;
  gap: 40px;                
}

.caja-comunidad-congreso:nth-child(even) {
  flex-direction: row-reverse;
}

.caja-comunidad-congreso img {
  width: 390px;             
  height: 240px;           
  object-fit: cover;
  display: block;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.texto-comunidad {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.titulo-icono-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;      
}

.titulo-icono-container i {
  color: #27146e;
  font-size: 2rem;          
}

.texto-comunidad h2 {
  margin: 0;
  color: #27146e;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.5em;         
}

.texto-comunidad p {
  color: #555555;
  line-height: 1.55;
  text-align: justify;
  font-size: 1.05em;  
  font-weight:700px;      
  margin: 0;
}

@media (max-width: 575px) {
  .caja-comunidad-congreso,
  .caja-comunidad-congreso:nth-child(even) {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 100px;
    padding: 0 15px;
  }

  .caja-comunidad-congreso img {
    width: 100%;
    height: 230px;
  }

  .titulo-icono-container {
    justify-content: center;
    width: 100%;
  }

  .texto-comunidad {
    width: 100%;
    align-items: center;
  }

  .texto-comunidad p {
    text-align: center;
    font-size: 2.5rem;
  }
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------- */
/*Biblioteca*/


.arita-logo {
  max-width: 200px;
  height: auto;
}

.banner_biblioteca {
  background: #f7f7f7 url('/imagenes/puzzle.jpg') no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 250px;
  position: relative;
  width: 100%;
  margin-bottom: 100px;
}

.material-title-bar {
  background-color: #94cf5a;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 50%;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 10;
}

.material-title-bar h1 {
  color: #27146e;
  text-align: center;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.5em;
  margin: 0;
}

.biblioteca-nav-container {
  background-color: #d9dbf3;
  padding: 10px 0;
  overflow-x: auto;
  white-space: nowrap;
  text-align: center;
}

.biblioteca-nav {
  display: inline-block;
  padding: 0 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-bottom: 30px;
}

.nav-button {
  background-color: #00A3A3;
  border: none;
  flex-shrink: 0;
  padding: 10px 10px;
  margin: 5px 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s, box-shadow 0.3s;
  color: #fff;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);

}

.nav-button:hover:not(.active) {
  background-color: #94cf5a;
}

.nav-button.active {
  background-color: #94cf5a;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
}

/* 4. CONTENIDO DINÁMICO (LA LISTA DE ARCHIVOS/LINKS) */
.biblioteca-content-wrapper {

  width: 80%;
  margin: 10px auto;
  padding: 0 0;
  border-radius: 5px;
  overflow: hidden;
}

.content-tab {
  display: none;
}

.content-tab.active-content {
  display: block;
}


.content-item {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #272727;
  transition: background-color 0.2s;
  background-color: #d3cfcf;
  border-bottom: 1px solid #929292;
}

.content-tab .content-item:first-child {
  border-top: none;
  padding-top: 15px;
}

.content-tab .content-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  /* Eliminar el margen excesivo si no es necesario */
  margin-bottom: 100px;
}

.content-item:hover {
  background-color: #ededed;
  cursor: pointer;
}

.content-title {
  font-weight: 700;
  font-size: 1em;
  text-align: left;
  text-align: center;
}

.content-subtitle {
  font-size: 0.85em;
  color: #4b4b4b;
  margin-top: 3px;
  text-align: left;
  text-align: center;
}

.mobile-text {
  display: none;
}

/* Adaptación a dispositivos móviles */
@media (max-width: 575px) {

  /* Intercambiamos los textos */
  .desktop-text {
    display: none;
  }
  
  .mobile-text {
    display: inline;
  }

  /* Ocultamos el ícono al lado del título */
  .titulo-icono-container i {
    display: none;
  }

  /* Ajustes generales de la tarjeta en móvil */
  .caja-comunidad-congreso,
  .caja-comunidad-congreso:nth-child(even) {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin: 35px auto;
    padding: 0 15px;
  }

  .caja-comunidad-congreso img {
    width: 100%;
    height: 230px;
  }

  .titulo-icono-container {
    justify-content: center;
    width: 100%;
  }

  .texto-comunidad {
    width: 100%;
    align-items: center;
  }

  .texto-comunidad p {
    text-align: center;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {

  .biblioteca-banner h1 {
    font-size: 2em;
  }

}

/* ---------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------- */
/*INFO PARA FAMILIAS*/


.banner_info {
  background: #f7f7f7 url('/imagenes/puzzle.jpg') no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 250px;
  position: relative;
  width: 100%;
  margin-bottom: 100px;
}

.material-title-bar-info {
  background-color: #94cf5a;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 50%;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 10;
}

.material-title-bar-info h1 {
  color: #27146e;
  text-align: center;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.5em;
  margin: 0;
}

.contenedor-principal {
  display: flex;
  padding: 60px;
  max-width: 1200px;
  margin-left: 70px;
}

.lado-izquierdo {
  flex: 2;
}

.lado-derecho {
  flex: 1;
  display: flex;
  justify-content: center;
}

.imagen-lateral {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.tramite-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  margin-left: 20px;
}

.check-icon {
  color: #4a8d3a;
  font-size: 30px;
  margin-right: 15px;
  margin-top: 4px;
}

.tramite-title {
  font-size: 20px;
  font-weight: 500;
  color: #272727;
  margin: 0;
}

.ver-mas {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #27146e;
  text-decoration: none;
  margin-top: 2px;
}

.ver-mas:hover {
  text-decoration: underline;
}

.material-title {

  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #94cf5a;
  color: initial;
  padding: 18px 18px;
  margin-top: 40px;
  margin-bottom: 20px;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.material-title h1 {
  color: #27146e;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.5em;
  margin: 0;
}


/* ---------------------------------------------------------------------------------------------------------------- */
/*Pop Up INFORMACIÓN PARA FAMILIAS*/

.modal {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
}

.modal.is-open {
  display: flex !important;
}

body.scroll-lock {
  overflow: hidden;
  padding-right: 15px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.modal-content {
  max-width: 800px;
  max-height: initial;
  width: 100%;
  z-index: 1000;
  margin: 0 auto;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0;
  top: -20px;
  transition: opacity 0.3s ease, top 0.3s ease;
  padding-bottom: 10px;
}

.modal.is-open .modal-content {
  opacity: 1;
  top: 0;
}

.modal-header {
  background-color: #f8f9fa;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.modal-body {
  padding: 20px;
  color: #495057;
  flex-grow: 1;
  overflow-y: auto;
}

.modal-body p {
  line-height: 1.6;
  margin-bottom: 1.2em;
  color: #272727;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #dee2e6;
  text-align: right;
  background-color: #f8f9fa;
  flex-shrink: 0;
}

.modal-close-btn-footer {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
  .modal {
    padding: 20px 10px;
  }

  .modal-content {
    max-width: 100%;
  }
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------- */

#NOVEDADES {
  background-color: #d9dbf3;
  margin-bottom: 50px;      /* REDUCIDO: De 90px a 50px */
  padding-bottom: 20px;     /* Relleno inferior para balancear */
}

.titulo-novedades {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #94cf5a;
  color: initial;
  padding: 15px 20px;       
  margin-top: 30px;         /* REDUCIDO: De 50px a 30px */
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 25px;      /* REDUCIDO: De 30px a 25px */
  color: #27146e;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
}

.titulo-novedades h1 {
  color: #27146e;
  font-family: Optima, 'Segoe', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.2em; 
  margin: 0;
}

.cursos-container {
  display: flex;
  gap: 35px;                /* REDUCIDO: De 60px a 35px para acercarlos */
  justify-content: center;
  padding: 10px 20px;
}

.card-cursos {
  position: relative;
  width: 100%;
  max-width: 320px;         /* REDUCIDO: De 400px a 320px para controlar escala */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover suave también en la tarjeta de cursos */
.card-cursos:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.card-cursos img {
  width: 100%;
  height: 400px;            /* ALTURA CONTROLADA: Para que los afiches verticales no se extiendan infinito */
  object-fit: cover;        /* Ajusta la imagen de forma limpia */
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 20px;
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  background: rgba(0, 0, 0, 0.85);
  box-sizing: border-box;    /* Previene desbordamientos de texto */
}

.card-cursos:hover img {
  opacity: 0.7;
  transform: scale(1.04);
}

.card-cursos:hover .card-overlay {
  opacity: 1;
}

.btn-inscribir {
  margin-top: 15px;
  margin-bottom: 0;
  padding: 10px 20px;
  background-color: #27146e;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  border: 2px solid #27146e;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  align-self: flex-start;
}

.btn-inscribir:hover {
  background-color: #3b2094;
  border-color: #3b2094;
}

.card-overlay h3,
.card-overlay h2,
.card-overlay p {
  margin: 3px 0;
  width: 100%;
}

.fecha {
  font-style: italic;
  font-size: 0.9em;
  opacity: 0.9;
}


/* ---------------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------------------- */
/* Comisión Directiva */ 

.board-grid {
  display: grid;
  /* Punto medio: de 200px a 240px de mínimo */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 35px;
  max-width: 980px; /* Ancho del contenedor intermedio */
  margin: 80px auto;
  padding: 20px;
  font-family: Arial, Helvetica, sans-serif;
}

/* Estilo de la tarjeta */
.member-card {
  background-color: #f4f4f4;
  border: 1px solid #dcdcdc;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-radius: 10px;
}

/* Encuadre de la imagen */
.member-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}

.member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Información del miembro */
.member-info {
  padding: 14px 16px 20px 16px; /* Padding intermedio */
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Nombre de la persona */
.member-name {
  margin: 0;
  font-size: 1.3rem; /* Tamaño de letra intermedio */
  font-weight: 500;
  color: #4a4a4a;
}

/* Cargo / Título */
.member-title {
  margin: 0;
  font-size: 0.8rem;
  font-style: italic;
  text-transform: uppercase;
  color: #757575;
  letter-spacing: 0.3px;
  line-height: 1.3;
}