/* Header renovado: se carga después de styles.css y solo pisa lo necesario */

header {
  /* Sober institutional look: the logo's teal almost flat, with a faint light from the top.
     The bottom edge is pure rgb(17, 90, 90) so it blends into the .ban gradient below */
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent 70%),
    rgb(17, 90, 90);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  grid-template-columns: 1fr auto 1fr; /* equal side columns keep the title truly centered */
  font-family: 'Nunito', 'Segoe UI', Tahoma, sans-serif;
}

header > a {
  justify-self: start;
  border-radius: 50%;
}

.logo {
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25), 0 0 0 6px rgba(255, 255, 255, 0.06);
}

.titulo {
  font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.subtitulo {
  font-family: 'Nunito', 'Segoe UI', Tahoma, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.titulo + .subtitulo {
  margin-top: 0.6rem;
}

.accesos {
  justify-self: end;
  align-self: center;
}

.accesos nav a {
  justify-content: center;
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.accesos nav a:hover,
.accesos nav a:focus-visible {
  background: #ffffff;
  color: rgb(17, 90, 90);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.accesos nav a:focus-visible,
header > a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Solid teal behind the text; the fade starts lower, below "Tecnicatura" */
.ban {
  background: linear-gradient(to bottom, rgb(17, 90, 90) 60%, #041a0f81);
}

/* Franja "Tecnicatura": título destacado y las dos líneas debajo */
.ban-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  padding: 0 1rem 1.75rem;
}

.ban-text h2 {
  flex-basis: 100%;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* The title links to the PDF: hint it on hover */
.ban-text h2 a {
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease;
}

.ban-text h2 a:hover,
.ban-text h2 a:focus-visible {
  border-bottom-color: rgba(255, 255, 255, 0.7);
  outline: none;
}

.ban-text h3 {
  flex-basis: 100%; /* one line each, stacked */
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', Tahoma, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 769px) {
  header {
    padding: 1.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .subtitulo {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
  }

  .titulo + .subtitulo {
    margin-top: 0.3rem;
  }

  .ban-text h3 {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }
}
