/* ===== ESTILOS BASE (Desktop grande 1400px+) ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 35px;
  background-color: #1e3a8a;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 9999;
}

header.main-header {
  margin-top: 35px;
  position: relative;
}

.portada {
  margin-top: 35px;
}


/* ===== LAPTOPS (1300px – 1024px) ===== */
@media (max-width: 1300px) {
  .top-bar {
    font-size: 0.9em;
  }

  header.main-header,
  .portada {
    margin-top: 30px;
  }
}


/* ===== TABLETS (1024px – 768px) ===== */
@media (max-width: 1024px) {
  .top-bar {
    font-size: 0.85em;
  }

  header.main-header,
  .portada {
    margin-top: 28px;
  }
}


/* ===== MÓVILES (768px – 480px) ===== */
@media (max-width: 768px) {
  .top-bar {
    font-size: 0.8em;
    text-align: center;
    padding: 0 10px;
  }

  header.main-header,
  .portada {
    margin-top: 25px;
  }
}


/* ===== MÓVILES PEQUEÑOS (480px hacia abajo) ===== */
@media (max-width: 480px) {
  .top-bar {
    font-size: 0.75em;
  }

  header.main-header,
  .portada {
    margin-top: 22px;
  }
}


