/* ============================================================
   RESET & BASE
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f7f7f7;
  font-family: system-ui, 'Segoe UI', Roboto, -apple-system, sans-serif;
  color: #1e1e1e;
  line-height: 1.5;
  padding: 0;
  padding-top: 80px;
}

/* contenedor principal */
.contenedor {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 2.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06), 0 6px 12px rgba(0, 0, 0, 0.04);
}

/* ============================================================
   BOTONES DE IDIOMA
   ============================================================ */
.idioma-botones {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.lang-btn {
  background: #f0f0f0;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #2c2c2c;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
  border: 1px solid transparent;
}

.lang-btn:hover {
  background: #e4e4e4;
  transform: scale(1.02);
}

.lang-btn.active {
  background: #1e1e1e;
  color: #fafafa;
  border-color: #1e1e1e;
}

.lang-btn.active:hover {
  background: #2c2c2c;
}

/* ============================================================
   NAVEGACIÓN · FIJA (STICKY)
   ============================================================ */
.nav-menu {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 1.5rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(224, 224, 224, 0.5);
  border-radius: 0 0 1.5rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
}

.nav-menu.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-menu a {
  text-decoration: none;
  font-weight: 500;
  color: #2c2c2c;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  font-size: 0.95rem;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #FFD700;
  transition: width 0.25s ease;
}

.nav-menu a:hover::after {
  width: 60%;
}

.nav-menu a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111;
  transform: translateY(-1px);
}

/* ============================================================
   HERO · fondo difuminado
   ============================================================ */
.hero {
  position: relative;
  padding: 4rem 2rem;
  border-radius: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg,
      #FFD700 0%,
      #FFF4B5 20%,
      #7CB342 40%,
      #2E7D32 55%,
      #00897B 70%,
      #26A69A 80%,
      #C62828 92%,
      #EF5350 100%
    );
  background-size: 200% 200%;
  animation: difuminadoAnim 18s ease-in-out infinite alternate;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes difuminadoAnim {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.hero * {
  position: relative;
  z-index: 2;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1;
  border-radius: 2.5rem;
  pointer-events: none;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  text-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.hero a {
  display: inline-block;
  background: #1e1e1e;
  color: #fafafa;
  padding: 0.7rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero a:hover {
  background: #2c2c2c;
  transform: scale(1.02);
}

/* ============================================================
   DESCRIPCIÓN
   ============================================================ */
.descripcion-principal {
  background: #fafafa;
  padding: 1.5rem 2rem;
  border-radius: 2rem;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  border-left: 6px solid #FFD700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.descripcion-principal a {
  color: #C62828;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dashed #C62828;
}

.descripcion-principal a:hover {
  color: #2E7D32;
  border-bottom-color: #2E7D32;
}

hr {
  border: none;
  border-top: 2px dashed #e0e0e0;
  margin: 2.5rem 0;
}

/* ============================================================
   SECCIÓN VERSIONES
   ============================================================ */
.versiones h2,
#descargar h2,
#bugs h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.versiones h2::before {
  content: '📦';
  font-size: 1.8rem;
}

.version {
  background: #fafafa;
  border-radius: 2rem;
  padding: 1.8rem 2rem;
  border: 1px solid #ececec;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.version h3 {
  font-size: 1.6rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.version h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 1.2rem 0 0.3rem 0;
  color: #2c2c2c;
  background: #f0f0f0;
  display: inline-block;
  padding: 0.1rem 1rem;
  border-radius: 40px;
}

.version .img-menu {
  max-width: 100%;
  border-radius: 1.2rem;
  border: 1px solid #ddd;
  margin: 0.5rem 0 0.2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s;
}

.version .img-menu:hover {
  transform: scale(1.01);
}

.version p {
  color: #3d3d3d;
  margin: 0.2rem 0 0.6rem 0;
}

/* ============================================================
   SECCIÓN DESCARGAR
   ============================================================ */
#descargar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

#descargar > div {
  background: #fafafa;
  padding: 1.8rem 1.8rem 2rem;
  border-radius: 2rem;
  border: 1px solid #ececec;
  text-align: center;
  transition: box-shadow 0.15s;
}

#descargar > div:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

#descargar h2 {
  font-size: 1.8rem;
  font-weight: 500;
  justify-content: center;
  margin-bottom: 0.75rem;
}

#descargar h2:first-of-type::before {
  content: '🐧 ';
}
#descargar h2:last-of-type::before {
  content: '🪟 ';
}

#descargar p {
  color: #4a4a4a;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

#descargar a {
  display: inline-block;
  background: #1e1e1e;
  color: #fafafa;
  padding: 0.5rem 1.8rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s, transform 0.1s;
}

#descargar a:hover {
  background: #2c2c2c;
  transform: scale(1.02);
}

/* ============================================================
   SECCIÓN BUGS
   ============================================================ */
#bugs h2::before {
  content: '🐛 ';
  font-size: 1.8rem;
}

#bugs {
  background: #fafafa;
  padding: 2rem 2rem 2.2rem;
  border-radius: 2rem;
  border: 1px solid #ececec;
  text-align: center;
}

#bugs p {
  font-size: 1.05rem;
  color: #3d3d3d;
  margin-bottom: 1rem;
}

#bugs a {
  display: inline-block;
  background: #C62828;
  color: #fafafa;
  padding: 0.5rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, transform 0.1s;
}

#bugs a:hover {
  background: #b71c1c;
  transform: scale(1.02);
}

/* ============================================================
   FOOTER
   ============================================================ */
.fot-inferior {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f0f0f0;
  text-align: center;
}

.fot-inferior a {
  color: #2c2c2c;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 1.2rem;
  border-radius: 40px;
  transition: background 0.15s;
}

.fot-inferior a:hover {
  background: #f0f0f0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .contenedor {
    padding: 1.5rem 1rem;
    border-radius: 1.8rem;
  }
  
  .idioma-botones {
    justify-content: center;
    margin-bottom: 0.8rem;
  }
  
  .nav-menu {
    padding: 0.6rem 1rem;
    gap: 0.3rem 0.8rem;
    border-radius: 0 0 1rem 1rem;
  }
  
  .nav-menu a {
    font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
  }
  
  .hero {
    padding: 2.5rem 1rem;
  }
  
  .hero h1 {
    font-size: 2.4rem;
  }
  
  .versiones h2,
  #descargar h2,
  #bugs h2 {
    font-size: 1.6rem;
  }
  
  .version {
    padding: 1.2rem 1rem;
  }
  
  #descargar {
    grid-template-columns: 1fr;
  }
  
  .descripcion-principal {
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 60px;
  }
  
  .nav-menu {
    padding: 0.4rem 0.6rem;
    gap: 0.2rem 0.5rem;
  }
  
  .nav-menu a {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .lang-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
  }
}