  /* ===== MODO OSCURO ===== */
  body.dark .timeline-h-content,
  .dark-mode .timeline-h-content,
  [data-theme="dark"] .timeline-h-content {
    background: #2d2d2d !important;
    color: #e0e0e0 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3) !important;
  }

  body.dark .timeline-h-year,
  .dark-mode .timeline-h-year,
  [data-theme="dark"] .timeline-h-year {
    color: #4da6ff !important;
  }

  body.dark .timeline-h-dot,
  .dark-mode .timeline-h-dot,
  [data-theme="dark"] .timeline-h-dot {
    background: #4da6ff !important;
    border-color: #2d2d2d !important;
    box-shadow: 0 5px 15px rgba(77,166,255,0.35) !important;
  }

  body.dark .timeline-h-wrapper::before,
  .dark-mode .timeline-h-wrapper::before,
  [data-theme="dark"] .timeline-h-wrapper::before {
    background: linear-gradient(90deg, transparent 0%, #4da6ff 8%, #80c0ff 50%, #4da6ff 92%, transparent 100%) !important;
  }

  body.dark .mission-card,
  body.dark .vision-card,
  body.dark .history-card,
  .dark-mode .mission-card,
  .dark-mode .vision-card,
  .dark-mode .history-card,
  [data-theme="dark"] .mission-card,
  [data-theme="dark"] .vision-card,
  [data-theme="dark"] .history-card {
    color: #e0e0e0 !important;
  }

  body.dark .icon-mvv,
  .dark-mode .icon-mvv,
  [data-theme="dark"] .icon-mvv {
    color: #4da6ff !important;
  }

  body.dark .mvv-list li,
  .dark-mode .mvv-list li,
  [data-theme="dark"] .mvv-list li {
    color: #e0e0e0 !important;
  }

  body.dark .mvv-list li i,
  .dark-mode .mvv-list li i,
  [data-theme="dark"] .mvv-list li i {
    color: #4da6ff !important;
  }

  /* ===== LÍNEA DE TIEMPO HORIZONTAL ===== */
  .timeline-h-wrapper {
    overflow: hidden;
    position: relative;
    height: 320px;
    user-select: none;
    margin: 1rem 0 0;
    cursor: default;
    transition: opacity 0.2s ease;
  }

  /* Cursor de pausa al hacer hover */
  .timeline-h-wrapper:hover {
    cursor: grab;
  }

  /* Línea horizontal central que pasa por los puntos */
  .timeline-h-wrapper::before {
    content: '';
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #0077b6 8%, #00a8e8 50%, #0077b6 92%, transparent 100%);
    z-index: 1;
    border-radius: 2px;
  }

  /* Efecto al pausar: el dot activo resalta */
  .timeline-h-wrapper.is-paused .timeline-h-dot {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(0,119,182,0.45);
  }

  .timeline-h-track {
    display: flex;
    align-items: flex-start;
    height: 100%;
    will-change: transform;
  }

  .timeline-h-item {
    flex-shrink: 0;
    width: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.2rem;
  }

  .timeline-h-year {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0077b6;
    letter-spacing: 0.5px;
  }

  .timeline-h-dot {
    width: 54px;
    height: 54px;
    background: #0077b6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,119,182,0.35);
    z-index: 2;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .timeline-h-content {
    background: white;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.09);
    margin-top: 0.7rem;
    font-size: 0.76rem;
    line-height: 1.45;
    text-align: justify;
    text-justify: inter-word;
    width: 100%;
    height: 195px;
    overflow: hidden;
  }

  /* ===================================== */
  /* JUSTIFICAR TODOS LOS TEXTOS */
  /* ===================================== */
  .mission-card, .vision-card, .history-card {
    padding-top: 1rem;
  }

  .mission-card p, .vision-card p, .history-card p,
  .timeline-h-content p, .mvv-list li span {
    text-align: justify;
    text-justify: inter-word;
  }

  .icon-mvv {
    display: block;
    margin: 1.5rem auto 1.5rem auto;
    text-align: center;
    font-size: 2.5rem;
    color: #0077b6;
  }

  /* Títulos */
  .mission-card h3, .vision-card h3, .history-card h3 {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
  }

  /* Párrafos */
  .mission-card p, .vision-card p, .history-card p {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
  }

  .mvv-list {
    text-align: left;
    display: block;
    margin: 1rem auto 1.5rem auto;
    list-style: none;
    padding: 0;
  }

  .mvv-list li {
    text-align: left;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .mvv-list li i {
    margin-right: 0.5rem;
    color: #0077b6;
    font-size: 1.2rem;
    margin-top: 0.2rem;
  }

  /* ===================================== */
  /* BOTONES TABS */
  /* ===================================== */
  .section-header {
    margin-bottom: 2.5rem;
  }

  .tab-buttons {
    display: flex;
    gap: 2rem;
    margin-top: 0;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
  }

  .tab-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    min-width: auto;
    text-align: center;
    color: #666;
    position: relative;
    transition: color 0.3s ease;
  }

  .tab-button:hover {
    color: #0077b6;
  }

  .tab-button.active {
    color: #0077b6;
    font-weight: 600;
  }

  .tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0077b6;
    border-radius: 3px 3px 0 0;
  }

  /* Modo oscuro para los botones */
  body.dark .tab-button,
  .dark-mode .tab-button,
  [data-theme="dark"] .tab-button {
    color: #aaa !important;
  }

  body.dark .tab-button:hover,
  .dark-mode .tab-button:hover,
  [data-theme="dark"] .tab-button:hover {
    color: #4da6ff !important;
  }

  body.dark .tab-button.active,
  .dark-mode .tab-button.active,
  [data-theme="dark"] .tab-button.active {
    color: #4da6ff !important;
  }

  body.dark .tab-button.active::after,
  .dark-mode .tab-button.active::after,
  [data-theme="dark"] .tab-button.active::after {
    background: #4da6ff !important;
  }

  body.dark .tab-buttons,
  .dark-mode .tab-buttons,
  [data-theme="dark"] .tab-buttons {
    border-bottom-color: #404040 !important;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .tab-buttons {
      gap: 1.5rem;
      margin-bottom: 2.5rem;
    }

    .tab-button {
      font-size: 1rem;
    }

    .timeline-h-item {
      width: 230px;
    }

    .timeline-h-content {
      font-size: 0.73rem;
    }
  }

  @media (max-width: 480px) {
    .tab-buttons {
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .tab-button {
      font-size: 0.95rem;
    }
  }
