@tailwind base;
@tailwind components;
@tailwind utilities;

/* Importar la fuente Lato desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

.grid-images {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    grid-template-areas:
        "image-1 image-2"
        "image-3 image-4";
    gap: 1.2rem;
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 3%;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #003A5D;
    cursor: pointer;
    padding: 8px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.676);
}

#preferences {
    cursor: pointer;
    background-color: #0056A7;
    padding: 7px;
    position: fixed;
    bottom: 20px;
    left: 1%;
    border-radius: 50%;
    opacity: 0;  /* Inicialmente invisible */
    transform: translateY(20px);  /* Desplazado hacia abajo */
    transition: opacity 0.5s ease, transform 0.5s ease;  /* Efecto de transición */
}

#preferences.visible {
    opacity: 1;  /* Hace visible el icono */
    transform: translateY(0);  /* Vuelve a su posición original */
}

#preferences img{
    width: 30px;
    height: 30px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}