
/** ADD YOUR AWESOME CODES HERE **/

button:focus {
    outline: 1px dotted;
    outline: 0px auto -webkit-focus-ring-color;
}
/* La superposición semitransparente que cubre la página */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

/* El contenedor del video */
.lightbox-content {
  position: relative;
  margin: 10% auto; /* Centra el lightbox verticalmente */
  padding: 20px;
  width: 90%;
  max-width: 800px;
  background-color: #fefefe;
  border-radius: 5px;
}

/* El botón de cerrar (la "x") */
.close-btn {
  color: #ffffff;
  background: #0099ff;
  border-radius: 15px;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: -15px;
  right: -12px;
  text-align: center;
  width: 1em;
  height: 1em;
  line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
}

/* Contenedor responsivo para mantener el aspect ratio del video */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  padding-top: 25px;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Animacion Texto */

/* Reveal sections */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
  will-change: transform, opacity;
}

/* When in view */
.reveal.active {
  opacity: 1;
  transform: none;
}

/* Specific Animations */
.fade-in {
  transform: translateY(40px);
}

.slide-left {
  transform: translateX(-60px);
}

.zoom-in {
  transform: scale(0.8);
}

.flip-up {
  transform: rotateX(90deg);
  transform-origin: bottom;
}

.slide-right {
  transform: translateX(60px);
}

.flip-down {
  transform: rotateX(-90deg);
  transform-origin: top;
}

.fade-up {
  transform: translateY(40px);
  opacity: 0;
}

/* Activated states (reuse .active for all) */
.reveal.slide-right.active,
.reveal.flip-down.active,
.reveal.fade-up.active {
  transform: none;
  opacity: 1;
}

/* Activated states */
.reveal.fade-in.active,
.reveal.slide-left.active,
.reveal.zoom-in.active,
.reveal.flip-up.active {
  transform: none;
}

/* Fin Animacion Texto */

/* Lightbox Imagen */

.galeria-principal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.galeria-principal a {
    display: block;
    transition: 0.5s ease;
}

.galeria-principal a:hover {
      transform: scale(1.05);
}

.gallery-list:hover > :not(:hover) {
    opacity: 0.9;
    transition: opacity 0.5s;
    transition: all 0.5s ease;
    filter: blur(2.5px);
}

.galeria-principal img {
    width: 100%;
    height: auto;
    display: block;
}

/* Estilos para el Visor */
#visor-global {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    overflow-y: auto;
    opacity: 1;
    filter: blur(0px);
    transition: .5s ease-in-out;
    transition-delay: 0.5s;
}

.visor-area {
    position: relative;
    max-width: 55%;
    max-height: 90%;  
}

#foto-ampliada {
    display: block;
    max-width: 100%;
    max-height: 100%;
     border: #ffffff 10px solid;
}

#texto-narrativo {
    color: white;
    font-size: 1.2em;
    margin-top: 10px;
    text-align: center;
}

.btn-cerrar-modal {
   position: absolute;
  top: -5px;
  right: -8px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  background-color: #0099ff;
  border-radius: 20px;
  text-align: center;
  width: 1em;
  height: 1em;
  line-height: 1;
}
.btn-cerrar-modal:hover {
    color: black;
    text-decoration: none;
}

/* Clase para ocultar el visor */
.estado-inactivo {
    display: none !important;
}

/* Media query para móviles */
@media (max-width: 768px) {
    .visor-area {
        max-width: 95%;
        max-height: 95%;
    }
}
/* Fin Lightbox Imagen */

/*Floating Button*/
.fab-wrapper {
  content: ""; /* Es necesario para que el pseudoelemento se renderice */
  bottom: 5rem;
  right: 1.6rem;
  background-attachment: scroll, /*fixed*/;
  z-index: 100;
   -webkit-transition: all .7s ease-in-out;
    -moz-transition: all .7s ease-in-out;
    -o-transition: all .7s ease-in-out;
    -ms-transition: all .7s ease-in-out;
    transition: all .7s ease-in-out;
}

.fab-wrapper::before {
  content: ""; /* Es necesario para que el pseudoelemento se renderice */
  position: fixed;
  bottom: 5rem;
  right: 1.6rem;
  background-attachment: scroll, /*fixed*/;
  z-index: 100;
}

.fab-checkbox {
  display: none;
}
.fab {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 4rem;
  height: 4rem;
  background: #1E457D;
  border-radius: 50%;
  box-shadow: 0px 5px 20px #81a4f1;
  transition: all 0.3s ease;
  z-index: 100;
  border-bottom-right-radius: 6px;
  border: 1px solid #006eff;
}

.fab:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}
.fab-checkbox:checked ~ .fab:before {
  width: 90%;
  height: 90%;
  left: 5%;
  top: 5%;
  background-color: rgba(255, 255, 255, 0.2);
}
.fab:hover {
  background: #2c87e8;
  box-shadow: 0px 5px 20px 5px #81a4f1;
}

.fab-dots {
  position: absolute;
  height: 8px;
  width: 8px;
  background-color: white;
  border-radius: 50%;
  top: 50%;
  transform: translateX(0%) translateY(-50%) rotate(0deg);
  opacity: 1;
  animation: blink 3s ease infinite;
  transition: all 0.3s ease;
}

.fab-dots-1 {
  left: 15px;
  animation-delay: 0s;
}
.fab-dots-2 {
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  animation-delay: 0.4s;
}
.fab-dots-3 {
  right: 15px;
  animation-delay: 0.8s;
}

.fab-checkbox:checked ~ .fab .fab-dots {
  height: 6px;
}

.fab .fab-dots-2 {
  transform: translateX(-50%) translateY(-50%) rotate(0deg);
}

.fab-checkbox:checked ~ .fab .fab-dots-1 {
  width: 32px;
  border-radius: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
}
.fab-checkbox:checked ~ .fab .fab-dots-3 {
  width: 32px;
  border-radius: 10px;
  right: 50%;
  transform: translateX(50%) translateY(-50%) rotate(-45deg);
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.fab-checkbox:checked ~ .fab .fab-dots {
  animation: none;
}

.fab-wheel {
  position: absolute;
  bottom: 0;
  right: 0;
  border: 0px solid;
  width: 10rem;
  height: 10rem;
  transition: all 0.3s ease;
  transform-origin: bottom right;
   pointer-events: none;
  transform: scale(0);
}

.fab-checkbox:checked ~ .fab-wheel {
  transform: scale(1);
}
.fab-action {
  position: absolute;
  background: #1E457D;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: White;
  box-shadow: 0 0.1rem 1rem rgba(24, 66, 154, 0.82);
  transition: all 1s ease;
  opacity: 0;
  cursor: hand;
}

.fab-checkbox:checked ~ .fab-wheel .fab-action {
  opacity: 1;
  pointer-events: auto;
}

.fab-action:hover {
  background-color: #28A9E2;
}

.fab-wheel .fab-action-1 {
  right: -1rem;
  top: 0;
}

.fab-wheel .fab-action-2 {
  right: 3.4rem;
  top: 0.5rem;
}
.fab-wheel .fab-action-3 {
  left: 0.5rem;
  bottom: 3.4rem;
}
.fab-wheel .fab-action-4 {
  left: 0;
  bottom: -1rem;
}

/* Estilos generales para ambos botones si fuera necesario */
/* Define la animación que controlará la visibilidad del botón */
/* Estilo base del botón flotante */
#btn-flotante {
  position: fixed; /* Mantiene el botón fijo en la pantalla */
  z-index: 100; /* Asegura que el botón esté sobre otros elementos */
  cursor: pointer;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s ease-in-out; /* Transición para un efecto suave */
}

/* Estado inicial: botón oculto */
.btn-oculto {
  opacity: 0; /* Oculta el botón haciéndolo transparente */
  visibility: hidden; /* Lo hace inaccesible al lector de pantalla y clics */
}

/* Estado visible: botón aparece */
.btn-visible {
  opacity: 1; /* Hace el botón visible */
  visibility: visible;
}
/*Fin Floating Button*/