/* ======================================================
   NOVAG – style.css — versión limpia y funcional
   ✅ Sin duplicados | ✅ Compatibilidad total con script corregido
   ====================================================== */
:root {
  --azul: #062c43;
  --azul-brillo: #0b5ed7;
  --celeste: #4fd1ff;
  --aqua: #22e3dd;
  --amarillo: #ffd60a;
  --amarillo-soft: #fff3b0;
  --negro: #020617;
  --blanco: #ffffff;
  --gris: #f8fafc;
  --sombra: 0 15px 35px rgba(0,0,0,.18);
  --sombra-fuerte: 0 25px 60px rgba(0,0,0,.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-weight: 700; }
html { scroll-behavior: smooth; }
body { 
  font-family: 'Poppins','Segoe UI',sans-serif;
  background: linear-gradient(180deg,#e0f2fe,#f8fafc);
  color: var(--negro);
  overflow-x: hidden;
}

/* —— HEADER —— */
.nav-principal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 50px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 2000;
  background: rgba(6,44,67,.75);
  backdrop-filter: blur(15px);
  box-shadow: var(--sombra);
}
.logo {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(90deg,var(--amarillo),var(--celeste));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.menu { list-style: none; display: flex; gap: 35px; }
.menu a {
  color: var(--blanco);
  text-decoration: none;
  position: relative;
}
.menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--amarillo);
  transition: .4s;
}
.menu a:hover::after { width: 100%; }

.submenu {
  position: absolute;
  top: 120%;
  left: 0;
  background: var(--blanco);
  border-radius: 20px;
  box-shadow: var(--sombra-fuerte);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(.95);
  transition: .4s;
}
.dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.submenu a {
  display: block;
  padding: 16px 22px;
  color: var(--negro);
}
.submenu a:hover {
  background: linear-gradient(90deg,var(--celeste),var(--aqua));
  color: var(--blanco);
}

.nav-actions button {
  margin-left: 12px;
  padding: 12px 22px;
  border-radius: 40px;
  border: none;
  font-weight: 900;
  cursor: pointer;
  transition: .4s;
}
#btn-login {
  background: transparent;
  border: 2px solid var(--amarillo);
  color: var(--amarillo);
}
#btn-register {
  background: linear-gradient(90deg,var(--amarillo),var(--celeste));
  color: var(--negro);
}

/* —— HERO —— */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.6)), url('img/hero.jpg') center/cover no-repeat;
  color: var(--blanco);
}
.hero h1 {
  font-size: 64px;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 8px 30px rgba(0,0,0,.6);
}
.hero p {
  max-width: 950px;
  font-size: 22px;
  margin-bottom: 40px;
}
.buscador {
  display: flex;
  align-items: center;
  width: 90%;
  max-width: 820px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(20px);
  border-radius: 60px;
  box-shadow: var(--sombra-fuerte);
  overflow: hidden;
}
.buscador input {
  flex: 1;
  padding: 20px 26px;
  border: none;
  background: transparent;
  color: var(--blanco);
  font-size: 17px;
}
.buscador button {
  padding: 18px 30px;
  background: linear-gradient(90deg,var(--amarillo),var(--celeste));
  border: none;
  font-size: 20px;
  cursor: pointer;
  font-weight: 900;
}
/* ===============================
   MURAL DE IMÁGENES – 4x3
   =============================== */
.mural-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 40px auto;
}

.mural-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--sombra);
  transition: .4s;
}

.mural-grid img:hover {
  transform: scale(1.06);
  box-shadow: 0 0 30px rgba(79,209,255,.6);
}


/* —— SECCIONES —— */
section {
  padding: 110px 70px;
  position: relative;
}
section:nth-child(even) {
  background: linear-gradient(180deg,#f0f9ff,#ffffff);
}
section:nth-child(odd) {
  background: linear-gradient(180deg,#ffffff,#ecfeff);
}
section h2 {
  font-size: 46px;
  text-align: center;
  margin-bottom: 60px;
  background: linear-gradient(90deg,var(--azul-brillo),var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}
section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: 120px;
  height: 6px;
  border-radius: 10px;
  background: linear-gradient(90deg,var(--amarillo),var(--aqua));
}

/* —— PRODUCTOS —— */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.producto {
  background: var(--blanco);
  border-radius: 28px;
  box-shadow: var(--sombra);
  overflow: hidden;
  position: relative;
  transition: .5s;
}
.producto:hover {
  transform: translateY(-18px) scale(1.02);
  box-shadow: var(--sombra-fuerte);
}
.producto img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}
.producto h4 {
  padding: 18px;
  font-size: 22px;
  background: linear-gradient(90deg,var(--azul-brillo),var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}
.producto p {
  padding: 0 18px 18px;
}
.producto button {
  margin: 10px 18px;
  padding: 14px;
  border: none;
  border-radius: 40px;
  font-weight: 900;
  background: linear-gradient(90deg,var(--azul-brillo),var(--aqua));
  color: var(--blanco);
  cursor: pointer;
}

/* —— MATERIAL EDUCATIVO —— */
.lista-material {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.lista-material li {
  background: var(--blanco);
  border-radius: 28px;
  box-shadow: var(--sombra);
  padding: 32px 28px;
  text-align: center;
  transition: .45s;
}
.lista-material img {
  height: 170px;
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 22px;
}
.lista-material h4 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(90deg,var(--azul-brillo),var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.btn-descargar {
  background: linear-gradient(90deg,var(--amarillo),var(--celeste));
  border: none;
  padding: 14px 30px;
  border-radius: 40px;
  font-weight: 900;
  cursor: pointer;
}

/* —— CLASES —— */
.clases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.clase {
  background: var(--blanco);
  border-radius: 28px;
  box-shadow: var(--sombra);
  padding: 20px;
  text-align: center;
}
.clase video {
  width: 100%;
  height: 200px;
  border-radius: 20px;
  margin-bottom: 15px;
}
.clase button {
  margin-top: 10px;
  padding: 12px 25px;
  border-radius: 40px;
  background: linear-gradient(90deg,var(--azul-brillo),var(--aqua));
  color: var(--blanco);
  font-weight: 900;
  border: none;
  cursor: pointer;
}

/* —— PROMOCIONES —— */
.promociones-carrusel {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-behavior: smooth;
}
.promo {
  flex: 0 0 300px;
  background: linear-gradient(135deg,var(--amarillo),var(--celeste));
  color: var(--negro);
  border-radius: 28px;
  padding: 30px 20px;
  box-shadow: var(--sombra-fuerte);
  text-align: center;
}
.promo h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(90deg,var(--azul-brillo),var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.promo p { font-size: 16px; line-height: 1.6; }

/* —— MAPA / MISIÓN —— */
.mapa-mision {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 60px;
}
.mapa iframe {
  width: 100%;
  height: 560px;
  border-radius: 32px;
  box-shadow: var(--sombra-fuerte);
}
.mision-vision {
  background: linear-gradient(135deg,var(--azul-brillo),var(--aqua));
  color: var(--blanco);
  border-radius: 32px;
  padding: 45px 40px;
}

/* —— FOOTER Y WHATSAPP —— */
footer {
  background: linear-gradient(135deg,var(--azul),#020617);
  color: var(--blanco);
  text-align: center;
  padding: 50px;
}
.btn-whatsapp {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg,#25d366,#1ebea5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #fff;
  box-shadow: var(--sombra-fuerte);
  text-decoration: none;
}

/* —— HOVER UNIVERSAL —— */
.producto:hover,
.lista-material li:hover,
.promo:hover,
.clase:hover,
button:hover,
.btn-descargar:hover,
.btn-whatsapp:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(79,209,255,.6);
}
button:active,
.btn-descargar:active {
  transform: scale(0.95);
}

/* —— RESPONSIVE —— */
@media (max-width: 900px) {
  .menu { display: none; }
  .mapa-mision { grid-template-columns: 1fr; }
  .mapa iframe { height: 380px; }

  /* MURAL */
  .mural-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 44px; }
  .productos-grid,
  .lista-material,
  .clases-grid {
    grid-template-columns: 1fr;
  }

  /* MURAL */
  .mural-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
