/* ===== Base Styles ===== */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans Regular'), local('OpenSans-Regular'), 
       url(https://fonts.gstatic.com/s/opensans/v14/cJZKeOuBrn4kERxqtaUH3VtXRa8TVwTICgirnJhmVJw.woff2) format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: local('Open Sans Bold'), local('OpenSans-Bold'), 
       url(https://fonts.gstatic.com/s/opensans/v14/k3k702ZOKiLJc3WVjuplzOgdm0LZdjqr5-oayXSOefg.woff2) format('woff2');
}

body, p {
  font-family: 'Open Sans', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  width: 100%;
}

/* ===== Header Structure ===== */
.cursosadistancia_header {
  width: 100%;
}

/* ===== Combined Top Row (Logo only) ===== */
.cursosadistancia_header_logo-row {
  background-color: #e76a23; /* brand orange */
  width: 100%;
  height: 50px; /* reduced height */
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 15px;
  box-sizing: border-box;
}

.cursosadistancia_header_logo-container {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-left: 20px;
  align-items: center;
}

.cursosadistancia_header_logo-img {
  height: 40px; /* reduced logo size */
  width: auto;
}

/* ===== Navigation Row ===== */
.cursosadistancia_header_nav-row {
  width: 100%;
  background-color: #feb201;
  height: 40px;
}

.cursosadistancia_header_main-nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
}

.cursosadistancia_header_nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.cursosadistancia_header_nav-list li {
  position: relative;
}

.cursosadistancia_header_nav-list li:not(:last-child)::after {
  content: "|";
  color: rgba(0, 0, 0, 0.5);
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
}

.cursosadistancia_header_nav-list a {
  color: black;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  transition: color 0.3s ease;
  padding: 0;
  background: none;
  border: none;
}

.cursosadistancia_header_nav-list a:hover,
.cursosadistancia_header_nav-list a:focus {
  color: white;
  text-decoration: none;
}

.cursosadistancia_header_nav-list a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: white;
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}

.cursosadistancia_header_nav-list a:hover::after,
.cursosadistancia_header_nav-list a:focus::after {
  width: 100%;
  left: 0;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
  .cursosadistancia_header_logo-img {
    height: 35px;
  }
  
  .cursosadistancia_header_nav-list {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .cursosadistancia_header_logo-row {
    height: auto;
    padding: 10px 0;
  }
  
  .cursosadistancia_header_logo-container {
    justify-content: center;
    margin-left: 0;
  }
  
  .cursosadistancia_header_logo-img {
    height: 35px;
  }
  
  .cursosadistancia_header_nav-row {
    height: auto;
    padding: 10px 0;
  }
  
  .cursosadistancia_header_nav-list {
    flex-wrap: wrap;
    gap: 15px 30px;
  }
  
  .cursosadistancia_header_nav-list li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .cursosadistancia_header_logo-img {
    height: 30px;
  }
  
  .cursosadistancia_header_nav-list {
    gap: 10px 20px;
  }
  
  .cursosadistancia_header_nav-list a {
    font-size: 14px;
  }
}