/* Fuentes locales: reemplazo de Google Fonts (Share Tech Mono) */
@font-face {
  font-family: 'Share Tech Mono';
  src: url('fonts/PPSupplyMono-Ultralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Share Tech Mono';
  src: url('fonts/PPSupplyMono-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Tipografía principal */
body, h1, h2, h3, h4, h5, h6, .main-title, .section-title, .section-number, .ecosystem-title, .conecta-title {
  font-family: 'Share Tech Mono', monospace !important;
}

/* Fondo base del sitio para evitar halos blancos entre secciones redondeadas */
body {
  background: #111;
}

/* Colores principales */
.header-blue {
  background: #5a8fff;
  color: #111;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 0;
  overflow-x: hidden;
}
.header-blue .container {
  margin-top: 0;
}
.section-black {
  background: #111;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
  scroll-margin-top: 64px;
}
.section-black .container, .section-green .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.section-green {
  background: #3cff9b;
  color: #111;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 64px;
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

/* Textura de puntos para secciones verdes */
.section-green::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="1" cy="1" r="1" fill="%23111" fill-opacity="0.10"/></svg>');
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}
.section-green > * {
  position: relative;
  z-index: 2;
}

/* Patrón más denso para INICIATIVAS y ESTRUCTURA */
#iniciativas::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><rect x="0" y="0" width="3" height="3" fill="%230b0b0b" fill-opacity="0.35" shape-rendering="crispEdges"/></svg>');
  background-size: 32px 32px;
}
#estructura::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><rect x="0" y="0" width="3" height="3" fill="%230b0b0b" fill-opacity="0.35" shape-rendering="crispEdges"/></svg>');
  background-size: 32px 32px;
}
.section-green > * {
  position: relative;
  z-index: 2;
}

/* Títulos y numeración de sección */
.section-number {
  font-size: 2.5rem;
  font-weight: bold;
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.section-title {
  font-size: 2rem;
  font-weight: bold;
  display: inline-block;
  vertical-align: middle;
  letter-spacing: 0;
}

/* Listas de descripción */
.section-list {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  padding-left: 1.2rem;
}
.section-list li {
  margin-bottom: 0.5rem;
}

.platform-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
  font-size: 1.2rem;
}
.platform-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0.7rem 0;
  font-weight: 500;
}
.platform-list .arrow {
  font-size: 1.1rem;
  color: #3cff9b;
  margin-left: 0.5rem;
}

/* Ecosistema */
.ecosystem-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}
.ecosystem-title {
  font-size: 3.2rem;
  font-weight: bold;
  letter-spacing: 0;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  color: #fff;
}
.ecosystem-box {
  position: relative;
  background: transparent;
  border: 1.5px solid #bbb;
  border-radius: 32px;
  padding: 3.5rem 2.5rem 3.5rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  color: #bbb;
  font-size: 1.25rem;
  box-shadow: 0 0 0 0.5px #bbb;
}
.ecosystem-desc {
  position: relative;
  z-index: 2;
  color: #bbb;
  font-size: 1.25rem;
  text-align: center;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}
.ecosystem-desc p {
  margin-bottom: 1.2rem;
  margin-top: 0;
}
.ecosystem-ornament {
  position: absolute;
  font-size: 2.2rem;
  color: #bbb;
  pointer-events: none;
  user-select: none;
}
.ecosystem-ornament.top-left {
  top: -1.2rem;
  left: -1.2rem;
}
.ecosystem-ornament.top-right {
  top: -1.2rem;
  right: -1.2rem;
}
.ecosystem-ornament.bottom-left {
  bottom: -1.2rem;
  left: -1.2rem;
}
.ecosystem-ornament.bottom-right {
  bottom: -1.2rem;
  right: -1.2rem;
}

/* Ajuste de espacio entre #ecosistema y #conecta (reducción fuerte del gap) */
#ecosistema {
  padding-top: 9rem !important;   /* mantener aire superior del título (por defecto en .section-black) */
  padding-bottom: 0.5rem !important;
  min-height: auto !important;    /* anula el 100vh de .section-black */
}
#plataformas {
  min-height: auto !important;    /* no 100vh */
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}
#syntax {
  min-height: auto !important;    /* no 100vh */
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}
#conecta {
  padding-top: 0.75rem !important;
}
#ecosistema .ecosystem-container {
  min-height: auto !important;    /* que ajuste a su contenido */
}

@media (max-width: 767px) {
  #ecosistema { padding-top: 7.5rem !important; padding-bottom: 0.25rem !important; min-height: auto !important; }
  #conecta { padding-top: 0.5rem !important; }
  #ecosistema .ecosystem-container { min-height: auto !important; }
}

/* Conecta */
.conecta-title {
  font-size: 7vw;
  font-weight: bold;
  letter-spacing: 0;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}
.conecta-title {
  position: relative;
  z-index: 0;
  margin-bottom: 0;
}
.conecta-form {
  position: relative;
  z-index: 1;
}
.conecta-form {
  max-width: 900px;
  background: #111;
  border-radius: 24px;
  padding: 2rem 2.5rem 2rem 2.5rem;
  border: 1px solid #cfcfcf;
  margin: -8rem auto 0 auto;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.conecta-form .row.g-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2rem;
}
.conecta-form .col-md-6 {
  flex: 1 1 45%;
  min-width: 260px;
}
.conecta-form .col-12 {
  flex: 1 1 100%;
}
.form-label-mono {
  display: block;
  color: #cfcfcf;
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(1rem, 2vw, 1.8rem);
  margin-bottom: 0.75rem;
}
.conecta-form .form-control {
  background: transparent;
  border: none;
  border-bottom: 1px solid #b8b8b8;
  color: #fff;
  font-size: 1.2rem;
  border-radius: 0;
  margin-bottom: 2.1rem;
  padding-left: 0;
  padding-right: 0;
  box-shadow: none;
  font-family: 'Share Tech Mono', monospace;
}
.conecta-form .form-control:focus {
  border-color: #3cff9b;
  background: transparent;
  color: #fff;
  outline: none;
}
.conecta-form .form-control::placeholder {
  color: #fff;
  opacity: 1;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
}
.conecta-form .btn-green {
  margin-top: 1.5rem;
  font-size: 1.45rem;
  padding: 1.05rem 2.75rem;
  border-radius: 28px;
  background: #3cff9b;
  color: #0b0b0b;
  border: none;
  font-family: 'Share Tech Mono', monospace;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 280px;
  transition: background 0.2s, color 0.2s;
}
.conecta-form .btn-green:hover, .conecta-form .btn-green:focus {
  background: #2fd87a;
  color: #0b0b0b;
}

/* Header y Footer */
.logo-hive, .logo-hive-footer {
  height: 38px;
  width: auto;
}
.icon-social {
  width: 28px;
  height: 28px;
  margin-right: 0.5rem;
  margin-left: 0;
  transition: opacity 0.2s;
}
.icon-social:last-child {
  margin-right: 0;
}
.icon-social:hover {
  opacity: 0.8;
}
.footer-black {
  background: #111;
  color: #fff;
  border-top: 1px solid #222;
  padding-top: 32px !important;
  padding-bottom: 32px !important;
  display: flex;
  align-items: center;
  min-height: unset;
}
.footer-black .container {
  align-items: flex-end !important;
}
.footer-text {
  color: #bbb;
  font-size: 1rem;
}

/* Otros detalles */
.main-title {
  font-size: 2.8rem;
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 0;
}
.desc-text {
  font-size: 1.1rem;
  color: #222;
  margin-top: 2rem;
  max-width: 350px;
  text-align: right;
}
.arrow-down {
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 991px) {
  .main-title {
    font-size: 2.1rem;
  }
  .header-blue {
    min-height: 320px;
  }
  .section-black, .section-green {
    min-height: 80vh;
  }
  .conecta-title {
    font-size: 2.5rem;
  }
}
@media (max-width: 767px) {
  .main-title {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .section-number {
    font-size: 1.5rem;
  }
  .header-blue {
    min-height: 180px;
  }
  .section-black, .section-green {
    min-height: 60vh;
  }
  .conecta-title {
    font-size: 2.5rem;
  }
  .conecta-form {
    padding: 1.2rem 0.8rem 1.2rem 0.8rem;
    max-width: 98vw;
  }
  .conecta-form .row.g-3 {
    gap: 1rem 0;
  }
  .conecta-form .col-md-6, .conecta-form .col-12 {
    min-width: 100%;
    flex: 1 1 100%;
  }
  .conecta-form .form-control {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
  }
  .conecta-form .btn-green {
    font-size: 1.1rem;
    min-width: 120px;
    padding: 0.7rem 1.5rem;
  }
  .ecosystem-title {
    font-size: 2rem;
  }
  .ecosystem-box {
    padding: 2rem 0.7rem 2rem 0.7rem;
    max-width: 98vw;
  }
  .ecosystem-desc {
    font-size: 1rem;
  }
  .ecosystem-ornament {
    font-size: 1.3rem;
  }
  .footer-black {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
}

@media (max-width: 575px) {
  .logo-hive, .logo-hive-footer {
    height: 28px;
  }
  .icon-social {
    height: 22px;
    width: 22px;
  }
  .footer-text {
    font-size: 0.8rem;
  }
}

/* Acordeón para plataformas */
.accordion-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
  font-size: 1.2rem;
}
.accordion-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.accordion-toggle {
  background: none;
  border: none;
  color: inherit;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: color 0.2s;
  z-index: 2;
  position: relative;
  padding-right: 2rem;
}
.accordion-toggle .arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), color 0.2s;
}
.accordion-toggle .arrow {
  position: absolute;
  right: 0;
  top: 50%;
  /* Estado cerrado: sin rotación, el PNG ya apunta a la izquierda */
  transform: translateY(-50%);
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), color 0.2s;
  line-height: 0;
}
.accordion-toggle .accordion-triangle { display: block; width: 22px; height: 22px; }
.accordion-item.open .accordion-toggle .arrow {
  /* Estado abierto: apuntar hacia abajo con giro corto (-90deg desde izquierda) */
  transform: translateY(-50%) rotate(-90deg) !important;
}

/* Forzar estado cerrado a NO tener rotación por herencias previas */
.accordion-item:not(.open) .accordion-toggle .arrow {
  transform: translateY(-50%) !important;
}
.accordion-content {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(.4,2,.6,1), opacity 0.3s, height 0.35s cubic-bezier(.4,2,.6,1);
  font-size: 1rem;
  color: #bbb;
  padding: 0 0.5rem;
  box-sizing: border-box;
  background: transparent;
  position: relative;
  text-align: left;
  display: block;
}
.accordion-item.open .accordion-content {
  max-height: 1000px;
  opacity: 1;
  margin-bottom: 0.7rem;
  padding-top: 0.5rem;
}

.accordion-list .accordion-item {
  display: block;
}

.accordion-list .accordion-item {
  align-items: stretch;
}

.accordion-list .accordion-toggle {
  display: block;
  width: 100%;
}

.accordion-list .accordion-content {
  width: 100%;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

/* Espacio de seguridad entre columnas en Iniciativas */
.section-green .row {
  gap: 3rem;
}

/* Acordeón específico para Iniciativas */
#iniciativasAccordion .accordion-item {
  border-bottom: 1.5px solid #111;
}
#iniciativasAccordion .accordion-toggle {
  color: #111;
  font-weight: 500; /* igual que SYNTAX */
  font-size: 1.5rem;
  background: none;
}
#iniciativasAccordion .accordion-toggle .arrow {
  color: #111;
  font-size: 1.5rem;
}
#iniciativasAccordion .accordion-content {
  color: #111;
  background: transparent;
  font-size: 1.1rem;
  padding-left: 0;
  padding-right: 0;
}

/* Ajuste global para columnas de secciones principales */
.section-black .row, .section-green .row {
  display: flex;
  flex-wrap: nowrap;
  gap: 3rem;
  align-items: flex-start;
}

@media (max-width: 991px) {
  .section-black .row, .section-green .row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .section-black .col-md-6, .section-green .col-md-6 {
    width: 100%;
    max-width: 100%;
  }
}

/* Asegurar que en mobile las columnas se apilen correctamente */
@media (max-width: 767px) {
  .section-black .row, .section-green .row {
    flex-direction: column;
    gap: 2rem;
  }
  .section-black .col-md-6, .section-green .col-md-6 {
    width: 100%;
    max-width: 100%;
    flex: none;
  }
}

.section-black .col-md-6, .section-green .col-md-6 {
  flex: 1 1 0;
  min-width: 0;
}

/* Elimina márgenes superiores innecesarios en listas de la segunda columna */
.section-black .platform-list,
.section-green .platform-list {
  margin-top: 0;
}

/* Círculo con fondo negro y número verde por defecto */
.section-number-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 2.5rem;
  font-family: 'Share Tech Mono', monospace;
  font-weight: bold;
  background: #111;
  color: #3cff9b;
  border: none;
}

/* Círculo blanco y número negro para secciones negras */
.section-black .section-number-circle {
  background: #fff;
  color: #111;
}

/* Ajuste de alineación para títulos de sección */
.section-title {
  font-size: 2rem;
  font-family: 'Share Tech Mono', monospace;
  margin: 0;
  font-weight: bold;
  letter-spacing: 0;
}

/* Centrado especial para la sección 4 */
.section-green.text-center .section-list {
  margin: 0 auto;
  display: inline-block;
  text-align: left;
  float: none;
}

@media (max-width: 767px) {
  .section-number-circle {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
}

/* Lista numerada centrada para sección 4 */
.section-list-numbered {
  list-style: none;
  padding-left: 0;
  margin: 0 auto;
  display: inline-block;
  text-align: center;
}
.section-list-numbered li {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0;
  font-weight: 400;
  position: relative;
  padding-left: 0;
}
.section-list-numbered li::before {
  content: counter(item);
  counter-increment: item;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 16px;
  background: #111;
  color: #3cff9b;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: bold;
  font-family: 'Share Tech Mono', monospace;
  vertical-align: middle;
}
.section-list-numbered {
  counter-reset: item;
}

/* Elimina el número por defecto del ol */
.section-list-numbered {
  list-style-type: none;
}

@media (max-width: 767px) {
  .section-list-numbered li::before {
    width: 28px;
    height: 28px;
    font-size: 1rem;
    margin-right: 8px;
  }
}

/* Imagen decorativa centrada en el hero */
.hero-tech-bg {
  position: relative;
  min-height: 97vh !important;
  height: 97vh !important;
  overflow: hidden;
}
.hero-tech-img {
  position: absolute;
  top: 50%;
  right: -150px; /* empuja ~150px hacia la derecha */
  transform: translateY(-50%);
  width: 42vw;
  max-width: 42vw;
  max-height: 90vh;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

/* Columna de texto del hero: limitar ancho para un balance con el SVG */
.hero-text-col { max-width: 46vw; }
.hero-text-col .main-title { text-align: left !important; }
.hero-text-col .desc-text { text-align: left !important; max-width: 34vw !important; }
/* Asegurar que el SVG escala correctamente dentro del contenedor */
.hero-tech-img svg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: auto; /* permitir interacción (drag) en el SVG */
}

/* Evitar selección de texto en el hero para un drag fluido */
.hero-tech-bg, .hero-tech-bg * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* El contenido del hero debe estar por encima de la imagen */
.hero-tech-bg > .container-fluid,
.hero-tech-bg > .container {
  position: relative;
  z-index: 2;
}

/* Header fijo */
.header-fixed {
  background: #5a8fff;
  min-height: 64px;
  height: 64px;
  left: 0;
  top: 0;
  right: 0;
  z-index: 10050 !important;
}

@media (max-width: 767px) {
  .header-fixed {
    min-height: 48px;
    height: 48px;
  }
  .hero-tech-bg {
    margin-top: 48px !important;
  }
}

/* Botones fijos en la parte inferior del hero */
.hero-bottom-buttons {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 32px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10035;
}
.hero-lang-switch, .hero-contact-btn {
  background: rgba(255,255,255,0.7);
  color: #111;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 1.1rem;
  font-family: 'Share Tech Mono', monospace;
  border: none;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s;
}
.hero-lang-switch {
  margin-left: 32px;
  cursor: pointer;
}
.hero-contact-btn {
  margin-right: 32px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-mail {
  height: 1.5rem;
  width: auto;
  display: block;
}
.hero-lang-switch:hover, .hero-contact-btn:hover {
  background: rgba(255,255,255,0.9);
  color: #222;
}

/* Flecha y texto Scroll solo en el hero */
.hero-scroll-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  pointer-events: none;
}
.hero-scroll-btn {
  background: none;
  border: none;
  color: #111;
  font-size: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.2s;
  animation: scroll-bounce 2.2s infinite cubic-bezier(.4,0,.2,1);
  opacity: 0.85;
}
.scroll-text {
  font-size: 1.1rem;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0;
  opacity: 0.8;
  animation: scroll-fade 2.2s infinite cubic-bezier(.4,0,.2,1);
}
.hero-arrow { display:block; width:22px; height:22px; transform: rotate(-90deg); }
@keyframes scroll-bounce {
  0% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
  100% { transform: translateY(0); }
}
@keyframes scroll-fade {
  0% { opacity: 0.8; }
  40% { opacity: 1; }
  60% { opacity: 0.7; }
  100% { opacity: 0.8; }
}
@media (max-width: 767px) {
  .hero-bottom-buttons {
    bottom: 16px;
  }
  .hero-lang-switch, .hero-contact-btn {
    font-size: 0.95rem;
    padding: 6px 14px;
    margin-left: 12px;
    margin-right: 12px;
  }
  .hero-scroll-container {
    bottom: 31px;
  }
  .hero-scroll-btn {
    font-size: 1.5rem;
  }
  .scroll-text {
    font-size: 0.95rem;
  }
}

/* Mobile: quitar espacio bajo el título de Conecta */
@media (max-width: 767px) {
  .conecta-title { margin-bottom: 0 !important; }
}

/* Mobile: aumentar el gap superior del bloque Conecta (arriba del título) */
@media (max-width: 767px) {
  #conecta { padding-top: 2rem !important; }
}

/* === MARQUEE BAND === */
:root { 
  --marquee-h: clamp(72px, 12vw, 140px); /* altura visible del marquee */
  --marquee-gap-below: 56px;             /* respiro entre marquee y contenido */
  --marquee-edge-offset: 8px;            /* ajuste fino para centrar en el borde */
}
.marquee-band {
  background: #5a8fff;
  color: #111;
  height: var(--marquee-h);
  padding: 0 16px; /* sin padding vertical para respetar la altura fija */
  border: 2px solid #111;
  border-radius: 28px;
  overflow: hidden;
  width: auto;
  box-sizing: border-box;
  /* Overlay absoluto sobre el borde entre hero y sección (no fixed) */
  position: absolute;
  left: clamp(12px, 3vw, 48px);
  right: clamp(12px, 3vw, 48px);
  top: 0; /* será recalculado por JS */
  z-index: 20;
  margin: 0;
  visibility: hidden; /* evitar FOUC hasta posicionamiento JS */
  display: flex;
  align-items: center; /* centra verticalmente el track dentro de la banda */
  /* sin fondo adicional: permitir ver los fondos del hero y la sección */
  pointer-events: none; /* no bloquea interacciones debajo */
}
/* Hacer que la primera sección visible suba y quede detrás del marquee */
#iniciativas { margin-top: 0; position: relative; z-index: 1; padding-top: calc(var(--marquee-h) / 2 - var(--marquee-edge-offset) + var(--marquee-gap-below)) !important; }
@media (max-width: 991px) { #iniciativas { padding-top: calc(var(--marquee-h) / 2 - var(--marquee-edge-offset) + 48px) !important; } }
@media (max-width: 767px) { #iniciativas { padding-top: calc(var(--marquee-h) / 2 - var(--marquee-edge-offset) + 40px) !important; } }
/* Underlay para evitar ver el fondo negro alrededor de los bordes redondeados */
.marquee-band::before { content: none; }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 4rem;
  animation: marquee-left 45s linear infinite;
  will-change: transform;
  align-items: center; /* alinea los textos en su propia línea base vertical */
}
.marquee-seq {
  display: flex;
  gap: 4rem;
}
.marquee-text {
  font-family: 'Share Tech Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  font-size: clamp(2rem, 8vw, 6rem);
  white-space: nowrap;
}
@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 767px) {
  .marquee-band { padding: 18px 12px 12px 12px; border-radius: 18px; margin-top: -39px; }
  .marquee-track, .marquee-seq { gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Navegación lateral fija */
.side-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10040; /* por encima del contenido y marquee */
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 2px solid #111;
  border-radius: 16px;
  padding: 8px 4px;
  height: auto;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
}
.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.side-nav-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #111;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  box-sizing: border-box;
}
.side-nav-btn.active {
  background: #111;
  border: 2px solid #111;
}
.side-nav-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3cff9b44;
}
@media (max-width: 767px) {
  .side-nav {
    right: 4px;
    padding: 4px 2px;
    border-radius: 10px;
  }
  .side-nav-btn {
    width: 7px;
    height: 7px;
  }
  .side-nav ul {
    gap: 6px;
  }
}

.lang-btn {
  background: transparent;
  border: none;
  color: #111;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s;
  padding: 2px 8px;
  border-radius: 8px;
}
.lang-btn.active {
  opacity: 1;
  color: #111;
  background: transparent;
  box-shadow: none;
}
.lang-btn:not(.active):hover {
  opacity: 0.8;
}
.hero-lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 20px;
  padding: 4px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.side-nav.on-black {
  border: 2px solid #fff;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
}
.side-nav.on-black .side-nav-btn {
  border: 2px solid #fff;
  background: transparent;
}
.side-nav.on-black .side-nav-btn.active {
  background: #fff;
  border: 2px solid #fff;
}

/* === DRAWER MENU === */
.menu-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.5rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-icon {
  display: block;
  width: 28px;
  height: 3px;
  background: #111;
  position: relative;
  border-radius: 2px;
}
.menu-icon::before, .menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 28px;
  height: 3px;
  background: #111;
  border-radius: 2px;
  transition: 0.2s;
}
.menu-icon::before {
  top: -9px;
}
.menu-icon::after {
  top: 9px;
}
.drawer-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: transparent; /* sin fondo propio; overlay hace el efecto */
  color: #fff;
  z-index: 10060;
  display: flex;
  align-items: center; /* centrar vertical */
  justify-content: center; /* centrar horizontal */
  padding: 2rem;
  transform: scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.drawer-menu.open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.close-drawer {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  cursor: pointer;
  z-index: 2;
}
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin: 0;
  align-items: center;
  text-align: center;
}
.drawer-link {
  color: #fff;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.2s, opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  filter: blur(4px);
}
.drawer-link:hover, .drawer-link:focus {
  color: #3cff9b;
}
/* Tech entrance animation */
@keyframes menuRise {
  0% { opacity: 0; transform: translateY(14px) scale(0.98); filter: blur(6px); }
  60% { opacity: 1; transform: translateY(-2px) scale(1.01); filter: blur(1px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.drawer-menu.open .drawer-link { animation: menuRise 420ms cubic-bezier(.2,.8,.2,1) forwards; }
.drawer-menu.open .drawer-link:nth-child(1) { animation-delay: 40ms; }
.drawer-menu.open .drawer-link:nth-child(2) { animation-delay: 80ms; }
.drawer-menu.open .drawer-link:nth-child(3) { animation-delay: 120ms; }
.drawer-menu.open .drawer-link:nth-child(4) { animation-delay: 160ms; }
.drawer-menu.open .drawer-link:nth-child(5) { animation-delay: 200ms; }
.drawer-menu.open .drawer-link:nth-child(6) { animation-delay: 240ms; }
.drawer-menu.open .drawer-link:nth-child(7) { animation-delay: 280ms; }
.drawer-menu.open .drawer-link:hover { text-shadow: 0 0 8px rgba(60,255,155,0.75), 0 0 16px rgba(60,255,155,0.35); }
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.0);
  z-index: 10055; /* debajo del drawer (10060) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
  background: rgba(6,6,6,0.88); /* luz apagada aún más sólida */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Sin cambios de color de navbar en menú abierto */
@keyframes lightsOut {
  from { background: rgba(0,0,0,0.0); backdrop-filter: blur(0px); }
  to { background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); }
}
@media (max-width: 480px) {
  .drawer-menu {
    width: 92vw;
    min-width: 0;
    padding: 2rem 1rem 2rem 1rem;
  }
  .drawer-link {
    font-size: 1.1rem;
  }
}

.menu-dots {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  grid-template-rows: repeat(3, 6px);
  gap: 5px;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-items: center;
}
.menu-dots span {
  display: block;
  width: 6px;
  height: 6px;
  background: #111;
  border-radius: 50%;
}

.ecosystem-bg-img {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 920px;
  opacity: 1;
  z-index: 20;
  pointer-events: none;
  user-select: none;
}

/* Solo el contenido principal encima de la imagen, no los ornamentos */
.ecosystem-desc {
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  .ecosystem-title-left {
    font-size: 2.1rem;
    max-width: 98vw;
  }
  .hero-tech-img { top: 36%; }
  .ecosystem-bg-img {
    width: 320px;
    top: -60px;
    right: -20px;
  }
}
@media (max-width: 575px) {
  .ecosystem-title-left {
    font-size: 1.2rem;
    max-width: 98vw;
  }
  .hero-tech-img { top: 34%; }
  .ecosystem-bg-img {
    width: 160px;
    top: -20px;
    right: -5px;
  }
}

.ecosystem-title-left {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  width: 100%;
  max-width: 700px;
  font-size: 3.2rem;
  line-height: 1.1;
  display: block;
  letter-spacing: 0;
}

#ecosystem-title-text {
  display: block;
}

.ecosystem-title {
  font-size: 3.2rem;
  font-weight: bold;
  letter-spacing: 0;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  color: #fff;
}
.ecosystem-box {
  position: relative;
  background: transparent;
  border: 1.5px solid #bbb;
  border-radius: 32px;
  padding: 3.5rem 2.5rem 3.5rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  color: #bbb;
  font-size: 1.25rem;
  box-shadow: 0 0 0 0.5px #bbb;
}
.ecosystem-ornament {
  position: absolute;
  font-size: 2.2rem;
  color: #bbb;
  pointer-events: none;
  user-select: none;
}
.ecosystem-ornament.top-left {
  top: -1.2rem;
  left: -1.2rem;
}
.ecosystem-ornament.top-right {
  top: -1.2rem;
  right: -1.2rem;
}
.ecosystem-ornament.bottom-left {
  bottom: -1.2rem;
  left: -1.2rem;
}
.ecosystem-ornament.bottom-right {
  bottom: -1.2rem;
  right: -1.2rem;
}

/* Conecta */
.conecta-title {
  font-size: 7vw;
  font-weight: bold;
  letter-spacing: 0;
  margin-bottom: -6.5rem;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}
.conecta-form {
  max-width: 900px;
  background: #111111;
  border-radius: 28px;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  border: 1.5px solid #fff;
  margin: 2.5rem auto 0 auto;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.conecta-form .row.g-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2rem;
}
.conecta-form .col-md-6 {
  flex: 1 1 45%;
  min-width: 260px;
}
.conecta-form .col-12 {
  flex: 1 1 100%;
}
.conecta-form .form-control {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #fff;
  color: #fff;
  font-size: 1.3rem;
  border-radius: 0;
  margin-bottom: 2rem;
  padding-left: 0;
  padding-right: 0;
  box-shadow: none;
  font-family: 'Share Tech Mono', monospace;
}
.conecta-form .form-control:focus {
  border-color: #3cff9b;
  background: transparent;
  color: #fff;
  outline: none;
}
.conecta-form .form-control::placeholder {
  color: #fff;
  opacity: 1;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
}
.conecta-form .btn-green {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  padding: 0.8rem 3.5rem;
  border-radius: 16px;
  background: #3cff9b;
  color: #111;
  border: none;
  font-family: 'Share Tech Mono', monospace;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 220px;
  transition: background 0.2s, color 0.2s;
}
.conecta-form .btn-green:hover, .conecta-form .btn-green:focus {
  background: #2fd87a;
  color: #111;
}

/* Header y Footer */
.logo-hive, .logo-hive-footer {
  height: 38px;
  width: auto;
}
.icon-social {
  width: 28px;
  height: 28px;
  margin-right: 0.5rem;
  margin-left: 0;
  transition: opacity 0.2s;
}
.icon-social:last-child {
  margin-right: 0;
}
.icon-social:hover {
  opacity: 0.8;
}
.footer-black {
  background: #111;
  color: #fff;
  border-top: 1px solid #222;
  padding-top: 32px !important;
  padding-bottom: 32px !important;
  display: flex;
  align-items: center;
  min-height: unset;
}
.footer-black .container {
  align-items: flex-end !important;
}
.footer-text {
  color: #bbb;
  font-size: 1rem;
}

/* Otros detalles */
.main-title {
  font-size: 2.8rem;
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 0;
}
.desc-text {
  font-size: 1.1rem;
  color: #222;
  margin-top: 2rem;
  max-width: 350px;
  text-align: right;
}
.arrow-down {
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 991px) {
  .main-title {
    font-size: 2.1rem;
  }
  .header-blue {
    min-height: 320px;
  }
  .section-black, .section-green {
    min-height: 80vh;
  }
  .conecta-title {
    font-size: 2.5rem;
  }
}
@media (max-width: 767px) {
  .header-blue.hero-tech-bg {
    min-height: auto !important;
    height: auto !important;
  }
  .header-blue {
    min-height: auto !important;
    height: auto !important;
    padding-top: 2.5rem !important;
    padding-bottom: 3.5rem !important; /* más gap bottom en mobile */
  }
  .header-blue .container,
  .header-blue .row {
    min-height: unset !important;
    height: auto !important;
    flex-grow: unset !important;
  }
  .header-blue .col-md-7,
  .header-blue .col-md-5 {
    min-height: unset !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
  .main-title {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }
  .desc-text {
    font-size: 1.3rem !important;
    text-align: left !important;
    max-width: 100% !important;
    margin-top: 1rem !important;
  }
  .section-black > .container,
  .section-green > .container,
  .section-black,
  .section-green,
  .header-blue > .container,
  .header-blue {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
@media (max-width: 767px) {
  .main-title {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .section-number {
    font-size: 1.5rem;
  }
  .header-blue {
    min-height: 180px;
  }
  .section-black, .section-green {
    min-height: 60vh;
  }
  .conecta-title {
    font-size: 2.5rem;
  }
  .conecta-form {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    max-width: 98vw;
  }
  .conecta-form .row.g-3 {
    gap: 1rem 0;
  }
  .conecta-form .col-md-6, .conecta-form .col-12 {
    min-width: 100%;
    flex: 1 1 100%;
  }
  .conecta-form .form-control {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
  }
  .conecta-form .btn-green {
    font-size: 1.1rem;
    min-width: 120px;
    padding: 0.7rem 1.5rem;
  }
  .ecosystem-title {
    font-size: 2rem;
  }
  .ecosystem-box {
    padding: 2rem 0.7rem 2rem 0.7rem;
    max-width: 98vw;
  }
  .ecosystem-desc {
    font-size: 1rem;
  }
  .ecosystem-ornament {
    font-size: 1.3rem;
  }
  .footer-black {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
}

@media (max-width: 575px) {
  .logo-hive, .logo-hive-footer {
    height: 28px;
  }
  .icon-social {
    height: 22px;
    width: 22px;
  }
  .footer-text {
    font-size: 0.8rem;
  }
}

/* Acordeón para plataformas */
.accordion-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
  font-size: 1.2rem;
}
.accordion-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.accordion-toggle {
  background: none;
  border: none;
  color: inherit;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: color 0.2s;
  z-index: 2;
  position: relative;
  padding-right: 2rem;
}
.accordion-toggle .arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  margin-left: 0;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), color 0.2s;
}
.accordion-item.open .accordion-toggle .arrow {
  transform: translateY(-50%) rotate(90deg);
}
.accordion-content {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(.4,2,.6,1), opacity 0.3s;
  font-size: 1rem;
  color: #bbb;
  padding: 0 0.5rem;
  box-sizing: border-box;
  background: transparent;
  position: relative;
  text-align: left;
  display: block;
}
.accordion-item.open .accordion-content {
  max-height: 1000px;
  opacity: 1;
  margin-bottom: 0.7rem;
  padding-top: 0.5rem;
}

.accordion-list .accordion-item {
  display: block;
}

.accordion-list .accordion-item {
  align-items: stretch;
}

.accordion-list .accordion-toggle {
  display: block;
  width: 100%;
}

.accordion-list .accordion-content {
  width: 100%;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

/* Espacio de seguridad entre columnas en Iniciativas */
.section-green .row {
  gap: 3rem;
}

/* Acordeón específico para Iniciativas */
#iniciativasAccordion .accordion-item {
  border-bottom: 1.5px solid #111;
}
#iniciativasAccordion .accordion-toggle {
  color: #111;
  font-weight: 500; /* igual que SYNTAX */
  font-size: 1.5rem;
  background: none;
}
#iniciativasAccordion .accordion-toggle .arrow {
  color: #111;
  font-size: 1.5rem;
}
#iniciativasAccordion .accordion-content {
  color: #111;
  background: transparent;
  font-size: 1.1rem;
  padding-left: 0;
  padding-right: 0;
}

/* Elimina márgenes superiores innecesarios en listas de la segunda columna */
.section-black .platform-list,
.section-green .platform-list {
  margin-top: 0;
}

/* Círculo con fondo negro y número verde por defecto */
.section-number-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 2.5rem;
  font-family: 'Share Tech Mono', monospace;
  font-weight: bold;
  background: #111;
  color: #3cff9b;
  border: none;
}

/* Círculo blanco y número negro para secciones negras */
.section-black .section-number-circle {
  background: #fff;
  color: #111;
}

/* Ajuste de alineación para títulos de sección */
.section-title {
  font-size: 2rem;
  font-family: 'Share Tech Mono', monospace;
  margin: 0;
  font-weight: bold;
  letter-spacing: 0;
}

/* Centrado especial para la sección 4 */
.section-green.text-center .section-list {
  margin: 0 auto;
  display: inline-block;
  text-align: left;
  float: none;
}

@media (max-width: 767px) {
  .section-number-circle {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
}

/* Lista numerada centrada para sección 4 */
.section-list-numbered {
  list-style: none;
  padding-left: 0;
  margin: 0 auto;
  display: inline-block;
  text-align: center;
}
.section-list-numbered li {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0;
  font-weight: 400;
  position: relative;
  padding-left: 0;
}
.section-list-numbered li::before {
  content: counter(item);
  counter-increment: item;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 16px;
  background: #111;
  color: #3cff9b;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: bold;
  font-family: 'Share Tech Mono', monospace;
  vertical-align: middle;
}
.section-list-numbered {
  counter-reset: item;
}

/* Elimina el número por defecto del ol */
.section-list-numbered {
  list-style-type: none;
}

@media (max-width: 767px) {
  .section-list-numbered li::before {
    width: 28px;
    height: 28px;
    font-size: 1rem;
    margin-right: 8px;
  }
}

/* Imagen decorativa centrada en el hero */
.hero-tech-bg {
  position: relative;
  min-height: 97vh !important;
  height: 97vh !important;
  overflow: hidden;
}
.hero-tech-img {
  position: absolute;
  top: 50%;
  /* 150px más a la izquierda respecto a la posición anterior */
  left: calc(46vw - 434px);
  right: auto;
  transform: translateY(-50%);
  width: 75vw;
  max-width: 75vw;
  max-height: 90vh;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

/* El contenido del hero debe estar por encima de la imagen */
.hero-tech-bg > .container-fluid,
.hero-tech-bg > .container {
  position: relative;
  z-index: 2;
}

/* Header fijo */
.header-fixed {
  background: #5a8fff;
  min-height: 64px;
  height: 64px;
  left: 0;
  top: 0;
  right: 0;
  z-index: 1300;
}

@media (max-width: 767px) {
  .header-fixed {
    min-height: 48px;
    height: 48px;
  }
  .hero-tech-bg {
    margin-top: 48px !important;
  }
}

/* Botones fijos en la parte inferior del hero */
.hero-bottom-buttons {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 32px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 100;
}
.hero-lang-switch, .hero-contact-btn {
  background: rgba(255,255,255,0.7);
  color: #111;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 1.1rem;
  font-family: 'Share Tech Mono', monospace;
  border: none;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s;
}
.hero-lang-switch {
  margin-left: 32px;
  cursor: pointer;
}
.hero-contact-btn {
  margin-right: 32px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-mail {
  height: 1.5rem;
  width: auto;
  display: block;
}
.hero-lang-switch:hover, .hero-contact-btn:hover {
  background: rgba(255,255,255,0.9);
  color: #222;
}

/* Flecha y texto Scroll solo en el hero */
.hero-scroll-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  pointer-events: none;
}
.hero-scroll-btn {
  background: none;
  border: none;
  color: #111;
  font-size: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.2s;
  animation: scroll-bounce 2.2s infinite cubic-bezier(.4,0,.2,1);
  opacity: 0.85;
}
.scroll-text {
  font-size: 1.1rem;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0;
  opacity: 0.8;
  animation: scroll-fade 2.2s infinite cubic-bezier(.4,0,.2,1);
}
@keyframes scroll-bounce {
  0% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
  100% { transform: translateY(0); }
}
@keyframes scroll-fade {
  0% { opacity: 0.8; }
  40% { opacity: 1; }
  60% { opacity: 0.7; }
  100% { opacity: 0.8; }
}
@media (max-width: 767px) {
  .hero-bottom-buttons {
    bottom: 16px;
  }
  .hero-lang-switch, .hero-contact-btn {
    font-size: 0.95rem;
    padding: 6px 14px;
    margin-left: 12px;
    margin-right: 12px;
  }
  .hero-scroll-container {
    bottom: 16px;
  }
  .hero-scroll-btn {
    font-size: 1.5rem;
  }
  .scroll-text {
    font-size: 0.95rem;
  }
}

/* Navegación lateral fija */
.side-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100; /* por encima del contenido, debajo del header/drawer */
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 2px solid #111;
  border-radius: 16px;
  padding: 8px 4px;
  height: auto;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
}
.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.side-nav-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #111;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  box-sizing: border-box;
}
.side-nav-btn.active {
  background: #111;
  border: 2px solid #111;
}
.side-nav-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3cff9b44;
}
@media (max-width: 767px) {
  .side-nav {
    right: 4px;
    padding: 4px 2px;
    border-radius: 10px;
  }
  .side-nav-btn {
    width: 7px;
    height: 7px;
  }
  .side-nav ul {
    gap: 6px;
  }
}

.lang-btn {
  background: transparent;
  border: none;
  color: #111;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s;
  padding: 2px 8px;
  border-radius: 8px;
}
.lang-btn.active {
  opacity: 1;
  color: #111;
  background: transparent;
  box-shadow: none;
}
.lang-btn:not(.active):hover {
  opacity: 0.8;
}
.hero-lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.7);
  border-radius: 20px;
  padding: 4px 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.side-nav.on-black {
  border: 2px solid #fff;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
}
.side-nav.on-black .side-nav-btn {
  border: 2px solid #fff;
  background: transparent;
}
.side-nav.on-black .side-nav-btn.active {
  background: #fff;
  border: 2px solid #fff;
}

/* === DRAWER MENU === */
.menu-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.5rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-icon {
  display: block;
  width: 28px;
  height: 3px;
  background: #111;
  position: relative;
  border-radius: 2px;
}
.menu-icon::before, .menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 28px;
  height: 3px;
  background: #111;
  border-radius: 2px;
  transition: 0.2s;
}
.menu-icon::before {
  top: -9px;
}
.menu-icon::after {
  top: 9px;
}
.drawer-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  color: #fff;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transform: scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.drawer-menu.open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.close-drawer {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  cursor: pointer;
  z-index: 2;
}
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin: 0;
  align-items: center;
  text-align: center;
}
.drawer-link {
  color: #fff;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.2s, opacity 0.2s;
}
.drawer-link:hover, .drawer-link:focus {
  color: #3cff9b;
}
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6,6,6,0.64);
  z-index: 10055;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}
@media (max-width: 480px) {
  .drawer-link { font-size: clamp(1.3rem, 6vw, 2.2rem); }
}

.menu-dots {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  grid-template-rows: repeat(3, 6px);
  gap: 5px;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-items: center;
}
.menu-dots span {
  display: block;
  width: 6px;
  height: 6px;
  background: #111;
  border-radius: 50%;
}

.ecosystem-star {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}
.ecosystem-star.top-center {
  top: -28px;
  left: 40px;
  transform: none;
}
.ecosystem-star.bottom-center {
  bottom: -28px;
  left: auto;
  right: 40px;
  transform: none;
}

.section-list.text-center li, .section-list li {
  margin-left: 0;
  padding-left: 0;
  text-indent: 0;
}
.section-list.text-center {
  list-style-position: inside;
} 

/* Ocultar el SVG del hero en móviles/pantallas pequeñas para mejorar legibilidad y rendimiento */
@media (max-width: 767px) {
  #hero-svg-container {
    display: block !important;
    visibility: visible !important;
  }
  .hero-tech-img {
    display: block !important;
    visibility: visible !important;
    opacity: 0.5 !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100vw;
    max-width: none;
    height: 100%;
    max-height: none;
  }
  #hero-svg-container svg {
    display: block !important;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 767px) {
  .hero-text-col {
    max-width: 100% !important;
    width: 100% !important;
  }
  .hero-text-col .main-title {
    width: 100%;
  }
  .hero-text-col .desc-text {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* === Contacto: desactivar borde rojo de Bootstrap en validación === */
.conecta-form .form-control.is-invalid,
.conecta-form .form-control.is-invalid:focus,
.conecta-form .was-validated .form-control:invalid,
.conecta-form .was-validated .form-control:invalid:focus {
  border: none;
  border-bottom: 1.5px solid #fff; /* mantener estilo del formulario */
  box-shadow: none !important;
  outline: none;
}

/* Mantener línea de focus (verde) siempre, incluso en estado inválido */
.conecta-form .form-control:focus {
  border: none;
  border-bottom: 1.5px solid #3cff9b !important;
  box-shadow: none !important;
  outline: none;
}
.conecta-form .form-control.is-invalid:focus,
.conecta-form .was-validated .form-control:invalid:focus {
  border: none;
  border-bottom: 1.5px solid #3cff9b !important;
  box-shadow: none !important;
  outline: none;
}

/* Cambiar el color del label cuando el campo tenga focus (incluye inválido) */
.conecta-form .col-md-6:focus-within .form-label-mono,
.conecta-form .col-12:focus-within .form-label-mono {
  color: #3cff9b !important;
}

/* Hero title: uppercase */
.main-title {
  text-transform: uppercase !important;
}