
/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial;
}

/* =========================
   FONDO ANIMADO
========================= */

body {
  color: white;
  display: flex;
  min-height: 100vh;

  background: linear-gradient(-45deg, #050814, #0b1220, #111a2e, #0a0f1c);
  background-size: 400% 400%;
  animation: bgMove 12s ease infinite;
}

@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =========================
   SIDEBAR GLASS
========================= */

.sidebar {
  width: 300px;
  position: fixed;
  height: 100vh;
  padding: 20px;

  background: rgba(17, 26, 46, 0.6);
  backdrop-filter: blur(12px);

  border-right: 1px solid rgba(255,215,0,0.3);
  overflow-y: auto;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: gold;
  text-shadow: 0 0 10px rgba(255,215,0,0.4);
  margin-bottom: 25px;
}

/* =========================
   MENÚ
========================= */

.menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-item {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,215,0,0.1);
  cursor: pointer;
  transition: 0.3s;
}

.menu-item:hover {
  transform: translateX(8px);
  background: rgba(255,215,0,0.15);
  box-shadow: 0 0 20px rgba(255,215,0,0.2);
}

/* =========================
   MAIN
========================= */

.main {
  margin-left: 320px;
  padding: 40px;
  width: 100%;
}

/* =========================
   HEADER
========================= */

.header h1 {
  font-size: 34px;
  color: gold;
  text-shadow: 0 0 20px rgba(255,215,0,0.4);
}

.header p {
  opacity: 0.7;
  margin-top: 5px;
}

/* =========================
   GRID
========================= */

.grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* =========================
   CARDS
========================= */

.card {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;

  border: 1px solid rgba(255,215,0,0.1);

  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.5),
    0 0 25px rgba(255,215,0,0.25);
  border: 1px solid gold;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: brightness(0.9);
  transition: 0.3s;
}

.card:hover img {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.card h3 {
  padding: 15px;
  font-size: 15px;
  color: white;
}

/* =========================
   HERO (CORREGIDO)
========================= */

.hero {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 75vh;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: radial-gradient(
    circle at center,
    rgba(255,215,0,0.08),
    transparent 60%
  );

  border-radius: 18px;
  padding: 30px;
}

.hero-content {
  width: 100%;
  max-width: 900px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.hero img {
  width: 100%;
  max-width: 800px;
  height: auto;

  object-fit: contain;

  border-radius: 20px;
  border: 2px solid gold;

  box-shadow: 0 0 50px rgba(255,215,0,0.3);

  display: block;
}

.hero h2 {
  font-size: 28px;
  color: gold;
}

.hero p {
  font-size: 15px;
  opacity: 0.8;
}

/* =========================
   MODAL
========================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

.hidden {
  display: none !important;
}

.viewer img {
  max-width: 88vw;
  max-height: 75vh;
  border-radius: 12px;
  border: 2px solid gold;
  box-shadow: 0 0 40px rgba(255,215,0,0.25);
}

.viewer h2 {
  margin-top: 15px;
  color: gold;
}

/* BOTONES */

.close, .nav {
  position: absolute;
  background: gold;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.close {
  top: 20px;
  right: 20px;
  padding: 10px 14px;
}

.nav {
  top: 50%;
  transform: translateY(-50%);
  padding: 12px 16px;
  font-size: 22px;
}

#prev { left: 20px; }
#next { right: 20px; }

.close:hover,
.nav:hover {
  transform: scale(1.1);
}

/* =========================
   ANIMACIÓN
========================= */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .main {
    margin-left: 0;
    padding: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 22px;
    text-align: center;
  }

  .header p {
    text-align: center;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding: 20px;
  }

  .hero img {
    max-width: 95%;
  }

  .hero h2 {
    font-size: 20px;
  }

  .hero p {
    font-size: 13px;
  }
}

.download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  background: gold;
  color: black;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;

  font-weight: bold;
  cursor: pointer;

  box-shadow: 0 0 20px rgba(255,215,0,0.3);
  transition: 0.3s;
}

.download:hover {
  transform: translateX(-50%) scale(1.05);
}

@media (max-width: 600px) {

  /* ❌ ocultar HERO imagen */
  .hero img, .section-cover img  {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 25px 15px;
  }

  .hero h2 {
    font-size: 18px;
  }

  .hero p {
    font-size: 13px;
  }

  /* SIDEBAR OCULTO POR DEFECTO */
  .sidebar {
    position: fixed;
    left: -100%;
    width: 260px;
    height: 100vh;
    transition: 0.3s;
    z-index: 1000;
  }
  
  .sidebar .logo{
    padding-top:50px
  }

  .sidebar.active {
    left: 0;
  }

  /* MAIN FULL WIDTH */
  .main {
    margin-left: 0;
    padding: 15px;
  }

  /* BOTÓN HAMBURGUESA */
  .menu-toggle {
      position: fixed;
      top: 15px;
      left: 15px;
    
      z-index: 3000;
    
      background: gold;
      border: none;
      padding: 10px 12px;
      font-size: 18px;
      border-radius: 8px;
    
      box-shadow: 0 0 15px rgba(0,0,0,0.3);
    }
    
    .header {
  padding-top: 55px;
}
}

.section-cover {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.section-cover img {
  width: 100%;
  max-width: 70%;

  object-fit: cover;

  border-radius: 18px;
  border: 2px solid gold;

  box-shadow: 0 0 35px rgba(255,215,0,0.25);
}