/* RESET Y TIPOGRAFÍA */
* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f9f9f9;
  color: #333;
}

/* HEADER */
header.main-header {
  background-color: #ffffff;
  color: rgb(13, 100, 150);
  padding: 1rem 2rem;
}
.titulo {
    text-align: center;    /* centra el texto */
    font-weight: 700;      /* negrita */
    color: #0050a0;        /* azul */
    margin-bottom: 1rem; 
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
}

.logo-container {
  flex: 1;
  display: flex;
  align-items: center;
}

.texto-container {
  flex: 1;
  text-align: right;
  
}


.logo {
  height: 60px;
  width: auto;
}

.convenio-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: #004080;
  text-align: right;
}

/* NAV */
nav {
  background-color: #003366;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav a:hover,
nav a.active {
  background-color: #0059b3;
}

/* HERO */
.hero {
  background: #0066cc;
  color: white;
  padding: 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
}

/* CONTENEDOR PRINCIPAL */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* SECCIONES */
.curso-main {
  flex: 2;
  min-width: 320px;
  max-width: 700px;
}

.sidebar-left,
.sidebar-right {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* CONTENIDO */
.cronograma,
.temario,
.evaluacion,
.consultas {
  background: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.cronograma h2,
.temario h2,
.evaluacion h2,
.consultas h2,
.sidebar-left h3,
.sidebar-right h3 {
  margin-bottom: 1rem;
  color: #004080;
  font-size: 1.2rem;
}

.cronograma p,
.temario p,
.evaluacion p,
.consultas p,
.temario ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.temario ul {
  list-style: none;
  padding-left: 0;
}

.temario li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #ccc;
}

.temario li:last-child {
  border-bottom: none;
}

.sidebar-left ul,
.sidebar-right ul {
  list-style: disc;
  padding-left: 1.2rem;
}

.sidebar-left li,
.sidebar-right li {
  margin-bottom: 0.5rem;
}

.sidebar-left a {
  color: #004080;
  text-decoration: none;
}

.sidebar-left a:hover {
  text-decoration: underline;
}

/* IMÁGENES DE SIDEBARS */
.sidebar-left img,
.sidebar-right img {
  width: 100%;
  margin-top: 1rem;
  border-radius: 8px;
}

/* ENLACES GENERALES */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .sidebar-left,
  .sidebar-right {
    display: none;
  }

  .curso-main {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .header-content {
    flex-direction: column;
  }

  nav {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 40px;
  }

  .convenio-text {
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 1.3rem;
  }
}


.menu-toggle {
  display: none;
  font-size: 2rem;
  padding: 1rem;
  background-color: #003366;
  color: white;
  cursor: pointer;
  text-align: right;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav.main-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  nav.main-nav.active {
    display: flex;
  }

  .header-content {
        justify-content: center; /* Centra los elementos en el header */
        text-align: center; /* Asegura que el logo se centre si hay texto */
    }

    .logo {
        height: 60px;
        width: auto;
        margin: 0 auto; /* Centra la imagen horizontalmente */
    }
}

