/* ====== Fuentes personalizadas ====== */
@font-face {
  font-family: 'MiFuente1';
  src: url('../fonts/DancingScript-Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'MiFuente2';
  src: url('../fonts/BerkshireSwash-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ===== Header ===== */
header {
  display: flex;
  align-items: center;   /* centra verticalmente respecto al logo */
  justify-content: flex-start;
  padding: 20px;
  background: #1e3d59;
  color: white;
}

header img {
  height: 100px;
  margin-right: 20px; /* espacio entre logo y texto */
}

.header-text {
  flex: 1;                /* ocupa el resto del espacio */
  display: flex;
  flex-direction: column; /* apila el título y subtítulo */
  align-items: center;    /* centra ambos en horizontal */
  text-align: center;
}

/* Título principal */
#nomBoletin {
  font-family: 'MiFuente2', cursive;
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

/* Subtítulo */
#infBoletin {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  margin-top: 5px;
  font-weight: normal;
  color: #f1f1f1;
}

/* ===== Nav ===== */
nav {
  background: #16324f;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 20px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #f4d35e;
}

/* Botón hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  border-radius: 3px;
  transition: all 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;   /* ya no empuja el contenido */
    top: 100%;            /* justo debajo de la barra de navegación */
    right: 20px;          /* alineado con la hamburguesa */
    background: #1e3d59;
    width: 200px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 999;         /* se muestra sobre el contenido */
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}