/* ===== NAVBAR ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(6,13,31,0.48);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(79,195,247,0.12);
}

/* ===== HERO (estructura) ===== */
.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem clamp(1rem, 5vw, 4rem) 2rem;
  text-align: center;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero::before {
  width: 55vw; height: 55vw;
  top: -10%; left: -10%;
  background: radial-gradient(circle, rgba(13,27,62,0.9) 0%, rgba(6,13,31,0) 70%);
}
.hero::after {
  width: 40vw; height: 40vw;
  bottom: 0; right: -5%;
  background: radial-gradient(circle, rgba(79,195,247,0.07) 0%, transparent 70%);
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem clamp(1.5rem, 6vw, 5rem) 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.2rem;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .newsletter-input {
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
  }
  .footer-bottom {
    font-size: .72rem;
    line-height: 1.5;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ===== SCROLL-TO-TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 1.5rem;
  z-index: 150;
  width: 46px; height: 46px;
  background: var(--accent1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s;
  box-shadow: 0 4px 16px rgba(79,195,247,0.4);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }

/* ===== SECTION REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .nav-icons { gap: 10px; }
  .nav-icon-item .icon-box { border-radius: 14px; }
}
@media (max-width: 900px) {
  nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    height: auto;
    min-height: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.55rem;
    column-gap: 0.5rem;
  }
  .logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 14rem);
    justify-content: flex-start;
  }
  .search-bar {
    flex: 0 0 auto;
    align-self: center;
    min-width: 0;
    margin: 0;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 0;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }
}
