/* Estilos generales */
        :root {
      --bg-color: #f9fafb;
      --primary-color: #200769;
      --text-color: #F4B328;
      --box-bg: #ffffff;
      --box-border: #d1d5db;
    }

    .org-chart {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2rem;
      padding: 30px;
    }
    .org-node:hover{
        background-color: var(--primary-color);
        color: var(--text-color);
    }

    .org-node {
      background: var(--box-bg);
      border: 2px solid var(--box-border);
      border-radius: 8px;
      padding: 10px 16px;
      text-align: center;
      min-width: 150px;
      font-weight: bold;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .org-level {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 2rem;
      position: relative;
    }

    .line {
      width: 2px;
      background-color: var(--box-border);
      position: absolute;
      top: -20px;
      left: 50%;
      height: 20px;
      transform: translateX(-50%);
    }

    .subtree {
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
    }

    .link-line {
      height: 20px;
      width: 2px;
      background-color: var(--box-border);
    }

    @media (max-width: 768px) {
      .org-level {
        flex-direction: column;
        gap: 1rem;
      }
    }


      .organigrama-container {
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem;
        color: #333;
      }

      .organigrama-container h2 {
        text-align: center;
        color: #2c3e50;
        margin-bottom: 2rem;
        font-size: 2rem;
        position: relative;
      }

      .organigrama-container h2::after {
        content: "";
        display: block;
        width: 80px;
        height: 4px;
        background: #3498db;
        margin: 0.5rem auto 2rem;
      }

      .organigrama-container h3 {
        color: #2c3e50;
        margin: 2rem 0 1.5rem;
        border-bottom: 2px solid #3498db;
        padding-bottom: 0.5rem;
        display: inline-block;
      }

      /* Estilos del organigrama */
      .organigrama {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 3rem;
      }

      .nivel,
      .nivel-direcciones,
      .nivel-final {
        display: flex;
        justify-content: center;
        width: 100%;
      }

      .nivel-direcciones {
        gap: 2rem;
      }

      .nivel-final {
        gap: 1.5rem;
      }

      .nodo {
        background-color: #3498db;
        color: white;
        padding: 1rem 1.5rem;
        border-radius: 8px;
        text-align: center;
        font-weight: 600;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        min-width: 200px;
        transition: all 0.3s ease;
        position: relative;
      }

      .nodo:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        background-color: #2980b9;
      }

      .rectoria .nodo {
        background-color: #2c3e50;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
      }

      .rectoria .nodo:hover {
        background-color: #1a252f;
      }

      .subnivel .nodo {
        background-color: #2980b9;
        margin-top: 1rem;
      }

      .subnivel .nodo:hover {
        background-color: #2472a4;
      }

      .conexiones {
        display: flex;
        justify-content: center;
        position: relative;
        height: 40px;
      }

      .linea-vertical {
        width: 2px;
        height: 100%;
        background-color: #3498db;
      }

      .linea-horizontal {
        width: 100%;
        height: 2px;
        background-color: #3498db;
        position: absolute;
        top: 50%;
      }

      /* Descripción del organigrama */
      .descripcion-organigrama {
        background-color: #f8f9fa;
        border-radius: 10px;
        padding: 2rem;
        margin-bottom: 3rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      }

      .descripcion-item {
        margin-bottom: 1.5rem;
      }

      .descripcion-item h4 {
        color: #2c3e50;
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
      }

      .descripcion-item p {
        color: #555;
        line-height: 1.6;
      }

      /* Departamentos institucionales */
      .departamentos-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
      }

      .departamento-card {
        background-color: white;
        border-radius: 10px;
        padding: 1.5rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
      }

      .departamento-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
      }

      .departamento-icon {
        font-size: 2rem;
        color: #3498db;
        margin-bottom: 1rem;
      }

      .departamento-card h4 {
        color: #2c3e50;
        margin-bottom: 0.8rem;
      }

      .departamento-card p {
        color: #555;
        line-height: 1.6;
      }
      .ubicacion-container {
        padding: var(--espaciado-grande) var(--espaciado-mediano);
        background-color: #f9f9f9;
        text-align: center;
        margin-top: var(--espaciado-grande);
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
      }

      .ubicacion-container h2 {
          font-size: 2rem;
          margin-bottom: 0.5em;
          color: var(--color-primario);
      }

      .ubicacion-descripcion {
          font-size: 1rem;
          margin-bottom: 1.5em;
          color: #444;
      }

    .mapa-embed iframe {
        width: 100%;
        height: 300px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }


      /* Responsive */
      @media (max-width: 768px) {
        .nivel-direcciones {
          flex-direction: column;
          align-items: center;
          gap: 1rem;
        }

        .nivel-final {
          flex-wrap: wrap;
        }

        .nodo {
          min-width: 160px;
          margin-bottom: 1rem;
        }
      }