/* =========================
   BASE
========================= */
:root {
  --color-fondo: #0d1117;
  --color-superficie: #161b22;
  --color-acento: #ff7b00;
  --color-acento-hover: #ff9940;
  --color-texto: #e6eef8;
  --color-secundario: #9baec8;
  --radio: 0.8rem;
  --sombra: 0 4px 20px rgba(0, 0, 0, 0.25);
  --transicion: all 0.3s ease;
  --fuente: "Montserrat", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--fuente);
  background: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
}

/* =========================
   BOTÓN FLOTANTE VOLVER
========================= */
.volver-fijo {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--color-acento);
  color: #000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  padding: 10px 18px;
  box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
  transition: var(--transicion);
  z-index: 999;
}

.volver-fijo:hover {
  background: var(--color-acento-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.4);
}

/* =========================
   HEADER
========================= */
.header {
  text-align: center;
  padding: 2rem 2rem 2rem;
  background: var(--color-superficie);
}

.header h1 {
  font-size: 1%;
  color: var(--color-acento);
  margin-bottom: 0.5rem;
}

.header p {
  color: var(--color-secundario);
  max-width: 500px;
  margin: 0 auto;
}

/* =========================
   GALERÍA DE PROYECTOS
========================= */
.galeria-proyectos {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.proyecto {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radio);
  padding: 2rem;
  box-shadow: var(--sombra);
  transition: var(--transicion);
}

.proyecto:hover {
  background: rgba(255, 255, 255, 0.05);
}

.proyecto h2 {
  color: var(--color-acento);
  margin-bottom: 0.3rem;
  font-size: 1.4rem;
}

.proyecto p {
  color: var(--color-secundario);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

/* ===== Imágenes ===== */
.imagenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
}

.imagenes img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radio);
  cursor: pointer;
  transition: var(--transicion);
}

.imagenes img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* =========================
   LIGHTBOX CON EFECTO BLUR
========================= */
#lightbox {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  inset: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  cursor: zoom-out;
  transition: opacity 0.3s ease;
}

#lightbox.activo {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radio);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: var(--transicion);
}

/* Animación de aparición suave */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 1.8rem 1rem;
  background: var(--color-superficie);
  color: var(--color-secundario);
  font-size: 0.9rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.7rem;
  }

  .proyecto {
    padding: 1.5rem;
  }

  .imagenes img {
    height: 170px;
  }
}

/* =========================
   ENCABEZADO DE GALERÍA
========================= */
.header {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(to bottom, rgba(22, 27, 34, 0.6), transparent);
}

.header h1 {
  color: var(--color-acento);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.header p {
  color: var(--color-secundario);
  font-size: 1.1rem;
  max-width: 700px; /* 🔹 más angosto */
  margin: 0 auto; /* centra el texto */
  line-height: 1.6;
}

/* =========================
   BOTÓN VOLVER
========================= */
.btn-volver {
  display: inline-block;
  margin-top: 30px;
  background: var(--color-acento);
  color: #000;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radio);
  box-shadow: 0 4px 15px rgba(255, 123, 0, 0.3);
  transition: var(--transicion);
}

.btn-volver:hover {
  background: var(--color-acento-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 123, 0, 0.4);
}
/* =========================
   AJUSTES DE GALERÍA