* {
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
}

body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: "poppins", sans-serif;
  line-height: 1.6;
  color: #111111;
  margin: 0;
  padding: 0 20px 0 20px;
  background-color: #f8f8f8;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  min-height: 91vh;
}

.navbar {
  background-color: #f8f8f8;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e0e0e0;
  transition: transform 0.2s ease-in-out;
  height: 80px;
  padding: 0 20px 0 20px;
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar-logo-container {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}

.navbar-logo-container h1 {
  margin: 0;
  font-size: 24px;
}

.navbar-hover-zone {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 999;
  background: transparent;
  transition: height 0.3s ease-in-out;
}

.navbar-hover-zone.active {
  height: 80px;
}

body.navbar-hidden {
  padding-top: 20px;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  height: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 50px;
  width: auto;
  mix-blend-mode: multiply;
}

.navbar-menu {
  display: flex;
  align-items: center;
}

.navbar-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links li {
  margin-left: 20px;
}

.navbar-links a {
  color: #111111;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: normal;
  transition: all 0.3s ease;
}

.navbar-links a:hover {
  background-color: #eeeeee;
}

header {
  color: #111111;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 100px;
  width: 100%;
}

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

table {
  background-color: #ffffff;
}

th {
  background-color: #333333;
  color: white;
}

tr:hover {
  background-color: #f0f0f0;
}

.header-content {
  max-width: 1440px;
  margin: 0 auto;
}

.main-header h1 {
  text-align: left;
}

h1 {
  font-size: 28px;
  margin-bottom: 2rem;
  color: #111111;
  font-weight: normal;
  text-align: center;
}

.intro-section {
  display: flex;
  gap: 40px;
  align-items: center;
  background-color: transparent;
}

.intro-image {
  height: auto;
  border-radius: 8px;
}

.intro-text {
  text-align: left;
  flex: 1;
}

.intro-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Sección Nuestro Equipo */
.team-section {
  padding-bottom: 100px;
}

.team-description {
  font-size: 14px;
  color: #111111;
  margin-bottom: 3rem;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

.member-info {
  padding: 16px;
}

.team-member h3 {
  font-size: 20px;
  font-weight: normal;
}

.position {
  font-size: 14px;
  margin-bottom: 10px;
}

.bio {
  color: #111111;
  font-size: 14px;
  font-weight: light;
}

.team-member img {
  height: 347px;
  width: 100%;
}

/* Sección Nuestra Misión */

.mission-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1440px;
  margin-bottom: 60px;
  margin-top: 60px;
}

.mission-values {
  flex: 1;
  width: 100%;
}

.mission-content {
  flex: 1;
  padding-top: 2rem;
}

.mission-section h2 {
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: normal;
}

.mission-statement {
  font-size: 14px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.value-card {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.value-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: normal;
}

.value-card p {
  font-size: 14px;
}

/* Footer */
.main-footer {
  width: 100%;
  background-color: white;
}

.footer-contenido {
  max-width: 1440px;
  padding: 10px 0;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-contenido p {
  font-size: 14px;
}

.footer-logo {
  height: 50px;
  width: auto;
  mix-blend-mode: multiply;
}

.navbar-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.navbar-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #111111;
  border-radius: 5px;
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .intro-text p {
    font-size: 14px;
  }

  .timeline-event {
    margin: 30px 0 30px 30px;
    padding: 15px;
  }

  .timeline-event::before {
    left: -30px;
  }

  .timeline-year {
    margin-left: 30px;
  }
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .navbar-search {
    margin-right: 10px;
  }

  .search-input {
    width: 150px;
  }

  .search-input:focus {
    width: 180px;
  }

  .intro-image {
    width: 100%;
    margin-bottom: 20px;
  }

  .main-header h1 {
    font-size: 24px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-section {
    padding: 2rem 0;
  }

  .footer-container {
    flex-direction: column;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .timeline::after {
    left: 0;
  }

  .container {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    margin-bottom: 40px;
  }

  .container.left,
  .container.right {
    left: 0;
  }

  .container::before {
    left: 0;
  }

  header {
    padding-bottom: 50px;
  }
}

@media (max-width: 1200px) {
  .intro-section {
    flex-direction: column;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: #f8f8f8;
    flex-direction: column;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-links li {
    margin: 10px 0;
    text-align: center;
  }

  .navbar-search {
    margin-left: auto;
  }

  .navbar-toggle {
    display: block;
  }

  .mission-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .mission-content {
    padding-top: 0;
  }

  .value-card {
    width: 95%;
  }
}

.timeline-container {
  position: relative;
  margin: auto;
  padding: 20px 0;
  max-width: 900px;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #e0e0e0;
  transform: translateX(-50%);
  overflow: hidden;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 0;
  background: #177de1;
  transform: translateX(-50%);
  transition: height 0.3s ease-out;
}

.timeline-event {
  position: relative;
  width: 45%;
  padding: 20px;
  margin: 40px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.timeline-event.left {
  left: -35px;
  z-index: 100;
  text-align: right;
  transform: translateX(-60px);
}

.timeline-event.right {
  left: 54.5%;
  z-index: 100;
  text-align: left;
}

.timeline-event::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 4px solid #177de1;
  z-index: 2;
}

.timeline-event.left::before {
  right: -54px;
}

.timeline-event.right::before {
  left: -54px;
}

.timeline-event.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.timeline-year {
  position: relative;
  left: 46%;
  z-index: 100;
  margin: 40px 0;
  padding: 8px 16px;
  font-size: 20px;
  background: #177de1;
  color: white;
  border-radius: 8px;
  display: inline-block;
  opacity: 0;
  transition: all 0.6s ease;
  text-align: center;
}

.timeline-year.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  #containerProgramacion{
    padding: 0;
  }
  
  .timeline-container {
    padding-left: 60px;
    padding-right: 20px;
  }

  .timeline-line,
  .timeline-progress {
    left: 30px;
    transform: none;
  }

  .timeline-event {
    width: 100%;
    margin: 40px 0;
    text-align: left !important;
  }

  .timeline-event.left,
  .timeline-event.right {
    left: 0;
  }

  .timeline-event.right::before {
    left: -42px;
  }

  .timeline-event::before {
    left: -42px;
    right: auto;
  }

  .timeline-year {
    display: block;
    text-align: left;
    left: 0;
  }
}
