@charset "UTF-8";
/* ESTILOS UNIDAD ACADEMICA BIOTERIO UNAM
   M. en C. AGNI G.
   Octubre, 2025
   
   Departamento de Comunicación
   División de Investigación, FacMed
   UNAM
*/

body {
            padding-top: 180px; 
        }
        
        #header {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            background: #fff;
            background-size: cover;
        }
		.logo-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: nowrap;
        }
        .logo-container {
            flex: 0 1 auto;
            padding: 5px;
        }
        .logo {
            max-width: 100%;
            height: auto;
            max-height: 100px; 
        }
        .left-logos {
            display: flex;
            align-items: center;
        }
        @media (max-width: 768px) {
            .logo {
                max-height: 40px; 
            }
        }
        
        footer {
            background-color: #f8f9fa;
            bottom: 0;
            padding: 20px;
            text-align: center;
        }
		
		footer a {
        color:#006 ; 
		}
		
		footer a:hover {
        color: #fff; 
		}
		
        h2 {
            margin-top: 40px; 
        }
		.navbar {
            background-color: #f8f9fa;
        }
        .social-icons {
            position: fixed;
            top: 70%;
            right: 0;
            transform: translateY(-50%);
            z-index: 1001;
        }
        .social-icons a {
            display: block;
            margin: 5px 0;
            color: #9B2E2F;
            font-size: 24px;
        }
        .carousel-inner img {
            width: 100%;
            height: 300px;
            object-fit: cover;
        }
        .carousel-container {
            margin-top: 80px; 
        }
        .contenido-seccion {
            padding-top: 80px; 
			padding: 140px 0 40px;
			padding-bottom: 80px; 
			color:#036; 
        }
        .social-icons a {
            display: block;
            margin: 5px 0;
            color: #9B2E2F;
            font-size: 24px;
        }

	/*Galeria*/
.grid-gallery {
          display: grid;
          grid-auto-rows: repeat(auto-fill, 3vw);/*200px;*/
          grid-gap: 1rem;
          grid-auto-flow: row dense;
        }

        @media all and (min-width: 320px) {
          .grid-gallery {
            grid-template-columns: repeat(1, 1fr);
          }
		  #fb-container{
			  display:none
		  }
        }

        @media all and (min-width: 768px) {
          .grid-gallery {
            grid-template-columns: repeat(3, 1fr);
          }
        }

        @media all and (min-width: 1024px) {
          .grid-gallery {
            grid-template-columns: repeat(6, 1fr);
          }
        }

        .grid-gallery__item:nth-child(11n+1) {
          grid-column: span 1;
        }

        .grid-gallery__item:nth-child(11n+4) {
          grid-column: span 2;
          grid-row: span 1;
        }

        .grid-gallery__item:nth-child(11n+6) {
          grid-column: span 3;
          grid-row: span 1;
        }

        .grid-gallery__item:nth-child(11n+7) {
          grid-column: span 1;
          grid-row: span 2;
        }

        .grid-gallery__item:nth-child(11n+8) {
          grid-column: span 2;
          grid-row: span 2;
        }

        .grid-gallery__item:nth-child(11n+9) {
          grid-row: span 3;
        }

        .grid-gallery__image {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
/*Fin Galeria*/

/* Estilos para la línea de tiempo */
    .timeline {
      position: relative;
      padding: 50px 0;
    }

    .timeline::before {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 2px;
      background-color: #007bff;
      transform: translateX(-50%);
    }

    .timeline-item {
      position: relative;
      margin-bottom: 50px;
      width: 50%;
      padding: 20px;
      background-color: #f8f9fa;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      transition: all 0.5s ease;
      opacity: 0;
    }

    .timeline-item:hover {
      transform: translateY(-10px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .timeline-item.left {
      left: 0;
      transform-origin: right center;
      animation: slideInLeft 1s forwards;
    }

    .timeline-item.right {
      left: 50%;
      transform-origin: left center;
      animation: slideInRight 1s forwards;
    }

    .timeline-item h5 {
      font-weight: bold;
    }

    .timeline-item::before {
      content: '';
      position: absolute;
      top: 20px;
      right: -10px;
      width: 20px;
      height: 20px;
      background-color: #007bff;
      border-radius: 50%;
      z-index: 1;
    }

    .timeline-item.left::before {
      left: -10px;
      right: auto;
    }

    @keyframes slideInLeft {
      from {
        transform: translateX(-100%) scale(0.8);
        opacity: 0;
      }
      to {
        transform: translateX(0) scale(1);
        opacity: 1;
      }
    }

    @keyframes slideInRight {
      from {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
      }
      to {
        transform: translateX(0) scale(1);
        opacity: 1;
      }
    }

    /* Responsivo */
    @media (max-width: 767px) {
      .timeline::before {
        left: 10px;
      }

      .timeline-item {
        width: 100%;
        left: 0 !important;
      }

      .timeline-item::before {
        left: 0 !important;
      }
    }
	/* FIN Estilos para la línea de tiempo */

.fancybox__container {
  z-index: 99999 !important;
}

.fancybox__slide {
  background: rgba(0, 0, 0, 0.9) !important;
}

.fancybox__image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
