* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #e0e0e0;
}

html, body {
  height: 100%;
  overflow-y: auto; /* El scroll será global de la página */
  overflow-x: hidden; /* Oculta el scroll horizontal */
  margin: 0;
  padding: 0;
}

/* ENCABEZADO SUPERIOR */
.encabezado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #003399, #002266);
  color: white;
  padding: 15px 30px;
  flex-wrap: wrap;
}

.encabezado-texto {
  max-width: 70%;
}

.encabezado-texto h1 {
  font-size: 1.5rem;
  color: #ffcc00;
  margin: 0;
  letter-spacing: 1px;
}

.encabezado-texto h2 {
  font-size: 1.2rem;
  color: #ffcc00;
  margin: 5px 0;
}

.encabezado-texto ul {
  list-style: disc;
  margin: 10px 0 0 20px;
  padding: 0;
}

.encabezado-texto li {
  margin-bottom: 4px;
  font-weight: bold;
}

.encabezado-logo img {
  max-height: 80px;
  border-radius: 0 0 0 50px;
  background-color: white;
  padding: 5px;
}

/* CONTENEDOR PRINCIPAL */
.contenedor-principal {
  display: flex;
  flex-wrap: wrap;
  min-height: calc(100vh - 150px); /* ajusta 150px al alto de tu encabezado */
}

/* MENÚ LATERAL */
.menu-lateral {
  width: 270px;
  background-color: #f8f8f8;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  margin: 20px;
  padding: 15px;
  text-align: center;
  flex-shrink: 0;
}

.menu-lateral h3 {
  background-color: #003366;
  color: white;
  margin: -15px -15px 10px -15px;
  padding: 10px;
  border-radius: 6px 6px 0 0;
  font-size: 1.1rem;
}

.logo-container img {
  width: 100px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.texto-imagen {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
  font-weight: bold;
}

/* CONTENIDO */
.contenido {
  flex: 1;
  min-height: auto;
  background-color: #fff;
  margin: 20px 20px 20px 0;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

/* ==== PESTAÑAS VERTICALES ==== */
.tabs-vertical {
  display: flex;
  gap: 20px;
  min-height: 70vh;
}

.tab-buttons {
  display: flex;
  flex-direction: column;
  width: 200px;
  background: #f0f0f0;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  padding: 10px;
}

.tab-buttons input[type="radio"] {
  display: none;
}

.tab-buttons label {
  display: block;
  background: #ccc;
  color: #003366;
  font-weight: bold;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.tab-buttons label:hover {
  background: #bbb;
}

.tab-buttons input[type="radio"]:checked + label {
  background: #003366;
  color: white;
}

.tab-content-vertical {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.tab-content-vertical .tab-content {
  display: none;
}

#tab1:checked ~ .tab-content-vertical #content1,
#tab2:checked ~ .tab-content-vertical #content2,
#tab3:checked ~ .tab-content-vertical #content3,
#tab4:checked ~ .tab-content-vertical #content4,
#tab5:checked ~ .tab-content-vertical #content5,
#tab6:checked ~ .tab-content-vertical #content6,
#tab7:checked ~ .tab-content-vertical #content7,
#tab8:checked ~ .tab-content-vertical #content8,
#tab9:checked ~ .tab-content-vertical #content9  {
  display: block;
}

/* TIMELINE HORIZONTAL */
.timeline-horizontal {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  position: relative;
  padding: 40px 0 30px; /* menos espacio arriba y abajo */
  margin: 0 auto;
  max-width: 1100px;
}


.timeline-horizontal::-webkit-scrollbar {
  height: 8px;
}

.timeline-horizontal::-webkit-scrollbar-thumb {
  background: #003366;
  border-radius: 4px;
}

/* CADA ELEMENTO */
.timeline-item {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 280px;
  transition: transform 0.3s ease;
}

.timeline-horizontal::before {
  content: "";
  position: absolute;
  top: 60px; /* más cerca del contenido */
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #002B7A, #C8A600);
  z-index: 1;
  border-radius: 2px;
}


.timeline-date {
  background: #002B7A;
  color: white;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 25px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.timeline-item:hover .timeline-date {
  background: #C8A600;
  transform: scale(1.05);
}

.timeline-date::after {
  content: "";
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #C8A600;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(200,166,0,0.2);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.timeline-item:hover .timeline-date::after {
  background: #FFD700;
  box-shadow: 0 0 10px #FFD700;
}

.timeline-content {
  background: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  font-size: 15px;
  transition: box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.timeline-item:hover {
  transform: translateY(-10px);
}

/* PUNTOS CONECTORES */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #ffcc00 35%, #003366 80%);
  border-radius: 50%;
  box-shadow: 0 0 0 3px #c4c4c4;
  z-index: 2;
}

/* CONEXIÓN ENTRE PUNTOS */
.timeline-horizontal::after {
  content: '';
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  height: 2px;
  background: #003366;
  z-index: 1;
  opacity: 0.6;
}

/* Puntos del timeline */
.timeline-dot {
  width: 16px;
  height: 16px;
  background: #003366;
  border: 3px solid #ffcc00;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  box-shadow: 0 0 5px rgba(255, 204, 0, 0.6);
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
}

.timeline-item:hover .timeline-dot {
  background: #ffcc00;
  border-color: #003366;
  box-shadow: 0 0 10px #ffcc00;
}

/* RESPONSIVE */

/* ========================= */
/* 2️⃣ Tablets y pantallas medianas (≤ 900px) */
/* ========================= */
@media (max-width: 900px) {
  .encabezado {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .encabezado-texto {
    max-width: 100%;
  }

  .encabezado-logo img {
    margin-top: 10px;
    max-width: 150px;
  }

  .contenedor-principal {
    flex-direction: column;
    align-items: center;
  }

  .menu-lateral {
    width: 90%;
    margin: 0 auto 20px auto;
    border-radius: 10px;
  }

  .contenido {
    width: 90%;
    margin: 0 auto;
    border-radius: 10px;
  }

  .timeline-horizontal {
    gap: 30px;
    padding: 30px 10px;
    overflow-x: auto;
  }

  .timeline-item {
    width: 160px;
  }

  .timeline-content {
    font-size: 14px;
    padding: 10px;
  }

  .tabs-vertical {
    flex-direction: column;
  }

  .tab-buttons {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .tab-buttons label {
    flex: 1;
    margin: 5px;
    text-align: center;
  }
}

/* ========================= */
/* 3️⃣ Celulares pequeños (≤ 600px) */
/* ========================= */
@media (max-width: 600px) {
  body {
    font-size: 14px;
    overflow-x: hidden; /* evita el scroll horizontal */
  }

  header, .encabezado {
    flex-direction: column;
    text-align: center;
  }

  .encabezado-logo img {
    max-width: 120px;
  }

  .menu-lateral, .contenido {
    width: 100%;
    border-radius: 0;
    margin: 0;
  }

  .timeline-horizontal {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .timeline-item {
    width: 90%;
  }

  .tab-buttons {
    flex-direction: column;
  }

  .tab-buttons label {
    width: 100%;
    margin-bottom: 8px;
  }

  .acordeon-item label {
    font-size: 0.9rem;
    padding: 12px;
  }

  .acordeon-contenido {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}

/* ========================= */
/* 4️⃣ Laptops grandes (≥ 1200px) */
/* ========================= */
@media (min-width: 1200px) {
  .contenedor-principal {
    max-width: 1400px;
    margin: 0 auto;
  }

  .timeline-horizontal {
    justify-content: center;
  }
}


.pie-pagina {
  background-color: #c4c4c4; /* gris claro */
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
  color: #002060; /* azul oscuro para que combine con UAS */
  border-top: 3px solid #999; /* línea separadora opcional */
  position: relative;
  bottom: 0;
  width: 100%;
}

.pie-pagina p {
  margin: 0;
}

/* === ACORDEÓN (PESTAÑAS DESPLEGABLES) === */
.acordeon {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acordeon-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  background: #fff;
  transition: all 0.3s ease;
}

.acordeon-titulo {
  display: block;
  background: linear-gradient(to right, #003366, #002060);
  color: white;
  font-weight: bold;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
}

.acordeon-titulo:hover {
  background: linear-gradient(to right, #002060, #001540);
}

.acordeon-item input {
  display: none;
}

.acordeon-contenido {
  max-height: 0;
  overflow: hidden;
  background: #f9f9f9;
  transition: max-height 0.5s ease, padding 0.4s ease;
  padding: 0 20px;
  color: #333;
}

.acordeon-item input:checked ~ .acordeon-contenido {
  max-height: none; /* muestra todo el contenido sin límite */
  padding: 20px;
}

/* Estilo interno del contenido */
.acordeon-contenido ul {
  list-style: disc;
  padding-left: 25px;
}

.acordeon-contenido li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.publicaciones {
  margin-top: 10px;
  font-family: Arial, sans-serif;
  color: #222;
}

.publicaciones h3 {
  font-size: 1.1rem;
  color: #002060;
  margin-bottom: 10px;
  margin-left: 40px; /* ← Sangría */
}

.publicaciones ul {
  list-style-type: disc;
  margin-left: 30px;
  line-height: 1.6;
}

.publicaciones li {
  margin-bottom: 10px;
  text-align: justify;
}

.publicaciones a {
  color: #003399;
  text-decoration: none;
}

.publicaciones a:hover {
  text-decoration: underline;
}