.page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 140px 24px;
  display: flex;
  flex-direction: column;
}

/* Module*/

.module {
  position: relative;
  background: rgba(10, 14, 30, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.35);
  margin-bottom: 32px; /* espacio base entre rectángulos */
}

.module--tight {
  margin-bottom: 10px;
}

.module--normal {
  margin-bottom: 10px;
}

.module--loose {
  margin-bottom: 35px;
}

.module--xl {
  margin-bottom: 96px;
}

/* El último módulo no deja hueco extra */
.module:last-child {
  margin-bottom: 0;
}


/* Hero */
.hero {
  text-align: center;
  padding: 96px 64px;
  margin-bottom: 64px; /* más aire debajo del hero */
}


.hero h1 {
  font-size: 46px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}


.hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
}


/* Top bar */

.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(32, 29, 29, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__menu {
  order: 1; /* izquierda */
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__logo {
  order: 2; /* derecha */
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 90px;
  width: auto;
  display: block;
}

/*  MENU */

.nav__menu a,
.dropdown__toggle {
  color: var(--text-muted);
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.nav__menu a:hover,
.dropdown__toggle:hover {
  color: var(--electric);
}

/* DROPDOWN */

.dropdown {
  position: relative;
}

/* zona invisible para que no se cierre */
.dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: rgba(10, 14, 30, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 0;
  display: none;
  min-width: 220px;
  z-index: 1001;
  list-style: none;
}

.dropdown__menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-muted);
}

.dropdown__menu li a:hover {
  background: rgba(30, 167, 255, 0.08);
  color: var(--text-main);
}

.dropdown:hover .dropdown__menu {
  display: block;
}

/* Logo Floating */

.logo-floating {
  position: fixed;
  top: 22.5%;
  right: 100px;
  transform: translateY(-50%);
  z-index: 1000;
  pointer-events: none;
}

.logo-floating img {
  width: 180px;
  height: auto;
  opacity: 0.9;
  mix-blend-mode: luminosity;
}

/* Logos entorno – sin margen inferior porque es la última sección */
.logos-entorno {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .logos-grid {
    gap: 32px;
  }

  .logos-grid img {
    height: 36px;
    max-width: 120px;
  }
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .logo-floating img {
    width: 140px;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 96px 16px;
  }

  .module {
    padding: 40px 28px;
    margin-bottom: 28px;
  }

  .hero {
    padding: 64px 32px;
    margin-bottom: 48px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .logo-floating {
    right: 16px;
    opacity: 0.15;
  }

  .logo-floating img {
    width: 120px;
  }
}