
/* galeria.css */

.galeria {
  padding: 40px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.galeria h2 {
  color: #1a3a6e;
  margin-bottom: 30px;
  text-align: center;
}

.imagen-principal {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.imagen-principal img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.navegacion {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
}

.flecha {
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.flecha:hover {
  background: rgba(0,0,0,0.9);
}

.miniaturas-contenedores {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 0;
  background: #1a1a1a;
  border-radius: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.miniatura {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.3s ease;
  flex-shrink: 0;
}

.miniatura:hover {
  filter: brightness(1.2);
}

.miniatura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.miniatura.active {
  border: 2px solid #c81d4e;
}