/* =========================
   RESET GENERAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  color: #ffffff;
  background: #000;
  overflow-x: hidden;
}

/* =========================
   VIDEO DE FONDO (PLEXUS)
========================= */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Capa oscura para legibilidad */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 30, 0.65);
  z-index: -1;
}

/* =========================
   HERO / PRESENTACIÓN
========================= */
.hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  max-width: 900px;
  margin: auto;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #00e5ff;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.3rem;
  font-weight: 600;
}

.hero h2 {
  font-weight: 300;
  color: #00e5ff;
  margin: 0.5rem 0 1rem;
}

.hero p {
  max-width: 650px;
  margin: auto;
  line-height: 1.7;
  font-size: 1rem;
  opacity: 0.95;
}

.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: -1;
}


/* =========================
   FILTROS
========================= */
.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-bottom: 2rem;
}

.filter-btn {
  background: transparent;
  border: 2px solid #00e5ff;
  color: #00e5ff;
  padding: 0.5rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #00e5ff;
  color: #000;
}

/* =========================
   GALERÍA
========================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 229, 255, 0.25);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card span {
  display: block;
  padding: 0.9rem;
  text-align: center;
  background: #00e5ff;
  color: #000;
  font-weight: 600;
}

/* =========================
   ANIMACIONES
========================= */
.fade-in {
  animation: fadeInUp 0.7s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   FOOTER / GITHUB
========================= */
.footer {
  text-align: center;
  padding: 2.5rem 1rem;
}

.github-icon {
  width: 42px;
  margin-bottom: 0.6rem;
  filter: invert(1);
  transition: transform 0.3s ease;
}

.github-icon:hover {
  transform: scale(1.2);
}

.footer p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* =========================
   MODALES
========================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal img,
.modal video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

/* =========================
   CURSOR PERSONALIZADO
========================= */
.cursor {
  width: 18px;
  height: 18px;
  border: 2px solid #00e5ff;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.2s ease, height 0.2s ease;
  z-index: 2000;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .profile-img {
    width: 130px;
    height: 130px;
  }

  .gallery {
    padding: 1.5rem;
  }
}
