/* Tipografía galáctica */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: radial-gradient(ellipse at top, #001f3f 0%, #000000 100%);
  color: #cceeff;
  min-height: 100vh;
}

/* NAVBAR ZODIACO */
.navbar {
  background: linear-gradient(90deg, #001933, #003366);
  padding: 1rem 2rem;
  border-bottom: 2px solid #00bfff;
  box-shadow: 0 4px 10px rgba(0, 191, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  width: 50px;
  margin-right: 15px;
}

.logo {
  font-size: 1.8rem;
  color: #00bfff;
  text-shadow: 0 0 8px #00bfff;
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #cceeff;
  font-weight: bold;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #00bfff;
  text-shadow: 0 0 5px #00bfff;
}

/* GALERÍA */
.galeria {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  padding: 2rem;
  margin-bottom: 4rem;
}

.imagen {
  background: rgba(0, 0, 50, 0.6);
  border: 2px solid #00bfff;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
  position: relative; /* para animaciones con posicion absoluta */
}

.imagen img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform 0.4s ease-in-out, filter 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  left: 0;
  top: 0;
}

.imagen img {
  position: relative;
}


/* Hover efecto sutil */
.imagen:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00bfff;
}

.btn {
  background-color: #001933;
  color: #00bfff;
  border: 1px solid #00bfff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  font-family: 'Orbitron', sans-serif;
  user-select: none;
}

.btn:hover {
  background-color: #003366;
  box-shadow: 0 0 8px #00bfff;
}


.footer {
  background: linear-gradient(to right, #001933, #002f6c);
  padding: 1.5rem;
  text-align: center;
  color: #cceeff;
  border-top: 2px solid #00bfff;
  box-shadow: 0 -4px 10px rgba(0, 191, 255, 0.2);
  font-size: 1rem;
  letter-spacing: 1px;
}


.rotate {
  animation: rotate360 1s linear forwards;
}
@keyframes rotate360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


.border-change {
  border-color: #00ffbf;
  box-shadow: 0 0 15px #00ffbf, inset 0 0 10px #00ffbf;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}


.zoom {
  transform: scale(1.2);
  box-shadow: 0 0 20px #00bfff, 0 0 40px #00ffbf;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}


.invert {
  filter: invert(1) hue-rotate(180deg);
  transition: filter 0.5s ease;
}


#img15 {
  position: relative; 
  cursor: pointer;
}


.imagen img {
  will-change: transform;
}


.imagen img {
  display: block;
}


.btn {
  box-shadow: 0 0 5px #00bfff;
}

@keyframes temblor {
  0% { transform: translate(0px, 0px); }
  20% { transform: translate(-5px, 0px); }
  40% { transform: translate(5px, 0px); }
  60% { transform: translate(-5px, 0px); }
  80% { transform: translate(5px, 0px); }
  100% { transform: translate(0px, 0px); }
}

.temblor {
  animation: temblor 0.6s linear;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
  .galeria {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .galeria {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
  }

  .galeria {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .imagen img {
    max-height: 200px;
  }
}

@media (max-width: 576px) {
  .logo {
    font-size: 1.5rem;
  }

  .logo-img {
    width: 40px;
  }

  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .galeria {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .imagen img {
    max-height: 180px;
  }

  .footer {
    font-size: 0.9rem;
    padding: 1rem;
  }
}

