/* ESKAPE TEAM */
/* CSS Styles */
/* LAB PAGE aGh */

@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');
:root {
      --verde-aqua: #07a47c;
      --azul-celeste: #0387cf;
      --contraste: #0387ce;
    }
    body {
      font-family: 'Red Hat Display', sans-serif;
	  color: #0a5941;
    }
    h3 {
      font-family: 'Manrope', sans-serif;
    }
    .navbar {
      background-color: var(--azul-celeste);
    }
    .sticky-top {
      z-index: 1020;
    }
    footer {
      background-color: var(--contraste);
      color: white;
    }
    footer a {
      color: #fff;
      text-decoration: none;
    }
    .carousel-item img {
      height: 400px;
      object-fit: cover;
    }
    .section-title {
      color: var(--verde-aqua);
      margin-top: 2rem;
    }
	section:before {
    display: block;
    content: " ";
    margin-top: -60px; /* altura real de navbar */
    height: 60px; /* Debe ser igual al margin-top negativo */
    visibility: hidden;
    pointer-events: none;
}

/* Estilos contenedor de paneles */
.accordion {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Estilos de cada acordeon independiente */
.accordion-item {
  border-bottom: 1px solid #eee;
}

.accordion-item:last-child {
  border-bottom: none; /* Sin borde para el último */
}

/* Estilos para el encabezado de cada item*/
.accordion-header {
  background-color: #f7f7f7;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between; /* Envía el icono a la derecha */
  align-items: center;
  font-weight: bold;
  color: #333;
  transition: background-color 0.3s ease;
  font-size: 1.1em; 
}

.accordion-header:hover {
  background-color: #e9e9e9;
}

.publication-list {
    list-style: disc;
    padding: 20px 40px;
}
.publication-list li {
    margin-bottom: 15px;
}

/* Estilos '+' icono */
.accordion-header .icon {
  font-size: 1.5em;
  line-height: 1; 
  transition: transform 0.3s ease-in-out; 
  margin-left: 10px; 
  user-select: none;
}

/* Estilos para el contenedor colapsable */
.accordion-content {
  background-color: #fff;
  padding: 0 20px; 
  max-height: 0; 
  overflow: hidden; /* Cambiado de 'hidden' a 'auto' cuando está activo */
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-content .publication-list {
  list-style: disc; /* 'none' si se prefiere sin bullets */
  padding-left: 25px; 
  margin: 15px 0; 
  line-height: 1.6;
  color: #555;
}

.accordion-content .publication-list li {
  margin-bottom: 10px;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 15px 20px; 
  overflow-y: auto; 
}

.accordion-item.active .accordion-header .icon {
  transform: rotate(45deg);
}

.accordion-button:not(.collapsed) {
  background-color: #e7f1ff;
  color: #0c63e4;
  font-weight: bold;
}

.pub-item { margin-bottom: 1.5rem; border-bottom: 1px solid #eee; padding-bottom: 1rem; }
.pub-item:last-child { border-bottom: none; }

/* Estilos necesarios para tu estructura específica */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}
.accordion-header[aria-expanded="true"] .icon {
    transform: rotate(45deg); /* Cambia el + por una X o gíralo */
}
.publication-list {
    list-style: disc;
    padding: 20px 40px;
}
.publication-list li {
    margin-bottom: 15px;
}

/*Galeria*/
.gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 05px;
	justify-content: center;
}

.gallery a {
	width: calc(33.333% - 15px);
	aspect-ratio: 1 / .5; /* Define cuadros perfectos */
	display: block;
	overflow: hidden;
}

.gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Recorta la imagen para llenar el cuadro */
	border-radius: 5px;
	transition: transform 0.2s ease;
}

.gallery img:hover {
	transform: scale(1.05);
}
@media (max-width: 768px) {
.gallery a {
    width: calc(50% - 15px);
}
}

@media (max-width: 576px) {
.gallery a {
	width: 100%;
}
}

		.lightbox img {
        max-width: 100vw !important; /* 40% del ancho de la ventana */
        height: auto !important;   /* Mantener la proporción de la imagen */
    }
/*Fin Galeria*/