@charset "UTF-8";

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Bangers', cursive;
    font-size: 3rem;
	color:#f70505;
	text-shadow:
    1px 1px 0 #000,  /* Abajo a la derecha */
    -2px 2px 0 #000, /* Abajo a la izquierda */
    -2px -2px 0 #000, /* Arriba a la izquierda */
    1px -1px 0 #000; 
	letter-spacing: 0.10em;
  background: #f70505;
  color: #f70505;
}

/* ===== HEADER ===== */
.gallery-header {
  text-align: center;
  padding: 60px 20px;
  background: radial-gradient(circle, #ffcc00, #ff6600);
  border-bottom: 6px solid #000;
}

.gallery-header h1 {
  font-family: 'Bangers', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.gallery-header p {
  font-size: 1.1rem;
}

/* ===== GALER�A ===== */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 50px 20px;
  max-width: 1300px;
  margin: auto;
}

/* Item */
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
  cursor: pointer;
}

/* Imagen */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

/* Oscurecer fondo */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.45s ease;
}

/* Hover efecto */
.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-item:hover::after {
  opacity: 1;
}

.btn {
  display: inline-block;
  margin: 40px auto 0;
  padding: 15px 30px;
  background: radial-gradient(circle, #ffcc00, #ff6600);
  color: white;
  text-decoration: none;
  border: 4px solid black;
  font-family: 'Bangers', cursive;
    font-size: 2rem;
	color:#1f9baa;
	text-shadow:
    2px 2px 0 #000,  /* Abajo a la derecha */
    -2px 2px 0 #000, /* Abajo a la izquierda */
    -2px -2px 0 #000, /* Arriba a la izquierda */
    2px -2px 0 #000; 
	letter-spacing: 0.05em;
}


.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: scale(1.08);
  box-shadow: 6px 6px 0 #1f9baa;
}

/* ===============================
   LIGHTBOX
================================ */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 6px solid #fff;
  box-shadow: 0 0 40px #000;
  animation: zoomIn 0.4s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

/* Zoom imagen */
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===============================
   SCROLL REVEAL
================================ */

.gallery-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}





/* ===== FOOTER ===== */
.gallery-footer {
  text-align: center;
  padding: 20px;
  background: #000;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE EXTRA ===== */
@media (max-width: 480px) {
  .gallery-header h1 {
    font-size: 2rem;
  }
}
